diff -Nru cockpit-283/configure cockpit-284/configure --- cockpit-283/configure 2023-01-11 17:25:46.000000000 +0000 +++ cockpit-284/configure 2023-01-25 05:21:39.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Cockpit 283. +# Generated by GNU Autoconf 2.71 for Cockpit 284. # # Report bugs to . # @@ -610,8 +610,8 @@ # Identity of this package. PACKAGE_NAME='Cockpit' PACKAGE_TARNAME='cockpit' -PACKAGE_VERSION='283' -PACKAGE_STRING='Cockpit 283' +PACKAGE_VERSION='284' +PACKAGE_STRING='Cockpit 284' PACKAGE_BUGREPORT='devel@lists.cockpit-project.org' PACKAGE_URL='https://cockpit-project.org/' @@ -1407,7 +1407,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Cockpit 283 to adapt to many kinds of systems. +\`configure' configures Cockpit 284 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1474,7 +1474,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Cockpit 283:";; + short | recursive ) echo "Configuration of Cockpit 284:";; esac cat <<\_ACEOF @@ -1647,7 +1647,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Cockpit configure 283 +Cockpit configure 284 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -1865,7 +1865,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by Cockpit $as_me 283, which was +It was created by Cockpit $as_me 284, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3142,7 +3142,7 @@ # Define the identity of the package. PACKAGE='cockpit' - VERSION='283' + VERSION='284' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -7928,7 +7928,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Cockpit $as_me 283, which was +This file was extended by Cockpit $as_me 284, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7997,7 +7997,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Cockpit config.status 283 +Cockpit config.status 284 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff -Nru cockpit-283/debian/changelog cockpit-284/debian/changelog --- cockpit-283/debian/changelog 2023-01-17 05:57:54.000000000 +0000 +++ cockpit-284/debian/changelog 2023-01-31 09:10:19.000000000 +0000 @@ -1,8 +1,16 @@ -cockpit (283-1~bpo22.04.1) jammy-backports; urgency=medium +cockpit (284-1~bpo22.04.1) jammy-backports; urgency=medium * No-change backport to jammy - -- Martin Pitt Tue, 17 Jan 2023 06:57:54 +0100 + -- Martin Pitt Tue, 31 Jan 2023 10:10:19 +0100 + +cockpit (284-1) unstable; urgency=medium + + * New upstream release: + - Services: Show logs for user units + - Storage: Set up a system to use NBDE + + -- Martin Pitt Wed, 25 Jan 2023 16:40:06 +0100 cockpit (283-1) unstable; urgency=medium Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/apps.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/apps.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/apps.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/apps.js.gz differ diff -Nru cockpit-283/dist/apps/index.html cockpit-284/dist/apps/index.html --- cockpit-283/dist/apps/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/apps/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,38 @@ + + + + + + Applications + + + + + + + + + + +
+
+ + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/index.html.gz differ diff -Nru cockpit-283/dist/apps/Makefile.deps cockpit-284/dist/apps/Makefile.deps --- cockpit-283/dist/apps/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/apps/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for apps apps_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/apps/application-list.jsx \ pkg/apps/application.jsx \ @@ -52,6 +53,8 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) apps_OUTPUTS = \ @@ -59,7 +62,7 @@ dist/apps/apps.js.LICENSE.txt.gz \ dist/apps/apps.js.gz \ dist/apps/default.png \ - dist/apps/index.html.gz \ + dist/apps/index.html \ dist/apps/po.cs.js.gz \ dist/apps/po.de.js.gz \ dist/apps/po.es.js.gz \ @@ -88,7 +91,7 @@ dist/apps/apps.js.LICENSE.txt.gz \ dist/apps/apps.js.gz \ dist/apps/default.png \ - dist/apps/index.html.gz \ + dist/apps/index.html \ dist/apps/manifest.json \ dist/apps/po.cs.js.gz \ dist/apps/po.de.js.gz \ @@ -126,7 +129,7 @@ dist/apps/default.png: $(srcdir)/dist/apps/manifest.json -dist/apps/index.html.gz: $(srcdir)/dist/apps/manifest.json +dist/apps/index.html: $(srcdir)/dist/apps/manifest.json dist/apps/po.cs.js.gz: $(srcdir)/dist/apps/manifest.json @@ -172,6 +175,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/apps/application-list.jsx: @@ -274,6 +279,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(apps_INPUTS) WEBPACK_OUTPUTS += $(apps_OUTPUTS) WEBPACK_INSTALL += $(apps_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/apps/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/apps/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/cockpit.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/cockpit.js.gz differ diff -Nru cockpit-283/dist/base1/Makefile.deps cockpit-284/dist/base1/Makefile.deps --- cockpit-283/dist/base1/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for base1 base1_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/base1/cockpit.js \ pkg/base1/manifest.json \ @@ -62,31 +63,33 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) base1_OUTPUTS = \ dist/base1/cockpit.js.gz \ - dist/base1/po.cs.js.gz \ - dist/base1/po.de.js.gz \ - dist/base1/po.es.js.gz \ - dist/base1/po.fi.js.gz \ - dist/base1/po.fr.js.gz \ - dist/base1/po.he.js.gz \ - dist/base1/po.it.js.gz \ - dist/base1/po.ja.js.gz \ - dist/base1/po.ka.js.gz \ - dist/base1/po.ko.js.gz \ - dist/base1/po.nb_NO.js.gz \ - dist/base1/po.nl.js.gz \ - dist/base1/po.pl.js.gz \ - dist/base1/po.pt_BR.js.gz \ - dist/base1/po.ru.js.gz \ - dist/base1/po.sk.js.gz \ - dist/base1/po.sv.js.gz \ - dist/base1/po.tr.js.gz \ - dist/base1/po.uk.js.gz \ - dist/base1/po.zh_CN.js.gz \ - dist/base1/po.zh_TW.js.gz \ + dist/base1/po.cs.js \ + dist/base1/po.de.js \ + dist/base1/po.es.js \ + dist/base1/po.fi.js \ + dist/base1/po.fr.js \ + dist/base1/po.he.js \ + dist/base1/po.it.js \ + dist/base1/po.ja.js \ + dist/base1/po.ka.js \ + dist/base1/po.ko.js \ + dist/base1/po.nb_NO.js \ + dist/base1/po.nl.js \ + dist/base1/po.pl.js \ + dist/base1/po.pt_BR.js \ + dist/base1/po.ru.js \ + dist/base1/po.sk.js \ + dist/base1/po.sv.js \ + dist/base1/po.tr.js \ + dist/base1/po.uk.js \ + dist/base1/po.zh_CN.js \ + dist/base1/po.zh_TW.js \ dist/base1/test-base64.css \ dist/base1/test-base64.html \ dist/base1/test-base64.js \ @@ -208,27 +211,27 @@ base1_INSTALL = \ dist/base1/cockpit.js.gz \ dist/base1/manifest.json \ - dist/base1/po.cs.js.gz \ - dist/base1/po.de.js.gz \ - dist/base1/po.es.js.gz \ - dist/base1/po.fi.js.gz \ - dist/base1/po.fr.js.gz \ - dist/base1/po.he.js.gz \ - dist/base1/po.it.js.gz \ - dist/base1/po.ja.js.gz \ - dist/base1/po.ka.js.gz \ - dist/base1/po.ko.js.gz \ - dist/base1/po.nb_NO.js.gz \ - dist/base1/po.nl.js.gz \ - dist/base1/po.pl.js.gz \ - dist/base1/po.pt_BR.js.gz \ - dist/base1/po.ru.js.gz \ - dist/base1/po.sk.js.gz \ - dist/base1/po.sv.js.gz \ - dist/base1/po.tr.js.gz \ - dist/base1/po.uk.js.gz \ - dist/base1/po.zh_CN.js.gz \ - dist/base1/po.zh_TW.js.gz \ + dist/base1/po.cs.js \ + dist/base1/po.de.js \ + dist/base1/po.es.js \ + dist/base1/po.fi.js \ + dist/base1/po.fr.js \ + dist/base1/po.he.js \ + dist/base1/po.it.js \ + dist/base1/po.ja.js \ + dist/base1/po.ka.js \ + dist/base1/po.ko.js \ + dist/base1/po.nb_NO.js \ + dist/base1/po.nl.js \ + dist/base1/po.pl.js \ + dist/base1/po.pt_BR.js \ + dist/base1/po.ru.js \ + dist/base1/po.sk.js \ + dist/base1/po.sv.js \ + dist/base1/po.tr.js \ + dist/base1/po.uk.js \ + dist/base1/po.zh_CN.js \ + dist/base1/po.zh_TW.js \ $(NULL) base1_TESTS = \ @@ -267,47 +270,47 @@ dist/base1/cockpit.js.gz: $(srcdir)/dist/base1/manifest.json -dist/base1/po.cs.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.cs.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.de.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.de.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.es.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.es.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.fi.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.fi.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.fr.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.fr.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.he.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.he.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.it.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.it.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.ja.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.ja.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.ka.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.ka.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.ko.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.ko.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.nb_NO.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.nb_NO.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.nl.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.nl.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.pl.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.pl.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.pt_BR.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.pt_BR.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.ru.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.ru.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.sk.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.sk.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.sv.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.sv.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.tr.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.tr.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.uk.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.uk.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.zh_CN.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.zh_CN.js: $(srcdir)/dist/base1/manifest.json -dist/base1/po.zh_TW.js.gz: $(srcdir)/dist/base1/manifest.json +dist/base1/po.zh_TW.js: $(srcdir)/dist/base1/manifest.json dist/base1/test-base64.css: $(srcdir)/dist/base1/manifest.json @@ -543,6 +546,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/base1/cockpit.js: @@ -665,6 +670,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(base1_INPUTS) WEBPACK_OUTPUTS += $(base1_OUTPUTS) WEBPACK_INSTALL += $(base1_INSTALL) diff -Nru cockpit-283/dist/base1/po.cs.js cockpit-284/dist/base1/po.cs.js --- cockpit-283/dist/base1/po.cs.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.cs.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1==l?0:l>=2&&l<=4?1:2,language:"cs","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.cs.js.gz differ diff -Nru cockpit-283/dist/base1/po.de.js cockpit-284/dist/base1/po.de.js --- cockpit-283/dist/base1/po.de.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.de.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"de","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.de.js.gz differ diff -Nru cockpit-283/dist/base1/po.es.js cockpit-284/dist/base1/po.es.js --- cockpit-283/dist/base1/po.es.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.es.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"es","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.es.js.gz differ diff -Nru cockpit-283/dist/base1/po.fi.js cockpit-284/dist/base1/po.fi.js --- cockpit-283/dist/base1/po.fi.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.fi.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"fi","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.fi.js.gz differ diff -Nru cockpit-283/dist/base1/po.fr.js cockpit-284/dist/base1/po.fr.js --- cockpit-283/dist/base1/po.fr.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.fr.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>l>1,language:"fr","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.fr.js.gz differ diff -Nru cockpit-283/dist/base1/po.he.js cockpit-284/dist/base1/po.he.js --- cockpit-283/dist/base1/po.he.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.he.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1==l?0:2==l?1:l>10&&l%10==0?2:3,language:"he","language-direction":"rtl"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.he.js.gz differ diff -Nru cockpit-283/dist/base1/po.it.js cockpit-284/dist/base1/po.it.js --- cockpit-283/dist/base1/po.it.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.it.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"it","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.it.js.gz differ diff -Nru cockpit-283/dist/base1/po.ja.js cockpit-284/dist/base1/po.ja.js --- cockpit-283/dist/base1/po.ja.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.ja.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":a=>0,language:"ja","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.ja.js.gz differ diff -Nru cockpit-283/dist/base1/po.ka.js cockpit-284/dist/base1/po.ka.js --- cockpit-283/dist/base1/po.ka.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.ka.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":a=>1!=a,language:"ka","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.ka.js.gz differ diff -Nru cockpit-283/dist/base1/po.ko.js cockpit-284/dist/base1/po.ko.js --- cockpit-283/dist/base1/po.ko.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.ko.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>0,language:"ko","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.ko.js.gz differ diff -Nru cockpit-283/dist/base1/po.nb_NO.js cockpit-284/dist/base1/po.nb_NO.js --- cockpit-283/dist/base1/po.nb_NO.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.nb_NO.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"nb_NO","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.nb_NO.js.gz differ diff -Nru cockpit-283/dist/base1/po.nl.js cockpit-284/dist/base1/po.nl.js --- cockpit-283/dist/base1/po.nl.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.nl.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"nl","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.nl.js.gz differ diff -Nru cockpit-283/dist/base1/po.pl.js cockpit-284/dist/base1/po.pl.js --- cockpit-283/dist/base1/po.pl.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.pl.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1==l?0:l%10>=2&&l%10<=4&&(l%100<10||l%100>=20)?1:2,language:"pl","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.pl.js.gz differ diff -Nru cockpit-283/dist/base1/po.pt_BR.js cockpit-284/dist/base1/po.pt_BR.js --- cockpit-283/dist/base1/po.pt_BR.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.pt_BR.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"pt_BR","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.pt_BR.js.gz differ diff -Nru cockpit-283/dist/base1/po.ru.js cockpit-284/dist/base1/po.ru.js --- cockpit-283/dist/base1/po.ru.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.ru.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>l%10==1&&l%100!=11?0:l%10>=2&&l%10<=4&&(l%100<10||l%100>=20)?1:2,language:"ru","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.ru.js.gz differ diff -Nru cockpit-283/dist/base1/po.sk.js cockpit-284/dist/base1/po.sk.js --- cockpit-283/dist/base1/po.sk.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.sk.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1==l?0:l>=2&&l<=4?1:2,language:"sk","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.sk.js.gz differ diff -Nru cockpit-283/dist/base1/po.sv.js cockpit-284/dist/base1/po.sv.js --- cockpit-283/dist/base1/po.sv.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.sv.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>1!=l,language:"sv","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.sv.js.gz differ diff -Nru cockpit-283/dist/base1/po.tr.js cockpit-284/dist/base1/po.tr.js --- cockpit-283/dist/base1/po.tr.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.tr.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>l>1,language:"tr","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.tr.js.gz differ diff -Nru cockpit-283/dist/base1/po.uk.js cockpit-284/dist/base1/po.uk.js --- cockpit-283/dist/base1/po.uk.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.uk.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>l%10==1&&l%100!=11?0:l%10>=2&&l%10<=4&&(l%100<10||l%100>=20)?1:2,language:"uk","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.uk.js.gz differ diff -Nru cockpit-283/dist/base1/po.zh_CN.js cockpit-284/dist/base1/po.zh_CN.js --- cockpit-283/dist/base1/po.zh_CN.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.zh_CN.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>0,language:"zh_CN","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.zh_CN.js.gz differ diff -Nru cockpit-283/dist/base1/po.zh_TW.js cockpit-284/dist/base1/po.zh_TW.js --- cockpit-283/dist/base1/po.zh_TW.js 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/base1/po.zh_TW.js 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1 @@ +cockpit.locale({"":{"plural-forms":l=>0,language:"zh_TW","language-direction":"ltr"}}); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/base1/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/base1/po.zh_TW.js.gz differ diff -Nru cockpit-283/dist/base1/test-base64.js cockpit-284/dist/base1/test-base64.js --- cockpit-283/dist/base1/test-base64.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-base64.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-base64.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function A(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return A(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===A(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===A(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===A(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function Z(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}Z.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},Z.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},Z.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===A(e)||""===e?t="You must provide a message to assert.step":"string"!==A(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===A(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&q(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===A(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&q(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=A(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=A(t);if(t){if("regexp"===r)o=t.test(q(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=q(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=q(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==A(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=_(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=_(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+q(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===_e(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===A(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function _e(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===_e(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Ae,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),qe=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Ae=Le.NO_COLOR,Me=Le.TERM,qe=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Ae&&"dumb"!==Me&&(null!=Oe&&"0"!==Oe||qe),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+q(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(q(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(q(e)),source:e&&e.stack||Y(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ke();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(_=c(k,C=b[E]))?(f(_)||(_=p.getPrepared(_)),x[E]=l(e,_,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(_=c(k=t[y],C))&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var _,j;(_=t[y])&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],_=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=p.getPrepared(N)),_[j]=w(t,N,h)):_[j]=null;_.obj=C;var T=d(_);null!==T&&(Tg.peek().score&&g.replaceTop(_))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(A=w(t,N,h))&&(A.scoreg.peek().score&&g.replaceTop(A)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,A;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(A=w(t,N,h))&&(A.scoreg.peek().score&&g.replaceTop(A)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){U()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
Expected:
"+nt(n)+"
Result:
"+nt(r)+"
Diff:
"+i+"
Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

Message: Diff suppressed as the expected and actual results have an equivalent serialization
Source:
"+nt(e.source)+"
"):!e.result&&e.source&&(s+="
Source:
"+nt(e.source)+"
");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=P("global failure");if(t){var n=nt(q(e));n=""+n+"",e&&e.stack&&(n+="
Source:
"+nt(e.stack)+"
");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function _(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function M(e,t,n){return'
  • "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
     
    ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

    "+nt(v.title)+"

    "+((!(e=Ze.config.testId)||e.length<=0?"":"
    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
    ")+"

      ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(A()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
      "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,_;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(_=-S+m;_<=S-v;_+=2){for(b=a+_,E=(k=_===-S||_!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-_)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function _(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(_("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&A(e),r.promise}function A(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),q((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){q((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},485:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("base64 array",(function(e){let t=new Array(5);for(let e=0;e<5;e++)t[e]=e;e.equal(o.Z.base64_encode(t),"AAECAwQ=","encoded from Array"),t=o.Z.base64_decode("AAECAwQFBg=="),e.equal(t.length,7,"right length");let n=1;for(let e=0;e{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(485)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function A(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return A(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new P;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===A(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===A(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===A(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function Z(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}Z.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},Z.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},Z.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===A(e)||""===e?t="You must provide a message to assert.step":"string"!==A(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(B.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(B.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===A(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&q(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===A(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&q(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=A(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=A(t);if(t){if("regexp"===r)o=t.test(q(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=q(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=q(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==A(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=_(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=_(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+q(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===_e(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===A(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function _e(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===_e(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Ae,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),qe=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Ae=Le.NO_COLOR,Me=Le.TERM,qe=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Ae&&"dumb"!==Me&&(null!=Oe&&"0"!==Oe||qe),reset:Be(0,0),bold:Be(1,22),dim:Be(2,22),italic:Be(3,23),underline:Be(4,24),inverse:Be(7,27),hidden:Be(8,28),strikethrough:Be(9,29),black:Be(30,39),red:Be(31,39),green:Be(32,39),yellow:Be(33,39),blue:Be(34,39),magenta:Be(35,39),cyan:Be(36,39),white:Be(37,39),gray:Be(90,39),grey:Be(90,39),bgBlack:Be(40,49),bgRed:Be(41,49),bgGreen:Be(42,49),bgYellow:Be(43,49),bgBlue:Be(44,49),bgMagenta:Be(45,49),bgCyan:Be(46,49),bgWhite:Be(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+q(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(q(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(q(e)),source:e&&e.stack||Y(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ke();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(_=c(k,C=b[E]))?(f(_)||(_=p.getPrepared(_)),x[E]=l(e,_,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(_=c(k=t[y],C))&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var _,j;(_=t[y])&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],_=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=p.getPrepared(N)),_[j]=w(t,N,h)):_[j]=null;_.obj=C;var T=d(_);null!==T&&(Tg.peek().score&&g.replaceTop(_))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(A=w(t,N,h))&&(A.scoreg.peek().score&&g.replaceTop(A)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,A;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(A=w(t,N,h))&&(A.scoreg.peek().score&&g.replaceTop(A)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){U()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),P(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
      Expected:
      "+nt(n)+"
      Result:
      "+nt(r)+"
      Diff:
      "+i+"
      Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

      Message: Diff suppressed as the expected and actual results have an equivalent serialization
      Source:
      "+nt(e.source)+"
      "):!e.result&&e.source&&(s+="
      Source:
      "+nt(e.source)+"
      ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=B("global failure");if(t){var n=nt(q(e));n=""+n+"",e&&e.stack&&(n+="
      Source:
      "+nt(e.stack)+"
      ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function _(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function M(e,t,n){return'
    1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
       
      ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

      "+nt(v.title)+"

      "+((!(e=Ze.config.testId)||e.length<=0?"":"
      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
      ")+"

        ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(A()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function B(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
        "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,_;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(_=-S+m;_<=S-v;_+=2){for(b=a+_,E=(k=_===-S||_!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-_)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function _(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(_("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&A(e),r.promise}function A(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),q((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){q((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},485:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("base64 array",(function(e){let t=new Array(5);for(let e=0;e<5;e++)t[e]=e;e.equal(o.Z.base64_encode(t),"AAECAwQ=","encoded from Array"),t=o.Z.base64_decode("AAECAwQFBg=="),e.equal(t.length,7,"right length");let n=1;for(let e=0;e{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(485)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-browser-storage.js cockpit-284/dist/base1/test-browser-storage.js --- cockpit-283/dist/base1/test-browser-storage.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-browser-storage.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-browser-storage.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function I(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=I(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function q(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return q(t)===e}function M(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
        ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:M(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===q(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===q(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===q(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===q(e)||""===e?t="You must provide a message to assert.step":"string"!==q(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=I(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=I(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===q(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===q(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=q(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=q(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==q(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===q(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Ie,Oe,qe,Ne,Me=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Ie=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,qe=Le.NO_COLOR,Ne=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==qe&&"dumb"!==Ne&&(null!=Ie&&"0"!==Ie||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Me,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(O=c(C,I=E[_]))?(f(O)||(O=h.getPrepared(O)),j[_]=y(t,O,p)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var I=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],I))&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,q;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}if(0===w)return a(i);for(var N=new Array(w),M=w-1;M>=0;--M)N[M]=g.poll();N.total=w+k,a(N)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
        ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
        Expected:
        "+nt(n)+"
        Result:
        "+nt(r)+"
        Diff:
        "+i+"
        Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

        Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

        Message: Diff suppressed as the expected and actual results have an equivalent serialization
        Source:
        "+nt(e.source)+"
        "):!e.result&&e.source&&(s+="
        Source:
        "+nt(e.source)+"
        ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
        Source:
        "+nt(e.stack)+"
        ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),I(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function N(e,t,n){return'
      1. "}function M(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
         
        ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

        "+nt(v.title)+"

        "+((!(e=Ge.config.testId)||e.length<=0?"":"
        Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
        ")+"

          ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(q()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
          ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
          "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function I(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&q(e),r.promise}function q(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},616:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e,t,n){e.expect(29),t.clear(),window.mock={pathname:"/cockpit+test/test"},e.equal(n.prefixedKey("key1"),"cockpit+test:key1","prefixed key has application"),n.setItem("key1","value1",!1),e.equal(t.getItem("cockpit+test:key1"),"value1","set single: application key set"),e.equal(t.getItem("key1"),null,"set single: key not set"),n.setItem("key1","value2",!0),e.equal(t.getItem("cockpit+test:key1"),"value2","set both: application key set"),e.equal(t.getItem("key1"),"value2","set both: key set"),t.clear(),t.setItem("key1","value1"),e.equal(n.getItem("key1",!1),null,"get single doesn't default to bare key"),e.equal(n.getItem("key1",!0),"value1","get both defaults to bare key"),t.setItem("cockpit+test:key1","value2"),e.equal(t.getItem("key1"),"value1","bare key not changed"),e.equal(n.getItem("key1",!1),"value2","get single gets application prefixed value"),e.equal(n.getItem("key1",!0),"value2","get both prefers application prefixed value"),n.removeItem("key1",!1),e.equal(t.getItem("key1"),"value1","remove single doesn't remove bare key"),e.equal(t.getItem("cockpit+test:key1"),null,"remove single removes application prefixed key"),t.setItem("cockpit+test:key1","value1"),e.equal(t.getItem("cockpit+test:key1"),"value1","application prefixed value reset"),n.removeItem("key1",!0),e.equal(t.getItem("key1"),null,"remove both removes bare key"),e.equal(t.getItem("cockpit+test:key1"),null,"remove both removes application prefixed key"),t.clear(),t.setItem("key1","value"),t.setItem("key2","value"),t.setItem("cockpit+other:key1","value"),t.setItem("cockpit+other:key2","value"),t.setItem("cockpit+test:key1","value"),t.setItem("cockpit+test:key2","value"),n.clear(!1),e.equal(t.getItem("key1"),"value","clear doesn't remove bare key1"),e.equal(t.getItem("key2"),"value","clear doesn't remove bare key2"),e.equal(t.getItem("cockpit+other:key1"),"value","clear doesn't remove other application's key1"),e.equal(t.getItem("cockpit+other:key2"),"value","clear doesn't remove other application's key2"),e.equal(t.getItem("cockpit+test:key1"),null,"clear doesn't remove our application's key1"),e.equal(t.getItem("cockpit+test:key2"),null,"clear doesn't remove our application's key2"),t.setItem("cockpit+test:key1","value"),t.setItem("cockpit+test:key2","value"),e.equal(t.getItem("cockpit+test:key1"),"value","our application's key1 reset"),e.equal(t.getItem("cockpit+test:key2"),"value","our application's key2 reset"),n.clear(!0),e.equal(t.getItem("key1"),null,"clear full removes bare key1"),e.equal(t.getItem("key2"),null,"clear full removes bare key2"),e.equal(t.getItem("cockpit+other:key1"),"value","clear full doesn't remove other application's key1"),e.equal(t.getItem("cockpit+other:key2"),"value","clear full doesn't remove other application's key2"),e.equal(t.getItem("cockpit+test:key1"),null,"clear full removes our application's key1"),e.equal(t.getItem("cockpit+test:key2"),null,"clear full removes our application's key2")}(r=(i.then?(await i)():i)[0]).Z.test("local-storage",(function(e){s(e,window.localStorage,o.Z.localStorage)})),r.Z.test("session-storage",(function(e){s(e,window.sessionStorage,o.Z.sessionStorage)})),o.Z.user().done((function(e){r.Z.start()})),t()}catch(a){t(a)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(616)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function I(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=I(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function q(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return q(t)===e}function M(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
          ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:M(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===q(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===q(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===q(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===q(e)||""===e?t="You must provide a message to assert.step":"string"!==q(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=I(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=I(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===q(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===q(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=q(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=q(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==q(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===q(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Ie,Oe,qe,Ne,Me=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Ie=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,qe=Le.NO_COLOR,Ne=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==qe&&"dumb"!==Ne&&(null!=Ie&&"0"!==Ie||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Me,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(O=c(C,I=E[_]))?(f(O)||(O=h.getPrepared(O)),j[_]=y(t,O,p)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var I=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],I))&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,q;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}if(0===w)return a(i);for(var N=new Array(w),M=w-1;M>=0;--M)N[M]=g.poll();N.total=w+k,a(N)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
          ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
          Expected:
          "+nt(n)+"
          Result:
          "+nt(r)+"
          Diff:
          "+i+"
          Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

          Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

          Message: Diff suppressed as the expected and actual results have an equivalent serialization
          Source:
          "+nt(e.source)+"
          "):!e.result&&e.source&&(s+="
          Source:
          "+nt(e.source)+"
          ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
          Source:
          "+nt(e.stack)+"
          ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),I(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function N(e,t,n){return'
        1. "}function M(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
           
          ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

          "+nt(v.title)+"

          "+((!(e=Ge.config.testId)||e.length<=0?"":"
          Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
          ")+"

            ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(q()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
            ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
            "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function I(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&q(e),r.promise}function q(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},616:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e,t,n){e.expect(29),t.clear(),window.mock={pathname:"/cockpit+test/test"},e.equal(n.prefixedKey("key1"),"cockpit+test:key1","prefixed key has application"),n.setItem("key1","value1",!1),e.equal(t.getItem("cockpit+test:key1"),"value1","set single: application key set"),e.equal(t.getItem("key1"),null,"set single: key not set"),n.setItem("key1","value2",!0),e.equal(t.getItem("cockpit+test:key1"),"value2","set both: application key set"),e.equal(t.getItem("key1"),"value2","set both: key set"),t.clear(),t.setItem("key1","value1"),e.equal(n.getItem("key1",!1),null,"get single doesn't default to bare key"),e.equal(n.getItem("key1",!0),"value1","get both defaults to bare key"),t.setItem("cockpit+test:key1","value2"),e.equal(t.getItem("key1"),"value1","bare key not changed"),e.equal(n.getItem("key1",!1),"value2","get single gets application prefixed value"),e.equal(n.getItem("key1",!0),"value2","get both prefers application prefixed value"),n.removeItem("key1",!1),e.equal(t.getItem("key1"),"value1","remove single doesn't remove bare key"),e.equal(t.getItem("cockpit+test:key1"),null,"remove single removes application prefixed key"),t.setItem("cockpit+test:key1","value1"),e.equal(t.getItem("cockpit+test:key1"),"value1","application prefixed value reset"),n.removeItem("key1",!0),e.equal(t.getItem("key1"),null,"remove both removes bare key"),e.equal(t.getItem("cockpit+test:key1"),null,"remove both removes application prefixed key"),t.clear(),t.setItem("key1","value"),t.setItem("key2","value"),t.setItem("cockpit+other:key1","value"),t.setItem("cockpit+other:key2","value"),t.setItem("cockpit+test:key1","value"),t.setItem("cockpit+test:key2","value"),n.clear(!1),e.equal(t.getItem("key1"),"value","clear doesn't remove bare key1"),e.equal(t.getItem("key2"),"value","clear doesn't remove bare key2"),e.equal(t.getItem("cockpit+other:key1"),"value","clear doesn't remove other application's key1"),e.equal(t.getItem("cockpit+other:key2"),"value","clear doesn't remove other application's key2"),e.equal(t.getItem("cockpit+test:key1"),null,"clear doesn't remove our application's key1"),e.equal(t.getItem("cockpit+test:key2"),null,"clear doesn't remove our application's key2"),t.setItem("cockpit+test:key1","value"),t.setItem("cockpit+test:key2","value"),e.equal(t.getItem("cockpit+test:key1"),"value","our application's key1 reset"),e.equal(t.getItem("cockpit+test:key2"),"value","our application's key2 reset"),n.clear(!0),e.equal(t.getItem("key1"),null,"clear full removes bare key1"),e.equal(t.getItem("key2"),null,"clear full removes bare key2"),e.equal(t.getItem("cockpit+other:key1"),"value","clear full doesn't remove other application's key1"),e.equal(t.getItem("cockpit+other:key2"),"value","clear full doesn't remove other application's key2"),e.equal(t.getItem("cockpit+test:key1"),null,"clear full removes our application's key1"),e.equal(t.getItem("cockpit+test:key2"),null,"clear full removes our application's key2")}(r=(i.then?(await i)():i)[0]).Z.test("local-storage",(function(e){s(e,window.localStorage,o.Z.localStorage)})),r.Z.test("session-storage",(function(e){s(e,window.sessionStorage,o.Z.sessionStorage)})),o.Z.user().done((function(e){r.Z.start()})),t()}catch(a){t(a)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(616)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-cache.js cockpit-284/dist/base1/test-cache.js --- cockpit-283/dist/base1/test-cache.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-cache.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-cache.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function q(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
            ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&q(l,o.testEnvironment),q(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return q(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,q(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}q(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,qe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,qe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!qe&&null==Ne&&"dumb"!==Me&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}else for(w=m-1;w>=0;--w){var j,T;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(w=d-1;w>=0;--w)_[w]=h.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(q=c(C,O=E[T]))?(f(q)||(q=p.getPrepared(q)),j[T]=y(t,q,h)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(q=c(C=n[m],O))&&(f(q)||(q=p.getPrepared(q)),null!==(N=y(t,q,h))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var q,N;(q=n[m])&&(f(q)||(q=p.getPrepared(q)),null!==(N=y(t,q,h))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===w)return a(i);for(var M=new Array(w),I=w-1;I>=0;--I)M[I]=g.poll();M.total=w+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
            ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
            Expected:
            "+nt(n)+"
            Result:
            "+nt(r)+"
            Diff:
            "+i+"
            Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

            Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

            Message: Diff suppressed as the expected and actual results have an equivalent serialization
            Source:
            "+nt(e.source)+"
            "):!e.result&&e.source&&(s+="
            Source:
            "+nt(e.source)+"
            ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
            Source:
            "+nt(e.stack)+"
            ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function _(e){var t="?",n=h.location;for(var r in e=q(q({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function M(e,t,n){return'
          1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
             
            ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

            "+nt(v.title)+"

            "+((!(e=Ge.config.testId)||e.length<=0?"":"
            Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
            ")+"

              ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
              ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
              "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function q(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=q(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return q(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=q(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},580:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("public api",(function(e){e.equal(typeof o.Z.cache,"function","cockpit.cache is a function")})),r.Z.test("single cache",(function(e){const t=e.async();e.expect(6);let n=!1;const r=o.Z.cache("test-key-1",(function(t,o){e.equal(o,"test-key-1","provider got right key"),e.equal(typeof t,"function","provider got result function");const r=window.setTimeout((function(){t({myobject:"value"})}),200);return{close:function(){window.clearTimeout(r),n=!0}}}),(function(o,i){e.equal(i,"test-key-1","consumer got right key"),e.deepEqual(o,{myobject:"value"}),e.equal(n,!1,"cache is not closed"),r.close(),e.equal(n,!0,"cache is closed"),t()}))})),r.Z.test("multi cache",(function(e){const t=e.async();e.expect(12);let n=!1;let r=0;const i=o.Z.cache("test-key-b",(function(t,o){return e.equal(o,"test-key-b","provider1 got right key"),e.equal(typeof t,"function","provider1 got result function"),t({myobject:"value1"}),{close:function(){n=!0}}}),(function(t,n){e.equal(n,"test-key-b","consumer1 got right key"),e.deepEqual(t,{myobject:"value1"},"consumer1 got right value")}));o.Z.cache("test-key-b",(function(t,n){e.equal(n,"test-key-b","provider2 got right key"),e.equal(typeof t,"function","provider2 got result function");const o=window.setTimeout((function(){t({myobject:"value2"})}),200);return{close:function(){window.clearTimeout(o)}}}),(function(o,s){e.equal(s,"test-key-b","consumer2 got right key"),r++,1===r?(e.deepEqual(o,{myobject:"value1"},"consumer2 got value from producer1"),e.equal(n,!1,"cache1 is not closed"),i.close(),e.equal(n,!0,"cache1 is closed")):2===r&&(e.deepEqual(o,{myobject:"value2"},"cache2 provided another value"),t())}))})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(580)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function q(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
              ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&q(l,o.testEnvironment),q(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return q(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,q(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}q(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,qe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,qe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!qe&&null==Ne&&"dumb"!==Me&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}else for(w=m-1;w>=0;--w){var j,T;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(w=d-1;w>=0;--w)_[w]=h.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(q=c(C,O=E[T]))?(f(q)||(q=p.getPrepared(q)),j[T]=y(t,q,h)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(q=c(C=n[m],O))&&(f(q)||(q=p.getPrepared(q)),null!==(N=y(t,q,h))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var q,N;(q=n[m])&&(f(q)||(q=p.getPrepared(q)),null!==(N=y(t,q,h))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===w)return a(i);for(var M=new Array(w),I=w-1;I>=0;--I)M[I]=g.poll();M.total=w+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
              ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
              Expected:
              "+nt(n)+"
              Result:
              "+nt(r)+"
              Diff:
              "+i+"
              Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

              Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

              Message: Diff suppressed as the expected and actual results have an equivalent serialization
              Source:
              "+nt(e.source)+"
              "):!e.result&&e.source&&(s+="
              Source:
              "+nt(e.source)+"
              ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
              Source:
              "+nt(e.stack)+"
              ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function _(e){var t="?",n=h.location;for(var r in e=q(q({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function M(e,t,n){return'
            1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
               
              ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

              "+nt(v.title)+"

              "+((!(e=Ge.config.testId)||e.length<=0?"":"
              Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
              ")+"

                ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function q(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=q(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return q(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=q(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},580:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("public api",(function(e){e.equal(typeof o.Z.cache,"function","cockpit.cache is a function")})),r.Z.test("single cache",(function(e){const t=e.async();e.expect(6);let n=!1;const r=o.Z.cache("test-key-1",(function(t,o){e.equal(o,"test-key-1","provider got right key"),e.equal(typeof t,"function","provider got result function");const r=window.setTimeout((function(){t({myobject:"value"})}),200);return{close:function(){window.clearTimeout(r),n=!0}}}),(function(o,i){e.equal(i,"test-key-1","consumer got right key"),e.deepEqual(o,{myobject:"value"}),e.equal(n,!1,"cache is not closed"),r.close(),e.equal(n,!0,"cache is closed"),t()}))})),r.Z.test("multi cache",(function(e){const t=e.async();e.expect(12);let n=!1;let r=0;const i=o.Z.cache("test-key-b",(function(t,o){return e.equal(o,"test-key-b","provider1 got right key"),e.equal(typeof t,"function","provider1 got result function"),t({myobject:"value1"}),{close:function(){n=!0}}}),(function(t,n){e.equal(n,"test-key-b","consumer1 got right key"),e.deepEqual(t,{myobject:"value1"},"consumer1 got right value")}));o.Z.cache("test-key-b",(function(t,n){e.equal(n,"test-key-b","provider2 got right key"),e.equal(typeof t,"function","provider2 got result function");const o=window.setTimeout((function(){t({myobject:"value2"})}),200);return{close:function(){window.clearTimeout(o)}}}),(function(o,s){e.equal(s,"test-key-b","consumer2 got right key"),r++,1===r?(e.deepEqual(o,{myobject:"value1"},"consumer2 got value from producer1"),e.equal(n,!1,"cache1 is not closed"),i.close(),e.equal(n,!0,"cache1 is closed")):2===r&&(e.deepEqual(o,{myobject:"value2"},"cache2 provided another value"),t())}))})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(580)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-chan.js cockpit-284/dist/base1/test-chan.js --- cockpit-283/dist/base1/test-chan.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-chan.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-chan.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&L("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function _(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=_(e[o],t[o]));return n}function O(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function L(e,t){return N(t)===e}function M(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":L("regexp",e)?"regexp":L("date",e)?"date":L("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var c=a[l];c in e&&!C(c,r)&&r.push(c)}r.sort();for(var u=0;u",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),B=[],D=new P;function F(e,t,n){var o=B.length?B.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:D,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var c={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:M(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(c),R.modules.push(c),c}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=F(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){B.push(r);try{var c=n.call(r.testEnvironment,a);null!=c&&"function"===N(c.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{B.pop(),R.currentModule=r.parentModule||l}}}var z=!1;function $(e,t,n){var o,r=z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!B.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}$.only=function(){z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),z=!0,J.apply(void 0,arguments)},$.skip=function(e,t,n){z||J(e,t,n,{skip:!0})},$.todo=function(e,t,n){z||J(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=_(e,t),t=T(t,!1),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=_(e,t),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var c=l(X(s,n,o),3);a=c[0],n=c[1],o=c[2]}i.assert.pushResult({result:a,actual:s&&I(s),expected:n,message:o})}else{var u='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:u})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&I(e),expected:n,message:o}),a()}))}var c='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:c,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(I(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=I(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=I(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?c(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ue.push.apply(ue,c(e)),ce>0&&ce--;var e;de()}()}function fe(e){if(ue.length&&!R.blocking){var t=q.now()-e;if(!m||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ce+1));R.queue.splice(ce+o,0,e)}else R.queue.push(e)},advance:de,taskCount:function(){return ue.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=q.now(),q.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=q.now(),q)){q.mark("qunit_test_end");var t=this.fullName.join(" – ");q.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function me(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++me.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&ge("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&ge("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&ge("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+I(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:q.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof me))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){g(R.timeout),R.timeout=m(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),qe(n)}}(n.pauses.set(o,r),m)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),qe(n)}},g(R.timeout),R.timeout=m(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return C(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!C(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new me(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new me(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(m?(g(R.timeout),R.timeout=m((function(){e.pauses.size>0||(g(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=c(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,c(o.childModules))}return t}function Ce(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){ye({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var _e,Oe,Ne,Le,Me=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ie=!0;if("undefined"!=typeof process){var Ae=process.env;_e=Ae.FORCE_COLOR,Oe=Ae.NODE_DISABLE_COLORS,Ne=Ae.NO_COLOR,Le=Ae.TERM,Ie=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Le&&(null!=_e&&"0"!==_e||Ie),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Ze(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),c=l?l[0].length:0;if(1===c){var u=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+u.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(De(e),null,2)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return De(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=De(e[o],t)})),t.pop();break;default:n=e}return n}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+I(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Be(e.message||"failed")),n+="\n severity: ".concat(Be(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(Be(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(Be(e.expected))),e.stack&&(n+="\n stack: ".concat(Be(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Be(I(e))),t+="\n severity: ".concat(Be("failed")),e&&e.stack&&(t+="\n stack: ".concat(Be(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Me,tap:Fe};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var Je={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(I(e)),source:e&&e.stack||Y(2)}):(D.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var $e={};R.currentModule.suiteReport=D;var Ge=!1,We=!1;function Ye(){We=!0,m?m((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ke();else{R.started=q.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||$e.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function u(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,m=0,g=t.length;if(n&&n.keys)for(var v=n.scoreFn||c,b=n.keys,y=b.length,w=g-1;w>=0;--w){for(var k=t[w],E=new Array(y),x=y-1;x>=0;--x)(j=u(k,q=b[x]))?(d(j)||(j=h.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sp.peek().score&&p.replaceTop(E))))}else if(n&&n.key){var q=n.key;for(w=g-1;w>=0;--w)(j=u(k=t[w],q))&&(d(j)||(j=h.getPrepared(j)),null!==(C=l(e,j,o))&&(C.scorep.peek().score&&p.replaceTop(C)))))}else for(w=g-1;w>=0;--w){var j,C;(j=t[w])&&(d(j)||(j=h.getPrepared(j)),null!==(C=l(e,j,o))&&(C.scorep.peek().score&&p.replaceTop(C)))))}if(0===f)return i;var T=new Array(f);for(w=f-1;w>=0;--w)T[w]=p.poll();return T.total=f+m,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],m=f(),g=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||c,x=o.keys,S=x.length;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var q=n[g],j=new Array(S),C=S-1;C>=0;--C)(O=u(q,_=x[C]))?(d(O)||(O=h.getPrepared(O)),j[C]=y(t,O,p)):j[C]=null;j.obj=q;var T=f(j);null!==T&&(Tm.peek().score&&m.replaceTop(j))))}else if(o&&o.key)for(var _=o.key;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(O=u(q=n[g],_))&&(d(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scorem.peek().score&&m.replaceTop(N)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var O,N;(O=n[g])&&(d(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scorem.peek().score&&m.replaceTop(N)))))}if(0===w)return a(i);for(var L=new Array(w),M=w-1;M>=0;--M)L[M]=m.poll();L.total=w+k,a(L)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,c=0;c999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0,d=0;;){if(n===o[c]){if(s[d++]=c,++l===r)break;n=e[0===u?l:u===l?l+1:u===l-1?l-1:l]}if(++c>=i)for(;;){if(l<=1)return null;if(0===u){if(n===e[--l])continue;u=l}else{if(1===u)return null;if((n=e[1+(l=--u)])===e[l])continue}c=s[(d=l)-1]+1;break}}l=0;var f=0,p=!1,m=0,g=t._nextBeginningIndexes;null===g&&(g=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=c=0===s[0]?0:g[s[0]-1];if(c!==i)for(;;)if(c>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;c=v;continue}--l,c=g[a[--m]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[c]){if(a[m++]=c,++l===r){p=!0;break}++c}else c=g[c];if(p)var b=a,y=m;else b=s,y=d;for(var w=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0;;){if(n===o[c]){if(s[u++]=c,++l===r)break;n=e[l]}if(++c>=i)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(c=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(c>=i){if(l<=0)break;--l,c=p[a[--f]]}else if(e[l]===o[c]){if(a[f++]=c,++l===r){d=!0;break}++c}else c=p[c];if(d)var m=a,g=f;else m=s,g=u;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=m[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,c=l||a>=97&&a<=122||a>=48&&a<=57,u=l&&!r||!i||!c;r=l,i=c,u&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=$e.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;$e.on("runStart",(function(e){tt.defined=e.testCounts.total})),$e.begin((function(){Z()})),$e.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,c=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){c="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var u=0;u":"Running: ",B(e.name,e.module),P(tt.failedTests)].join(""))})),$e.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+$e.dump.parse(e.expected):$e.dump.parse(e.expected),r=$e.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=F(i=$e.diff(n,r)).length!==F(n).length+F(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                Expected:
                "+nt(n)+"
                Result:
                "+nt(r)+"
                Diff:
                "+i+"
                Message: Diff suppressed as the depth of object is more than current max depth ("+$e.config.maxDepth+").

                Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                Message: Diff suppressed as the expected and actual results have an equivalent serialization
                Source:
                "+nt(e.source)+"
                "):!e.result&&e.source&&(s+="
                Source:
                "+nt(e.source)+"
                ");var l=t.getElementsByTagName("ol")[0],c=v.createElement("li");c.className=e.result?"pass":"fail",c.innerHTML=s,l.appendChild(c)}})),$e.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,c=o.failed,u=o.failed>0?o.todo:!o.todo;u?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,p=c?""+c+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,d)}else{if(f(d,"click",(function(){E(a,"qunit-collapsed")})),i.className=u?"pass":"fail",o.todo){var m=v.createElement("em");m.className="qunit-todo-label",m.innerHTML="todo",i.className+=" todo",i.insertBefore(m,d)}var g=v.createElement("span");g.className="runtime",g.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(g,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),u&&k(b,"qunit-collapsed"),f(d,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),$e.on("error",(function(e){var t=U("global failure");if(t){var n=nt(I(e));n=""+n+"",e&&e.stack&&(n+="
                Source:
                "+nt(e.stack)+"
                ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?f(p,"load",$e.load):$e.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,c=new Array(a>5?a-5:0),u=5;u=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function S(e){return v.getElementById&&v.getElementById(e)}function q(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),$e.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=d(t.value),_(),e&&e.preventDefault&&e.preventDefault(),!1}function C(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){$e.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var c=0;c-1,m=f.indexOf("skipped")>-1;(h||m)&&t.push(d)}var g,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(g=v.n()).done;){var b=g.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},$e.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),g(t.getElementsByTagName("input"),"change",C),g(t.getElementsByTagName("select"),"change",C),t}function L(e,t,n){return'
              1. "}function M(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return c(i.selectedMap.keys()).sort().join(",")!==c(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                 
                ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",q),t))}function Z(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                "+nt(v.title)+"

                "+((!(e=$e.config.testId)||e.length<=0?"":"
                Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                ")+"

                  ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+$e.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(A()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=B(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                  ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function B(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function D(e){return[e.completed," / ",e.defined," tests completed.
                  "].join("")}function F(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),$e.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,c,u;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,c=!1,u=!1;s0?o[r-1]:-1,c=u=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(c=this.diffHalfMatch(e,n))?(u=c[0],f=c[1],d=c[2],p=c[3],h=c[4],m=this.DiffMain(u,d,o,r),g=this.DiffMain(f,p,o,r),m.concat([[0,h]],g)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,c,u,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[c,u,d,f,s]:null}return r=this,c=f(n,o,Math.ceil(n.length/4)),u=f(n,o,Math.ceil(n.length/2)),c||u?(d=u?c&&c[4].length>u[4].length?c:u:c,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,c,u,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,c=0,l=0,d="",u="";a=1&&l>=1){for(i.splice(a-c-l,c+l),a=a-c-l,f=(r=this.DiffMain(d,u,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,c=0,d="",u=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,c,u,d,f,p,h,m,g,v,b,y,w,k,E,x,S,q,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,c=new Array(l),u=new Array(l),d=0;do);S++){for(q=-S+h;q<=S-m;q+=2){for(y=a+q,E=(w=q===-S||q!==S&&c[y-1]r)m+=2;else if(E>i)h+=2;else if(p&&(b=a+f-q)>=0&&b=(k=r-u[b]))return this.diffBisectSplit(e,n,w,E,o)}for(j=-S+g;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&u[b-1]r)v+=2;else if(x>i)g+=2;else if(!p&&(y=a+f-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,c,u;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),c=this.DiffMain(i,a,!1,r),u=this.DiffMain(s,l,!1,r),c.concat(u)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,c,u,d,f,p,h;for(n=!1,o=[],r=0,i=null,s=0,c=0,u=0,a=0,l=0;s0?o[r-1]:-1,c=0,u=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][1]=d.substring(0,d.length-p),e[s+1][1]=f.substring(p),s++):(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-h),e[s+1][0]=t,e[s+1][1]=d.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(C(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return((e=+e)||1/e)<0}function u(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function q(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,c=0;c64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-c==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function C(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),u(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function _(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=c,n.send_control(e[1])):m(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?m(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=c,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=c,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,u);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,u)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?c:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){m=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let u=a+c<=i;if(!u&&r){t=n.substring(a);break}0===c&&(u=!1);for(let e=1;u&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const F={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),D(e,F,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:F[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in F||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),D(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function c(e,t,o){n&&(o||u(e,new Array(t-e),{}),n(e,t,o))}function u(e,t,n){if(!t.length)return;let c=l(r,e);const u=e+t.length,d=r.length;let f;for(f=c>0?c-1:c;f=c)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(c,0,p),c--;c<=f;c++){const e=r[c];e&&!e.items.length&&(r.splice(c,1),c--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,u]),f(u,i.items.slice(u-c,d-c),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(m(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(m();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),I((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){I((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},C(i.info,{}),g=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ue[o]==i&&(ue[o]=null)})),ue[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return m+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}m-=1,v(t)}}},close:function(){s&&s.close("cancelled");c&&c.close("cancelled");g&&g.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let c;if("-"==l.tag)c=null;else try{u=O(r,n),c=t.syntax&&t.syntax.parse?t.syntax.parse(u):u}catch(e){return b(null,null,e),void o.reject(e)}var u;b(c,l.tag),o.resolve(c,l.tag)}))}(),a=o.promise,a}let c=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;c&&c.close("abort");const u={...r,payload:"fsreplace1",path:e,tag:o};return c=i.channel(u),c.addEventListener("close",(function(e,t){c=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){c.send(e)})),c.control({command:"done"}),s.promise}const p=[];let h,m=0,g=null;function v(t){if(m>0){if(g)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};g=i.channel(n),g.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else g&&(g.close(),g=null)}function b(){h=arguments[1]||null,u(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(s,e):0}));function g(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},u(p,s,[h.status,h.headers])))}return c.addEventListener("control",g),c.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)ge("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=m.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!c.binary&&0===o.indexOf("text/plain")&&(t=e),ge("http status: ",h.status),n.reject(new me(h.status,h.reason,t),e)}else ge("http done"),n.resolve(e)}c.removeEventListener("control",g),c.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(ge("http input:",e),d(e,(function(e){c.send(e)}))),t||(ge("http done"),c.control({command:"done"})),s},s.close=function(e){return ge("http closing:",e),c.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;C(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const c={payload:"metrics1",interval:e,source:"internal",...t[0]};delete c.archive_source;const u=i.channel(c);r.push(u);let d,f=null,p=null;u.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),u.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},55:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=console.log;console.log=function(){e.exec(arguments[0])||t.apply(console,arguments),console.log=t}}function a(){const e=this,t={},n={},r=[];let i=!1;o.Z.event_target(this),e.onopen=function(e){},e.onrecv=function(o,s,a){if(s)(s in t||s in n)&&r.push([s,a]);else{const e=JSON.parse(a);if("open"==e.command){let o;"echo"==e.payload?(t[e.channel]=!0,o={command:"ready",channel:e.channel}):"null"==e.payload?(n[e.channel]=!0,o={command:"ready",channel:e.channel}):o={command:"close",channel:e.channel,problem:"not-supported"},r.push([null,JSON.stringify(o)])}else"close"==e.command&&(delete t[e.channel],delete n[e.channel])}r.length&&!i&&(i=!0,window.setTimeout((function(){for(;r.length;)e.send.apply(e,r.shift());i=!1}),0))},e.send=function(e,t){throw Error("not reached")},e.close=function(e){throw Error("not reached")}}r=(i.then?(await i)():i)[0],window.mock={url:"ws://url"};let l=null,c=new a;function u(e,t){if("string"!=typeof e)throw Error("WebSocket(@url) is not a string: "+typeof e);if("string"!=typeof t)throw Error("WebSocket(@protocol) is not a string: "+typeof t);this.onopen=function(e){},this.onclose=function(e){},this.onmessage=function(e){},this.onerror=function(e){},this.readyState=0,this.url=e,this.protocol=t,this.extensions="",this.binaryType=null;const n=this,o=c;this.send=function(e){if("string"!=typeof e)throw Error("WebSocket.send(@data) is not a string: "+typeof e);const t=e.indexOf("\n");if(-1==t)throw Error("Invalid frame sent to WebSocket: "+e);const n=e.substring(0,t),r=e.substring(t+1);window.setTimeout((function(){o.dispatchEvent("recv",n,r)}),5)},this.close=function(e,t){if("number"!=typeof e&&void 0!==e)throw Error("WebSocket.close(@code) is not a number: "+typeof e);if("string"!=typeof t&&void 0!==t)throw Error("WebSocket.close(@reason) is not a number: "+typeof string);if(this.readyState>1)throw Error("WebSocket.close() called on a closed WebSocket"+this.readyState+" "+e+t);this.readyState=3,this.onclose({name:"close",code:e||1e3,reason:t,wasClean:!0})};const r=[];o.send=function(e,t){e||(e="");const o={name:"message",data:e.toString()+"\n"+t};r.push(o),window.setTimeout((function(){1==n.readyState&&n.onmessage(r.shift())}),5)},o.close=function(e){e||(e={}),window.setTimeout((function(){n.close(e.reason?1e3:1011,e.reason||"")}),5)},window.setTimeout((function(){n.readyState=1,o.dispatchEvent("open"),n.onopen({name:"open"});const e={command:"init",version:1,"channel-seed":"test","csrf-token":"the-csrf-token",user:{user:"scruffy",name:"Scruffy the Janitor"},system:{version:"zero.point.zero",build:"nasty stuff"}};l&&(e.host=l),l=null,n.onmessage({data:"\n"+JSON.stringify(e)})}),5)}function d(e,t,n,r,i){const s=window.mock.url,a=[t];"/"==t.slice(-1)?a.push(t+"other"):a.push(t+"/",t+"/other"),window.mock.url=null,window.mock.url_root=i;for(let t=0;t0,"channel.toString()"),e.equal(typeof t.send,"function","channel.send() is a function"),e.equal(typeof t.close,"function","channel.close() is a function"),e.strictEqual(t.valid,!0,"channel.valid is set"),e.equal(typeof o.Z.logout,"function","cockpit.logout is a function"),e.equal(typeof o.Z.transport,"object","cockpit.transport is an object"),e.equal(typeof o.Z.transport.close,"function","cockpit.transport.close is a function"),e.equal(typeof o.Z.transport.options,"object","cockpit.transport.options is a object"),window.location.origin?e.equal(o.Z.transport.origin,window.location.origin,"cockpit.transport.origin is correct"):e.equal(typeof o.Z.transport.origin,"string","cockpit.transport.origin is present"),d(e,"/","cockpit","/cockpit/socket"),d(e,"/cockpit","cockpit","/cockpit/socket"),d(e,"/cockpitother/","cockpit","/cockpit/socket"),d(e,"/cockpita+pplication/","cockpit","/cockpit/socket"),d(e,"/cockpit+application","cockpit+application","/cockpit+application/socket"),d(e,"/=machine","cockpit+=machine","/cockpit+=machine/socket"),d(e,"/url-root","cockpit","/url-root/cockpit/socket","url-root"),d(e,"/url-root/cockpit","cockpit","/url-root/cockpit/socket","url-root"),d(e,"/url-root/cockpit+application","cockpit+application","/url-root/cockpit+application/socket","url-root"),d(e,"/url-root/=machine","cockpit+=machine","/url-root/cockpit+=machine/socket","url-root")})),r.Z.test("open channel",(function(e){const t=e.async();e.expect(8);const n=o.Z.channel({host:"scruffy"});let r=!1;c.addEventListener("open",(function(t){e.ok(!0,"websocket connected")})),c.addEventListener("recv",(function(o,i,s){const a=JSON.parse(s);r?(e.equal(a.command,"open","right command"),e.strictEqual(a.channel,n.id,"contains right channel"),e.equal(a.host,"scruffy","host as expected"),t()):(e.equal(typeof a,"object","valid json"),e.strictEqual(i,"","sent with empty channel"),e.equal(a.command,"init","got init"),e.equal(a.version,1,"got init version"),r=!0)}))})),r.Z.test("multiple",(function(e){const t=e.async();e.expect(1);const n=o.Z.channel({host:"scruffy"}),r=o.Z.channel({host:"amy"}),i=o=>{c.removeEventListener("recv",i),e.notStrictEqual(n.id,r.id,"channels have different ids"),t()};c.addEventListener("recv",i)})),r.Z.test("open no host",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({});e.ok(n),c.addEventListener("open",(function(t){e.ok(!0,"websocket connected")})),c.addEventListener("recv",(function(n,o,r){const i=JSON.parse(r);"open"==i.command&&(e.strictEqual(i.host,void 0,"host not included"),t())}))})),r.Z.test("open auto host",(function(e){const t=e.async();e.expect(3),l="planetexpress";const n=o.Z.channel({});e.ok(n),c.addEventListener("open",(function(t){e.ok(!0,"websocket connected")})),c.addEventListener("recv",(function(n,o,r){const i=JSON.parse(r);"open"==i.command&&(e.strictEqual(i.host,"planetexpress","host automatically chosen"),t())}))})),r.Z.test("send message",(function(e){const t=e.async();e.expect(2);const n=o.Z.channel({});c.addEventListener("open",(function(e){n.send("Scruffy gonna die the way he lived")})),c.addEventListener("recv",(function(o,r,i){r&&(e.strictEqual(r,n.id,"sent with correct channel"),e.equal(i,"Scruffy gonna die the way he lived","sent the right payload"),t())}))})),r.Z.test("queue messages",(function(e){const t=e.async();e.expect(1);const n=[],r=o.Z.channel({});r.send("Scruffy"),r.send("knows"),r.send("he"),r.send("rules"),c.addEventListener("recv",(function(o,r,i){r&&(n.push(i),4===n.length&&(e.equal(n.join(" "),"Scruffy knows he rules","messages queued and sent correctly"),t()))}))})),r.Z.test("receive message",(function(e){const t=e.async();e.expect(1);const n=(e,t,o)=>{"open"==JSON.parse(o).command&&(c.removeEventListener("recv",n),c.send(r.id,"Oh, marrrrmalade!"))};c.addEventListener("recv",n);const r=o.Z.channel({});r.addEventListener("message",(function(n,o){e.equal(o,"Oh, marrrrmalade!","got right message in channel"),t()}))})),r.Z.test("close channel",(function(e){const t=e.async(2);e.expect(4),c.addEventListener("recv",(function(o,r,i){const s=JSON.parse(i);"init"!=s.command&&("open"!=s.command?(e.equal(s.command,"close","sent close command"),e.strictEqual(s.channel,n.id,"correct channel"),c.send("",i),t()):n.close())}));const n=o.Z.channel({});n.addEventListener("close",(function(n,o){e.ok(!0,"triggered event"),e.ok(!o.problem,"no problem"),t()}))})),r.Z.test("close early",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({});n.addEventListener("close",(function(n,o){e.ok(!0,"triggered event"),e.equal(o.problem,"yo","got problem"),t()})),n.close("yo"),e.strictEqual(n.valid,!1,"no longer valid")})),r.Z.test("close problem",(function(e){const t=e.async();e.expect(5),c.addEventListener("recv",(function(o,r,i){const s=JSON.parse(i);if("init"!=s.command){if("open"==s.command)return n.close({problem:"problem"}),void e.strictEqual(n.valid,!1,"no longer valid");e.equal(s.command,"close","sent close command"),e.equal(s.problem,"problem","sent reason"),t()}}));const n=o.Z.channel({});n.addEventListener("close",(function(t,n){e.ok(!0,"triggered event"),e.equal(n.problem,"problem","set")}))})),r.Z.test("close problem string",(function(e){const t=e.async();e.expect(5);const n=o.Z.channel({});c.addEventListener("recv",(function(o,r,i){const s=JSON.parse(i);if("init"!=s.command){if("open"==s.command)return n.close("testo"),void e.strictEqual(n.valid,!1,"no longer valid");e.equal(s.command,"close","sent close command"),e.equal(s.problem,"testo","sent reason"),t()}})),n.addEventListener("close",(function(t,n){e.ok(!0,"triggered event"),e.equal(n.problem,"testo","set")}))})),r.Z.test("close peer",(function(e){const t=e.async();e.expect(5),c.addEventListener("recv",(function(e,t,o){if("init"==JSON.parse(o).command)return;const r={command:"close",channel:n.id,problem:"marmalade",extra:5};c.send("",JSON.stringify(r))}));const n=o.Z.channel({}),r=o.Z.channel({});n.addEventListener("close",(function(o,i){e.ok(!0,"triggered event"),e.equal(i.problem,"marmalade","received reason"),e.equal(i.extra,5,"received extra"),e.strictEqual(n.valid,!1,"became invalid"),e.strictEqual(r.valid,!0,"correct channel"),t()}))})),r.Z.test("close socket",(function(e){const t=e.async();e.expect(4);const n=o.Z.channel({}),r=o.Z.channel({});n.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(n.valid,!1,"channel is invalid"),n.valid||r.valid||t()})),r.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(r.valid,!1,"other channel invalid"),n.valid||r.valid||t()})),c.close()})),r.Z.test("wait ready",(function(e){const t=e.async();e.expect(5);const n=o.Z.channel({payload:"echo"});n.wait().then((function(t){e.ok(!0,"channel is ready"),e.equal(typeof t,"object","wait options"),e.ok(!!t,"wait options not null"),e.equal(t.command,"ready","wait is ready"),e.strictEqual(n.valid,!0,"when valid")}),(function(){e.ok(!1,"should not fail")})).always((function(){t()}))})),r.Z.test("wait close",(function(e){const t=e.async();e.expect(6);const n=o.Z.channel({payload:"unsupported"});n.wait().then((function(){e.ok(!1,"should not succeed")}),(function(t){e.ok(!0,"channel is closed"),e.equal(typeof t,"object","wait options"),e.ok(!!t,"wait options not null"),e.equal(t.command,"close","wait is close"),e.equal(t.problem,"not-supported","wait options has fields"),e.strictEqual(n.valid,!1,"channel not valid")})).always((function(){t()}))})),r.Z.test("wait callback",(function(e){const t=e.async();e.expect(5);const n=o.Z.channel({payload:"unsupported"});n.wait((function(t){e.equal(typeof t,"object","wait options"),e.ok(!!t,"wait options not null"),e.equal(t.command,"close","wait is close"),e.equal(t.problem,"not-supported","wait options has fields"),e.strictEqual(n.valid,!1,"channel not valid")})).always((function(){t()}))})),r.Z.test("logout",(function(e){const t=e.async();c.addEventListener("recv",(function(t,n,o){const r=JSON.parse(o);"logout"==r.command&&(c.close("disconnected"),e.strictEqual(r.disconnect,!0,"disconnect set"))}));let n=o.Z.channel({payload:"echo"}),r=o.Z.channel({payload:"echo"});n.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(n.valid,!1,"channel is invalid"),n=null,null===n&&null===r&&t()})),r.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(r.valid,!1,"other channel invalid"),r=null,null===n&&null===r&&t()})),o.Z.logout(!1)})),r.Z.test("droppriv",(function(e){const t=e.async();e.expect(1),c.addEventListener("recv",(function(n,o,r){const i=JSON.parse(r);"logout"==i.command&&(e.strictEqual(i.disconnect,!1,"disconnect not set"),t())})),o.Z.drop_privileges()})),r.Z.test("info",(function(e){const t=e.async();e.expect(4);let n=!1;const r=()=>{e.strictEqual(o.Z.info.version,"zero.point.zero","cockpit.info.version"),e.strictEqual(o.Z.info.build,"nasty stuff","cockpit.info.build"),n=!0};o.Z.info.addEventListener("changed",r);const i=(s,a,l)=>{"open"==JSON.parse(l).command&&(c.removeEventListener("recv",i),o.Z.info.removeEventListener("changed",r),e.strictEqual(n,!0,"info changed event was called"),t())};c.addEventListener("recv",i);const s=o.Z.channel({host:"scruffy"});e.ok(s)})),r.Z.test("send after close",(function(e){const t=e.async();e.expect(1),s(/sending message on closed.*/);let n=!1;const r=o.Z.channel({});c.addEventListener("recv",(function(e,t,o){t&&(n=!0)})),r.close(),r.send("Dern it."),window.setTimeout((function(){e.ok(!n,"didn't send message"),t()}),50)})),r.Z.test("ignore other commands",(function(e){const t=e.async();e.expect(1);const n=o.Z.channel({payload:"echo"});s(/unhandled control message.*/),c.send(0,JSON.stringify({command:"ping"})),c.send(0,JSON.stringify({command:"unexpected"})),window.setTimeout((function(){e.ok(n.valid,"other messages didn't screw up channel"),t()}),50)})),r.Z.test("filter message in",(function(e){const t=e.async();e.expect(14);let n=0,r=!0;o.Z.transport.filter((function(t,o,i){return!r||("\n"==t[0]?(e.strictEqual(o,"","control message channel"),e.equal(typeof i,"object","control is a JSON object"),e.equal(typeof i.command,"string","control has a command"),!0):(e.strictEqual(o,s.id,"cockpit channel id"),e.equal(i,void 0,"control is undefined"),n+=1,1!=n))}));let i=0;const s=o.Z.channel({payload:"echo"});s.addEventListener("message",(function(o){i+=1,2==i&&(e.equal(n,3,"filtered right amount"),e.equal(i,2,"let through right amount"),s.close(),r=!1,t())})),s.send("one"),s.send("two"),s.send("three")})),r.Z.test("filter message out",(function(e){const t=e.async();e.expect(10);let n=0,r=!0;o.Z.transport.filter((function(o,s,a){return!r||("\n"!=o[0]?(e.strictEqual(s,i.id,"cockpit channel id"),e.equal(a,void 0,"control is undefined"),n+=1,1==n||(i.close(),r=!1,t(),!1)):(e.strictEqual(s,"","control message channel"),e.equal(typeof a,"object","control is a JSON object"),e.equal(typeof a.command,"string","control has a command"),!1))}),!0);const i=o.Z.channel({payload:"null"});i.send("one"),i.send("two"),i.send("three")})),r.Z.test("inject message out",(function(e){const t=e.async();e.expect(4);const n=o.Z.transport.inject("bree\nyellow");e.equal(n,!1,"failure returns false");let r=!0;c.addEventListener("recv",(function(n,s,a){if(r){const t=o.Z.transport.inject("bree\nyellow");return e.equal(t,!0,"returned true"),void(r=!1)}s&&(e.equal(s,"bree","right channel"),e.equal(a,"yellow","right payload"),i.close(),t())}));const i=o.Z.channel({})})),r.Z.test("inject message in",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({payload:"null"});n.addEventListener("control",(function(r,i){if("ready"==i.command){const t=JSON.stringify({command:"blah",blah:"marmalade",channel:n.id}),r=o.Z.transport.inject("\n"+t,!1);e.equal(r,!0,"returned true")}else e.equal(i.command,"blah","got right control message"),e.equal(i.blah,"marmalade","got right control data"),n.close(),t()}))})),r.Z.test("transport options",(function(e){const t=e.async();e.expect(3),c.addEventListener("recv",(function(r,i,s){i&&(e.equal(typeof o.Z.transport.options,"object","is an object"),e.deepEqual(o.Z.transport.options,{command:"init",version:1,"channel-seed":"test","csrf-token":"the-csrf-token",user:{user:"scruffy",name:"Scruffy the Janitor"},system:{version:"zero.point.zero",build:"nasty stuff"}},"is correct"),e.equal(o.Z.transport.csrf_token,"the-csrf-token","got csrf token"),n.close(),t())}));const n=o.Z.channel({});n.send("blah")})),r.Z.test("message",(function(e){e.expect(4),e.strictEqual(o.Z.message("terminated"),"Your session has been terminated.","problem code"),e.strictEqual(o.Z.message({problem:"timeout"}),"Connection has timed out.","problem property"),e.strictEqual(o.Z.message({message:"The message",problem:"blah"}),"The message","problem property"),e.strictEqual(o.Z.message(55),"55","invalid input")})),window.location.hash="",r.Z.start(),t()}catch(f){t(f)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,c,u,d=new Set,f=r.exports,p=new Promise(((e,t)=>{u=t,c=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),c=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?c:s()}),(e=>(e?u(p[n]=e):c(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(55)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&L("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function _(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=_(e[o],t[o]));return n}function O(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function L(e,t){return N(t)===e}function M(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":L("regexp",e)?"regexp":L("date",e)?"date":L("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                  ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var c=a[l];c in e&&!C(c,r)&&r.push(c)}r.sort();for(var u=0;u",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),B=[],D=new P;function F(e,t,n){var o=B.length?B.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:D,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var c={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:M(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(c),R.modules.push(c),c}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=F(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){B.push(r);try{var c=n.call(r.testEnvironment,a);null!=c&&"function"===N(c.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{B.pop(),R.currentModule=r.parentModule||l}}}var z=!1;function $(e,t,n){var o,r=z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!B.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}$.only=function(){z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),z=!0,J.apply(void 0,arguments)},$.skip=function(e,t,n){z||J(e,t,n,{skip:!0})},$.todo=function(e,t,n){z||J(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=_(e,t),t=T(t,!1),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=_(e,t),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var c=l(X(s,n,o),3);a=c[0],n=c[1],o=c[2]}i.assert.pushResult({result:a,actual:s&&I(s),expected:n,message:o})}else{var u='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:u})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&I(e),expected:n,message:o}),a()}))}var c='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:c,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(I(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=I(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=I(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?c(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ue.push.apply(ue,c(e)),ce>0&&ce--;var e;de()}()}function fe(e){if(ue.length&&!R.blocking){var t=q.now()-e;if(!m||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ce+1));R.queue.splice(ce+o,0,e)}else R.queue.push(e)},advance:de,taskCount:function(){return ue.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=q.now(),q.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=q.now(),q)){q.mark("qunit_test_end");var t=this.fullName.join(" – ");q.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function me(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++me.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&ge("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&ge("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&ge("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+I(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:q.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof me))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){g(R.timeout),R.timeout=m(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),qe(n)}}(n.pauses.set(o,r),m)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),qe(n)}},g(R.timeout),R.timeout=m(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return C(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!C(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new me(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new me(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(m?(g(R.timeout),R.timeout=m((function(){e.pauses.size>0||(g(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=c(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,c(o.childModules))}return t}function Ce(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){ye({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var _e,Oe,Ne,Le,Me=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ie=!0;if("undefined"!=typeof process){var Ae=process.env;_e=Ae.FORCE_COLOR,Oe=Ae.NODE_DISABLE_COLORS,Ne=Ae.NO_COLOR,Le=Ae.TERM,Ie=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Le&&(null!=_e&&"0"!==_e||Ie),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Ze(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),c=l?l[0].length:0;if(1===c){var u=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+u.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(De(e),null,2)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return De(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=De(e[o],t)})),t.pop();break;default:n=e}return n}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+I(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Be(e.message||"failed")),n+="\n severity: ".concat(Be(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(Be(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(Be(e.expected))),e.stack&&(n+="\n stack: ".concat(Be(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Be(I(e))),t+="\n severity: ".concat(Be("failed")),e&&e.stack&&(t+="\n stack: ".concat(Be(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Me,tap:Fe};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var Je={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(I(e)),source:e&&e.stack||Y(2)}):(D.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var $e={};R.currentModule.suiteReport=D;var Ge=!1,We=!1;function Ye(){We=!0,m?m((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ke();else{R.started=q.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||$e.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function u(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,m=0,g=t.length;if(n&&n.keys)for(var v=n.scoreFn||c,b=n.keys,y=b.length,w=g-1;w>=0;--w){for(var k=t[w],E=new Array(y),x=y-1;x>=0;--x)(j=u(k,q=b[x]))?(d(j)||(j=h.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sp.peek().score&&p.replaceTop(E))))}else if(n&&n.key){var q=n.key;for(w=g-1;w>=0;--w)(j=u(k=t[w],q))&&(d(j)||(j=h.getPrepared(j)),null!==(C=l(e,j,o))&&(C.scorep.peek().score&&p.replaceTop(C)))))}else for(w=g-1;w>=0;--w){var j,C;(j=t[w])&&(d(j)||(j=h.getPrepared(j)),null!==(C=l(e,j,o))&&(C.scorep.peek().score&&p.replaceTop(C)))))}if(0===f)return i;var T=new Array(f);for(w=f-1;w>=0;--w)T[w]=p.poll();return T.total=f+m,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],m=f(),g=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||c,x=o.keys,S=x.length;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var q=n[g],j=new Array(S),C=S-1;C>=0;--C)(O=u(q,_=x[C]))?(d(O)||(O=h.getPrepared(O)),j[C]=y(t,O,p)):j[C]=null;j.obj=q;var T=f(j);null!==T&&(Tm.peek().score&&m.replaceTop(j))))}else if(o&&o.key)for(var _=o.key;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(O=u(q=n[g],_))&&(d(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scorem.peek().score&&m.replaceTop(N)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var O,N;(O=n[g])&&(d(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scorem.peek().score&&m.replaceTop(N)))))}if(0===w)return a(i);for(var L=new Array(w),M=w-1;M>=0;--M)L[M]=m.poll();L.total=w+k,a(L)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,c=0;c999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0,d=0;;){if(n===o[c]){if(s[d++]=c,++l===r)break;n=e[0===u?l:u===l?l+1:u===l-1?l-1:l]}if(++c>=i)for(;;){if(l<=1)return null;if(0===u){if(n===e[--l])continue;u=l}else{if(1===u)return null;if((n=e[1+(l=--u)])===e[l])continue}c=s[(d=l)-1]+1;break}}l=0;var f=0,p=!1,m=0,g=t._nextBeginningIndexes;null===g&&(g=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=c=0===s[0]?0:g[s[0]-1];if(c!==i)for(;;)if(c>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;c=v;continue}--l,c=g[a[--m]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[c]){if(a[m++]=c,++l===r){p=!0;break}++c}else c=g[c];if(p)var b=a,y=m;else b=s,y=d;for(var w=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0;;){if(n===o[c]){if(s[u++]=c,++l===r)break;n=e[l]}if(++c>=i)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(c=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(c>=i){if(l<=0)break;--l,c=p[a[--f]]}else if(e[l]===o[c]){if(a[f++]=c,++l===r){d=!0;break}++c}else c=p[c];if(d)var m=a,g=f;else m=s,g=u;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=m[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,c=l||a>=97&&a<=122||a>=48&&a<=57,u=l&&!r||!i||!c;r=l,i=c,u&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=$e.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;$e.on("runStart",(function(e){tt.defined=e.testCounts.total})),$e.begin((function(){Z()})),$e.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,c=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                  ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){c="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var u=0;u":"Running: ",B(e.name,e.module),P(tt.failedTests)].join(""))})),$e.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+$e.dump.parse(e.expected):$e.dump.parse(e.expected),r=$e.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=F(i=$e.diff(n,r)).length!==F(n).length+F(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                  Expected:
                  "+nt(n)+"
                  Result:
                  "+nt(r)+"
                  Diff:
                  "+i+"
                  Message: Diff suppressed as the depth of object is more than current max depth ("+$e.config.maxDepth+").

                  Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                  Message: Diff suppressed as the expected and actual results have an equivalent serialization
                  Source:
                  "+nt(e.source)+"
                  "):!e.result&&e.source&&(s+="
                  Source:
                  "+nt(e.source)+"
                  ");var l=t.getElementsByTagName("ol")[0],c=v.createElement("li");c.className=e.result?"pass":"fail",c.innerHTML=s,l.appendChild(c)}})),$e.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,c=o.failed,u=o.failed>0?o.todo:!o.todo;u?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,p=c?""+c+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,d)}else{if(f(d,"click",(function(){E(a,"qunit-collapsed")})),i.className=u?"pass":"fail",o.todo){var m=v.createElement("em");m.className="qunit-todo-label",m.innerHTML="todo",i.className+=" todo",i.insertBefore(m,d)}var g=v.createElement("span");g.className="runtime",g.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(g,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),u&&k(b,"qunit-collapsed"),f(d,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),$e.on("error",(function(e){var t=U("global failure");if(t){var n=nt(I(e));n=""+n+"",e&&e.stack&&(n+="
                  Source:
                  "+nt(e.stack)+"
                  ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?f(p,"load",$e.load):$e.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,c=new Array(a>5?a-5:0),u=5;u=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function S(e){return v.getElementById&&v.getElementById(e)}function q(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),$e.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=d(t.value),_(),e&&e.preventDefault&&e.preventDefault(),!1}function C(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){$e.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var c=0;c-1,m=f.indexOf("skipped")>-1;(h||m)&&t.push(d)}var g,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(g=v.n()).done;){var b=g.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},$e.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),g(t.getElementsByTagName("input"),"change",C),g(t.getElementsByTagName("select"),"change",C),t}function L(e,t,n){return'
                1. "}function M(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return c(i.selectedMap.keys()).sort().join(",")!==c(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                   
                  ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",q),t))}function Z(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                  "+nt(v.title)+"

                  "+((!(e=$e.config.testId)||e.length<=0?"":"
                  Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                  ")+"

                    ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+$e.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(A()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=B(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                    ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function B(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function D(e){return[e.completed," / ",e.defined," tests completed.
                    "].join("")}function F(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),$e.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,c,u;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,c=!1,u=!1;s0?o[r-1]:-1,c=u=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(c=this.diffHalfMatch(e,n))?(u=c[0],f=c[1],d=c[2],p=c[3],h=c[4],m=this.DiffMain(u,d,o,r),g=this.DiffMain(f,p,o,r),m.concat([[0,h]],g)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,c,u,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[c,u,d,f,s]:null}return r=this,c=f(n,o,Math.ceil(n.length/4)),u=f(n,o,Math.ceil(n.length/2)),c||u?(d=u?c&&c[4].length>u[4].length?c:u:c,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,c,u,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,c=0,l=0,d="",u="";a=1&&l>=1){for(i.splice(a-c-l,c+l),a=a-c-l,f=(r=this.DiffMain(d,u,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,c=0,d="",u=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,c,u,d,f,p,h,m,g,v,b,y,w,k,E,x,S,q,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,c=new Array(l),u=new Array(l),d=0;do);S++){for(q=-S+h;q<=S-m;q+=2){for(y=a+q,E=(w=q===-S||q!==S&&c[y-1]r)m+=2;else if(E>i)h+=2;else if(p&&(b=a+f-q)>=0&&b=(k=r-u[b]))return this.diffBisectSplit(e,n,w,E,o)}for(j=-S+g;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&u[b-1]r)v+=2;else if(x>i)g+=2;else if(!p&&(y=a+f-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,c,u;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),c=this.DiffMain(i,a,!1,r),u=this.DiffMain(s,l,!1,r),c.concat(u)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,c,u,d,f,p,h;for(n=!1,o=[],r=0,i=null,s=0,c=0,u=0,a=0,l=0;s0?o[r-1]:-1,c=0,u=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][1]=d.substring(0,d.length-p),e[s+1][1]=f.substring(p),s++):(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-h),e[s+1][0]=t,e[s+1][1]=d.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(C(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return((e=+e)||1/e)<0}function u(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function q(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,c=0;c64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-c==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function C(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),u(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function _(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=c,n.send_control(e[1])):m(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?m(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=c,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=c,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,u);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,u)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?c:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){m=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let u=a+c<=i;if(!u&&r){t=n.substring(a);break}0===c&&(u=!1);for(let e=1;u&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const F={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),D(e,F,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:F[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in F||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),D(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function c(e,t,o){n&&(o||u(e,new Array(t-e),{}),n(e,t,o))}function u(e,t,n){if(!t.length)return;let c=l(r,e);const u=e+t.length,d=r.length;let f;for(f=c>0?c-1:c;f=c)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(c,0,p),c--;c<=f;c++){const e=r[c];e&&!e.items.length&&(r.splice(c,1),c--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,u]),f(u,i.items.slice(u-c,d-c),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(m(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(m();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),I((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){I((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},C(i.info,{}),g=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ue[o]==i&&(ue[o]=null)})),ue[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return m+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}m-=1,v(t)}}},close:function(){s&&s.close("cancelled");c&&c.close("cancelled");g&&g.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let c;if("-"==l.tag)c=null;else try{u=O(r,n),c=t.syntax&&t.syntax.parse?t.syntax.parse(u):u}catch(e){return b(null,null,e),void o.reject(e)}var u;b(c,l.tag),o.resolve(c,l.tag)}))}(),a=o.promise,a}let c=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;c&&c.close("abort");const u={...r,payload:"fsreplace1",path:e,tag:o};return c=i.channel(u),c.addEventListener("close",(function(e,t){c=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){c.send(e)})),c.control({command:"done"}),s.promise}const p=[];let h,m=0,g=null;function v(t){if(m>0){if(g)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};g=i.channel(n),g.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else g&&(g.close(),g=null)}function b(){h=arguments[1]||null,u(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(s,e):0}));function g(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},u(p,s,[h.status,h.headers])))}return c.addEventListener("control",g),c.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)ge("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=m.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!c.binary&&0===o.indexOf("text/plain")&&(t=e),ge("http status: ",h.status),n.reject(new me(h.status,h.reason,t),e)}else ge("http done"),n.resolve(e)}c.removeEventListener("control",g),c.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(ge("http input:",e),d(e,(function(e){c.send(e)}))),t||(ge("http done"),c.control({command:"done"})),s},s.close=function(e){return ge("http closing:",e),c.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;C(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const c={payload:"metrics1",interval:e,source:"internal",...t[0]};delete c.archive_source;const u=i.channel(c);r.push(u);let d,f=null,p=null;u.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),u.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},55:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=console.log;console.log=function(){e.exec(arguments[0])||t.apply(console,arguments),console.log=t}}function a(){const e=this,t={},n={},r=[];let i=!1;o.Z.event_target(this),e.onopen=function(e){},e.onrecv=function(o,s,a){if(s)(s in t||s in n)&&r.push([s,a]);else{const e=JSON.parse(a);if("open"==e.command){let o;"echo"==e.payload?(t[e.channel]=!0,o={command:"ready",channel:e.channel}):"null"==e.payload?(n[e.channel]=!0,o={command:"ready",channel:e.channel}):o={command:"close",channel:e.channel,problem:"not-supported"},r.push([null,JSON.stringify(o)])}else"close"==e.command&&(delete t[e.channel],delete n[e.channel])}r.length&&!i&&(i=!0,window.setTimeout((function(){for(;r.length;)e.send.apply(e,r.shift());i=!1}),0))},e.send=function(e,t){throw Error("not reached")},e.close=function(e){throw Error("not reached")}}r=(i.then?(await i)():i)[0],window.mock={url:"ws://url"};let l=null,c=new a;function u(e,t){if("string"!=typeof e)throw Error("WebSocket(@url) is not a string: "+typeof e);if("string"!=typeof t)throw Error("WebSocket(@protocol) is not a string: "+typeof t);this.onopen=function(e){},this.onclose=function(e){},this.onmessage=function(e){},this.onerror=function(e){},this.readyState=0,this.url=e,this.protocol=t,this.extensions="",this.binaryType=null;const n=this,o=c;this.send=function(e){if("string"!=typeof e)throw Error("WebSocket.send(@data) is not a string: "+typeof e);const t=e.indexOf("\n");if(-1==t)throw Error("Invalid frame sent to WebSocket: "+e);const n=e.substring(0,t),r=e.substring(t+1);window.setTimeout((function(){o.dispatchEvent("recv",n,r)}),5)},this.close=function(e,t){if("number"!=typeof e&&void 0!==e)throw Error("WebSocket.close(@code) is not a number: "+typeof e);if("string"!=typeof t&&void 0!==t)throw Error("WebSocket.close(@reason) is not a number: "+typeof string);if(this.readyState>1)throw Error("WebSocket.close() called on a closed WebSocket"+this.readyState+" "+e+t);this.readyState=3,this.onclose({name:"close",code:e||1e3,reason:t,wasClean:!0})};const r=[];o.send=function(e,t){e||(e="");const o={name:"message",data:e.toString()+"\n"+t};r.push(o),window.setTimeout((function(){1==n.readyState&&n.onmessage(r.shift())}),5)},o.close=function(e){e||(e={}),window.setTimeout((function(){n.close(e.reason?1e3:1011,e.reason||"")}),5)},window.setTimeout((function(){n.readyState=1,o.dispatchEvent("open"),n.onopen({name:"open"});const e={command:"init",version:1,"channel-seed":"test","csrf-token":"the-csrf-token",user:{user:"scruffy",name:"Scruffy the Janitor"},system:{version:"zero.point.zero",build:"nasty stuff"}};l&&(e.host=l),l=null,n.onmessage({data:"\n"+JSON.stringify(e)})}),5)}function d(e,t,n,r,i){const s=window.mock.url,a=[t];"/"==t.slice(-1)?a.push(t+"other"):a.push(t+"/",t+"/other"),window.mock.url=null,window.mock.url_root=i;for(let t=0;t0,"channel.toString()"),e.equal(typeof t.send,"function","channel.send() is a function"),e.equal(typeof t.close,"function","channel.close() is a function"),e.strictEqual(t.valid,!0,"channel.valid is set"),e.equal(typeof o.Z.logout,"function","cockpit.logout is a function"),e.equal(typeof o.Z.transport,"object","cockpit.transport is an object"),e.equal(typeof o.Z.transport.close,"function","cockpit.transport.close is a function"),e.equal(typeof o.Z.transport.options,"object","cockpit.transport.options is a object"),window.location.origin?e.equal(o.Z.transport.origin,window.location.origin,"cockpit.transport.origin is correct"):e.equal(typeof o.Z.transport.origin,"string","cockpit.transport.origin is present"),d(e,"/","cockpit","/cockpit/socket"),d(e,"/cockpit","cockpit","/cockpit/socket"),d(e,"/cockpitother/","cockpit","/cockpit/socket"),d(e,"/cockpita+pplication/","cockpit","/cockpit/socket"),d(e,"/cockpit+application","cockpit+application","/cockpit+application/socket"),d(e,"/=machine","cockpit+=machine","/cockpit+=machine/socket"),d(e,"/url-root","cockpit","/url-root/cockpit/socket","url-root"),d(e,"/url-root/cockpit","cockpit","/url-root/cockpit/socket","url-root"),d(e,"/url-root/cockpit+application","cockpit+application","/url-root/cockpit+application/socket","url-root"),d(e,"/url-root/=machine","cockpit+=machine","/url-root/cockpit+=machine/socket","url-root")})),r.Z.test("open channel",(function(e){const t=e.async();e.expect(8);const n=o.Z.channel({host:"scruffy"});let r=!1;c.addEventListener("open",(function(t){e.ok(!0,"websocket connected")})),c.addEventListener("recv",(function(o,i,s){const a=JSON.parse(s);r?(e.equal(a.command,"open","right command"),e.strictEqual(a.channel,n.id,"contains right channel"),e.equal(a.host,"scruffy","host as expected"),t()):(e.equal(typeof a,"object","valid json"),e.strictEqual(i,"","sent with empty channel"),e.equal(a.command,"init","got init"),e.equal(a.version,1,"got init version"),r=!0)}))})),r.Z.test("multiple",(function(e){const t=e.async();e.expect(1);const n=o.Z.channel({host:"scruffy"}),r=o.Z.channel({host:"amy"}),i=o=>{c.removeEventListener("recv",i),e.notStrictEqual(n.id,r.id,"channels have different ids"),t()};c.addEventListener("recv",i)})),r.Z.test("open no host",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({});e.ok(n),c.addEventListener("open",(function(t){e.ok(!0,"websocket connected")})),c.addEventListener("recv",(function(n,o,r){const i=JSON.parse(r);"open"==i.command&&(e.strictEqual(i.host,void 0,"host not included"),t())}))})),r.Z.test("open auto host",(function(e){const t=e.async();e.expect(3),l="planetexpress";const n=o.Z.channel({});e.ok(n),c.addEventListener("open",(function(t){e.ok(!0,"websocket connected")})),c.addEventListener("recv",(function(n,o,r){const i=JSON.parse(r);"open"==i.command&&(e.strictEqual(i.host,"planetexpress","host automatically chosen"),t())}))})),r.Z.test("send message",(function(e){const t=e.async();e.expect(2);const n=o.Z.channel({});c.addEventListener("open",(function(e){n.send("Scruffy gonna die the way he lived")})),c.addEventListener("recv",(function(o,r,i){r&&(e.strictEqual(r,n.id,"sent with correct channel"),e.equal(i,"Scruffy gonna die the way he lived","sent the right payload"),t())}))})),r.Z.test("queue messages",(function(e){const t=e.async();e.expect(1);const n=[],r=o.Z.channel({});r.send("Scruffy"),r.send("knows"),r.send("he"),r.send("rules"),c.addEventListener("recv",(function(o,r,i){r&&(n.push(i),4===n.length&&(e.equal(n.join(" "),"Scruffy knows he rules","messages queued and sent correctly"),t()))}))})),r.Z.test("receive message",(function(e){const t=e.async();e.expect(1);const n=(e,t,o)=>{"open"==JSON.parse(o).command&&(c.removeEventListener("recv",n),c.send(r.id,"Oh, marrrrmalade!"))};c.addEventListener("recv",n);const r=o.Z.channel({});r.addEventListener("message",(function(n,o){e.equal(o,"Oh, marrrrmalade!","got right message in channel"),t()}))})),r.Z.test("close channel",(function(e){const t=e.async(2);e.expect(4),c.addEventListener("recv",(function(o,r,i){const s=JSON.parse(i);"init"!=s.command&&("open"!=s.command?(e.equal(s.command,"close","sent close command"),e.strictEqual(s.channel,n.id,"correct channel"),c.send("",i),t()):n.close())}));const n=o.Z.channel({});n.addEventListener("close",(function(n,o){e.ok(!0,"triggered event"),e.ok(!o.problem,"no problem"),t()}))})),r.Z.test("close early",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({});n.addEventListener("close",(function(n,o){e.ok(!0,"triggered event"),e.equal(o.problem,"yo","got problem"),t()})),n.close("yo"),e.strictEqual(n.valid,!1,"no longer valid")})),r.Z.test("close problem",(function(e){const t=e.async();e.expect(5),c.addEventListener("recv",(function(o,r,i){const s=JSON.parse(i);if("init"!=s.command){if("open"==s.command)return n.close({problem:"problem"}),void e.strictEqual(n.valid,!1,"no longer valid");e.equal(s.command,"close","sent close command"),e.equal(s.problem,"problem","sent reason"),t()}}));const n=o.Z.channel({});n.addEventListener("close",(function(t,n){e.ok(!0,"triggered event"),e.equal(n.problem,"problem","set")}))})),r.Z.test("close problem string",(function(e){const t=e.async();e.expect(5);const n=o.Z.channel({});c.addEventListener("recv",(function(o,r,i){const s=JSON.parse(i);if("init"!=s.command){if("open"==s.command)return n.close("testo"),void e.strictEqual(n.valid,!1,"no longer valid");e.equal(s.command,"close","sent close command"),e.equal(s.problem,"testo","sent reason"),t()}})),n.addEventListener("close",(function(t,n){e.ok(!0,"triggered event"),e.equal(n.problem,"testo","set")}))})),r.Z.test("close peer",(function(e){const t=e.async();e.expect(5),c.addEventListener("recv",(function(e,t,o){if("init"==JSON.parse(o).command)return;const r={command:"close",channel:n.id,problem:"marmalade",extra:5};c.send("",JSON.stringify(r))}));const n=o.Z.channel({}),r=o.Z.channel({});n.addEventListener("close",(function(o,i){e.ok(!0,"triggered event"),e.equal(i.problem,"marmalade","received reason"),e.equal(i.extra,5,"received extra"),e.strictEqual(n.valid,!1,"became invalid"),e.strictEqual(r.valid,!0,"correct channel"),t()}))})),r.Z.test("close socket",(function(e){const t=e.async();e.expect(4);const n=o.Z.channel({}),r=o.Z.channel({});n.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(n.valid,!1,"channel is invalid"),n.valid||r.valid||t()})),r.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(r.valid,!1,"other channel invalid"),n.valid||r.valid||t()})),c.close()})),r.Z.test("wait ready",(function(e){const t=e.async();e.expect(5);const n=o.Z.channel({payload:"echo"});n.wait().then((function(t){e.ok(!0,"channel is ready"),e.equal(typeof t,"object","wait options"),e.ok(!!t,"wait options not null"),e.equal(t.command,"ready","wait is ready"),e.strictEqual(n.valid,!0,"when valid")}),(function(){e.ok(!1,"should not fail")})).always((function(){t()}))})),r.Z.test("wait close",(function(e){const t=e.async();e.expect(6);const n=o.Z.channel({payload:"unsupported"});n.wait().then((function(){e.ok(!1,"should not succeed")}),(function(t){e.ok(!0,"channel is closed"),e.equal(typeof t,"object","wait options"),e.ok(!!t,"wait options not null"),e.equal(t.command,"close","wait is close"),e.equal(t.problem,"not-supported","wait options has fields"),e.strictEqual(n.valid,!1,"channel not valid")})).always((function(){t()}))})),r.Z.test("wait callback",(function(e){const t=e.async();e.expect(5);const n=o.Z.channel({payload:"unsupported"});n.wait((function(t){e.equal(typeof t,"object","wait options"),e.ok(!!t,"wait options not null"),e.equal(t.command,"close","wait is close"),e.equal(t.problem,"not-supported","wait options has fields"),e.strictEqual(n.valid,!1,"channel not valid")})).always((function(){t()}))})),r.Z.test("logout",(function(e){const t=e.async();c.addEventListener("recv",(function(t,n,o){const r=JSON.parse(o);"logout"==r.command&&(c.close("disconnected"),e.strictEqual(r.disconnect,!0,"disconnect set"))}));let n=o.Z.channel({payload:"echo"}),r=o.Z.channel({payload:"echo"});n.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(n.valid,!1,"channel is invalid"),n=null,null===n&&null===r&&t()})),r.addEventListener("close",(function(o,i){e.equal(i.problem,"disconnected","received reason"),e.strictEqual(r.valid,!1,"other channel invalid"),r=null,null===n&&null===r&&t()})),o.Z.logout(!1)})),r.Z.test("droppriv",(function(e){const t=e.async();e.expect(1),c.addEventListener("recv",(function(n,o,r){const i=JSON.parse(r);"logout"==i.command&&(e.strictEqual(i.disconnect,!1,"disconnect not set"),t())})),o.Z.drop_privileges()})),r.Z.test("info",(function(e){const t=e.async();e.expect(4);let n=!1;const r=()=>{e.strictEqual(o.Z.info.version,"zero.point.zero","cockpit.info.version"),e.strictEqual(o.Z.info.build,"nasty stuff","cockpit.info.build"),n=!0};o.Z.info.addEventListener("changed",r);const i=(s,a,l)=>{"open"==JSON.parse(l).command&&(c.removeEventListener("recv",i),o.Z.info.removeEventListener("changed",r),e.strictEqual(n,!0,"info changed event was called"),t())};c.addEventListener("recv",i);const s=o.Z.channel({host:"scruffy"});e.ok(s)})),r.Z.test("send after close",(function(e){const t=e.async();e.expect(1),s(/sending message on closed.*/);let n=!1;const r=o.Z.channel({});c.addEventListener("recv",(function(e,t,o){t&&(n=!0)})),r.close(),r.send("Dern it."),window.setTimeout((function(){e.ok(!n,"didn't send message"),t()}),50)})),r.Z.test("ignore other commands",(function(e){const t=e.async();e.expect(1);const n=o.Z.channel({payload:"echo"});s(/unhandled control message.*/),c.send(0,JSON.stringify({command:"ping"})),c.send(0,JSON.stringify({command:"unexpected"})),window.setTimeout((function(){e.ok(n.valid,"other messages didn't screw up channel"),t()}),50)})),r.Z.test("filter message in",(function(e){const t=e.async();e.expect(14);let n=0,r=!0;o.Z.transport.filter((function(t,o,i){return!r||("\n"==t[0]?(e.strictEqual(o,"","control message channel"),e.equal(typeof i,"object","control is a JSON object"),e.equal(typeof i.command,"string","control has a command"),!0):(e.strictEqual(o,s.id,"cockpit channel id"),e.equal(i,void 0,"control is undefined"),n+=1,1!=n))}));let i=0;const s=o.Z.channel({payload:"echo"});s.addEventListener("message",(function(o){i+=1,2==i&&(e.equal(n,3,"filtered right amount"),e.equal(i,2,"let through right amount"),s.close(),r=!1,t())})),s.send("one"),s.send("two"),s.send("three")})),r.Z.test("filter message out",(function(e){const t=e.async();e.expect(10);let n=0,r=!0;o.Z.transport.filter((function(o,s,a){return!r||("\n"!=o[0]?(e.strictEqual(s,i.id,"cockpit channel id"),e.equal(a,void 0,"control is undefined"),n+=1,1==n||(i.close(),r=!1,t(),!1)):(e.strictEqual(s,"","control message channel"),e.equal(typeof a,"object","control is a JSON object"),e.equal(typeof a.command,"string","control has a command"),!1))}),!0);const i=o.Z.channel({payload:"null"});i.send("one"),i.send("two"),i.send("three")})),r.Z.test("inject message out",(function(e){const t=e.async();e.expect(4);const n=o.Z.transport.inject("bree\nyellow");e.equal(n,!1,"failure returns false");let r=!0;c.addEventListener("recv",(function(n,s,a){if(r){const t=o.Z.transport.inject("bree\nyellow");return e.equal(t,!0,"returned true"),void(r=!1)}s&&(e.equal(s,"bree","right channel"),e.equal(a,"yellow","right payload"),i.close(),t())}));const i=o.Z.channel({})})),r.Z.test("inject message in",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({payload:"null"});n.addEventListener("control",(function(r,i){if("ready"==i.command){const t=JSON.stringify({command:"blah",blah:"marmalade",channel:n.id}),r=o.Z.transport.inject("\n"+t,!1);e.equal(r,!0,"returned true")}else e.equal(i.command,"blah","got right control message"),e.equal(i.blah,"marmalade","got right control data"),n.close(),t()}))})),r.Z.test("transport options",(function(e){const t=e.async();e.expect(3),c.addEventListener("recv",(function(r,i,s){i&&(e.equal(typeof o.Z.transport.options,"object","is an object"),e.deepEqual(o.Z.transport.options,{command:"init",version:1,"channel-seed":"test","csrf-token":"the-csrf-token",user:{user:"scruffy",name:"Scruffy the Janitor"},system:{version:"zero.point.zero",build:"nasty stuff"}},"is correct"),e.equal(o.Z.transport.csrf_token,"the-csrf-token","got csrf token"),n.close(),t())}));const n=o.Z.channel({});n.send("blah")})),r.Z.test("message",(function(e){e.expect(4),e.strictEqual(o.Z.message("terminated"),"Your session has been terminated.","problem code"),e.strictEqual(o.Z.message({problem:"timeout"}),"Connection has timed out.","problem property"),e.strictEqual(o.Z.message({message:"The message",problem:"blah"}),"The message","problem property"),e.strictEqual(o.Z.message(55),"55","invalid input")})),window.location.hash="",r.Z.start(),t()}catch(f){t(f)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,c,u,d=new Set,f=r.exports,p=new Promise(((e,t)=>{u=t,c=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),c=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?c:s()}),(e=>(e?u(p[n]=e):c(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(55)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-dbus-address.js cockpit-284/dist/base1/test-dbus-address.js --- cockpit-283/dist/base1/test-dbus-address.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-dbus-address.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-dbus-address.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&B("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?S(r,t):r}return n}function _(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=_(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function O(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function B(e,t){return O(t)===e}function A(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":B("regexp",e)?"regexp":B("date",e)?"date":B("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                    ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:D.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var c=a[l];c in e&&!j(c,r)&&r.push(c)}r.sort();for(var u=0;u",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),P=[],Z=new R;function U(e,t,n){var o=P.length?P.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:Z,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var c={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:A(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new R(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(c),D.modules.push(c),c}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){D.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+D.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function W(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===O(t)&&(n=t,t=void 0);var r=U(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=D.currentModule;if(D.currentModule=r,"function"===O(n)){P.push(r);try{var c=n.call(r.testEnvironment,a);null!=c&&"function"===O(c.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{P.pop(),D.currentModule=r.parentModule||l}}}var J=!1;function $(e,t,n){var o,r=J&&(o=D.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!P.some((function(e){return o.includes(e.moduleId)})));W(e,t,n,{ignored:r})}$.only=function(){J||(D.modules.length=0,D.queue.length=0,D.currentModule.ignored=!0),J=!0,W.apply(void 0,arguments)},$.skip=function(e,t,n){J||W(e,t,n,{skip:!0})},$.todo=function(e,t,n){J||W(e,t,n,{todo:!0})};var z=(G(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function Y(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===O(e)||""===e?t="You must provide a message to assert.step":"string"!==O(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:D.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||D.current;if(!o)throw new Error("assertion outside test context, in "+G(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(F.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(F.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=S(e),t=S(t),this.pushResult({result:I(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=S(e),t=S(t),this.pushResult({result:!I(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=_(e,t),t=S(t,!1),this.pushResult({result:I(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=_(e,t),t=S(t),this.pushResult({result:!I(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:I(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!I(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||D.current;if("function"===O(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var c=l(X(s,n,o),3);a=c[0],n=c[1],o=c[2]}i.assert.pushResult({result:a,actual:s&&M(s),expected:n,message:o})}else{var u='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:u})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||D.current,s=t&&t.then;if("function"===O(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&M(e),expected:n,message:o}),a()}))}var c='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:c,actual:t})}}]),e}();function V(e,t,n){var o=O(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=O(t);if(t){if("regexp"===r)o=t.test(M(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=M(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=M(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==O(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?c(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=D.queue.shift()(),void ue.push.apply(ue,c(e)),ce>0&&ce--;var e;de()}()}function fe(e){if(ue.length&&!D.blocking){var t=T.now()-e;if(!m||D.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(D.queue.length-ce+1));D.queue.splice(ce+o,0,e)}else D.queue.push(e)},advance:de,taskCount:function(){return ue.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=T.now(),T.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=T.now(),T)){T.mark("qunit_test_end");var t=this.fullName.join(" – ");T.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function me(e){if(this.expected=null,this.assertions=[],this.module=D.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++me.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&ge("Test did not finish synchronously even though assert.timeout( 0 ) was used.",G(2))}},after:function(){!function(){var e=D.pollution;be();var t=C(D.pollution,e);t.length>0&&ge("Introduced global variable(s): "+t.join(", "));var n=C(e,D.pollution);n.length>0&&ge("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(D.current=n,D.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+M(e),Y(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(D.queue.length>0||pe.taskCount()>2))if(D.current=o,D.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),Y(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&D.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:T.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||G();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof me))throw new Error("pushFailure() assertion outside test context, was "+G(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){g(D.timeout),D.timeout=m(D.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;D.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===D.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(D.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Te(n)}}(n.pauses.set(o,r),m)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof D.testTimeout&&(t=D.testTimeout),"number"==typeof t&&t>0&&(D.timeoutHandler=function(e){return function(){D.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),G(2)),Te(n)}},g(D.timeout),D.timeout=m(D.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===O(o)){var r=n.internalStop(),i=function(){r()};if(D.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,Y(e,0)),be(),qe(n)}))}}}},valid:function(){var e=D.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=D.module&&D.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(D.moduleId&&D.moduleId.length>0&&!function e(t){return j(t.moduleId,D.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(D.testId&&D.testId.length>0&&!j(this.testId,D.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var ve=!1;function ye(e){ve||D.currentModule.ignored||new me(e).queue()}function we(e){D.currentModule.ignored||(ve||(D.queue.length=0,ve=!0),new me(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(m?(g(D.timeout),D.timeout=m((function(){e.pauses.size>0||(g(D.timeout),D.timeout=null,D.blocking=!1,pe.advance())}))):(D.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=c(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,c(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Se(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var _e,Ne,Oe,Be,Ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Me=!0;if("undefined"!=typeof process){var Ie=process.env;_e=Ie.FORCE_COLOR,Ne=Ie.NODE_DISABLE_COLORS,Oe=Ie.NO_COLOR,Be=Ie.TERM,Me=process.stdout&&process.stdout.isTTY}var De={enabled:!Ne&&null==Oe&&"dumb"!==Be&&(null!=_e&&"0"!==_e||Me),reset:Fe(0,0),bold:Fe(1,22),dim:Fe(2,22),italic:Fe(3,23),underline:Fe(4,24),inverse:Fe(7,27),hidden:Fe(8,28),strikethrough:Fe(9,29),black:Fe(30,39),red:Fe(31,39),green:Fe(32,39),yellow:Fe(33,39),blue:Fe(34,39),magenta:Fe(35,39),cyan:Fe(36,39),white:Fe(37,39),gray:Fe(90,39),grey:Fe(90,39),bgBlack:Fe(40,49),bgRed:Fe(41,49),bgGreen:Fe(42,49),bgYellow:Fe(43,49),bgBlue:Fe(44,49),bgMagenta:Fe(45,49),bgCyan:Fe(46,49),bgWhite:Fe(47,49)};function Le(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),c=l?l[0].length:0;if(1===c){var u=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+u.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(Ze(e),null,2)}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Ze(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Ze(e[o],t)})),t.pop();break;default:n=e}return n}var Ue=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(De.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+M(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(De.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(De.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(De.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(De.yellow("# skip ".concat(e.testCounts.skipped))),this.log(De.cyan("# todo ".concat(e.testCounts.todo))),this.log(De.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Pe(e.message||"failed")),n+="\n severity: ".concat(Pe(t||"failed")),Re.call(e,"actual")&&(n+="\n actual : ".concat(Pe(e.actual))),Re.call(e,"expected")&&(n+="\n expected: ".concat(Pe(e.expected))),e.stack&&(n+="\n stack: ".concat(Pe(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Pe(M(e))),t+="\n severity: ".concat(Pe("failed")),e&&e.stack&&(t+="\n stack: ".concat(Pe(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Ae,tap:Ue};function Qe(e){return function(t){D.globalHooks[e]||(D.globalHooks[e]=[]),D.globalHooks[e].push(t)}}var We={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function Je(e){D.current?D.current.assert.pushResult({result:!1,message:"global failure: ".concat(M(e)),source:e&&e.stack||G(2)}):(Z.globalFailureCount++,D.stats.bad++,D.stats.all++,ne("error",e))}var $e={};D.currentModule.suiteReport=Z;var ze=!1,Ye=!1;function Ge(){Ye=!0,m?m((function(){Ve()})):Ve()}function Ke(){D.blocking=!1,pe.advance()}function Ve(){if(D.started)Ke();else{D.started=T.now(),""===D.modules[0].name&&0===D.modules[0].tests.length&&D.modules.shift();for(var e=D.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(D.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!D.pageLoaded)return D.autostart=!0,void(b||$e.load());Ge()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function u(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,m=0,g=t.length;if(n&&n.keys)for(var b=n.scoreFn||c,v=n.keys,y=v.length,w=g-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=u(k,T=v[E]))?(d(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var q=b(x);null!==q&&(qp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var T=n.key;for(w=g-1;w>=0;--w)(C=u(k=t[w],T))&&(d(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(w=g-1;w>=0;--w){var C,j;(C=t[w])&&(d(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===f)return i;var S=new Array(f);for(w=f-1;w>=0;--w)S[w]=p.poll();return S.total=f+m,S},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],m=f(),g=n.length-1,b=o&&o.threshold||r&&r.threshold||-9007199254740991,v=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||c,E=o.keys,q=E.length;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var T=n[g],C=new Array(q),j=q-1;j>=0;--j)(N=u(T,_=E[j]))?(d(N)||(N=h.getPrepared(N)),C[j]=y(t,N,p)):C[j]=null;C.obj=T;var S=f(C);null!==S&&(Sm.peek().score&&m.replaceTop(C))))}else if(o&&o.key)for(var _=o.key;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=u(T=n[g],_))&&(d(N)||(N=h.getPrepared(N)),null!==(O=y(t,N,p))&&(O.scorem.peek().score&&m.replaceTop(O)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,O;(N=n[g])&&(d(N)||(N=h.getPrepared(N)),null!==(O=y(t,N,p))&&(O.scorem.peek().score&&m.replaceTop(O)))))}if(0===w)return a(i);for(var B=new Array(w),A=w-1;A>=0;--A)B[A]=m.poll();B.total=w+k,a(B)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,c=0;c999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0,d=0;;){if(n===o[c]){if(s[d++]=c,++l===r)break;n=e[0===u?l:u===l?l+1:u===l-1?l-1:l]}if(++c>=i)for(;;){if(l<=1)return null;if(0===u){if(n===e[--l])continue;u=l}else{if(1===u)return null;if((n=e[1+(l=--u)])===e[l])continue}c=s[(d=l)-1]+1;break}}l=0;var f=0,p=!1,m=0,g=t._nextBeginningIndexes;null===g&&(g=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var b=c=0===s[0]?0:g[s[0]-1];if(c!==i)for(;;)if(c>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;c=b;continue}--l,c=g[a[--m]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[c]){if(a[m++]=c,++l===r){p=!0;break}++c}else c=g[c];if(p)var v=a,y=m;else v=s,y=d;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=v[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0;;){if(n===o[c]){if(s[u++]=c,++l===r)break;n=e[l]}if(++c>=i)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(c=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(c>=i){if(l<=0)break;--l,c=p[a[--f]]}else if(e[l]===o[c]){if(a[f++]=c,++l===r){d=!0;break}++c}else c=p[c];if(d)var m=a,g=f;else m=s,g=u;for(var b=0,v=-1,y=0;y=0;--y)t.indexes[y]=m[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,c=l||a>=97&&a<=122||a>=48&&a<=57,u=l&&!r||!i||!c;r=l,i=c,u&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&b){var e=$e.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=S({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;$e.on("runStart",(function(e){tt.defined=e.testCounts.total})),$e.begin((function(){L()})),$e.on("runEnd",(function(t){var n,o,r,i=q("qunit-banner"),s=q("qunit-tests"),a=q("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,c=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                    ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",R(tt.failedTests)].join("");if(a&&a.disabled){c="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var u=0;u":"Running: ",P(e.name,e.module),R(tt.failedTests)].join(""))})),$e.log((function(e){var t=q("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+$e.dump.parse(e.expected):$e.dump.parse(e.expected),r=$e.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=U(i=$e.diff(n,r)).length!==U(n).length+U(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                    Expected:
                    "+nt(n)+"
                    Result:
                    "+nt(r)+"
                    Diff:
                    "+i+"
                    Message: Diff suppressed as the depth of object is more than current max depth ("+$e.config.maxDepth+").

                    Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                    Message: Diff suppressed as the expected and actual results have an equivalent serialization
                    Source:
                    "+nt(e.source)+"
                    "):!e.result&&e.source&&(s+="
                    Source:
                    "+nt(e.source)+"
                    ");var l=t.getElementsByTagName("ol")[0],c=b.createElement("li");c.className=e.result?"pass":"fail",c.innerHTML=s,l.appendChild(c)}})),$e.testDone((function(o){var r=q("qunit-tests"),i=q("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,c=o.failed,u=o.failed>0?o.todo:!o.todo;u?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,p=c?""+c+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=b.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,d)}else{if(f(d,"click",(function(){x(a,"qunit-collapsed")})),i.className=u?"pass":"fail",o.todo){var m=b.createElement("em");m.className="qunit-todo-label",m.innerHTML="todo",i.className+=" todo",i.insertBefore(m,d)}var g=b.createElement("span");g.className="runtime",g.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(g,a)}if(o.source){var v=b.createElement("p");v.innerHTML="Source: "+nt(o.source),k(v,"qunit-source"),u&&k(v,"qunit-collapsed"),f(d,"click",(function(){x(v,"qunit-collapsed")})),i.appendChild(v)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),$e.on("error",(function(e){var t=F("global failure");if(t){var n=nt(M(e));n=""+n+"",e&&e.stack&&(n+="
                    Source:
                    "+nt(e.stack)+"
                    ");var o=t.getElementsByTagName("ol")[0],r=b.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==b.readyState?f(p,"load",$e.load):$e.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,c=new Array(a>5?a-5:0),u=5;u=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function q(e){return b.getElementById&&b.getElementById(e)}function T(){var e=q("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),$e.config.queue.length=0,!1}function C(e){var t=q("qunit-filter-input");return t.value=d(t.value),_(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=S(r);if("hidepassed"===o.name&&"replaceState"in p.history){$e.urlParams[o.name]=n,e[o.name]=n||!1;var s=q("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var c=0;c-1,m=f.indexOf("skipped")>-1;(h||m)&&t.push(d)}var g,b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(b.s();!(g=b.n()).done;){var v=g.value;s.removeChild(v)}}catch(e){b.e(e)}finally{b.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function S(e){var t="?",n=p.location;for(var r in e=N(N({},$e.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),g(t.getElementsByTagName("input"),"change",j),g(t.getElementsByTagName("select"),"change",j),t}function B(e,t,n){return'
                  1. "}function A(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return c(i.selectedMap.keys()).sort().join(",")!==c(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                     
                    ',e=q("qunit-testresult-controls")),e&&e.appendChild(((t=b.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",T),t))}function L(){var e,t,n,o,i,s=q("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                    "+nt(b.title)+"

                    "+((!(e=$e.config.testId)||e.length<=0?"":"
                    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                    ")+"

                      ")),(t=q("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=q("qunit-banner"))&&(n.className=""),D(),(o=q("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(b.createTextNode("QUnit "+$e.version+"; "+v.userAgent))),(i=q("qunit-testrunner-toolbar"))&&(i.appendChild(O()),i.appendChild(I()),i.appendChild(b.createElement("div")).className="clearfix")}function F(e,t,n){var o=q("qunit-tests");if(o){var r=b.createElement("strong");r.innerHTML=P(e,n);var i=b.createElement("li");if(i.appendChild(r),void 0!==t){var s=b.createElement("a");s.innerHTML="Rerun",s.href=S({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=b.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function R(e){return 0===e.length?"":["
                      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function P(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function Z(e){return[e.completed," / ",e.defined," tests completed.
                      "].join("")}function U(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),$e.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,c,u;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,c=!1,u=!1;s0?o[r-1]:-1,c=u=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(c=this.diffHalfMatch(e,n))?(u=c[0],f=c[1],d=c[2],p=c[3],h=c[4],m=this.DiffMain(u,d,o,r),g=this.DiffMain(f,p,o,r),m.concat([[0,h]],g)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,c,u,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[c,u,d,f,s]:null}return r=this,c=f(n,o,Math.ceil(n.length/4)),u=f(n,o,Math.ceil(n.length/2)),c||u?(d=u?c&&c[4].length>u[4].length?c:u:c,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,c,u,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,c=0,l=0,d="",u="";a=1&&l>=1){for(i.splice(a-c-l,c+l),a=a-c-l,f=(r=this.DiffMain(d,u,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,c=0,d="",u=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,c,u,d,f,p,h,m,g,b,v,y,w,k,x,E,q,T,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,c=new Array(l),u=new Array(l),d=0;do);q++){for(T=-q+h;T<=q-m;T+=2){for(y=a+T,x=(w=T===-q||T!==q&&c[y-1]r)m+=2;else if(x>i)h+=2;else if(p&&(v=a+f-T)>=0&&v=(k=r-u[v]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-q+g;C<=q-b;C+=2){for(v=a+C,E=(k=C===-q||C!==q&&u[v-1]r)b+=2;else if(E>i)g+=2;else if(!p&&(y=a+f-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,c,u;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),c=this.DiffMain(i,a,!1,r),u=this.DiffMain(s,l,!1,r),c.concat(u)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,c,u,d,f,p,h;for(n=!1,o=[],r=0,i=null,s=0,c=0,u=0,a=0,l=0;s0?o[r-1]:-1,c=0,u=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][1]=d.substring(0,d.length-p),e[s+1][1]=f.substring(p),s++):(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-h),e[s+1][0]=t,e[s+1][1]=d.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>D});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return((e=+e)||1/e)<0}function u(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function T(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,c=0;c64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-c==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),u(t[o],e,r)}}})}function S(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function _(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=S();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=c,n.send_control(e[1])):m(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?m(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=c,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=c,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,u);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,u)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?c:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){m=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let u=a+c<=i;if(!u&&r){t=n.substring(a);break}0===c&&(u=!1);for(let e=1;u&&e0&&O(e),r.promise}function O(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const U={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),Z(e,U,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:U[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in U||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),Z(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function W(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function c(e,t,o){n&&(o||u(e,new Array(t-e),{}),n(e,t,o))}function u(e,t,n){if(!t.length)return;let c=l(r,e);const u=e+t.length,d=r.length;let f;for(f=c>0?c-1:c;f=c)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(c,0,p),c--;c<=f;c++){const e=r[c];e&&!e.items.length&&(r.splice(c,1),c--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,u]),f(u,i.items.slice(u-c,d-c),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(m(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(m();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new G(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),M((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){M((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),g=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ue[o]==i&&(ue[o]=null)})),ue[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return m+=1,b(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}m-=1,b(t)}}},close:function(){s&&s.close("cancelled");c&&c.close("cancelled");g&&g.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return v(null,null,e),void o.reject(e)}let c;if("-"==l.tag)c=null;else try{u=N(r,n),c=t.syntax&&t.syntax.parse?t.syntax.parse(u):u}catch(e){return v(null,null,e),void o.reject(e)}var u;v(c,l.tag),o.resolve(c,l.tag)}))}(),a=o.promise,a}let c=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;c&&c.close("abort");const u={...r,payload:"fsreplace1",path:e,tag:o};return c=i.channel(u),c.addEventListener("close",(function(e,t){c=null,t.problem?s.reject(new K(t.problem,t.message)):(v(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){c.send(e)})),c.control({command:"done"}),s.promise}const p=[];let h,m=0,g=null;function b(t){if(m>0){if(g)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};g=i.channel(n),g.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?v(null,r.tag):l())}))}else g&&(g.close(),g=null)}function v(){h=arguments[1]||null,u(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(s,e):0}));function g(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},u(p,s,[h.status,h.headers])))}return c.addEventListener("control",g),c.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)ge("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=m.squash();if(h&&(h.status<200||h.status>299)){let t;const o=be(h.headers,"Content-Type");o&&!c.binary&&0===o.indexOf("text/plain")&&(t=e),ge("http status: ",h.status),n.reject(new me(h.status,h.reason,t),e)}else ge("http done"),n.resolve(e)}c.removeEventListener("control",g),c.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(ge("http input:",e),d(e,(function(e){c.send(e)}))),t||(ge("http done"),c.control({command:"done"})),s},s.close=function(e){return ge("http closing:",e),c.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===be(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const c={payload:"metrics1",interval:e,source:"internal",...t[0]};delete c.archive_source;const u=i.channel(c);r.push(u);let d,f=null,p=null;u.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),u.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},517:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(347),r=n(810),i=e([o,r]);[o,r]=i.then?(await i)():i;const s={address:direct_address,bus:"none",capabilities:["address"]};(0,o.n)(s,null);const a={address:bus_address,bus:"none",capabilities:["address"]};(0,o.n)(a,"com.redhat.Cockpit.DBusTests.Test"),(0,o.m)(a,"com.redhat.Cockpit.DBusTests.Test"),r.Z.start(),t()}catch(e){t(e)}}))},347:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{m:()=>c,n:()=>l});var r=n(99),i=n(810),s=e([i]);function a(e,t){for(const n in t)"[object Object]"===Object.prototype.toString.call(t[n])?(e[n]||(e[n]={}),a(e[n],t[n])):e[n]=t[n]}function l(e,t){i.Z.test("call method",(function(n){const o=n.async();n.expect(3);const i=r.Z.dbus(t,e);n.equal(typeof i.call,"function","is a function"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(e,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("call method with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","NeverReturn",[],{timeout:10}).done((function(e){n.ok(!1,"should not be reached")})).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),i.Z.test("close immediately",(function(n){const o=n.async();n.expect(1);const i=r.Z.dbus(t,e);i.addEventListener("close",(function(e,t){n.equal(t.problem,"test-code","got right code"),o()})),window.setTimeout((function(){i.close("test-code")}),100)})),i.Z.test("call close",(function(n){const o=n.async();n.expect(2);const i=r.Z.dbus(t,e);i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"disconnected","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()})),i.close()})),i.Z.test("call closed",(function(n){const o=n.async();n.expect(2);const i=r.Z.dbus(t,e);i.close("blah-blah"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"blah-blah","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()}))})),i.Z.test("primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","ZWZnAA=="]).done((function(e){n.deepEqual(e,[20,!1,111,1012,10013,100014,1000015,10000016,17/Math.PI,"Word! You said `a string'. Rock'n'roll!","/modified/a/path","assgitasig","Ynl0ZXN0cmluZyH/AA=="],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("integer bounds",(function(n){n.expect(35);const o=r.Z.dbus(t,e);function i(e,t,r){const i=n.async();o.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestVariant",[{t:e,v:t}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs")})).always((function(){r?n.equal(this.state(),"resolved","accepted in bounds number"):n.equal(this.state(),"rejected","rejected out of bounds number"),i()}))}i("y",0,!0),i("y",255,!0),i("y",-1,!1),i("y",256,!1),i("n",-300,!0),i("n",300,!0),i("n",-32769,!1),i("n",32768,!1),i("q",0,!0),i("q",300,!0),i("q",-1,!1),i("q",65536,!1),i("i",-1048575,!0),i("i",1048575,!0),i("i",-2147483649,!1),i("i",2147483648,!1),i("u",0,!0),i("u",1048575,!0),i("u",-1,!1),i("u",4294967296,!1),i("x",-68719476735,!0),i("x",68719476735,!0),i("t",68719476735,!0),i("t",-1,!1)})),i.Z.test("non-primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestNonPrimitiveTypes",[{one:"red",two:"blue"},{first:[42,42],second:[43,43]},[42,"foo","bar"],["one","two"],["/one","/one/two"],["ass","git"],["QUIA","QkMA"]]).done((function(e){n.deepEqual(e,["{'one': 'red', 'two': 'blue'}{'first': (42, 42), 'second': (43, 43)}(42, 'foo', 'bar')array_of_strings: [one, two] array_of_objpaths: [/one, /one/two] array_of_signatures: [signature 'ass', 'git'] array_of_bytestrings: [AB, BC] "],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("variants",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:r.Z.variant("s","foo"),two:r.Z.variant("o","/bar"),three:r.Z.variant("g","assgit"),four:r.Z.variant("y",42),five:r.Z.variant("d",1e3)}]).done((function(e){n.deepEqual(e,["{'one': <'foo'>, 'two': , 'three': , 'four': , 'five': <1000.0>}"],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("bad variants",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:"foo",two:"/bar",three:"assgit",four:42,five:1e3}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected type 'string' in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("get all",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","org.freedesktop.DBus.Properties","GetAll",["com.redhat.Cockpit.DBusTests.Frobber"]).done((function(e){n.deepEqual(e,[{FinallyNormalName:{t:"s",v:"There aint no place like home"},ReadonlyProperty:{t:"s",v:"blah"},aay:{t:"aay",v:[]},ag:{t:"ag",v:[]},ao:{t:"ao",v:[]},as:{t:"as",v:[]},ay:{t:"ay",v:"QUJDYWJjAA=="},b:{t:"b",v:!1},d:{t:"d",v:43},g:{t:"g",v:""},i:{t:"i",v:0},n:{t:"n",v:0},o:{t:"o",v:"/"},q:{t:"q",v:0},s:{t:"s",v:""},t:{t:"t",v:0},u:{t:"u",v:0},x:{t:"x",v:0},y:{t:"y",v:42}}],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("call unimplemented",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnimplementedMethod",[]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Method UnimplementedMethod is not implemented on interface com.redhat.Cockpit.DBusTests.Frobber","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("call bad base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","Yooohooo!~ bad base64"]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid base64 in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("call unknown",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnknownBlahMethod",[1]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Introspection data for method com.redhat.Cockpit.DBusTests.Frobber UnknownBlahMethod not available","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("signals",(function(n){const o=n.async();n.expect(6);let i=!1;const s=r.Z.dbus(t,e);s.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(e,t,o,r){i||(n.equal(e,"/otree/frobber","got right path"),n.equal(t,"com.redhat.Cockpit.DBusTests.Frobber","got right path"),n.equal(o,"TestSignal","signals: got right path"),n.deepEqual(r,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),i=!0)})),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(i,!0,"signal received"),o()}))})),i.Z.test("signal unsubscribe",(function(n){const o=n.async();n.expect(4);let i=!0;const s=r.Z.dbus(t,e);const a=s.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(){i=!0}));s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(i,!0,"signal received")})).then((function(){a.remove(),i=!1,s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","second emission requested"),n.equal(i,!1,"signal not received"),o()}))}))})),i.Z.test("with types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32],{type:"a{ss}uit"}).done((function(e,t){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"round trip"),n.equal(t.type,"a{ss}uit","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("with meta",(function(n){const o=n.async();n.expect(2);const i={"borkety.Bork":{methods:{Echo:{in:["a{ss}","u","i","t"],out:["a{ss}","u","i","t"]}}}},s=r.Z.dbus(t,e);s.addEventListener("meta",(function(e,t){n.deepEqual(t,i,"got meta data")})),s.meta(i),s.call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32]).then((function(e){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"returned round trip")}),(function(e){console.log(e),n.ok(!1,"shouldn't fail")})).always((function(){s.close(),o()}))})),i.Z.test.skipWithPybridge("empty base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[""],{type:"ay"}).done((function(e,t){n.deepEqual(e,[""],"round trip"),n.equal(t.type,"ay","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("invalid/path","borkety.Bork","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'object path is invalid in dbus "call": invalid/path',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad interface name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","!invalid!interface!","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'interface name is invalid in dbus "call": !invalid!interface!',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad method name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","!Invalid!Method!",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'member name is invalid in dbus "call": !Invalid!Method!',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad flags",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","Method",[1],{flags:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "flags" field is invalid in dbus call',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:"!!%%"}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" signature is not valid in dbus call: !!%%',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad type invalid",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" field is invalid in call',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad dict type",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",[{"!!!":"value"}],{type:"a{is}"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected key '!!!' in dict entry","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["not/a/path"],{type:"o"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid object path 'not/a/path'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad signature",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["bad signature"],{type:"g"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid signature 'bad signature'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("flags",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"],{flags:""}).done((function(e,t){n.equal(typeof t.flags,"string","is string"),n.ok(-1!==t.flags.indexOf(">")||-1!==t.flags.indexOf("<"),"has byte order")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("without introspection",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo").done((function(e){n.deepEqual(e,[],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("watch path",(function(n){const o=n.async();n.expect(2);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch("/otree/frobber").done((function(){n.equal(typeof i["/otree/frobber"],"object","has path"),n.deepEqual(i["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),s.removeEventListener("notify",l),o()}))})),i.Z.test("watch object manager",(function(n){const o=n.async();n.expect(1);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),s.removeEventListener("notify",l),o()}))})),i.Z.test("watch change",(n=>{const o=n.async();n.expect(2);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l);const c=(e,t)=>{n.equal(typeof i["/otree/frobber"],"object","has path"),n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),s.removeEventListener("notify",l),s.removeEventListener("notify",c)};s.addEventListener("notify",c),s.watch("/otree/frobber").then((()=>o()))})),i.Z.test("watch barrier",(function(n){const o=n.async();n.expect(2);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch({path_namespace:"/otree"}),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(i["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),s.removeEventListener("notify",l),o()}))})),i.Z.test("watch interfaces",(function(n){const o=n.async();n.expect(3);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","AddAlpha",[]).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":{}}},"correct data"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RemoveAlpha",[]).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":null}},"correct data"),s.removeEventListener("notify",l),o()}))}))}))})),i.Z.test.skipWithPybridge("path loop",(function(n){const o=n.async();n.expect(2);const i="yo"+(new Date).getTime(),s={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(s,t);a.addEventListener("notify",l),a.watch({path_namespace:"/cliques/"+i}).done((function(){a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateClique",[i]).done((function(e){const t={};for(let e=0;e<3;e++)t["/cliques/"+i+"/"+e]={"com.redhat.Cockpit.DBusTests.Clique":{Friend:"/cliques/"+i+"/"+(e+1)%3}};n.deepEqual(s,t,"got all data before method reply")})).always((function(){n.equal(this.state(),"resolved","method called"),a.removeEventListener("notify",l),o()}))}))})),i.Z.test.skipWithPybridge("path signal",(function(n){const o=n.async();n.expect(4);const i="yo"+(new Date).getTime(),s={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(s,t);a.addEventListener("notify",l),a.watch({path:"/hidden/"+i}).done((function(){n.deepEqual(s,{},"no data yet"),a.subscribe({path:"/hidden/"+i},(function(e,t,o){n.equal(typeof s[e],"object","have object"),n.deepEqual(s[e],{"com.redhat.Cockpit.DBusTests.Hidden":{Name:i}},"got data before signal"),a.removeEventListener("notify",l)})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","EmitHidden",[i]).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),i.Z.test("proxy",(function(n){const o=n.async();n.expect(7);const i=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");i.wait((function(){n.strictEqual(i.valid,!0,"proxy: is valid"),n.deepEqual(i.data,{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),n.strictEqual(i.FinallyNormalName,"There aint no place like home","property value"),n.strictEqual(i.ReadonlyProperty,"blah","another property value"),n.equal(typeof i.HelloWorld,"function","has function defined"),i.HelloWorld("From a proxy").done((function(e){n.equal(e,"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),i.Z.test("proxy call",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("HelloWorld",["From a proxy"]).done((function(e){n.equal(e[0],"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))})),i.Z.test("proxy call with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("NeverReturn",[],{timeout:10}).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),i.Z.test("proxy signal",(function(n){const o=n.async();n.expect(4);let i=!1;const s=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber"),a=(e,t,o)=>{n.equal(t,"TestSignal","signals: got right name"),n.deepEqual(o,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),i=!0};s.addEventListener("signal",a),s.call("RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(i,!0,"signal received"),s.removeEventListener("signal",a),o()}))})),i.Z.test("proxy explicit notify",(function(n){const o=n.async();n.expect(1);const i=r.Z.dbus(t,e),s=i.proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");s.wait().done((function(){const e=()=>{n.equal(s.FinallyNormalName,"externally injected"),s.removeEventListener("changed",e),o()};s.addEventListener("changed",e),i.notify({"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"externally injected"}}})}))})),i.Z.test("proxies",(function(n){const o=n.async();n.expect(13);const i=r.Z.dbus(t,e);i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteAllObjects",[]).always((function(){n.equal(this.state(),"resolved","deleted stray objects");const e=i.proxies("com.redhat.Cockpit.DBusTests.Frobber","/otree");e.wait().always((function(){let t,r,s;e.addEventListener("added",(function(e,o){t=o,n.strictEqual(t.valid,!0,"added objects valid")})),e.addEventListener("changed",(function(e,t){r=t})),e.addEventListener("removed",(function(e,t){s=t})),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","create objects done"),n.equal(typeof t,"object","got added object"),n.equal(typeof r,"object","no changed object yet"),n.equal(typeof s,"undefined","no removed object yet"),n.equal(t.path,"/otree/other","added object correct"),n.strictEqual(t,r,"added fires changed"),r=null,i.call(t.path,t.iface,"RequestPropertyMods",[]).always((function(){n.equal(this.state(),"resolved","changed object"),n.strictEqual(r,t,"change fired"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","removed object"),n.strictEqual(s,t,"removed fired"),n.strictEqual(s.valid,!1,"removed is invalid"),i.close(),o()}))}))}))}))}))}))}function c(e,t){i.Z.test("track name",(function(n){const o=n.async();n.expect(4);const i="yo.x"+(new Date).getTime();let s=!1,a=!1;const l=r.Z.dbus(t,e);l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[i]).always((function(){n.equal(this.state(),"resolved","name claimed");const t=r.Z.dbus(i,{bus:e.bus,address:e.address,track:!0});t.addEventListener("close",(function(e,t){n.strictEqual(t.problem,void 0,"no problem"),a=!0,s&&o()})),t.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){n.equal(this.state(),"resolved","called on other name"),l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[i]).always((function(){n.equal(this.state(),"resolved","name released"),s=!0,a&&o()}))}))}))})),i.Z.test("no track name",(function(t){const n=t.async();t.expect(5);const o="yo.y"+(new Date).getTime();let i=!1;const s=r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e);s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name claimed");const a=r.Z.dbus(o,e);a.addEventListener("close",(function(e,t){i=!0})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"resolved","called on other name"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name released"),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"rejected","call after release should fail"),t.equal(i,!1,"is not gone"),n()}))}))}))}))})),i.Z.test.skipWithPybridge("receive readable fd",(function(t){const n=t.async();t.expect(4);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n),i=t.async();o.onmessage=function(e,n){t.equal(n,"Hello, fd"),o.close(),i()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),i.Z.test.skipWithPybridge("receive readable fd and ensure opening more than once fails",(function(t){const n=t.async();t.expect(7);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);t.ok(o);const i=r.Z.channel(n),s=t.async();i.onclose=function(e,n){t.equal(n.channel,i.id),t.equal(n.command,"close"),t.equal(n.problem,"not-found"),s()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),i.Z.test.skipWithPybridge("receive readable fd and ensure writing fails",(function(t){const n=t.async();t.expect(6);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd");const i=t.async();o.onclose=function(e,n){t.equal(n.channel,o.id),t.equal(n.command,"close"),t.equal(n.problem,"protocol-error"),i()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),i.Z.test.skipWithPybridge("receive writable fd",(function(t){const n=t.async();t.expect(3);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["writable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd"),o.close()})).always((function(){t.equal(this.state(),"resolved","fd received and not writable"),n()}))}))}i=(s.then?(await s)():s)[0],o()}catch(u){o(u)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,c,u,d=new Set,f=r.exports,p=new Promise(((e,t)=>{u=t,c=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),c=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?c:s()}),(e=>(e?u(p[n]=e):c(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(517)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&B("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?S(r,t):r}return n}function _(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=_(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function O(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function B(e,t){return O(t)===e}function A(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":B("regexp",e)?"regexp":B("date",e)?"date":B("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:D.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var c=a[l];c in e&&!j(c,r)&&r.push(c)}r.sort();for(var u=0;u",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),P=[],Z=new R;function U(e,t,n){var o=P.length?P.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:Z,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var c={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:A(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new R(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(c),D.modules.push(c),c}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){D.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+D.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function W(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===O(t)&&(n=t,t=void 0);var r=U(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=D.currentModule;if(D.currentModule=r,"function"===O(n)){P.push(r);try{var c=n.call(r.testEnvironment,a);null!=c&&"function"===O(c.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{P.pop(),D.currentModule=r.parentModule||l}}}var J=!1;function z(e,t,n){var o,r=J&&(o=D.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!P.some((function(e){return o.includes(e.moduleId)})));W(e,t,n,{ignored:r})}z.only=function(){J||(D.modules.length=0,D.queue.length=0,D.currentModule.ignored=!0),J=!0,W.apply(void 0,arguments)},z.skip=function(e,t,n){J||W(e,t,n,{skip:!0})},z.todo=function(e,t,n){J||W(e,t,n,{todo:!0})};var $=(G(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function Y(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),$){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===O(e)||""===e?t="You must provide a message to assert.step":"string"!==O(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:D.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||D.current;if(!o)throw new Error("assertion outside test context, in "+G(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(F.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(F.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=S(e),t=S(t),this.pushResult({result:I(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=S(e),t=S(t),this.pushResult({result:!I(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=_(e,t),t=S(t,!1),this.pushResult({result:I(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=_(e,t),t=S(t),this.pushResult({result:!I(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:I(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!I(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||D.current;if("function"===O(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var c=l(X(s,n,o),3);a=c[0],n=c[1],o=c[2]}i.assert.pushResult({result:a,actual:s&&M(s),expected:n,message:o})}else{var u='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:u})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||D.current,s=t&&t.then;if("function"===O(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&M(e),expected:n,message:o}),a()}))}var c='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:c,actual:t})}}]),e}();function V(e,t,n){var o=O(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=O(t);if(t){if("regexp"===r)o=t.test(M(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=M(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=M(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==O(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?c(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=D.queue.shift()(),void ue.push.apply(ue,c(e)),ce>0&&ce--;var e;de()}()}function fe(e){if(ue.length&&!D.blocking){var t=T.now()-e;if(!m||D.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(D.queue.length-ce+1));D.queue.splice(ce+o,0,e)}else D.queue.push(e)},advance:de,taskCount:function(){return ue.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=T.now(),T.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=T.now(),T)){T.mark("qunit_test_end");var t=this.fullName.join(" – ");T.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function me(e){if(this.expected=null,this.assertions=[],this.module=D.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++me.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&ge("Test did not finish synchronously even though assert.timeout( 0 ) was used.",G(2))}},after:function(){!function(){var e=D.pollution;be();var t=C(D.pollution,e);t.length>0&&ge("Introduced global variable(s): "+t.join(", "));var n=C(e,D.pollution);n.length>0&&ge("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(D.current=n,D.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+M(e),Y(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(D.queue.length>0||he.taskCount()>2))if(D.current=o,D.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),Y(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&D.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:T.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||G();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof me))throw new Error("pushFailure() assertion outside test context, was "+G(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){g(D.timeout),D.timeout=m(D.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;D.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===D.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(D.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Te(n)}}(n.pauses.set(o,r),m)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof D.testTimeout&&(t=D.testTimeout),"number"==typeof t&&t>0&&(D.timeoutHandler=function(e){return function(){D.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),G(2)),Te(n)}},g(D.timeout),D.timeout=m(D.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===O(o)){var r=n.internalStop(),i=function(){r()};if(D.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,Y(e,0)),be(),qe(n)}))}}}},valid:function(){var e=D.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=D.module&&D.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(D.moduleId&&D.moduleId.length>0&&!function e(t){return j(t.moduleId,D.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(D.testId&&D.testId.length>0&&!j(this.testId,D.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var ve=!1;function ye(e){ve||D.currentModule.ignored||new me(e).queue()}function we(e){D.currentModule.ignored||(ve||(D.queue.length=0,ve=!0),new me(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(m?(g(D.timeout),D.timeout=m((function(){e.pauses.size>0||(g(D.timeout),D.timeout=null,D.blocking=!1,he.advance())}))):(D.blocking=!1,he.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=c(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,c(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Se(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var _e,Ne,Oe,Be,Ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Me=!0;if("undefined"!=typeof process){var Ie=process.env;_e=Ie.FORCE_COLOR,Ne=Ie.NODE_DISABLE_COLORS,Oe=Ie.NO_COLOR,Be=Ie.TERM,Me=process.stdout&&process.stdout.isTTY}var De={enabled:!Ne&&null==Oe&&"dumb"!==Be&&(null!=_e&&"0"!==_e||Me),reset:Fe(0,0),bold:Fe(1,22),dim:Fe(2,22),italic:Fe(3,23),underline:Fe(4,24),inverse:Fe(7,27),hidden:Fe(8,28),strikethrough:Fe(9,29),black:Fe(30,39),red:Fe(31,39),green:Fe(32,39),yellow:Fe(33,39),blue:Fe(34,39),magenta:Fe(35,39),cyan:Fe(36,39),white:Fe(37,39),gray:Fe(90,39),grey:Fe(90,39),bgBlack:Fe(40,49),bgRed:Fe(41,49),bgGreen:Fe(42,49),bgYellow:Fe(43,49),bgBlue:Fe(44,49),bgMagenta:Fe(45,49),bgCyan:Fe(46,49),bgWhite:Fe(47,49)};function Le(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),c=l?l[0].length:0;if(1===c){var u=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+u.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(Ze(e),null,2)}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Ze(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Ze(e[o],t)})),t.pop();break;default:n=e}return n}var Ue=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(De.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+M(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(De.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(De.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(De.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(De.yellow("# skip ".concat(e.testCounts.skipped))),this.log(De.cyan("# todo ".concat(e.testCounts.todo))),this.log(De.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Pe(e.message||"failed")),n+="\n severity: ".concat(Pe(t||"failed")),Re.call(e,"actual")&&(n+="\n actual : ".concat(Pe(e.actual))),Re.call(e,"expected")&&(n+="\n expected: ".concat(Pe(e.expected))),e.stack&&(n+="\n stack: ".concat(Pe(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Pe(M(e))),t+="\n severity: ".concat(Pe("failed")),e&&e.stack&&(t+="\n stack: ".concat(Pe(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Ae,tap:Ue};function Qe(e){return function(t){D.globalHooks[e]||(D.globalHooks[e]=[]),D.globalHooks[e].push(t)}}var We={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function Je(e){D.current?D.current.assert.pushResult({result:!1,message:"global failure: ".concat(M(e)),source:e&&e.stack||G(2)}):(Z.globalFailureCount++,D.stats.bad++,D.stats.all++,ne("error",e))}var ze={};D.currentModule.suiteReport=Z;var $e=!1,Ye=!1;function Ge(){Ye=!0,m?m((function(){Ve()})):Ve()}function Ke(){D.blocking=!1,he.advance()}function Ve(){if(D.started)Ke();else{D.started=T.now(),""===D.modules[0].name&&0===D.modules[0].tests.length&&D.modules.shift();for(var e=D.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(D.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!D.pageLoaded)return D.autostart=!0,void(b||ze.load());Ge()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function u(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=f();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=p.getPreparedSearch(e)),t?(d(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,f=0,m=0,g=t.length;if(n&&n.keys)for(var b=n.scoreFn||c,v=n.keys,y=v.length,w=g-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=u(k,T=v[E]))?(d(C)||(C=p.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var q=b(x);null!==q&&(qh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var T=n.key;for(w=g-1;w>=0;--w)(C=u(k=t[w],T))&&(d(C)||(C=p.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(w=g-1;w>=0;--w){var C,j;(C=t[w])&&(d(C)||(C=p.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===f)return i;var S=new Array(f);for(w=f-1;w>=0;--w)S[w]=h.poll();return S.total=f+m,S},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],m=f(),g=n.length-1,b=o&&o.threshold||r&&r.threshold||-9007199254740991,v=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||c,E=o.keys,q=E.length;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var T=n[g],C=new Array(q),j=q-1;j>=0;--j)(N=u(T,_=E[j]))?(d(N)||(N=p.getPrepared(N)),C[j]=y(t,N,h)):C[j]=null;C.obj=T;var S=f(C);null!==S&&(Sm.peek().score&&m.replaceTop(C))))}else if(o&&o.key)for(var _=o.key;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=u(T=n[g],_))&&(d(N)||(N=p.getPrepared(N)),null!==(O=y(t,N,h))&&(O.scorem.peek().score&&m.replaceTop(O)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,O;(N=n[g])&&(d(N)||(N=p.getPrepared(N)),null!==(O=y(t,N,h))&&(O.scorem.peek().score&&m.replaceTop(O)))))}if(0===w)return a(i);for(var B=new Array(w),A=w-1;A>=0;--A)B[A]=m.poll();B.total=w+k,a(B)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,c=0;c999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0,d=0;;){if(n===o[c]){if(s[d++]=c,++l===r)break;n=e[0===u?l:u===l?l+1:u===l-1?l-1:l]}if(++c>=i)for(;;){if(l<=1)return null;if(0===u){if(n===e[--l])continue;u=l}else{if(1===u)return null;if((n=e[1+(l=--u)])===e[l])continue}c=s[(d=l)-1]+1;break}}l=0;var f=0,h=!1,m=0,g=t._nextBeginningIndexes;null===g&&(g=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var b=c=0===s[0]?0:g[s[0]-1];if(c!==i)for(;;)if(c>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;c=b;continue}--l,c=g[a[--m]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[c]){if(a[m++]=c,++l===r){h=!0;break}++c}else c=g[c];if(h)var v=a,y=m;else v=s,y=d;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=v[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,c=0,u=0;;){if(n===o[c]){if(s[u++]=c,++l===r)break;n=e[l]}if(++c>=i)return null}l=0;var d=!1,f=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(c=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(c>=i){if(l<=0)break;--l,c=h[a[--f]]}else if(e[l]===o[c]){if(a[f++]=c,++l===r){d=!0;break}++c}else c=h[c];if(d)var m=a,g=f;else m=s,g=u;for(var b=0,v=-1,y=0;y=0;--y)t.indexes[y]=m[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,c=l||a>=97&&a<=122||a>=48&&a<=57,u=l&&!r||!i||!c;r=l,i=c,u&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&b){var e=ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=S({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),ze.begin((function(){L()})),ze.on("runEnd",(function(t){var n,o,r,i=q("qunit-banner"),s=q("qunit-tests"),a=q("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,c=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",R(tt.failedTests)].join("");if(a&&a.disabled){c="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var u=0;u":"Running: ",P(e.name,e.module),R(tt.failedTests)].join(""))})),ze.log((function(e){var t=q("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+ze.dump.parse(e.expected):ze.dump.parse(e.expected),r=ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=U(i=ze.diff(n,r)).length!==U(n).length+U(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                      Expected:
                      "+nt(n)+"
                      Result:
                      "+nt(r)+"
                      Diff:
                      "+i+"
                      Message: Diff suppressed as the depth of object is more than current max depth ("+ze.config.maxDepth+").

                      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                      Message: Diff suppressed as the expected and actual results have an equivalent serialization
                      Source:
                      "+nt(e.source)+"
                      "):!e.result&&e.source&&(s+="
                      Source:
                      "+nt(e.source)+"
                      ");var l=t.getElementsByTagName("ol")[0],c=b.createElement("li");c.className=e.result?"pass":"fail",c.innerHTML=s,l.appendChild(c)}})),ze.testDone((function(o){var r=q("qunit-tests"),i=q("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,c=o.failed,u=o.failed>0?o.todo:!o.todo;u?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,h=c?""+c+", "+l+", ":"";if(d.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=b.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,d)}else{if(f(d,"click",(function(){x(a,"qunit-collapsed")})),i.className=u?"pass":"fail",o.todo){var m=b.createElement("em");m.className="qunit-todo-label",m.innerHTML="todo",i.className+=" todo",i.insertBefore(m,d)}var g=b.createElement("span");g.className="runtime",g.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(g,a)}if(o.source){var v=b.createElement("p");v.innerHTML="Source: "+nt(o.source),k(v,"qunit-source"),u&&k(v,"qunit-collapsed"),f(d,"click",(function(){x(v,"qunit-collapsed")})),i.appendChild(v)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),ze.on("error",(function(e){var t=F("global failure");if(t){var n=nt(M(e));n=""+n+"",e&&e.stack&&(n+="
                      Source:
                      "+nt(e.stack)+"
                      ");var o=t.getElementsByTagName("ol")[0],r=b.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==b.readyState?f(h,"load",ze.load):ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,c=new Array(a>5?a-5:0),u=5;u=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function q(e){return b.getElementById&&b.getElementById(e)}function T(){var e=q("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),ze.config.queue.length=0,!1}function C(e){var t=q("qunit-filter-input");return t.value=d(t.value),_(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=S(r);if("hidepassed"===o.name&&"replaceState"in h.history){ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=q("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var c=0;c-1,m=f.indexOf("skipped")>-1;(p||m)&&t.push(d)}var g,b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(b.s();!(g=b.n()).done;){var v=g.value;s.removeChild(v)}}catch(e){b.e(e)}finally{b.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function S(e){var t="?",n=h.location;for(var r in e=N(N({},ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),g(t.getElementsByTagName("input"),"change",j),g(t.getElementsByTagName("select"),"change",j),t}function B(e,t,n){return'
                    1. "}function A(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return c(i.selectedMap.keys()).sort().join(",")!==c(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                       
                      ',e=q("qunit-testresult-controls")),e&&e.appendChild(((t=b.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",T),t))}function L(){var e,t,n,o,i,s=q("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                      "+nt(b.title)+"

                      "+((!(e=ze.config.testId)||e.length<=0?"":"
                      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                      ")+"

                        ")),(t=q("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=q("qunit-banner"))&&(n.className=""),D(),(o=q("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(b.createTextNode("QUnit "+ze.version+"; "+v.userAgent))),(i=q("qunit-testrunner-toolbar"))&&(i.appendChild(O()),i.appendChild(I()),i.appendChild(b.createElement("div")).className="clearfix")}function F(e,t,n){var o=q("qunit-tests");if(o){var r=b.createElement("strong");r.innerHTML=P(e,n);var i=b.createElement("li");if(i.appendChild(r),void 0!==t){var s=b.createElement("a");s.innerHTML="Rerun",s.href=S({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=b.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function R(e){return 0===e.length?"":["
                        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function P(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function Z(e){return[e.completed," / ",e.defined," tests completed.
                        "].join("")}function U(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,c,u;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,c=!1,u=!1;s0?o[r-1]:-1,c=u=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(c=this.diffHalfMatch(e,n))?(u=c[0],f=c[1],d=c[2],h=c[3],p=c[4],m=this.DiffMain(u,d,o,r),g=this.DiffMain(f,h,o,r),m.concat([[0,p]],g)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,c,u,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[c,u,d,f,s]:null}return r=this,c=f(n,o,Math.ceil(n.length/4)),u=f(n,o,Math.ceil(n.length/2)),c||u?(d=u?c&&c[4].length>u[4].length?c:u:c,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,c,u,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,c=0,l=0,d="",u="";a=1&&l>=1){for(i.splice(a-c-l,c+l),a=a-c-l,f=(r=this.DiffMain(d,u,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,c=0,d="",u=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,c,u,d,f,h,p,m,g,b,v,y,w,k,x,E,q,T,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,c=new Array(l),u=new Array(l),d=0;do);q++){for(T=-q+p;T<=q-m;T+=2){for(y=a+T,x=(w=T===-q||T!==q&&c[y-1]r)m+=2;else if(x>i)p+=2;else if(h&&(v=a+f-T)>=0&&v=(k=r-u[v]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-q+g;C<=q-b;C+=2){for(v=a+C,E=(k=C===-q||C!==q&&u[v-1]r)b+=2;else if(E>i)g+=2;else if(!h&&(y=a+f-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,c,u;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),c=this.DiffMain(i,a,!1,r),u=this.DiffMain(s,l,!1,r),c.concat(u)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,c,u,d,f,h,p;for(n=!1,o=[],r=0,i=null,s=0,c=0,u=0,a=0,l=0;s0?o[r-1]:-1,c=0,u=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(f,d))?(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][1]=d.substring(0,d.length-h),e[s+1][1]=f.substring(h),s++):(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-p),e[s+1][0]=t,e[s+1][1]=d.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>D});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return((e=+e)||1/e)<0}function u(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function T(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,c=0;c64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-c==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),u(t[o],e,r)}}})}function S(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function _(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=S();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=c,n.send_control(e[1])):m(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?m(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=c,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=c,n?n.send_control(e):d.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,u);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,u)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?c:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){m=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let u=a+c<=i;if(!u&&r){t=n.substring(a);break}0===c&&(u=!1);for(let e=1;u&&e0&&O(e),r.promise}function O(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const U={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),Z(e,U,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:U[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in U||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),Z(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function W(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function c(e,t,o){n&&(o||u(e,new Array(t-e),{}),n(e,t,o))}function u(e,t,n){if(!t.length)return;let c=l(r,e);const u=e+t.length,d=r.length;let f;for(f=c>0?c-1:c;f=c)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(c,0,h),c--;c<=f;c++){const e=r[c];e&&!e.items.length&&(r.splice(c,1),c--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,u]),f(u,i.items.slice(u-c,d-c),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(m(),h=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(m();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new G(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),M((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){M((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),g=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ue[o]==i&&(ue[o]=null)})),ue[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return m+=1,b(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}m-=1,b(t)}}},close:function(){s&&s.close("cancelled");c&&c.close("cancelled");g&&g.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return v(null,null,e),void o.reject(e)}let c;if("-"==l.tag)c=null;else try{u=N(r,n),c=t.syntax&&t.syntax.parse?t.syntax.parse(u):u}catch(e){return v(null,null,e),void o.reject(e)}var u;v(c,l.tag),o.resolve(c,l.tag)}))}(),a=o.promise,a}let c=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;c&&c.close("abort");const u={...r,payload:"fsreplace1",path:e,tag:o};return c=i.channel(u),c.addEventListener("close",(function(e,t){c=null,t.problem?s.reject(new K(t.problem,t.message)):(v(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){c.send(e)})),c.control({command:"done"}),s.promise}const h=[];let p,m=0,g=null;function b(t){if(m>0){if(g)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};g=i.channel(n),g.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?v(null,r.tag):l())}))}else g&&(g.close(),g=null)}function v(){p=arguments[1]||null,u(h,o,arguments)}return o};let de,fe={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&f?f.call(s,e):0}));function g(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},u(h,s,[p.status,p.headers])))}return c.addEventListener("control",g),c.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)ge("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=m.squash();if(p&&(p.status<200||p.status>299)){let t;const o=be(p.headers,"Content-Type");o&&!c.binary&&0===o.indexOf("text/plain")&&(t=e),ge("http status: ",p.status),n.reject(new me(p.status,p.reason,t),e)}else ge("http done"),n.resolve(e)}c.removeEventListener("control",g),c.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(ge("http input:",e),d(e,(function(e){c.send(e)}))),t||(ge("http done"),c.control({command:"done"})),s},s.close=function(e){return ge("http closing:",e),c.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===be(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const c={payload:"metrics1",interval:e,source:"internal",...t[0]};delete c.archive_source;const u=i.channel(c);r.push(u);let d,f=null,h=null;u.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),u.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},517:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(347),r=n(810),i=e([o,r]);[o,r]=i.then?(await i)():i;const s={address:direct_address,bus:"none",capabilities:["address"]};(0,o.n)(s,null);const a={address:bus_address,bus:"none",capabilities:["address"]};(0,o.n)(a,"com.redhat.Cockpit.DBusTests.Test"),(0,o.m)(a,"com.redhat.Cockpit.DBusTests.Test"),r.Z.start(),t()}catch(e){t(e)}}))},347:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{m:()=>c,n:()=>l});var r=n(99),i=n(810),s=e([i]);function a(e,t){for(const n in t)"[object Object]"===Object.prototype.toString.call(t[n])?(e[n]||(e[n]={}),a(e[n],t[n])):e[n]=t[n]}function l(e,t){i.Z.test("call method",(function(n){const o=n.async();n.expect(3);const i=r.Z.dbus(t,e);n.equal(typeof i.call,"function","is a function"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(e,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("call method with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","NeverReturn",[],{timeout:10}).done((function(e){n.ok(!1,"should not be reached")})).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),i.Z.test("close immediately",(function(n){const o=n.async();n.expect(1);const i=r.Z.dbus(t,e);i.addEventListener("close",(function(e,t){n.equal(t.problem,"test-code","got right code"),o()})),window.setTimeout((function(){i.close("test-code")}),100)})),i.Z.test("call close",(function(n){const o=n.async();n.expect(2);const i=r.Z.dbus(t,e);i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"disconnected","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()})),i.close()})),i.Z.test("call closed",(function(n){const o=n.async();n.expect(2);const i=r.Z.dbus(t,e);i.close("blah-blah"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"blah-blah","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()}))})),i.Z.test("primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","ZWZnAA=="]).done((function(e){n.deepEqual(e,[20,!1,111,1012,10013,100014,1000015,10000016,17/Math.PI,"Word! You said `a string'. Rock'n'roll!","/modified/a/path","assgitasig","Ynl0ZXN0cmluZyH/AA=="],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("integer bounds",(function(n){n.expect(35);const o=r.Z.dbus(t,e);function i(e,t,r){const i=n.async();o.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestVariant",[{t:e,v:t}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs")})).always((function(){r?n.equal(this.state(),"resolved","accepted in bounds number"):n.equal(this.state(),"rejected","rejected out of bounds number"),i()}))}i("y",0,!0),i("y",255,!0),i("y",-1,!1),i("y",256,!1),i("n",-300,!0),i("n",300,!0),i("n",-32769,!1),i("n",32768,!1),i("q",0,!0),i("q",300,!0),i("q",-1,!1),i("q",65536,!1),i("i",-1048575,!0),i("i",1048575,!0),i("i",-2147483649,!1),i("i",2147483648,!1),i("u",0,!0),i("u",1048575,!0),i("u",-1,!1),i("u",4294967296,!1),i("x",-68719476735,!0),i("x",68719476735,!0),i("t",68719476735,!0),i("t",-1,!1)})),i.Z.test("non-primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestNonPrimitiveTypes",[{one:"red",two:"blue"},{first:[42,42],second:[43,43]},[42,"foo","bar"],["one","two"],["/one","/one/two"],["ass","git"],["QUIA","QkMA"]]).done((function(e){n.deepEqual(e,["{'one': 'red', 'two': 'blue'}{'first': (42, 42), 'second': (43, 43)}(42, 'foo', 'bar')array_of_strings: [one, two] array_of_objpaths: [/one, /one/two] array_of_signatures: [signature 'ass', 'git'] array_of_bytestrings: [AB, BC] "],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("variants",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:r.Z.variant("s","foo"),two:r.Z.variant("o","/bar"),three:r.Z.variant("g","assgit"),four:r.Z.variant("y",42),five:r.Z.variant("d",1e3)}]).done((function(e){n.deepEqual(e,["{'one': <'foo'>, 'two': , 'three': , 'four': , 'five': <1000.0>}"],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("bad variants",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:"foo",two:"/bar",three:"assgit",four:42,five:1e3}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected type 'string' in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("get all",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","org.freedesktop.DBus.Properties","GetAll",["com.redhat.Cockpit.DBusTests.Frobber"]).done((function(e){n.deepEqual(e,[{FinallyNormalName:{t:"s",v:"There aint no place like home"},ReadonlyProperty:{t:"s",v:"blah"},aay:{t:"aay",v:[]},ag:{t:"ag",v:[]},ao:{t:"ao",v:[]},as:{t:"as",v:[]},ay:{t:"ay",v:"QUJDYWJjAA=="},b:{t:"b",v:!1},d:{t:"d",v:43},g:{t:"g",v:""},i:{t:"i",v:0},n:{t:"n",v:0},o:{t:"o",v:"/"},q:{t:"q",v:0},s:{t:"s",v:""},t:{t:"t",v:0},u:{t:"u",v:0},x:{t:"x",v:0},y:{t:"y",v:42}}],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("call unimplemented",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnimplementedMethod",[]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Method UnimplementedMethod is not implemented on interface com.redhat.Cockpit.DBusTests.Frobber","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("call bad base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","Yooohooo!~ bad base64"]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid base64 in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("call unknown",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnknownBlahMethod",[1]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Introspection data for method com.redhat.Cockpit.DBusTests.Frobber UnknownBlahMethod not available","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("signals",(function(n){const o=n.async();n.expect(6);let i=!1;const s=r.Z.dbus(t,e);s.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(e,t,o,r){i||(n.equal(e,"/otree/frobber","got right path"),n.equal(t,"com.redhat.Cockpit.DBusTests.Frobber","got right path"),n.equal(o,"TestSignal","signals: got right path"),n.deepEqual(r,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),i=!0)})),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(i,!0,"signal received"),o()}))})),i.Z.test("signal unsubscribe",(function(n){const o=n.async();n.expect(4);let i=!0;const s=r.Z.dbus(t,e);const a=s.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(){i=!0}));s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(i,!0,"signal received")})).then((function(){a.remove(),i=!1,s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","second emission requested"),n.equal(i,!1,"signal not received"),o()}))}))})),i.Z.test("with types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32],{type:"a{ss}uit"}).done((function(e,t){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"round trip"),n.equal(t.type,"a{ss}uit","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("with meta",(function(n){const o=n.async();n.expect(2);const i={"borkety.Bork":{methods:{Echo:{in:["a{ss}","u","i","t"],out:["a{ss}","u","i","t"]}}}},s=r.Z.dbus(t,e);s.addEventListener("meta",(function(e,t){n.deepEqual(t,i,"got meta data")})),s.meta(i),s.call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32]).then((function(e){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"returned round trip")}),(function(e){console.log(e),n.ok(!1,"shouldn't fail")})).always((function(){s.close(),o()}))})),i.Z.test.skipWithPybridge("empty base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[""],{type:"ay"}).done((function(e,t){n.deepEqual(e,[""],"round trip"),n.equal(t.type,"ay","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("invalid/path","borkety.Bork","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'object path is invalid in dbus "call": invalid/path',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad interface name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","!invalid!interface!","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'interface name is invalid in dbus "call": !invalid!interface!',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad method name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","!Invalid!Method!",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'member name is invalid in dbus "call": !Invalid!Method!',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad flags",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","Method",[1],{flags:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "flags" field is invalid in dbus call',"error message")})).always((function(){o()}))})),i.Z.test.skipWithPybridge("bad types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:"!!%%"}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" signature is not valid in dbus call: !!%%',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad type invalid",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" field is invalid in call',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad dict type",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",[{"!!!":"value"}],{type:"a{is}"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected key '!!!' in dict entry","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["not/a/path"],{type:"o"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid object path 'not/a/path'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test.skipWithPybridge("bad signature",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["bad signature"],{type:"g"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid signature 'bad signature'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),i.Z.test("flags",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"],{flags:""}).done((function(e,t){n.equal(typeof t.flags,"string","is string"),n.ok(-1!==t.flags.indexOf(">")||-1!==t.flags.indexOf("<"),"has byte order")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("without introspection",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo").done((function(e){n.deepEqual(e,[],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),i.Z.test("watch path",(function(n){const o=n.async();n.expect(2);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch("/otree/frobber").done((function(){n.equal(typeof i["/otree/frobber"],"object","has path"),n.deepEqual(i["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),s.removeEventListener("notify",l),o()}))})),i.Z.test("watch object manager",(function(n){const o=n.async();n.expect(1);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),s.removeEventListener("notify",l),o()}))})),i.Z.test("watch change",(n=>{const o=n.async();n.expect(2);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l);const c=(e,t)=>{n.equal(typeof i["/otree/frobber"],"object","has path"),n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),s.removeEventListener("notify",l),s.removeEventListener("notify",c)};s.addEventListener("notify",c),s.watch("/otree/frobber").then((()=>o()))})),i.Z.test("watch barrier",(function(n){const o=n.async();n.expect(2);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch({path_namespace:"/otree"}),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(i["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),s.removeEventListener("notify",l),o()}))})),i.Z.test("watch interfaces",(function(n){const o=n.async();n.expect(3);const i={},s=r.Z.dbus(t,e),l=(e,t)=>a(i,t);s.addEventListener("notify",l),s.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","AddAlpha",[]).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":{}}},"correct data"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RemoveAlpha",[]).done((function(){n.deepEqual(i,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":null}},"correct data"),s.removeEventListener("notify",l),o()}))}))}))})),i.Z.test.skipWithPybridge("path loop",(function(n){const o=n.async();n.expect(2);const i="yo"+(new Date).getTime(),s={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(s,t);a.addEventListener("notify",l),a.watch({path_namespace:"/cliques/"+i}).done((function(){a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateClique",[i]).done((function(e){const t={};for(let e=0;e<3;e++)t["/cliques/"+i+"/"+e]={"com.redhat.Cockpit.DBusTests.Clique":{Friend:"/cliques/"+i+"/"+(e+1)%3}};n.deepEqual(s,t,"got all data before method reply")})).always((function(){n.equal(this.state(),"resolved","method called"),a.removeEventListener("notify",l),o()}))}))})),i.Z.test.skipWithPybridge("path signal",(function(n){const o=n.async();n.expect(4);const i="yo"+(new Date).getTime(),s={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(s,t);a.addEventListener("notify",l),a.watch({path:"/hidden/"+i}).done((function(){n.deepEqual(s,{},"no data yet"),a.subscribe({path:"/hidden/"+i},(function(e,t,o){n.equal(typeof s[e],"object","have object"),n.deepEqual(s[e],{"com.redhat.Cockpit.DBusTests.Hidden":{Name:i}},"got data before signal"),a.removeEventListener("notify",l)})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","EmitHidden",[i]).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),i.Z.test("proxy",(function(n){const o=n.async();n.expect(7);const i=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");i.wait((function(){n.strictEqual(i.valid,!0,"proxy: is valid"),n.deepEqual(i.data,{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),n.strictEqual(i.FinallyNormalName,"There aint no place like home","property value"),n.strictEqual(i.ReadonlyProperty,"blah","another property value"),n.equal(typeof i.HelloWorld,"function","has function defined"),i.HelloWorld("From a proxy").done((function(e){n.equal(e,"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),i.Z.test("proxy call",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("HelloWorld",["From a proxy"]).done((function(e){n.equal(e[0],"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))})),i.Z.test("proxy call with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("NeverReturn",[],{timeout:10}).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),i.Z.test("proxy signal",(function(n){const o=n.async();n.expect(4);let i=!1;const s=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber"),a=(e,t,o)=>{n.equal(t,"TestSignal","signals: got right name"),n.deepEqual(o,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),i=!0};s.addEventListener("signal",a),s.call("RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(i,!0,"signal received"),s.removeEventListener("signal",a),o()}))})),i.Z.test("proxy explicit notify",(function(n){const o=n.async();n.expect(1);const i=r.Z.dbus(t,e),s=i.proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");s.wait().done((function(){const e=()=>{n.equal(s.FinallyNormalName,"externally injected"),s.removeEventListener("changed",e),o()};s.addEventListener("changed",e),i.notify({"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"externally injected"}}})}))})),i.Z.test("proxies",(function(n){const o=n.async();n.expect(13);const i=r.Z.dbus(t,e);i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteAllObjects",[]).always((function(){n.equal(this.state(),"resolved","deleted stray objects");const e=i.proxies("com.redhat.Cockpit.DBusTests.Frobber","/otree");e.wait().always((function(){let t,r,s;e.addEventListener("added",(function(e,o){t=o,n.strictEqual(t.valid,!0,"added objects valid")})),e.addEventListener("changed",(function(e,t){r=t})),e.addEventListener("removed",(function(e,t){s=t})),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","create objects done"),n.equal(typeof t,"object","got added object"),n.equal(typeof r,"object","no changed object yet"),n.equal(typeof s,"undefined","no removed object yet"),n.equal(t.path,"/otree/other","added object correct"),n.strictEqual(t,r,"added fires changed"),r=null,i.call(t.path,t.iface,"RequestPropertyMods",[]).always((function(){n.equal(this.state(),"resolved","changed object"),n.strictEqual(r,t,"change fired"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","removed object"),n.strictEqual(s,t,"removed fired"),n.strictEqual(s.valid,!1,"removed is invalid"),i.close(),o()}))}))}))}))}))}))}function c(e,t){i.Z.test("track name",(function(n){const o=n.async();n.expect(4);const i="yo.x"+(new Date).getTime();let s=!1,a=!1;const l=r.Z.dbus(t,e);l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[i]).always((function(){n.equal(this.state(),"resolved","name claimed");const t=r.Z.dbus(i,{bus:e.bus,address:e.address,track:!0});t.addEventListener("close",(function(e,t){n.strictEqual(t.problem,void 0,"no problem"),a=!0,s&&o()})),t.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){n.equal(this.state(),"resolved","called on other name"),l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[i]).always((function(){n.equal(this.state(),"resolved","name released"),s=!0,a&&o()}))}))}))})),i.Z.test("no track name",(function(t){const n=t.async();t.expect(5);const o="yo.y"+(new Date).getTime();let i=!1;const s=r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e);s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name claimed");const a=r.Z.dbus(o,e);a.addEventListener("close",(function(e,t){i=!0})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"resolved","called on other name"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name released"),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"rejected","call after release should fail"),t.equal(i,!1,"is not gone"),n()}))}))}))}))})),i.Z.test.skipWithPybridge("receive readable fd",(function(t){const n=t.async();t.expect(4);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n),i=t.async();o.onmessage=function(e,n){t.equal(n,"Hello, fd"),o.close(),i()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),i.Z.test.skipWithPybridge("receive readable fd and ensure opening more than once fails",(function(t){const n=t.async();t.expect(7);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);t.ok(o);const i=r.Z.channel(n),s=t.async();i.onclose=function(e,n){t.equal(n.channel,i.id),t.equal(n.command,"close"),t.equal(n.problem,"not-found"),s()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),i.Z.test.skipWithPybridge("receive readable fd and ensure writing fails",(function(t){const n=t.async();t.expect(6);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd");const i=t.async();o.onclose=function(e,n){t.equal(n.channel,o.id),t.equal(n.command,"close"),t.equal(n.problem,"protocol-error"),i()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),i.Z.test.skipWithPybridge("receive writable fd",(function(t){const n=t.async();t.expect(3);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["writable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd"),o.close()})).always((function(){t.equal(this.state(),"resolved","fd received and not writable"),n()}))}))}i=(s.then?(await s)():s)[0],o()}catch(u){o(u)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,c,u,d=new Set,f=r.exports,h=new Promise(((e,t)=>{u=t,c=e}));h[t]=f,h[e]=e=>(a&&e(a),d.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),c=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?c:s()}),(e=>(e?u(h[n]=e):c(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(517)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-dbus-framed.js cockpit-284/dist/base1/test-dbus-framed.js --- cockpit-283/dist/base1/test-dbus-framed.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-dbus-framed.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-dbus-framed.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                        ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new U;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new U(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Be(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Ue.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Ue.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||Y(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ke();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=h.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}else for(y=m-1;y>=0;--y){var j,T;(j=t[y])&&(f(j)||(j=h.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(y=d-1;y>=0;--y)_[y]=p.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(N=c(C,O=E[T]))?(f(N)||(N=h.getPrepared(N)),j[T]=w(t,N,p)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){B()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                        ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",U(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),U(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                        Expected:
                        "+nt(n)+"
                        Result:
                        "+nt(r)+"
                        Diff:
                        "+i+"
                        Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                        Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                        Message: Diff suppressed as the expected and actual results have an equivalent serialization
                        Source:
                        "+nt(e.source)+"
                        "):!e.result&&e.source&&(s+="
                        Source:
                        "+nt(e.source)+"
                        ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                        Source:
                        "+nt(e.stack)+"
                        ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function I(e,t,n){return'
                      1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                         
                        ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function B(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                        "+nt(v.title)+"

                        "+((!(e=Ge.config.testId)||e.length<=0?"":"
                        Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                        ")+"

                          ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function U(e){return 0===e.length?"":["
                          ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                          "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},466:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=e.async();e.expect(4),window.assert=e,document.getElementById("qunit-header").innerHTML="Cockpit Parent Frame",window.name="cockpit1";let n,r=!1;o.Z.transport.filter(((e,t,i)=>{if(r){const t=e.indexOf("\n");if(t>-1){JSON.parse(e.substring(t)).reply&&n.postMessage(e.substring(0,t)+'\n{"unknown":"unknown"}',o.Z.transport.origin)}n.postMessage(e,o.Z.transport.origin)}})),window.addEventListener("message",(e=>{const i=e.data;if(0===i.length)t();else if(-1!==i.indexOf('"init"'))r=!0,n.postMessage('\n{ "command": "init", "version": 1, "a": "b", "host" : "localhost" }',o.Z.transport.origin);else{o.Z.transport.inject(i)||console.error("inject failed")}}),!1);o.Z.channel({payload:"resource2"}).addEventListener("close",(()=>{e.equal(o.Z.transport.host,"localhost","parent cockpit.transport.host");const t=document.createElement("iframe");t.setAttribute("name","cockpit1:blah"),t.setAttribute("src",window.location.href+"?sub"),document.body.appendChild(t),n=window.frames["cockpit1:blah"]}))}function a(){const e=window.parent.assert,t=o.Z.dbus("com.redhat.Cockpit.DBusTests.Test",{bus:"session"}),n=t.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).then((n=>{e.equal(n[0],"Word! You said `Browser-side JS'. I'm Skeleton, btw!","reply"),t.close()})).always((()=>{e.equal(n.state(),"resolved","finished successfully")}));t.addEventListener("close",((t,n)=>{e.notOk(n.problem,"close cleanly"),o.Z.transport.close()}))}r=(i.then?(await i)():i)[0],window.parent===window?(r.Z.test("framed",s),r.Z.start()):a(),t()}catch(l){t(l)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(466)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                          ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new P;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function G(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}G.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,J.apply(void 0,arguments)},G.skip=function(e,t,n){$||J(e,t,n,{skip:!0})},G.todo=function(e,t,n){$||J(e,t,n,{todo:!0})};var Z=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Be(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var Je={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||Y(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ke();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}else for(y=m-1;y>=0;--y){var j,T;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(y=d-1;y>=0;--y)_[y]=h.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(N=c(C,O=E[T]))?(f(N)||(N=p.getPrepared(N)),j[T]=w(t,N,h)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){B()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                          ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),P(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                          Expected:
                          "+nt(n)+"
                          Result:
                          "+nt(r)+"
                          Diff:
                          "+i+"
                          Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                          Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                          Message: Diff suppressed as the expected and actual results have an equivalent serialization
                          Source:
                          "+nt(e.source)+"
                          "):!e.result&&e.source&&(s+="
                          Source:
                          "+nt(e.source)+"
                          ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                          Source:
                          "+nt(e.stack)+"
                          ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function _(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function I(e,t,n){return'
                        1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                           
                          ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function B(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                          "+nt(v.title)+"

                          "+((!(e=Ge.config.testId)||e.length<=0?"":"
                          Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                          ")+"

                            ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                            ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                            "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},466:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=e.async();e.expect(4),window.assert=e,document.getElementById("qunit-header").innerHTML="Cockpit Parent Frame",window.name="cockpit1";let n,r=!1;o.Z.transport.filter(((e,t,i)=>{if(r){const t=e.indexOf("\n");if(t>-1){JSON.parse(e.substring(t)).reply&&n.postMessage(e.substring(0,t)+'\n{"unknown":"unknown"}',o.Z.transport.origin)}n.postMessage(e,o.Z.transport.origin)}})),window.addEventListener("message",(e=>{const i=e.data;if(0===i.length)t();else if(-1!==i.indexOf('"init"'))r=!0,n.postMessage('\n{ "command": "init", "version": 1, "a": "b", "host" : "localhost" }',o.Z.transport.origin);else{o.Z.transport.inject(i)||console.error("inject failed")}}),!1);o.Z.channel({payload:"resource2"}).addEventListener("close",(()=>{e.equal(o.Z.transport.host,"localhost","parent cockpit.transport.host");const t=document.createElement("iframe");t.setAttribute("name","cockpit1:blah"),t.setAttribute("src",window.location.href+"?sub"),document.body.appendChild(t),n=window.frames["cockpit1:blah"]}))}function a(){const e=window.parent.assert,t=o.Z.dbus("com.redhat.Cockpit.DBusTests.Test",{bus:"session"}),n=t.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).then((n=>{e.equal(n[0],"Word! You said `Browser-side JS'. I'm Skeleton, btw!","reply"),t.close()})).always((()=>{e.equal(n.state(),"resolved","finished successfully")}));t.addEventListener("close",((t,n)=>{e.notOk(n.problem,"close cleanly"),o.Z.transport.close()}))}r=(i.then?(await i)():i)[0],window.parent===window?(r.Z.test("framed",s),r.Z.start()):a(),t()}catch(l){t(l)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(466)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-dbus.js cockpit-284/dist/base1/test-dbus.js --- cockpit-283/dist/base1/test-dbus.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-dbus.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-dbus.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(s,i){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?j(r,t):r}return n}function B(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=B(e[o],t[o]));return n}function _(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function D(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return D(t)===e}function O(e,t){for(var n=e+""+t,o=0,r=0;ri.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var s=/^function (\w+)/,i={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var s=this.parsers[t],i=r(s);if("function"===i){n.push(e);var a=s.call(this,e,n);return n.pop(),a}return"string"===i?s:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                            ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:A.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(s.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",i.parse(e,"functionArgs"),"){"].join(""),i.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(i.maxDepth&&i.depth>i.maxDepth)return"[object Object]";i.up();var r=[];for(var s in e)r.push(s);var a=["message","name"];for(var l in a){var c=a[l];c in e&&!S(c,r)&&r.push(c)}r.sort();for(var u=0;u",o=e.nodeName.toLowerCase(),r=t+o,s=e.attributes;if(s)for(var a=0,l=s.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),P=[],R=new L;function U(e,t,n){var o=P.length?P.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,s=o?o.suiteReport:R,i=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&_(l,o.testEnvironment),_(l,t);var c={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:O(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new L(e,s),stats:null,skip:i,todo:!i&&a,ignored:n.ignored||!1};return o&&o.childModules.push(c),A.modules.push(c),c}function W(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function H(e,t){return function(n){A.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+A.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function Q(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===D(t)&&(n=t,t=void 0);var r=U(e,t,o),s=r.testEnvironment,i=r.hooks;W(i,s,"before"),W(i,s,"beforeEach"),W(i,s,"afterEach"),W(i,s,"after");var a={before:H(r,"before"),beforeEach:H(r,"beforeEach"),afterEach:H(r,"afterEach"),after:H(r,"after")},l=A.currentModule;if(A.currentModule=r,"function"===D(n)){P.push(r);try{var c=n.call(r.testEnvironment,a);null!=c&&"function"===D(c.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{P.pop(),A.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=A.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!P.some((function(e){return o.includes(e.moduleId)})));Q(e,t,n,{ignored:r})}G.only=function(){J||(A.modules.length=0,A.queue.length=0,A.currentModule.ignored=!0),J=!0,Q.apply(void 0,arguments)},G.skip=function(e,t,n){J||Q(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||Q(e,t,n,{todo:!0})};var $=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function z(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),$){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===D(e)||""===e?t="You must provide a message to assert.step":"string"!==D(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,s){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:A.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:s})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||A.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(F.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(F.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:Z(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:!Z(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=B(e,t),t=j(t,!1),this.pushResult({result:Z(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=B(e,t),t=j(t),this.pushResult({result:!Z(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:Z(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!Z(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var s=this instanceof e&&this.test||A.current;if("function"===D(t)){var i,a=!1;s.ignoreGlobalErrors=!0;try{t.call(s.testEnvironment)}catch(e){i=e}if(s.ignoreGlobalErrors=!1,i){var c=l(X(i,n,o),3);a=c[0],n=c[1],o=c[2]}s.assert.pushResult({result:a,actual:i&&I(i),expected:n,message:o})}else{var u='The value provided to `assert.throws` in "'+s.testName+'" was not a function.';s.assert.pushResult({result:!1,actual:t,message:u})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var s=this instanceof e&&this.test||A.current,i=t&&t.then;if("function"===D(i)){var a=this.async();return i.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+s.testName+'" did not reject.';s.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],s.assert.pushResult({result:t,actual:e&&I(e),expected:n,message:o}),a()}))}var c='The value provided to `assert.rejects` in "'+s.testName+'" was not a promise.';s.assert.pushResult({result:!1,message:c,actual:t})}}]),e}();function V(e,t,n){var o=D(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=D(t);if(t){if("regexp"===r)o=t.test(I(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=I(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=I(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==D(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?c(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=A.queue.shift()(),void ue.push.apply(ue,c(e)),ce>0&&ce--;var e;de()}()}function fe(e){if(ue.length&&!A.blocking){var t=T.now()-e;if(!m||A.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(A.queue.length-ce+1));A.queue.splice(ce+o,0,e)}else A.queue.push(e)},advance:de,taskCount:function(){return ue.length}},he=function(){function e(t,n,o){s(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=T.now(),T.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=T.now(),T)){T.mark("qunit_test_end");var t=this.fullName.join(" – ");T.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return _(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function me(e){if(this.expected=null,this.assertions=[],this.module=A.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,_(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++me.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&ge("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=A.pollution;be();var t=C(A.pollution,e);t.length>0&&ge("Introduced global variable(s): "+t.join(", "));var n=C(e,A.pollution);n.length>0&&ge("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(A.current=n,A.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+I(e),z(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(A.queue.length>0||pe.taskCount()>2))if(A.current=o,A.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),z(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&A.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:T.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof me))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){g(A.timeout),A.timeout=m(A.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;A.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function s(){if(!r.cancelled){if(void 0===A.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(A.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Te(n)}}(n.pauses.set(o,r),m)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof A.testTimeout&&(t=A.testTimeout),"number"==typeof t&&t>0&&(A.timeoutHandler=function(e){return function(){A.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Te(n)}},g(A.timeout),A.timeout=m(A.timeoutHandler(t),t)));return s},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===D(o)){var r=n.internalStop(),s=function(){r()};if(A.notrycatch)o.call(e,s);else{o.call(e,s,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,z(e,0)),be(),qe(n)}))}}}},valid:function(){var e=A.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=A.module&&A.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(A.moduleId&&A.moduleId.length>0&&!function e(t){return S(t.moduleId,A.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(A.testId&&A.testId.length>0&&!S(this.testId,A.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var ve=!1;function ye(e){ve||A.currentModule.ignored||new me(e).queue()}function we(e){A.currentModule.ignored||(ve||(A.queue.length=0,ve=!0),new me(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(m?(g(A.timeout),A.timeout=m((function(){e.pauses.size>0||(g(A.timeout),A.timeout=null,A.blocking=!1,pe.advance())}))):(A.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=c(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,c(o.childModules))}return t}function Se(e){return e.testsRun+e.testsIgnored===Ce(e).length}function je(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}_(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Be,_e,De,Ne,Oe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ie=!0;if("undefined"!=typeof process){var Ze=process.env;Be=Ze.FORCE_COLOR,_e=Ze.NODE_DISABLE_COLORS,De=Ze.NO_COLOR,Ne=Ze.TERM,Ie=process.stdout&&process.stdout.isTTY}var Ae={enabled:!_e&&null==De&&"dumb"!==Ne&&(null!=Be&&"0"!==Be||Ie),reset:Fe(0,0),bold:Fe(1,22),dim:Fe(2,22),italic:Fe(3,23),underline:Fe(4,24),inverse:Fe(7,27),hidden:Fe(8,28),strikethrough:Fe(9,29),black:Fe(30,39),red:Fe(31,39),green:Fe(32,39),yellow:Fe(33,39),blue:Fe(34,39),magenta:Fe(35,39),cyan:Fe(36,39),white:Fe(37,39),gray:Fe(90,39),grey:Fe(90,39),bgBlack:Fe(40,49),bgRed:Fe(41,49),bgGreen:Fe(42,49),bgYellow:Fe(43,49),bgBlue:Fe(44,49),bgMagenta:Fe(45,49),bgCyan:Fe(46,49),bgWhite:Fe(47,49)};function Me(e,t){for(var n,o=0,r="",s="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,s=/^[\d._-]+$/,i=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||s.test(e)||i.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),c=l?l[0].length:0;if(1===c){var u=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+u.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(Re(e),null,2)}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Re(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Re(e[o],t)})),t.pop();break;default:n=e}return n}var Ue=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Ae.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+I(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Ae.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Ae.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Ae.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Ae.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Ae.cyan("# todo ".concat(e.testCounts.todo))),this.log(Ae.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Pe(e.message||"failed")),n+="\n severity: ".concat(Pe(t||"failed")),Le.call(e,"actual")&&(n+="\n actual : ".concat(Pe(e.actual))),Le.call(e,"expected")&&(n+="\n expected: ".concat(Pe(e.expected))),e.stack&&(n+="\n stack: ".concat(Pe(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Pe(I(e))),t+="\n severity: ".concat(Pe("failed")),e&&e.stack&&(t+="\n stack: ".concat(Pe(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),We={console:Oe,tap:Ue};function He(e){return function(t){A.globalHooks[e]||(A.globalHooks[e]=[]),A.globalHooks[e].push(t)}}var Qe={beforeEach:He("beforeEach"),afterEach:He("afterEach")};function Je(e){A.current?A.current.assert.pushResult({result:!1,message:"global failure: ".concat(I(e)),source:e&&e.stack||Y(2)}):(R.globalFailureCount++,A.stats.bad++,A.stats.all++,ne("error",e))}var Ge={};A.currentModule.suiteReport=R;var $e=!1,ze=!1;function Ye(){ze=!0,m?m((function(){Ve()})):Ve()}function Ke(){A.blocking=!1,pe.advance()}function Ve(){if(A.started)Ke();else{A.started=T.now(),""===A.modules[0].name&&0===A.modules[0].tests.length&&A.modules.shift();for(var e=A.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(A.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!A.pageLoaded)return A.autostart=!0,void(b||Ge.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function u(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,s=-1;e&&++s>1]=e[n],r=1+(n<<1)}for(var i=n-1>>1;n>0&&o.score>1)e[n]=e[i];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return s;var o=(e=h.prepareSearch(e))[0],i=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,m=0,g=t.length;if(n&&n.keys)for(var b=n.scoreFn||c,v=n.keys,y=v.length,w=g-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=u(k,T=v[E]))?(d(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var q=b(x);null!==q&&(qp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var T=n.key;for(w=g-1;w>=0;--w)(C=u(k=t[w],T))&&(d(C)||(C=h.getPrepared(C)),null!==(S=l(e,C,o))&&(S.scorep.peek().score&&p.replaceTop(S)))))}else for(w=g-1;w>=0;--w){var C,S;(C=t[w])&&(d(C)||(C=h.getPrepared(C)),null!==(S=l(e,C,o))&&(S.scorep.peek().score&&p.replaceTop(S)))))}if(0===f)return s;var j=new Array(f);for(w=f-1;w>=0;--w)j[w]=p.poll();return j.total=f+m,j},goAsync:function(t,n,o){var i=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(s);var p=(t=h.prepareSearch(t))[0],m=f(),g=n.length-1,b=o&&o.threshold||r&&r.threshold||-9007199254740991,v=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(i)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||c,E=o.keys,q=E.length;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var T=n[g],C=new Array(q),S=q-1;S>=0;--S)(_=u(T,B=E[S]))?(d(_)||(_=h.getPrepared(_)),C[S]=y(t,_,p)):C[S]=null;C.obj=T;var j=f(C);null!==j&&(jm.peek().score&&m.replaceTop(C))))}else if(o&&o.key)for(var B=o.key;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(_=u(T=n[g],B))&&(d(_)||(_=h.getPrepared(_)),null!==(D=y(t,_,p))&&(D.scorem.peek().score&&m.replaceTop(D)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var _,D;(_=n[g])&&(d(_)||(_=h.getPrepared(_)),null!==(D=y(t,_,p))&&(D.scorem.peek().score&&m.replaceTop(D)))))}if(0===w)return a(s);for(var N=new Array(w),O=w-1;O>=0;--O)N[O]=m.poll();N.total=w+k,a(N)}e?setImmediate(x):x()}));return a.cancel=function(){i=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,s=!1,i=e.target,a=i.length,l=e.indexes,c=0;c999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,s=o.length,l=0,c=0,u=0,d=0;;){if(n===o[c]){if(i[d++]=c,++l===r)break;n=e[0===u?l:u===l?l+1:u===l-1?l-1:l]}if(++c>=s)for(;;){if(l<=1)return null;if(0===u){if(n===e[--l])continue;u=l}else{if(1===u)return null;if((n=e[1+(l=--u)])===e[l])continue}c=i[(d=l)-1]+1;break}}l=0;var f=0,p=!1,m=0,g=t._nextBeginningIndexes;null===g&&(g=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var b=c=0===i[0]?0:g[i[0]-1];if(c!==s)for(;;)if(c>=s){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;c=b;continue}--l,c=g[a[--m]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[c]){if(a[m++]=c,++l===r){p=!0;break}++c}else c=g[c];if(p)var v=a,y=m;else v=i,y=d;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=v[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,s=o.length,l=0,c=0,u=0;;){if(n===o[c]){if(i[u++]=c,++l===r)break;n=e[l]}if(++c>=s)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(c=0===i[0]?0:p[i[0]-1])!==s)for(;;)if(c>=s){if(l<=0)break;--l,c=p[a[--f]]}else if(e[l]===o[c]){if(a[f++]=c,++l===r){d=!0;break}++c}else c=p[c];if(d)var m=a,g=f;else m=i,g=u;for(var b=0,v=-1,y=0;y=0;--y)t.indexes[y]=m[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,c=l||a>=97&&a<=122||a>=48&&a<=57,u=l&&!r||!s||!c;r=l,s=c,u&&(n[o++]=i)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],s=0,i=0;ii?o[i]=r:(r=n[++s],o[i]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&b){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=j({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),s=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){M()})),Ge.on("runEnd",(function(t){var n,o,r,s=q("qunit-banner"),i=q("qunit-tests"),a=q("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,c=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                            ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",L(tt.failedTests)].join("");if(a&&a.disabled){c="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var u=0;u":"Running: ",P(e.name,e.module),L(tt.failedTests)].join(""))})),Ge.log((function(e){var t=q("qunit-test-output-"+e.testId);if(t){var n,r,s,i=nt(e.message)||(e.result?"okay":"failed");i=""+i+"",i+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),i+="",r!==n?(i+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,s=((s=e.actual-e.expected)>0?"+":"")+s):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=U(s=Ge.diff(n,r)).length!==U(n).length+U(r).length),a&&(i+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?i+="":i+="",e.source&&(i+=""),i+="
                            Expected:
                            "+nt(n)+"
                            Result:
                            "+nt(r)+"
                            Diff:
                            "+s+"
                            Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                            Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                            Message: Diff suppressed as the expected and actual results have an equivalent serialization
                            Source:
                            "+nt(e.source)+"
                            "):!e.result&&e.source&&(i+="
                            Source:
                            "+nt(e.source)+"
                            ");var l=t.getElementsByTagName("ol")[0],c=b.createElement("li");c.className=e.result?"pass":"fail",c.innerHTML=i,l.appendChild(c)}})),Ge.testDone((function(o){var r=q("qunit-tests"),s=q("qunit-test-output-"+o.testId);if(r&&s){var i;E(s,"running"),i=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=s.getElementsByTagName("ol")[0],l=o.passed,c=o.failed,u=o.failed>0?o.todo:!o.todo;u?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=s.firstChild,p=c?""+c+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){s.className="skipped";var h=b.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",s.insertBefore(h,d)}else{if(f(d,"click",(function(){x(a,"qunit-collapsed")})),s.className=u?"pass":"fail",o.todo){var m=b.createElement("em");m.className="qunit-todo-label",m.innerHTML="todo",s.className+=" todo",s.insertBefore(m,d)}var g=b.createElement("span");g.className="runtime",g.innerHTML=Math.round(o.runtime)+" ms",s.insertBefore(g,a)}if(o.source){var v=b.createElement("p");v.innerHTML="Source: "+nt(o.source),k(v,"qunit-source"),u&&k(v,"qunit-collapsed"),f(d,"click",(function(){x(v,"qunit-collapsed")})),s.appendChild(v)}e.hidepassed&&("passed"===i||o.skipped)&&(t.push(s),r.removeChild(s))}})),Ge.on("error",(function(e){var t=F("global failure");if(t){var n=nt(I(e));n=""+n+"",e&&e.stack&&(n+="
                            Source:
                            "+nt(e.stack)+"
                            ");var o=t.getElementsByTagName("ol")[0],r=b.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var i,a=(i=p.phantom)&&i.version&&i.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==b.readyState?f(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,s){var i=!1;if(l){for(var a=arguments.length,c=new Array(a>5?a-5:0),u=5;u=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function q(e){return b.getElementById&&b.getElementById(e)}function T(){var e=q("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function C(e){var t=q("qunit-filter-input");return t.value=d(t.value),B(),e&&e.preventDefault&&e.preventDefault(),!1}function S(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var s=j(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var i=q("qunit-tests");if(i){var a=i.children.length,l=i.children;if(o.checked){for(var c=0;c-1,m=f.indexOf("skipped")>-1;(h||m)&&t.push(d)}var g,b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw s}}}}(t);try{for(b.s();!(g=b.n()).done;){var v=g.value;i.removeChild(v)}}catch(e){b.e(e)}finally{b.f()}}else for(var y;null!=(y=t.pop());)i.appendChild(y)}p.history.replaceState(null,"",s)}else p.location=s}function j(e){var t="?",n=p.location;for(var r in e=_(_({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var s=[].concat(e[r]),i=0;i"+i.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),g(t.getElementsByTagName("input"),"change",S),g(t.getElementsByTagName("select"),"change",S),t}function N(e,t,n){return'
                          1. "}function O(){var t=null;s={options:[],selectedMap:new w,isDirty:function(){return c(s.selectedMap.keys()).sort().join(",")!==c(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                             
                            ',e=q("qunit-testresult-controls")),e&&e.appendChild(((t=b.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",T),t))}function M(){var e,t,n,o,s,i=q("qunit");i&&(i.setAttribute("role","main"),i.innerHTML="

                            "+nt(b.title)+"

                            "+((!(e=Ge.config.testId)||e.length<=0?"":"
                            Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                            ")+"

                              ")),(t=q("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=q("qunit-banner"))&&(n.className=""),A(),(o=q("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(b.createTextNode("QUnit "+Ge.version+"; "+v.userAgent))),(s=q("qunit-testrunner-toolbar"))&&(s.appendChild(D()),s.appendChild(Z()),s.appendChild(b.createElement("div")).className="clearfix")}function F(e,t,n){var o=q("qunit-tests");if(o){var r=b.createElement("strong");r.innerHTML=P(e,n);var s=b.createElement("li");if(s.appendChild(r),void 0!==t){var i=b.createElement("a");i.innerHTML="Rerun",i.href=j({testId:t}),s.id="qunit-test-output-"+t,s.appendChild(i)}var a=b.createElement("ol");return a.className="qunit-assert-list",s.appendChild(a),o.appendChild(s),s}}function L(e){return 0===e.length?"":["
                              ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function P(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function R(e){return[e.completed," / ",e.defined," tests completed.
                              "].join("")}function U(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,s,i,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,s=this.diffCommonPrefix(e,t),i=e.substring(0,s),e=e.substring(s),t=t.substring(s),s=this.diffCommonSuffix(e,t),a=e.substring(e.length-s),e=e.substring(0,e.length-s),t=t.substring(0,t.length-s),l=this.diffCompute(e,t,r,o),i&&l.unshift([0,i]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,s,i,a,l,c,u;for(n=!1,o=[],r=0,s=null,i=0,a=!1,l=!1,c=!1,u=!1;i0?o[r-1]:-1,c=u=!1),n=!0)),i++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(s)+"";break;case 0:n[o]=""+nt(s)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,s;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),s=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=i.indexOf(a))?(s=[[1,i.substring(0,l)],[0,a],[1,i.substring(l+a.length)]],e.length>n.length&&(s[0][0]=s[2][0]=t),s):1===a.length?[[t,e],[1,n]]:(c=this.diffHalfMatch(e,n))?(u=c[0],f=c[1],d=c[2],p=c[3],h=c[4],m=this.DiffMain(u,d,o,r),g=this.DiffMain(f,p,o,r),m.concat([[0,h]],g)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,s,i,a,l,c,u,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[c,u,d,f,i]:null}return r=this,c=f(n,o,Math.ceil(n.length/4)),u=f(n,o,Math.ceil(n.length/2)),c||u?(d=u?c&&c[4].length>u[4].length?c:u:c,e.length>t.length?(s=d[0],l=d[1],a=d[2],i=d[3]):(a=d[0],i=d[1],s=d[2],l=d[3]),[s,l,a,i,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,s,i,a,l,c,u,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,i=r.lineArray,s=this.DiffMain(e,n,!1,o),this.diffCharsToLines(s,i),this.diffCleanupSemantic(s),s.push([0,""]),a=0,c=0,l=0,d="",u="";a=1&&l>=1){for(s.splice(a-c-l,c+l),a=a-c-l,f=(r=this.DiffMain(d,u,!1,o)).length-1;f>=0;f--)s.splice(a,0,r[f]);a+=r.length}l=0,c=0,d="",u=""}a++}return s.pop(),s},e.prototype.diffBisect=function(e,n,o){var r,s,i,a,l,c,u,d,f,p,h,m,g,b,v,y,w,k,x,E,q,T,C;for(r=e.length,s=n.length,a=i=Math.ceil((r+s)/2),l=2*i,c=new Array(l),u=new Array(l),d=0;do);q++){for(T=-q+h;T<=q-m;T+=2){for(y=a+T,x=(w=T===-q||T!==q&&c[y-1]r)m+=2;else if(x>s)h+=2;else if(p&&(v=a+f-T)>=0&&v=(k=r-u[v]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-q+g;C<=q-b;C+=2){for(v=a+C,E=(k=C===-q||C!==q&&u[v-1]r)b+=2;else if(E>s)g+=2;else if(!p&&(y=a+f-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var s,i,a,l,c,u;return s=e.substring(0,n),a=t.substring(0,o),i=e.substring(n),l=t.substring(o),c=this.DiffMain(s,a,!1,r),u=this.DiffMain(i,l,!1,r),c.concat(u)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,s,i,a,l,c,u,d,f,p,h;for(n=!1,o=[],r=0,s=null,i=0,c=0,u=0,a=0,l=0;i0?o[r-1]:-1,c=0,u=0,a=0,l=0,s=null,n=!0)),i++;for(n&&this.diffCleanupMerge(e),i=1;i=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(i,0,[0,f.substring(0,p)]),e[i-1][1]=d.substring(0,d.length-p),e[i+1][1]=f.substring(p),i++):(h>=d.length/2||h>=f.length/2)&&(e.splice(i,0,[0,d.substring(0,h)]),e[i-1][0]=1,e[i-1][1]=f.substring(0,f.length-h),e[i+1][0]=t,e[i+1][1]=d.substring(h),i++),i++),i++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,s,i,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(s,i))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=s.substring(0,a):(e.splice(0,0,[0,s.substring(0,a)]),n++),s=s.substring(a),i=i.substring(a)),0!==(a=this.diffCommonSuffix(s,i))&&(e[n][1]=s.substring(s.length-a)+e[n][1],s=s.substring(0,s.length-a),i=i.substring(0,i.length-a))),0===o?e.splice(n-r,o+r,[1,s]):0===r?e.splice(n-o,o+r,[t,i]):e.splice(n-o-r,o+r,[t,i],[1,s]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,i="",s=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>A});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const s={};if(S(s,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function i(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return((e=+e)||1/e)<0}function u(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-s!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function T(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,s=new(t||Array)(r);for(let t,o,a=0,l=0,c=0;c64&&i<91?i-65:i>96&&i<123?i-71:i>47&&i<58?i+4:43===i?62:47===i?63:0)<<18-6*o,3===o||n-c==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var i;return s}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function S(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;i(e["on"+o])&&e["on"+o].apply(e,r),u(t[o],e,r)}}})}function j(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function B(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let s=j();return r&&(s=r+"/"+s),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+s+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+s+"/"+e:(C("Cockpit must be used over http or https"),null)}function _(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=c,n.send_control(e[1])):m(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?m(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=c,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){i||(i=s.defer(),r?i.reject(r):o?i.resolve(o):(t.addEventListener("ready",(function(e,t){i.resolve(t)})),t.addEventListener("close",(function(e,t){i.reject(t)}))));const n=i.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=c,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=_(n,u);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return _(n,u)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?c:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){m=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let u=a+c<=s;if(!u&&r){t=n.substring(a);break}0===c&&(u=!1);for(let e=1;u&&e0&&D(e),r.promise}function D(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const U={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};s.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),R(e,U,t,n)},s.get_byte_units=function(e,t){function n(e){return{name:U[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in U||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const W={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};s.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),R(e,W,t,n)};const H={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function Q(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return s.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function c(e,t,o){n&&(o||u(e,new Array(t-e),{}),n(e,t,o))}function u(e,t,n){if(!t.length)return;let c=l(r,e);const u=e+t.length,d=r.length;let f;for(f=c>0?c-1:c;f=c)break}const p={beg:e,items:t,mapping:n};for(i||(i=p),a&&(a.next=p),a=p,s+=t.length,r.splice(c,0,p),c--;c<=f;c++){const e=r[c];e&&!e.items.length&&(r.splice(c,1),c--)}for(;i&&s>o.limit;)s-=i.items.length,i.items=[],i.mapping=null,i=i.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),s=r.length;let i=e;const a=[];for(let n=o>0?o-1:o;ni&&a.push([i,u]),f(u,s.items.slice(u-c,d-c),s.mapping),i=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=s.length;for(let r=0;r2e9||(m(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(m();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||s.message(e),this.toString=function(){return this.message}}s.grid=function(e,t,n){return new Y(e,t,n)},s.logout=function(e,t){s.sessionStorage.clear(!0),s.localStorage.removeItem("login-data",!0),s.localStorage.clear(!1),!1!==e&&(h=!0),I((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},s.drop_privileges=function(){I((function(e){e.send_control({command:"logout",disconnect:!1})}))},s.info={},S(s.info,{}),g=function(e){e.system&&Object.assign(s.info,e.system),e.system&&s.info.dispatchEvent("changed")};let V=null;s.user=function(){const e=s.defer();if(V)e.resolve(V);else{const t=s.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(s,arguments)},s.addEventListener("close",(function(){ue[o]==s&&(ue[o]=null)})),ue[o]=s}return s},s.variant=function(e,t){return{v:t,t:e}},s.byte_array=function(e){return window.btoa(e)},s.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=s.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?i():o.reject(e)}))}function i(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?i():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return m+=1,b(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}m-=1,b(t)}}},close:function(){i&&i.close("cancelled");c&&c.close("cancelled");g&&g.close("cancelled")}},r={...t};delete r.syntax;let i,a=null;function l(){if(a)return a;const o=s.defer(),l={...r,payload:"fsread1",path:e};return function e(){i=s.channel(l);const r=[];i.addEventListener("message",(function(e,t){r.push(t)})),i.addEventListener("close",(function(s,l){if(i=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return v(null,null,e),void o.reject(e)}let c;if("-"==l.tag)c=null;else try{u=_(r,n),c=t.syntax&&t.syntax.parse?t.syntax.parse(u):u}catch(e){return v(null,null,e),void o.reject(e)}var u;v(c,l.tag),o.resolve(c,l.tag)}))}(),a=o.promise,a}let c=null;function f(n,o){const i=s.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return i.reject(e),i.promise}var l;c&&c.close("abort");const u={...r,payload:"fsreplace1",path:e,tag:o};return c=s.channel(u),c.addEventListener("close",(function(e,t){c=null,t.problem?i.reject(new K(t.problem,t.message)):(v(n,t.tag),i.resolve(t.tag))})),d(a,(function(e){c.send(e)})),c.control({command:"done"}),i.promise}const p=[];let h,m=0,g=null;function b(t){if(m>0){if(g)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};g=s.channel(n),g.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?v(null,r.tag):l())}))}else g&&(g.close(),g=null)}function v(){h=arguments[1]||null,u(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}s.language="en",s.language_direction="ltr",s.locale=function(e){let t,n=s.language,o=s.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),s.language=n,s.language_direction=o},s.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(i,e):0}));function g(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},u(p,i,[h.status,h.headers])))}return c.addEventListener("control",g),c.addEventListener("close",(function e(t,r){const s=o.indexOf(i);if(s>=0&&o.splice(s,1),r.problem)ge("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=m.squash();if(h&&(h.status<200||h.status>299)){let t;const o=be(h.headers,"Content-Type");o&&!c.binary&&0===o.indexOf("text/plain")&&(t=e),ge("http status: ",h.status),n.reject(new me(h.status,h.reason,t),e)}else ge("http done"),n.resolve(e)}c.removeEventListener("control",g),c.removeEventListener("close",e)})),i.stream=function(e){return f=e,i},i.response=function(e){return null===p&&(p=[]),p.push(e),i},i.input=function(e,t){return null!=e&&(ge("http input:",e),d(e,(function(e){c.send(e)}))),t||(ge("http done"),c.control({command:"done"})),i},i.close=function(e){return ge("http closing:",e),c.close(e),i},o.push(i),i},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===be(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=s.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const s=a(n);t.allowed!==s&&(t.allowed=s,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;S(o,{}),void 0===t.length&&(t=[t]);const r=[];let i=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(i)return;i=!0}const c={payload:"metrics1",interval:e,source:"internal",...t[0]};delete c.archive_source;const u=s.channel(c);r.push(u);let d,f=null,p=null;u.addEventListener("close",(function(e,r){l||(i=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),u.addEventListener("message",(function(r,s){const i=JSON.parse(s),a=i.length;if(void 0===a){f=i;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),s=n.n(r),i=n(553),a=n.n(i);window.QUnit=s(),window.qunitTap=a(),n(956),n(732),s().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await s().mock_info("pybridge")?s().test.skipWithPybridge=s().test.skip:s().test.skipWithPybridge=s().test;const e=s();o()}catch(e){o(e)}}),1)},347:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{m:()=>c,n:()=>l});var r=n(99),s=n(810),i=e([s]);function a(e,t){for(const n in t)"[object Object]"===Object.prototype.toString.call(t[n])?(e[n]||(e[n]={}),a(e[n],t[n])):e[n]=t[n]}function l(e,t){s.Z.test("call method",(function(n){const o=n.async();n.expect(3);const s=r.Z.dbus(t,e);n.equal(typeof s.call,"function","is a function"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(e,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("call method with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","NeverReturn",[],{timeout:10}).done((function(e){n.ok(!1,"should not be reached")})).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),s.Z.test("close immediately",(function(n){const o=n.async();n.expect(1);const s=r.Z.dbus(t,e);s.addEventListener("close",(function(e,t){n.equal(t.problem,"test-code","got right code"),o()})),window.setTimeout((function(){s.close("test-code")}),100)})),s.Z.test("call close",(function(n){const o=n.async();n.expect(2);const s=r.Z.dbus(t,e);s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"disconnected","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()})),s.close()})),s.Z.test("call closed",(function(n){const o=n.async();n.expect(2);const s=r.Z.dbus(t,e);s.close("blah-blah"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"blah-blah","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()}))})),s.Z.test("primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","ZWZnAA=="]).done((function(e){n.deepEqual(e,[20,!1,111,1012,10013,100014,1000015,10000016,17/Math.PI,"Word! You said `a string'. Rock'n'roll!","/modified/a/path","assgitasig","Ynl0ZXN0cmluZyH/AA=="],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("integer bounds",(function(n){n.expect(35);const o=r.Z.dbus(t,e);function s(e,t,r){const s=n.async();o.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestVariant",[{t:e,v:t}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs")})).always((function(){r?n.equal(this.state(),"resolved","accepted in bounds number"):n.equal(this.state(),"rejected","rejected out of bounds number"),s()}))}s("y",0,!0),s("y",255,!0),s("y",-1,!1),s("y",256,!1),s("n",-300,!0),s("n",300,!0),s("n",-32769,!1),s("n",32768,!1),s("q",0,!0),s("q",300,!0),s("q",-1,!1),s("q",65536,!1),s("i",-1048575,!0),s("i",1048575,!0),s("i",-2147483649,!1),s("i",2147483648,!1),s("u",0,!0),s("u",1048575,!0),s("u",-1,!1),s("u",4294967296,!1),s("x",-68719476735,!0),s("x",68719476735,!0),s("t",68719476735,!0),s("t",-1,!1)})),s.Z.test("non-primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestNonPrimitiveTypes",[{one:"red",two:"blue"},{first:[42,42],second:[43,43]},[42,"foo","bar"],["one","two"],["/one","/one/two"],["ass","git"],["QUIA","QkMA"]]).done((function(e){n.deepEqual(e,["{'one': 'red', 'two': 'blue'}{'first': (42, 42), 'second': (43, 43)}(42, 'foo', 'bar')array_of_strings: [one, two] array_of_objpaths: [/one, /one/two] array_of_signatures: [signature 'ass', 'git'] array_of_bytestrings: [AB, BC] "],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("variants",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:r.Z.variant("s","foo"),two:r.Z.variant("o","/bar"),three:r.Z.variant("g","assgit"),four:r.Z.variant("y",42),five:r.Z.variant("d",1e3)}]).done((function(e){n.deepEqual(e,["{'one': <'foo'>, 'two': , 'three': , 'four': , 'five': <1000.0>}"],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("bad variants",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:"foo",two:"/bar",three:"assgit",four:42,five:1e3}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected type 'string' in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("get all",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","org.freedesktop.DBus.Properties","GetAll",["com.redhat.Cockpit.DBusTests.Frobber"]).done((function(e){n.deepEqual(e,[{FinallyNormalName:{t:"s",v:"There aint no place like home"},ReadonlyProperty:{t:"s",v:"blah"},aay:{t:"aay",v:[]},ag:{t:"ag",v:[]},ao:{t:"ao",v:[]},as:{t:"as",v:[]},ay:{t:"ay",v:"QUJDYWJjAA=="},b:{t:"b",v:!1},d:{t:"d",v:43},g:{t:"g",v:""},i:{t:"i",v:0},n:{t:"n",v:0},o:{t:"o",v:"/"},q:{t:"q",v:0},s:{t:"s",v:""},t:{t:"t",v:0},u:{t:"u",v:0},x:{t:"x",v:0},y:{t:"y",v:42}}],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("call unimplemented",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnimplementedMethod",[]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Method UnimplementedMethod is not implemented on interface com.redhat.Cockpit.DBusTests.Frobber","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("call bad base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","Yooohooo!~ bad base64"]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid base64 in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("call unknown",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnknownBlahMethod",[1]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Introspection data for method com.redhat.Cockpit.DBusTests.Frobber UnknownBlahMethod not available","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("signals",(function(n){const o=n.async();n.expect(6);let s=!1;const i=r.Z.dbus(t,e);i.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(e,t,o,r){s||(n.equal(e,"/otree/frobber","got right path"),n.equal(t,"com.redhat.Cockpit.DBusTests.Frobber","got right path"),n.equal(o,"TestSignal","signals: got right path"),n.deepEqual(r,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),s=!0)})),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(s,!0,"signal received"),o()}))})),s.Z.test("signal unsubscribe",(function(n){const o=n.async();n.expect(4);let s=!0;const i=r.Z.dbus(t,e);const a=i.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(){s=!0}));i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(s,!0,"signal received")})).then((function(){a.remove(),s=!1,i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","second emission requested"),n.equal(s,!1,"signal not received"),o()}))}))})),s.Z.test("with types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32],{type:"a{ss}uit"}).done((function(e,t){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"round trip"),n.equal(t.type,"a{ss}uit","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("with meta",(function(n){const o=n.async();n.expect(2);const s={"borkety.Bork":{methods:{Echo:{in:["a{ss}","u","i","t"],out:["a{ss}","u","i","t"]}}}},i=r.Z.dbus(t,e);i.addEventListener("meta",(function(e,t){n.deepEqual(t,s,"got meta data")})),i.meta(s),i.call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32]).then((function(e){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"returned round trip")}),(function(e){console.log(e),n.ok(!1,"shouldn't fail")})).always((function(){i.close(),o()}))})),s.Z.test.skipWithPybridge("empty base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[""],{type:"ay"}).done((function(e,t){n.deepEqual(e,[""],"round trip"),n.equal(t.type,"ay","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("invalid/path","borkety.Bork","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'object path is invalid in dbus "call": invalid/path',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad interface name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","!invalid!interface!","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'interface name is invalid in dbus "call": !invalid!interface!',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad method name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","!Invalid!Method!",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'member name is invalid in dbus "call": !Invalid!Method!',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad flags",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","Method",[1],{flags:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "flags" field is invalid in dbus call',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:"!!%%"}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" signature is not valid in dbus call: !!%%',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad type invalid",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" field is invalid in call',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad dict type",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",[{"!!!":"value"}],{type:"a{is}"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected key '!!!' in dict entry","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["not/a/path"],{type:"o"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid object path 'not/a/path'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad signature",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["bad signature"],{type:"g"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid signature 'bad signature'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("flags",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"],{flags:""}).done((function(e,t){n.equal(typeof t.flags,"string","is string"),n.ok(-1!==t.flags.indexOf(">")||-1!==t.flags.indexOf("<"),"has byte order")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("without introspection",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo").done((function(e){n.deepEqual(e,[],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("watch path",(function(n){const o=n.async();n.expect(2);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch("/otree/frobber").done((function(){n.equal(typeof s["/otree/frobber"],"object","has path"),n.deepEqual(s["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),i.removeEventListener("notify",l),o()}))})),s.Z.test("watch object manager",(function(n){const o=n.async();n.expect(1);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),i.removeEventListener("notify",l),o()}))})),s.Z.test("watch change",(n=>{const o=n.async();n.expect(2);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l);const c=(e,t)=>{n.equal(typeof s["/otree/frobber"],"object","has path"),n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),i.removeEventListener("notify",l),i.removeEventListener("notify",c)};i.addEventListener("notify",c),i.watch("/otree/frobber").then((()=>o()))})),s.Z.test("watch barrier",(function(n){const o=n.async();n.expect(2);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch({path_namespace:"/otree"}),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(s["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),i.removeEventListener("notify",l),o()}))})),s.Z.test("watch interfaces",(function(n){const o=n.async();n.expect(3);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","AddAlpha",[]).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":{}}},"correct data"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RemoveAlpha",[]).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":null}},"correct data"),i.removeEventListener("notify",l),o()}))}))}))})),s.Z.test.skipWithPybridge("path loop",(function(n){const o=n.async();n.expect(2);const s="yo"+(new Date).getTime(),i={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(i,t);a.addEventListener("notify",l),a.watch({path_namespace:"/cliques/"+s}).done((function(){a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateClique",[s]).done((function(e){const t={};for(let e=0;e<3;e++)t["/cliques/"+s+"/"+e]={"com.redhat.Cockpit.DBusTests.Clique":{Friend:"/cliques/"+s+"/"+(e+1)%3}};n.deepEqual(i,t,"got all data before method reply")})).always((function(){n.equal(this.state(),"resolved","method called"),a.removeEventListener("notify",l),o()}))}))})),s.Z.test.skipWithPybridge("path signal",(function(n){const o=n.async();n.expect(4);const s="yo"+(new Date).getTime(),i={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(i,t);a.addEventListener("notify",l),a.watch({path:"/hidden/"+s}).done((function(){n.deepEqual(i,{},"no data yet"),a.subscribe({path:"/hidden/"+s},(function(e,t,o){n.equal(typeof i[e],"object","have object"),n.deepEqual(i[e],{"com.redhat.Cockpit.DBusTests.Hidden":{Name:s}},"got data before signal"),a.removeEventListener("notify",l)})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","EmitHidden",[s]).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),s.Z.test("proxy",(function(n){const o=n.async();n.expect(7);const s=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");s.wait((function(){n.strictEqual(s.valid,!0,"proxy: is valid"),n.deepEqual(s.data,{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),n.strictEqual(s.FinallyNormalName,"There aint no place like home","property value"),n.strictEqual(s.ReadonlyProperty,"blah","another property value"),n.equal(typeof s.HelloWorld,"function","has function defined"),s.HelloWorld("From a proxy").done((function(e){n.equal(e,"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),s.Z.test("proxy call",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("HelloWorld",["From a proxy"]).done((function(e){n.equal(e[0],"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))})),s.Z.test("proxy call with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("NeverReturn",[],{timeout:10}).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),s.Z.test("proxy signal",(function(n){const o=n.async();n.expect(4);let s=!1;const i=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber"),a=(e,t,o)=>{n.equal(t,"TestSignal","signals: got right name"),n.deepEqual(o,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),s=!0};i.addEventListener("signal",a),i.call("RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(s,!0,"signal received"),i.removeEventListener("signal",a),o()}))})),s.Z.test("proxy explicit notify",(function(n){const o=n.async();n.expect(1);const s=r.Z.dbus(t,e),i=s.proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");i.wait().done((function(){const e=()=>{n.equal(i.FinallyNormalName,"externally injected"),i.removeEventListener("changed",e),o()};i.addEventListener("changed",e),s.notify({"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"externally injected"}}})}))})),s.Z.test("proxies",(function(n){const o=n.async();n.expect(13);const s=r.Z.dbus(t,e);s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteAllObjects",[]).always((function(){n.equal(this.state(),"resolved","deleted stray objects");const e=s.proxies("com.redhat.Cockpit.DBusTests.Frobber","/otree");e.wait().always((function(){let t,r,i;e.addEventListener("added",(function(e,o){t=o,n.strictEqual(t.valid,!0,"added objects valid")})),e.addEventListener("changed",(function(e,t){r=t})),e.addEventListener("removed",(function(e,t){i=t})),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","create objects done"),n.equal(typeof t,"object","got added object"),n.equal(typeof r,"object","no changed object yet"),n.equal(typeof i,"undefined","no removed object yet"),n.equal(t.path,"/otree/other","added object correct"),n.strictEqual(t,r,"added fires changed"),r=null,s.call(t.path,t.iface,"RequestPropertyMods",[]).always((function(){n.equal(this.state(),"resolved","changed object"),n.strictEqual(r,t,"change fired"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","removed object"),n.strictEqual(i,t,"removed fired"),n.strictEqual(i.valid,!1,"removed is invalid"),s.close(),o()}))}))}))}))}))}))}function c(e,t){s.Z.test("track name",(function(n){const o=n.async();n.expect(4);const s="yo.x"+(new Date).getTime();let i=!1,a=!1;const l=r.Z.dbus(t,e);l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[s]).always((function(){n.equal(this.state(),"resolved","name claimed");const t=r.Z.dbus(s,{bus:e.bus,address:e.address,track:!0});t.addEventListener("close",(function(e,t){n.strictEqual(t.problem,void 0,"no problem"),a=!0,i&&o()})),t.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){n.equal(this.state(),"resolved","called on other name"),l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[s]).always((function(){n.equal(this.state(),"resolved","name released"),i=!0,a&&o()}))}))}))})),s.Z.test("no track name",(function(t){const n=t.async();t.expect(5);const o="yo.y"+(new Date).getTime();let s=!1;const i=r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e);i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name claimed");const a=r.Z.dbus(o,e);a.addEventListener("close",(function(e,t){s=!0})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"resolved","called on other name"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name released"),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"rejected","call after release should fail"),t.equal(s,!1,"is not gone"),n()}))}))}))}))})),s.Z.test.skipWithPybridge("receive readable fd",(function(t){const n=t.async();t.expect(4);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n),s=t.async();o.onmessage=function(e,n){t.equal(n,"Hello, fd"),o.close(),s()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),s.Z.test.skipWithPybridge("receive readable fd and ensure opening more than once fails",(function(t){const n=t.async();t.expect(7);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);t.ok(o);const s=r.Z.channel(n),i=t.async();s.onclose=function(e,n){t.equal(n.channel,s.id),t.equal(n.command,"close"),t.equal(n.problem,"not-found"),i()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),s.Z.test.skipWithPybridge("receive readable fd and ensure writing fails",(function(t){const n=t.async();t.expect(6);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd");const s=t.async();o.onclose=function(e,n){t.equal(n.channel,o.id),t.equal(n.command,"close"),t.equal(n.problem,"protocol-error"),s()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),s.Z.test.skipWithPybridge("receive writable fd",(function(t){const n=t.async();t.expect(3);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["writable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd"),o.close()})).always((function(){t.equal(this.state(),"resolved","fd received and not writable"),n()}))}))}s=(i.then?(await i)():i)[0],o()}catch(u){o(u)}}))},714:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),s=n(347),i=e([r,s]);[r,s]=i.then?(await i)():i;const a={bus:"session"};function l(e,t){const n=e.async();e.expect(2);o.Z.dbus(null,t).call("/","org.freedesktop.DBus.Introspectable","Introspect").done((function(t){e.ok(-1!==String(t[0]).indexOf("1,"initial owner not empty"),a=n):1===r?e.strictEqual(n,null,"no owner"):2===r&&e.strictEqual(n,a,"has owner again"),r++}function c(){s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[n]).always((function(){e.equal(this.state(),"resolved","name claimed"),i?(e.strictEqual(r,3,"owner changed three times"),t()):(i=o.Z.dbus(n,{bus:"session"}),i.addEventListener("owner",l),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){e.equal(this.state(),"resolved","called on other name"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[n]).always((function(){e.equal(this.state(),"resolved","name released"),c()}))})))}))}c()})),r.Z.test.skipWithPybridge("bad dbus address",(function(e){const t=e.async();e.expect(1);o.Z.dbus(null,{bus:"none",address:"bad"}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error","bad address closed"),t()}))})),r.Z.test.skipWithPybridge("bad dbus bus",(function(e){const t=e.async();e.expect(1);o.Z.dbus(null,{bus:"bad"}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error","bad bus format"),t()}))})),r.Z.test("wait ready",(function(e){const t=e.async();e.expect(1);const n=o.Z.dbus("com.redhat.Cockpit.DBusTests.Test",{bus:"session"});n.wait().then((function(t){e.ok(!!n.unique_name,"wait fills unique_name")}),(function(){e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test("wait fail",(function(e){const t=e.async();e.expect(1);o.Z.dbus("com.redhat.Cockpit.DBusTests.NotExisting",{bus:"session"}).wait().then((function(t){e.ok(!1,"shouldn't succeed")}),(function(){e.ok(!0,"should fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name",(function(e){const t=e.async();e.expect(1);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:"com.redhat.Cockpit.DBusTests.Test"}).then((function(t){e.deepEqual(t,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"replied")}),(function(t){e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name bad",(function(e){const t=e.async();e.expect(2);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:5}).then((function(t){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'the "name" field is invalid in dbus call',"error message")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name invalid",(function(e){const t=e.async();e.expect(2);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:"!invalid!"}).then((function(t){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'the "name" field in dbus call is not a valid bus name: !invalid!',"error message")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name missing",(function(e){const t=e.async();e.expect(2);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).then((function(t){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'the "name" field is missing in dbus call',"error message")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name second",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session"});n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[],{name:"com.redhat.Cockpit.DBusTests.Test"}).then((function(t){return e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Test"],"right name"),n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[],{name:"com.redhat.Cockpit.DBusTests.Second"}).then((function(t){e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Second"],"second name")}),(function(t){e.ok(!1,"shouldn't fail")}))}),(function(t){console.log(t),e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("override default name",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus("com.redhat.Cockpit.DBusTests.Test",{bus:"session"});n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[]).then((function(t){return e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Test"],"right name"),n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[],{name:"com.redhat.Cockpit.DBusTests.Second"}).then((function(t){e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Second"],"second name")}),(function(t){e.ok(!1,"shouldn't fail")}))}),(function(t){console.log(t),e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("watch no default name",(function(e){const t=e.async();e.expect(1);const n={},r=o.Z.dbus(null,{bus:"session"});r.addEventListener("notify",(function(e,t){Object.assign(n,t)})),r.watch({path:"/otree/frobber",name:"com.redhat.Cockpit.DBusTests.Second"}).then((function(){e.equal(typeof n["/otree/frobber"],"object","has path")}),(function(t){e.ok(!1,"shouldn't fail")})).always((function(){r.close(),t()}))})),r.Z.test.skipWithPybridge("watch missing name",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session",other:"option"});n.watch("/otree/frobber").then((function(){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'session: no "name" specified in match',"error message")})).always((function(){n.close(),t()}))})),r.Z.test.skipWithPybridge("shared client",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session"}),r=o.Z.dbus(null,{bus:"session"});e.strictEqual(n,r,"shared bus returned"),n.close(),r.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:"com.redhat.Cockpit.DBusTests.Test"}).then((function(t){e.deepEqual(t,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"call still works")}),(function(t){e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test("not shared option",(function(e){e.expect(1);const t=o.Z.dbus(null,{bus:"session"}),n=o.Z.dbus(null,{bus:"session",other:"option"});e.notStrictEqual(t,n,"shared bus returned"),t.close(),n.close()})),r.Z.test.skipWithPybridge("emit signal meta",(function(e){const t=e.async();e.expect(4);let n=!1;const r=o.Z.dbus(null,{bus:"session",other:"option"});r.meta({"borkety.Bork":{signals:{Bork:{in:["i","i","i","i","s"]}}}}),r.wait((function(){r.subscribe({path:"/bork",name:r.unique_name},(function(o,s,i,a){e.equal(o,"/bork","reflected path"),e.equal(s,"borkety.Bork","reflected interface"),e.equal(i,"Bork","reflected signal"),e.deepEqual(a,[1,2,3,4,"Bork"],"reflected arguments"),n=!0,r.close(),t()})),r.addEventListener("close",(function(o,r){n||(console.log(r),e.ok(!1,"shouldn't fail"),t())})),r.signal("/bork","borkety.Bork","Bork",[1,2,3,4,"Bork"],{type:"iiiis"})}))})),r.Z.test.skipWithPybridge("emit signal type",(function(e){const t=e.async();e.expect(4);let n=!1;const r=o.Z.dbus(null,{bus:"session",other:"option"});r.wait((function(){r.subscribe({path:"/bork",name:r.unique_name},(function(o,s,i,a){e.equal(o,"/bork","reflected path"),e.equal(s,"borkety.Bork","reflected interface"),e.equal(i,"Bork","reflected signal"),e.deepEqual(a,[1,2,3,4,"Bork"],"reflected arguments"),n=!0,r.close(),t()})),r.addEventListener("close",(function(o,r){n||(console.log(r),e.ok(!1,"shouldn't fail"),t())})),r.signal("/bork","borkety.Bork","Bork",[1,2,3,4,"Bork"],{type:"iiiis"})}))})),r.Z.test.skipWithPybridge("emit signal no meta",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session",other:"option"});n.addEventListener("close",(function o(r,s){e.equal(s.problem,"protocol-error","correct problem"),e.equal(s.message,"signal argument types for signal borkety.Bork Bork unknown","correct message"),n.removeEventListener("close",o),n.close(),t()})),n.signal("/bork","borkety.Bork","Bork",[1,2,3,4,"Bork"])})),r.Z.test.skipWithPybridge("publish object",(function(e){const t=e.async();e.expect(4);let n=null;const r={Add:function(e,t){return String(e+t)},Live:function(e){n=e}},s=o.Z.dbus(null,{bus:"session"});s.meta({"org.Interface":{methods:{Add:{in:["i","i"],out:["s"]},Live:{in:["s"]}}}}),s.wait().then((function(){const o=s.publish("/a/path","org.Interface",r);o.then((function(){e.ok(!0,"should resolve")}),(function(){e.ok(!1,"should not have failed")})),s.call("/a/path","org.Interface","Live",["marmalade"],{name:s.unique_name}),s.call("/a/path","org.Interface","Add",[3,44],{name:s.unique_name}).then((function(t){e.ok(o,"object was published"),e.deepEqual(t,["47"],"got back right reply"),e.strictEqual(n,"marmalade","received right arguments")}),(function(t){e.ok(!1,"should not have failed")})).always((function(){s.close(),t()}))}))})),r.Z.test.skipWithPybridge("publish object promise",(function(e){const t=e.async();e.expect(1);const n={Add:function(e,t){const n=o.Z.defer();return window.setTimeout((function(){n.resolve(String(e+t),e,t)}),200),n.promise}},r=o.Z.dbus(null,{bus:"session"});r.meta({"org.Interface":{methods:{Add:{in:["i","i"],out:["s","i","i"]}}}}),r.wait().then((function(){r.publish("/a/path","org.Interface",n),r.call("/a/path","org.Interface","Add",[3,44],{name:r.unique_name}).then((function(t){e.deepEqual(t,["47",3,44],"got back right reply")}),(function(t){e.ok(!1,"should not have failed")})).always((function(){r.close(),t()}))}))})),r.Z.test.skipWithPybridge("publish object failure",(function(e){const t=e.async();e.expect(2);const n={Fails:function(e,t){const n=o.Z.defer(),r=new Error("this is the message");return r.name="org.Error",window.setTimeout((function(){n.reject(r)}),5),n.promise}},r=o.Z.dbus(null,{bus:"session"});r.meta({"org.Interface":{methods:{Fails:{in:["i","i"],out:["s","i","i"]}}}}),r.wait().then((function(){r.publish("/a/path","org.Interface",n),r.call("/a/path","org.Interface","Fails",[3,44],{name:r.unique_name}).then((function(t){e.ok(!1,"should not have succeeded")}),(function(t){e.strictEqual(t.name,"org.Error","got right error name"),e.strictEqual(t.message,"this is the message","got right error message")})).always((function(){r.close(),t()}))}))})),r.Z.test.skipWithPybridge("publish object replaces",(function(e){const t=e.async();e.expect(2);const n={Bonk:function(e){return e+" bonked"}},r={Bonk:function(e){return"nope not bonked"}},s=o.Z.dbus(null,{bus:"session"});s.meta({"org.Interface":{methods:{Bonk:{in:["s"],out:["s"]}}}}),s.wait().then((function(){s.publish("/a/path","org.Interface",n),s.call("/a/path","org.Interface","Bonk",["hi"],{name:s.unique_name}).then((function(n){e.deepEqual(n,["hi bonked"],"got back reply from first object"),s.publish("/a/path","org.Interface",r),s.call("/a/path","org.Interface","Bonk",["hi"],{name:s.unique_name}).then((function(t){e.deepEqual(t,["nope not bonked"],"got back reply from second object")}),(function(){e.ok(!1,"should not have failed")})).always((function(){s.close(),t()}))}),(function(t){e.ok(!1,"should not have failed")}))}))})),r.Z.test.skipWithPybridge("publish object unpublish",(function(e){const t=e.async();e.expect(4);const n={Bonk:function(e){return e+" bonked"}},r=o.Z.dbus(null,{bus:"session"});r.meta({"org.Interface":{methods:{Bonk:{in:["s"],out:["s"]}}}}),r.wait().then((function(){const o=r.publish("/a/path","org.Interface",n);r.call("/a/path","org.Interface","Bonk",["hi"],{name:r.unique_name}).then((function(n){e.deepEqual(n,["hi bonked"],"got back reply from first object"),o.remove(),r.call("/a/path","org.Interface","Bonk",["hi"],{name:r.unique_name}).then((function(t){e.ok(!1,"should not have succeeded")}),(function(t){e.strictEqual(t.name,"org.freedesktop.DBus.Error.UnknownMethod","got right error name"),e.ok(t.message.includes("No such interface")||t.message.includes("Object does not exist"),"unexpected error: "+t.message),e.ok(t.message.indexOf("/a/path")>0,"unexpected error: "+t.message)})).always((function(){r.close(),t()}))}),(function(t){e.ok(!1,"should not have failed")}))}))})),r.Z.test("internal dbus",(function(e){l(e,{bus:"internal"})})),r.Z.test.skipWithPybridge("internal dbus bus none",(function(e){l(e,{bus:"none"})})),r.Z.test.skipWithPybridge("internal dbus bus none with address",(function(e){l(e,{bus:"none",address:"internal"})})),r.Z.test.skipWithPybridge("separate dbus connections for channel groups",(function(e){const t=e.async();e.expect(4);const n=o.Z.channel({payload:"dbus-json3",group:"foo",bus:"session"}),r=o.Z.channel({payload:"dbus-json3",group:"bar",bus:"session"}),s=o.Z.channel({payload:"dbus-json3",group:"foo",bus:"session"}),i=o.Z.channel({payload:"dbus-json3",group:"baz",bus:"session"});Promise.all([n.wait(),r.wait(),s.wait(),i.wait()]).then((function([n,o,r,s]){e.equal(n["unique-name"],r["unique-name"]),e.notEqual(n["unique-name"],o["unique-name"]),e.notEqual(n["unique-name"],s["unique-name"]),e.notEqual(o["unique-name"],s["unique-name"]),t()}))})),r.Z.test.skipWithPybridge("cockpit.Config internal D-Bus API",(function(e){const t=e.async();e.expect(6);const n=o.Z.dbus(null,{bus:"internal"});let r,s;n.call("/environment","org.freedesktop.DBus.Properties","Get",["cockpit.Environment","Variables"]).then((e=>(r=e[0].v.XDG_CONFIG_DIRS,o.Z.file(r+"/cockpit/cockpit.conf").replace("\n[SomeSection]\nSomeA = one\nSomethingElse = 2\n\n[Other]\nFlavor=chocolate\nEmpty=\n")))).then((()=>(s=n.proxy("cockpit.Config","/config"),s.wait()))).then((()=>s.Reload())).then((()=>s.GetString("SomeSection","SomeA"))).then((t=>(e.equal(t,"one"),s.GetString("Other","Empty")))).then((t=>(e.equal(t,""),s.GetUInt("SomeSection","SomethingElse",10,100,0)))).then((t=>(e.equal(t,2),s.GetUInt("SomeSection","NotExisting",10,100,0)))).then((t=>(e.equal(t,10),s.GetUInt("SomeSection","SomethingElse",42,50,5)))).catch((e=>console.error("unexpected error:",JSON.stringify(e)))).then((t=>{e.equal(t,5),e.rejects(s.GetString("SomeSection","UnknownKey"),/key.*UnknownKey.*not exist/,"unknown key raises an error")})).finally(t)})),r.Z.start(),t()}catch(c){t(c)}}))}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},i.a=(r,s,i)=>{var a;i&&((a=[]).d=1);var l,c,u,d=new Set,f=r.exports,p=new Promise(((e,t)=>{u=t,c=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,s((r=>{var s;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var s=[];s.d=0,r.then((e=>{i[t]=e,o(s)}),(e=>{i[n]=e,o(s)}));var i={};return i[e]=e=>e(s),i}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var i=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),c=new Promise((t=>{(s=()=>t(i)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(s.r++,e.push(s)));l.map((t=>t[e](n)))}));return s.r?c:i()}),(e=>(e?u(p[n]=e):c(f),o(a)))),a&&(a.d=0)},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);i(714)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(s,i){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?j(r,t):r}return n}function B(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=B(e[o],t[o]));return n}function _(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function D(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return D(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;ri.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var s=/^function (\w+)/,i={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var s=this.parsers[t],i=r(s);if("function"===i){n.push(e);var a=s.call(this,e,n);return n.pop(),a}return"string"===i?s:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                              ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:A.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(s.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",i.parse(e,"functionArgs"),"){"].join(""),i.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(i.maxDepth&&i.depth>i.maxDepth)return"[object Object]";i.up();var r=[];for(var s in e)r.push(s);var a=["message","name"];for(var l in a){var c=a[l];c in e&&!S(c,r)&&r.push(c)}r.sort();for(var u=0;u",o=e.nodeName.toLowerCase(),r=t+o,s=e.attributes;if(s)for(var a=0,l=s.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),P=[],R=new L;function U(e,t,n){var o=P.length?P.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,s=o?o.suiteReport:R,i=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&_(l,o.testEnvironment),_(l,t);var c={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new L(e,s),stats:null,skip:i,todo:!i&&a,ignored:n.ignored||!1};return o&&o.childModules.push(c),A.modules.push(c),c}function W(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function H(e,t){return function(n){A.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+A.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function Q(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===D(t)&&(n=t,t=void 0);var r=U(e,t,o),s=r.testEnvironment,i=r.hooks;W(i,s,"before"),W(i,s,"beforeEach"),W(i,s,"afterEach"),W(i,s,"after");var a={before:H(r,"before"),beforeEach:H(r,"beforeEach"),afterEach:H(r,"afterEach"),after:H(r,"after")},l=A.currentModule;if(A.currentModule=r,"function"===D(n)){P.push(r);try{var c=n.call(r.testEnvironment,a);null!=c&&"function"===D(c.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{P.pop(),A.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=A.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!P.some((function(e){return o.includes(e.moduleId)})));Q(e,t,n,{ignored:r})}G.only=function(){J||(A.modules.length=0,A.queue.length=0,A.currentModule.ignored=!0),J=!0,Q.apply(void 0,arguments)},G.skip=function(e,t,n){J||Q(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||Q(e,t,n,{todo:!0})};var z=($(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function Y(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===D(e)||""===e?t="You must provide a message to assert.step":"string"!==D(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,s){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:A.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:s})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||A.current;if(!o)throw new Error("assertion outside test context, in "+$(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(F.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(F.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:Z(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:!Z(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=B(e,t),t=j(t,!1),this.pushResult({result:Z(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=B(e,t),t=j(t),this.pushResult({result:!Z(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:Z(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!Z(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var s=this instanceof e&&this.test||A.current;if("function"===D(t)){var i,a=!1;s.ignoreGlobalErrors=!0;try{t.call(s.testEnvironment)}catch(e){i=e}if(s.ignoreGlobalErrors=!1,i){var c=l(X(i,n,o),3);a=c[0],n=c[1],o=c[2]}s.assert.pushResult({result:a,actual:i&&O(i),expected:n,message:o})}else{var u='The value provided to `assert.throws` in "'+s.testName+'" was not a function.';s.assert.pushResult({result:!1,actual:t,message:u})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var s=this instanceof e&&this.test||A.current,i=t&&t.then;if("function"===D(i)){var a=this.async();return i.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+s.testName+'" did not reject.';s.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],s.assert.pushResult({result:t,actual:e&&O(e),expected:n,message:o}),a()}))}var c='The value provided to `assert.rejects` in "'+s.testName+'" was not a promise.';s.assert.pushResult({result:!1,message:c,actual:t})}}]),e}();function V(e,t,n){var o=D(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=D(t);if(t){if("regexp"===r)o=t.test(O(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=O(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=O(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==D(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?c(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=A.queue.shift()(),void ue.push.apply(ue,c(e)),ce>0&&ce--;var e;de()}()}function fe(e){if(ue.length&&!A.blocking){var t=T.now()-e;if(!m||A.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(A.queue.length-ce+1));A.queue.splice(ce+o,0,e)}else A.queue.push(e)},advance:de,taskCount:function(){return ue.length}},he=function(){function e(t,n,o){s(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=T.now(),T.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=T.now(),T)){T.mark("qunit_test_end");var t=this.fullName.join(" – ");T.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return _(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function me(e){if(this.expected=null,this.assertions=[],this.module=A.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,_(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++me.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&ge("Test did not finish synchronously even though assert.timeout( 0 ) was used.",$(2))}},after:function(){!function(){var e=A.pollution;be();var t=C(A.pollution,e);t.length>0&&ge("Introduced global variable(s): "+t.join(", "));var n=C(e,A.pollution);n.length>0&&ge("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(A.current=n,A.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+O(e),Y(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(A.queue.length>0||pe.taskCount()>2))if(A.current=o,A.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),Y(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&A.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:T.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||$();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof me))throw new Error("pushFailure() assertion outside test context, was "+$(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){g(A.timeout),A.timeout=m(A.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;A.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function s(){if(!r.cancelled){if(void 0===A.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(A.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Te(n)}}(n.pauses.set(o,r),m)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof A.testTimeout&&(t=A.testTimeout),"number"==typeof t&&t>0&&(A.timeoutHandler=function(e){return function(){A.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),$(2)),Te(n)}},g(A.timeout),A.timeout=m(A.timeoutHandler(t),t)));return s},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===D(o)){var r=n.internalStop(),s=function(){r()};if(A.notrycatch)o.call(e,s);else{o.call(e,s,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,Y(e,0)),be(),qe(n)}))}}}},valid:function(){var e=A.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=A.module&&A.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(A.moduleId&&A.moduleId.length>0&&!function e(t){return S(t.moduleId,A.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(A.testId&&A.testId.length>0&&!S(this.testId,A.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var ve=!1;function ye(e){ve||A.currentModule.ignored||new me(e).queue()}function we(e){A.currentModule.ignored||(ve||(A.queue.length=0,ve=!0),new me(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(m?(g(A.timeout),A.timeout=m((function(){e.pauses.size>0||(g(A.timeout),A.timeout=null,A.blocking=!1,pe.advance())}))):(A.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=c(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,c(o.childModules))}return t}function Se(e){return e.testsRun+e.testsIgnored===Ce(e).length}function je(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}_(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Be,_e,De,Ne,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Oe=!0;if("undefined"!=typeof process){var Ze=process.env;Be=Ze.FORCE_COLOR,_e=Ze.NODE_DISABLE_COLORS,De=Ze.NO_COLOR,Ne=Ze.TERM,Oe=process.stdout&&process.stdout.isTTY}var Ae={enabled:!_e&&null==De&&"dumb"!==Ne&&(null!=Be&&"0"!==Be||Oe),reset:Fe(0,0),bold:Fe(1,22),dim:Fe(2,22),italic:Fe(3,23),underline:Fe(4,24),inverse:Fe(7,27),hidden:Fe(8,28),strikethrough:Fe(9,29),black:Fe(30,39),red:Fe(31,39),green:Fe(32,39),yellow:Fe(33,39),blue:Fe(34,39),magenta:Fe(35,39),cyan:Fe(36,39),white:Fe(37,39),gray:Fe(90,39),grey:Fe(90,39),bgBlack:Fe(40,49),bgRed:Fe(41,49),bgGreen:Fe(42,49),bgYellow:Fe(43,49),bgBlue:Fe(44,49),bgMagenta:Fe(45,49),bgCyan:Fe(46,49),bgWhite:Fe(47,49)};function Me(e,t){for(var n,o=0,r="",s="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,s=/^[\d._-]+$/,i=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||s.test(e)||i.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),c=l?l[0].length:0;if(1===c){var u=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+u.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(Re(e),null,2)}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Re(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Re(e[o],t)})),t.pop();break;default:n=e}return n}var Ue=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Ae.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+O(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Ae.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Ae.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Ae.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Ae.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Ae.cyan("# todo ".concat(e.testCounts.todo))),this.log(Ae.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Pe(e.message||"failed")),n+="\n severity: ".concat(Pe(t||"failed")),Le.call(e,"actual")&&(n+="\n actual : ".concat(Pe(e.actual))),Le.call(e,"expected")&&(n+="\n expected: ".concat(Pe(e.expected))),e.stack&&(n+="\n stack: ".concat(Pe(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Pe(O(e))),t+="\n severity: ".concat(Pe("failed")),e&&e.stack&&(t+="\n stack: ".concat(Pe(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),We={console:Ie,tap:Ue};function He(e){return function(t){A.globalHooks[e]||(A.globalHooks[e]=[]),A.globalHooks[e].push(t)}}var Qe={beforeEach:He("beforeEach"),afterEach:He("afterEach")};function Je(e){A.current?A.current.assert.pushResult({result:!1,message:"global failure: ".concat(O(e)),source:e&&e.stack||$(2)}):(R.globalFailureCount++,A.stats.bad++,A.stats.all++,ne("error",e))}var Ge={};A.currentModule.suiteReport=R;var ze=!1,Ye=!1;function $e(){Ye=!0,m?m((function(){Ve()})):Ve()}function Ke(){A.blocking=!1,pe.advance()}function Ve(){if(A.started)Ke();else{A.started=T.now(),""===A.modules[0].name&&0===A.modules[0].tests.length&&A.modules.shift();for(var e=A.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(A.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!A.pageLoaded)return A.autostart=!0,void(b||Ge.load());$e()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function u(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,s=-1;e&&++s>1]=e[n],r=1+(n<<1)}for(var i=n-1>>1;n>0&&o.score>1)e[n]=e[i];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return s;var o=(e=h.prepareSearch(e))[0],i=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,m=0,g=t.length;if(n&&n.keys)for(var b=n.scoreFn||c,v=n.keys,y=v.length,w=g-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=u(k,T=v[E]))?(d(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var q=b(x);null!==q&&(qp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var T=n.key;for(w=g-1;w>=0;--w)(C=u(k=t[w],T))&&(d(C)||(C=h.getPrepared(C)),null!==(S=l(e,C,o))&&(S.scorep.peek().score&&p.replaceTop(S)))))}else for(w=g-1;w>=0;--w){var C,S;(C=t[w])&&(d(C)||(C=h.getPrepared(C)),null!==(S=l(e,C,o))&&(S.scorep.peek().score&&p.replaceTop(S)))))}if(0===f)return s;var j=new Array(f);for(w=f-1;w>=0;--w)j[w]=p.poll();return j.total=f+m,j},goAsync:function(t,n,o){var i=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(s);var p=(t=h.prepareSearch(t))[0],m=f(),g=n.length-1,b=o&&o.threshold||r&&r.threshold||-9007199254740991,v=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(i)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||c,E=o.keys,q=E.length;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var T=n[g],C=new Array(q),S=q-1;S>=0;--S)(_=u(T,B=E[S]))?(d(_)||(_=h.getPrepared(_)),C[S]=y(t,_,p)):C[S]=null;C.obj=T;var j=f(C);null!==j&&(jm.peek().score&&m.replaceTop(C))))}else if(o&&o.key)for(var B=o.key;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(_=u(T=n[g],B))&&(d(_)||(_=h.getPrepared(_)),null!==(D=y(t,_,p))&&(D.scorem.peek().score&&m.replaceTop(D)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var _,D;(_=n[g])&&(d(_)||(_=h.getPrepared(_)),null!==(D=y(t,_,p))&&(D.scorem.peek().score&&m.replaceTop(D)))))}if(0===w)return a(s);for(var N=new Array(w),I=w-1;I>=0;--I)N[I]=m.poll();N.total=w+k,a(N)}e?setImmediate(x):x()}));return a.cancel=function(){i=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,s=!1,i=e.target,a=i.length,l=e.indexes,c=0;c999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,s=o.length,l=0,c=0,u=0,d=0;;){if(n===o[c]){if(i[d++]=c,++l===r)break;n=e[0===u?l:u===l?l+1:u===l-1?l-1:l]}if(++c>=s)for(;;){if(l<=1)return null;if(0===u){if(n===e[--l])continue;u=l}else{if(1===u)return null;if((n=e[1+(l=--u)])===e[l])continue}c=i[(d=l)-1]+1;break}}l=0;var f=0,p=!1,m=0,g=t._nextBeginningIndexes;null===g&&(g=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var b=c=0===i[0]?0:g[i[0]-1];if(c!==s)for(;;)if(c>=s){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;c=b;continue}--l,c=g[a[--m]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[c]){if(a[m++]=c,++l===r){p=!0;break}++c}else c=g[c];if(p)var v=a,y=m;else v=i,y=d;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=v[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,s=o.length,l=0,c=0,u=0;;){if(n===o[c]){if(i[u++]=c,++l===r)break;n=e[l]}if(++c>=s)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(c=0===i[0]?0:p[i[0]-1])!==s)for(;;)if(c>=s){if(l<=0)break;--l,c=p[a[--f]]}else if(e[l]===o[c]){if(a[f++]=c,++l===r){d=!0;break}++c}else c=p[c];if(d)var m=a,g=f;else m=i,g=u;for(var b=0,v=-1,y=0;y=0;--y)t.indexes[y]=m[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,c=l||a>=97&&a<=122||a>=48&&a<=57,u=l&&!r||!s||!c;r=l,s=c,u&&(n[o++]=i)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],s=0,i=0;ii?o[i]=r:(r=n[++s],o[i]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&b){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=j({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),s=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){M()})),Ge.on("runEnd",(function(t){var n,o,r,s=q("qunit-banner"),i=q("qunit-tests"),a=q("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,c=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                              ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",L(tt.failedTests)].join("");if(a&&a.disabled){c="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var u=0;u":"Running: ",P(e.name,e.module),L(tt.failedTests)].join(""))})),Ge.log((function(e){var t=q("qunit-test-output-"+e.testId);if(t){var n,r,s,i=nt(e.message)||(e.result?"okay":"failed");i=""+i+"",i+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),i+="",r!==n?(i+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,s=((s=e.actual-e.expected)>0?"+":"")+s):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=U(s=Ge.diff(n,r)).length!==U(n).length+U(r).length),a&&(i+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?i+="":i+="",e.source&&(i+=""),i+="
                              Expected:
                              "+nt(n)+"
                              Result:
                              "+nt(r)+"
                              Diff:
                              "+s+"
                              Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                              Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                              Message: Diff suppressed as the expected and actual results have an equivalent serialization
                              Source:
                              "+nt(e.source)+"
                              "):!e.result&&e.source&&(i+="
                              Source:
                              "+nt(e.source)+"
                              ");var l=t.getElementsByTagName("ol")[0],c=b.createElement("li");c.className=e.result?"pass":"fail",c.innerHTML=i,l.appendChild(c)}})),Ge.testDone((function(o){var r=q("qunit-tests"),s=q("qunit-test-output-"+o.testId);if(r&&s){var i;E(s,"running"),i=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=s.getElementsByTagName("ol")[0],l=o.passed,c=o.failed,u=o.failed>0?o.todo:!o.todo;u?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=s.firstChild,p=c?""+c+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){s.className="skipped";var h=b.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",s.insertBefore(h,d)}else{if(f(d,"click",(function(){x(a,"qunit-collapsed")})),s.className=u?"pass":"fail",o.todo){var m=b.createElement("em");m.className="qunit-todo-label",m.innerHTML="todo",s.className+=" todo",s.insertBefore(m,d)}var g=b.createElement("span");g.className="runtime",g.innerHTML=Math.round(o.runtime)+" ms",s.insertBefore(g,a)}if(o.source){var v=b.createElement("p");v.innerHTML="Source: "+nt(o.source),k(v,"qunit-source"),u&&k(v,"qunit-collapsed"),f(d,"click",(function(){x(v,"qunit-collapsed")})),s.appendChild(v)}e.hidepassed&&("passed"===i||o.skipped)&&(t.push(s),r.removeChild(s))}})),Ge.on("error",(function(e){var t=F("global failure");if(t){var n=nt(O(e));n=""+n+"",e&&e.stack&&(n+="
                              Source:
                              "+nt(e.stack)+"
                              ");var o=t.getElementsByTagName("ol")[0],r=b.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var i,a=(i=p.phantom)&&i.version&&i.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==b.readyState?f(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,s){var i=!1;if(l){for(var a=arguments.length,c=new Array(a>5?a-5:0),u=5;u=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function q(e){return b.getElementById&&b.getElementById(e)}function T(){var e=q("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function C(e){var t=q("qunit-filter-input");return t.value=d(t.value),B(),e&&e.preventDefault&&e.preventDefault(),!1}function S(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var s=j(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var i=q("qunit-tests");if(i){var a=i.children.length,l=i.children;if(o.checked){for(var c=0;c-1,m=f.indexOf("skipped")>-1;(h||m)&&t.push(d)}var g,b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw s}}}}(t);try{for(b.s();!(g=b.n()).done;){var v=g.value;i.removeChild(v)}}catch(e){b.e(e)}finally{b.f()}}else for(var y;null!=(y=t.pop());)i.appendChild(y)}p.history.replaceState(null,"",s)}else p.location=s}function j(e){var t="?",n=p.location;for(var r in e=_(_({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var s=[].concat(e[r]),i=0;i"+i.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),g(t.getElementsByTagName("input"),"change",S),g(t.getElementsByTagName("select"),"change",S),t}function N(e,t,n){return'
                            1. "}function I(){var t=null;s={options:[],selectedMap:new w,isDirty:function(){return c(s.selectedMap.keys()).sort().join(",")!==c(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                               
                              ',e=q("qunit-testresult-controls")),e&&e.appendChild(((t=b.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",T),t))}function M(){var e,t,n,o,s,i=q("qunit");i&&(i.setAttribute("role","main"),i.innerHTML="

                              "+nt(b.title)+"

                              "+((!(e=Ge.config.testId)||e.length<=0?"":"
                              Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                              ")+"

                                ")),(t=q("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=q("qunit-banner"))&&(n.className=""),A(),(o=q("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(b.createTextNode("QUnit "+Ge.version+"; "+v.userAgent))),(s=q("qunit-testrunner-toolbar"))&&(s.appendChild(D()),s.appendChild(Z()),s.appendChild(b.createElement("div")).className="clearfix")}function F(e,t,n){var o=q("qunit-tests");if(o){var r=b.createElement("strong");r.innerHTML=P(e,n);var s=b.createElement("li");if(s.appendChild(r),void 0!==t){var i=b.createElement("a");i.innerHTML="Rerun",i.href=j({testId:t}),s.id="qunit-test-output-"+t,s.appendChild(i)}var a=b.createElement("ol");return a.className="qunit-assert-list",s.appendChild(a),o.appendChild(s),s}}function L(e){return 0===e.length?"":["
                                ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function P(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function R(e){return[e.completed," / ",e.defined," tests completed.
                                "].join("")}function U(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,s,i,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,s=this.diffCommonPrefix(e,t),i=e.substring(0,s),e=e.substring(s),t=t.substring(s),s=this.diffCommonSuffix(e,t),a=e.substring(e.length-s),e=e.substring(0,e.length-s),t=t.substring(0,t.length-s),l=this.diffCompute(e,t,r,o),i&&l.unshift([0,i]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,s,i,a,l,c,u;for(n=!1,o=[],r=0,s=null,i=0,a=!1,l=!1,c=!1,u=!1;i0?o[r-1]:-1,c=u=!1),n=!0)),i++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(s)+"";break;case 0:n[o]=""+nt(s)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,s;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),s=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=i.indexOf(a))?(s=[[1,i.substring(0,l)],[0,a],[1,i.substring(l+a.length)]],e.length>n.length&&(s[0][0]=s[2][0]=t),s):1===a.length?[[t,e],[1,n]]:(c=this.diffHalfMatch(e,n))?(u=c[0],f=c[1],d=c[2],p=c[3],h=c[4],m=this.DiffMain(u,d,o,r),g=this.DiffMain(f,p,o,r),m.concat([[0,h]],g)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,s,i,a,l,c,u,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[c,u,d,f,i]:null}return r=this,c=f(n,o,Math.ceil(n.length/4)),u=f(n,o,Math.ceil(n.length/2)),c||u?(d=u?c&&c[4].length>u[4].length?c:u:c,e.length>t.length?(s=d[0],l=d[1],a=d[2],i=d[3]):(a=d[0],i=d[1],s=d[2],l=d[3]),[s,l,a,i,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,s,i,a,l,c,u,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,i=r.lineArray,s=this.DiffMain(e,n,!1,o),this.diffCharsToLines(s,i),this.diffCleanupSemantic(s),s.push([0,""]),a=0,c=0,l=0,d="",u="";a=1&&l>=1){for(s.splice(a-c-l,c+l),a=a-c-l,f=(r=this.DiffMain(d,u,!1,o)).length-1;f>=0;f--)s.splice(a,0,r[f]);a+=r.length}l=0,c=0,d="",u=""}a++}return s.pop(),s},e.prototype.diffBisect=function(e,n,o){var r,s,i,a,l,c,u,d,f,p,h,m,g,b,v,y,w,k,x,E,q,T,C;for(r=e.length,s=n.length,a=i=Math.ceil((r+s)/2),l=2*i,c=new Array(l),u=new Array(l),d=0;do);q++){for(T=-q+h;T<=q-m;T+=2){for(y=a+T,x=(w=T===-q||T!==q&&c[y-1]r)m+=2;else if(x>s)h+=2;else if(p&&(v=a+f-T)>=0&&v=(k=r-u[v]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-q+g;C<=q-b;C+=2){for(v=a+C,E=(k=C===-q||C!==q&&u[v-1]r)b+=2;else if(E>s)g+=2;else if(!p&&(y=a+f-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var s,i,a,l,c,u;return s=e.substring(0,n),a=t.substring(0,o),i=e.substring(n),l=t.substring(o),c=this.DiffMain(s,a,!1,r),u=this.DiffMain(i,l,!1,r),c.concat(u)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,s,i,a,l,c,u,d,f,p,h;for(n=!1,o=[],r=0,s=null,i=0,c=0,u=0,a=0,l=0;i0?o[r-1]:-1,c=0,u=0,a=0,l=0,s=null,n=!0)),i++;for(n&&this.diffCleanupMerge(e),i=1;i=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(i,0,[0,f.substring(0,p)]),e[i-1][1]=d.substring(0,d.length-p),e[i+1][1]=f.substring(p),i++):(h>=d.length/2||h>=f.length/2)&&(e.splice(i,0,[0,d.substring(0,h)]),e[i-1][0]=1,e[i-1][1]=f.substring(0,f.length-h),e[i+1][0]=t,e[i+1][1]=d.substring(h),i++),i++),i++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,s,i,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(s,i))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=s.substring(0,a):(e.splice(0,0,[0,s.substring(0,a)]),n++),s=s.substring(a),i=i.substring(a)),0!==(a=this.diffCommonSuffix(s,i))&&(e[n][1]=s.substring(s.length-a)+e[n][1],s=s.substring(0,s.length-a),i=i.substring(0,i.length-a))),0===o?e.splice(n-r,o+r,[1,s]):0===r?e.splice(n-o,o+r,[t,i]):e.splice(n-o-r,o+r,[t,i],[1,s]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,i="",s=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>A});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const s={};if(S(s,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function i(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function c(e){return((e=+e)||1/e)<0}function u(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-s!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function T(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,s=new(t||Array)(r);for(let t,o,a=0,l=0,c=0;c64&&i<91?i-65:i>96&&i<123?i-71:i>47&&i<58?i+4:43===i?62:47===i?63:0)<<18-6*o,3===o||n-c==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var i;return s}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function S(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;i(e["on"+o])&&e["on"+o].apply(e,r),u(t[o],e,r)}}})}function j(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function B(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let s=j();return r&&(s=r+"/"+s),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+s+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+s+"/"+e:(C("Cockpit must be used over http or https"),null)}function _(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=c,n.send_control(e[1])):m(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?m(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=c,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){i||(i=s.defer(),r?i.reject(r):o?i.resolve(o):(t.addEventListener("ready",(function(e,t){i.resolve(t)})),t.addEventListener("close",(function(e,t){i.reject(t)}))));const n=i.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=c,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=_(n,u);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return _(n,u)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?c:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){m=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let u=a+c<=s;if(!u&&r){t=n.substring(a);break}0===c&&(u=!1);for(let e=1;u&&e0&&D(e),r.promise}function D(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const U={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};s.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),R(e,U,t,n)},s.get_byte_units=function(e,t){function n(e){return{name:U[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in U||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const W={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};s.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),R(e,W,t,n)};const H={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function Q(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return s.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function c(e,t,o){n&&(o||u(e,new Array(t-e),{}),n(e,t,o))}function u(e,t,n){if(!t.length)return;let c=l(r,e);const u=e+t.length,d=r.length;let f;for(f=c>0?c-1:c;f=c)break}const p={beg:e,items:t,mapping:n};for(i||(i=p),a&&(a.next=p),a=p,s+=t.length,r.splice(c,0,p),c--;c<=f;c++){const e=r[c];e&&!e.items.length&&(r.splice(c,1),c--)}for(;i&&s>o.limit;)s-=i.items.length,i.items=[],i.mapping=null,i=i.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),s=r.length;let i=e;const a=[];for(let n=o>0?o-1:o;ni&&a.push([i,u]),f(u,s.items.slice(u-c,d-c),s.mapping),i=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=s.length;for(let r=0;r2e9||(m(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(m();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||s.message(e),this.toString=function(){return this.message}}s.grid=function(e,t,n){return new $(e,t,n)},s.logout=function(e,t){s.sessionStorage.clear(!0),s.localStorage.removeItem("login-data",!0),s.localStorage.clear(!1),!1!==e&&(h=!0),O((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},s.drop_privileges=function(){O((function(e){e.send_control({command:"logout",disconnect:!1})}))},s.info={},S(s.info,{}),g=function(e){e.system&&Object.assign(s.info,e.system),e.system&&s.info.dispatchEvent("changed")};let V=null;s.user=function(){const e=s.defer();if(V)e.resolve(V);else{const t=s.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(s,arguments)},s.addEventListener("close",(function(){ue[o]==s&&(ue[o]=null)})),ue[o]=s}return s},s.variant=function(e,t){return{v:t,t:e}},s.byte_array=function(e){return window.btoa(e)},s.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=s.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?i():o.reject(e)}))}function i(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?i():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return m+=1,b(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}m-=1,b(t)}}},close:function(){i&&i.close("cancelled");c&&c.close("cancelled");g&&g.close("cancelled")}},r={...t};delete r.syntax;let i,a=null;function l(){if(a)return a;const o=s.defer(),l={...r,payload:"fsread1",path:e};return function e(){i=s.channel(l);const r=[];i.addEventListener("message",(function(e,t){r.push(t)})),i.addEventListener("close",(function(s,l){if(i=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return v(null,null,e),void o.reject(e)}let c;if("-"==l.tag)c=null;else try{u=_(r,n),c=t.syntax&&t.syntax.parse?t.syntax.parse(u):u}catch(e){return v(null,null,e),void o.reject(e)}var u;v(c,l.tag),o.resolve(c,l.tag)}))}(),a=o.promise,a}let c=null;function f(n,o){const i=s.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return i.reject(e),i.promise}var l;c&&c.close("abort");const u={...r,payload:"fsreplace1",path:e,tag:o};return c=s.channel(u),c.addEventListener("close",(function(e,t){c=null,t.problem?i.reject(new K(t.problem,t.message)):(v(n,t.tag),i.resolve(t.tag))})),d(a,(function(e){c.send(e)})),c.control({command:"done"}),i.promise}const p=[];let h,m=0,g=null;function b(t){if(m>0){if(g)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};g=s.channel(n),g.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?v(null,r.tag):l())}))}else g&&(g.close(),g=null)}function v(){h=arguments[1]||null,u(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}s.language="en",s.language_direction="ltr",s.locale=function(e){let t,n=s.language,o=s.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),s.language=n,s.language_direction=o},s.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(i,e):0}));function g(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},u(p,i,[h.status,h.headers])))}return c.addEventListener("control",g),c.addEventListener("close",(function e(t,r){const s=o.indexOf(i);if(s>=0&&o.splice(s,1),r.problem)ge("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=m.squash();if(h&&(h.status<200||h.status>299)){let t;const o=be(h.headers,"Content-Type");o&&!c.binary&&0===o.indexOf("text/plain")&&(t=e),ge("http status: ",h.status),n.reject(new me(h.status,h.reason,t),e)}else ge("http done"),n.resolve(e)}c.removeEventListener("control",g),c.removeEventListener("close",e)})),i.stream=function(e){return f=e,i},i.response=function(e){return null===p&&(p=[]),p.push(e),i},i.input=function(e,t){return null!=e&&(ge("http input:",e),d(e,(function(e){c.send(e)}))),t||(ge("http done"),c.control({command:"done"})),i},i.close=function(e){return ge("http closing:",e),c.close(e),i},o.push(i),i},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===be(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=s.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const s=a(n);t.allowed!==s&&(t.allowed=s,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;S(o,{}),void 0===t.length&&(t=[t]);const r=[];let i=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(i)return;i=!0}const c={payload:"metrics1",interval:e,source:"internal",...t[0]};delete c.archive_source;const u=s.channel(c);r.push(u);let d,f=null,p=null;u.addEventListener("close",(function(e,r){l||(i=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),u.addEventListener("message",(function(r,s){const i=JSON.parse(s),a=i.length;if(void 0===a){f=i;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),s=n.n(r),i=n(553),a=n.n(i);window.QUnit=s(),window.qunitTap=a(),n(956),n(732),s().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await s().mock_info("pybridge")?s().test.skipWithPybridge=s().test.skip:s().test.skipWithPybridge=s().test;const e=s();o()}catch(e){o(e)}}),1)},347:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{m:()=>c,n:()=>l});var r=n(99),s=n(810),i=e([s]);function a(e,t){for(const n in t)"[object Object]"===Object.prototype.toString.call(t[n])?(e[n]||(e[n]={}),a(e[n],t[n])):e[n]=t[n]}function l(e,t){s.Z.test("call method",(function(n){const o=n.async();n.expect(3);const s=r.Z.dbus(t,e);n.equal(typeof s.call,"function","is a function"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(e,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("call method with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","NeverReturn",[],{timeout:10}).done((function(e){n.ok(!1,"should not be reached")})).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),s.Z.test("close immediately",(function(n){const o=n.async();n.expect(1);const s=r.Z.dbus(t,e);s.addEventListener("close",(function(e,t){n.equal(t.problem,"test-code","got right code"),o()})),window.setTimeout((function(){s.close("test-code")}),100)})),s.Z.test("call close",(function(n){const o=n.async();n.expect(2);const s=r.Z.dbus(t,e);s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"disconnected","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()})),s.close()})),s.Z.test("call closed",(function(n){const o=n.async();n.expect(2);const s=r.Z.dbus(t,e);s.close("blah-blah"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).fail((function(e){n.equal(e.problem,"blah-blah","got right close code")})).always((function(){n.equal(this.state(),"rejected","call rejected"),o()}))})),s.Z.test("primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","ZWZnAA=="]).done((function(e){n.deepEqual(e,[20,!1,111,1012,10013,100014,1000015,10000016,17/Math.PI,"Word! You said `a string'. Rock'n'roll!","/modified/a/path","assgitasig","Ynl0ZXN0cmluZyH/AA=="],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("integer bounds",(function(n){n.expect(35);const o=r.Z.dbus(t,e);function s(e,t,r){const s=n.async();o.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestVariant",[{t:e,v:t}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs")})).always((function(){r?n.equal(this.state(),"resolved","accepted in bounds number"):n.equal(this.state(),"rejected","rejected out of bounds number"),s()}))}s("y",0,!0),s("y",255,!0),s("y",-1,!1),s("y",256,!1),s("n",-300,!0),s("n",300,!0),s("n",-32769,!1),s("n",32768,!1),s("q",0,!0),s("q",300,!0),s("q",-1,!1),s("q",65536,!1),s("i",-1048575,!0),s("i",1048575,!0),s("i",-2147483649,!1),s("i",2147483648,!1),s("u",0,!0),s("u",1048575,!0),s("u",-1,!1),s("u",4294967296,!1),s("x",-68719476735,!0),s("x",68719476735,!0),s("t",68719476735,!0),s("t",-1,!1)})),s.Z.test("non-primitive types",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestNonPrimitiveTypes",[{one:"red",two:"blue"},{first:[42,42],second:[43,43]},[42,"foo","bar"],["one","two"],["/one","/one/two"],["ass","git"],["QUIA","QkMA"]]).done((function(e){n.deepEqual(e,["{'one': 'red', 'two': 'blue'}{'first': (42, 42), 'second': (43, 43)}(42, 'foo', 'bar')array_of_strings: [one, two] array_of_objpaths: [/one, /one/two] array_of_signatures: [signature 'ass', 'git'] array_of_bytestrings: [AB, BC] "],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("variants",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:r.Z.variant("s","foo"),two:r.Z.variant("o","/bar"),three:r.Z.variant("g","assgit"),four:r.Z.variant("y",42),five:r.Z.variant("d",1e3)}]).done((function(e){n.deepEqual(e,["{'one': <'foo'>, 'two': , 'three': , 'four': , 'five': <1000.0>}"],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("bad variants",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestAsv",[{one:"foo",two:"/bar",three:"assgit",four:42,five:1e3}]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected type 'string' in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("get all",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/otree/frobber","org.freedesktop.DBus.Properties","GetAll",["com.redhat.Cockpit.DBusTests.Frobber"]).done((function(e){n.deepEqual(e,[{FinallyNormalName:{t:"s",v:"There aint no place like home"},ReadonlyProperty:{t:"s",v:"blah"},aay:{t:"aay",v:[]},ag:{t:"ag",v:[]},ao:{t:"ao",v:[]},as:{t:"as",v:[]},ay:{t:"ay",v:"QUJDYWJjAA=="},b:{t:"b",v:!1},d:{t:"d",v:43},g:{t:"g",v:""},i:{t:"i",v:0},n:{t:"n",v:0},o:{t:"o",v:"/"},q:{t:"q",v:0},s:{t:"s",v:""},t:{t:"t",v:0},u:{t:"u",v:0},x:{t:"x",v:0},y:{t:"y",v:42}}],"reply")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("call unimplemented",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnimplementedMethod",[]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Method UnimplementedMethod is not implemented on interface com.redhat.Cockpit.DBusTests.Frobber","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("call bad base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TestPrimitiveTypes",[10,!0,11,12,13,14,15,16,17,"a string","/a/path","asig","Yooohooo!~ bad base64"]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid base64 in argument","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("call unknown",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","UnknownBlahMethod",[1]).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.UnknownMethod","error name"),n.equal(e.message,"Introspection data for method com.redhat.Cockpit.DBusTests.Frobber UnknownBlahMethod not available","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("signals",(function(n){const o=n.async();n.expect(6);let s=!1;const i=r.Z.dbus(t,e);i.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(e,t,o,r){s||(n.equal(e,"/otree/frobber","got right path"),n.equal(t,"com.redhat.Cockpit.DBusTests.Frobber","got right path"),n.equal(o,"TestSignal","signals: got right path"),n.deepEqual(r,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),s=!0)})),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(s,!0,"signal received"),o()}))})),s.Z.test("signal unsubscribe",(function(n){const o=n.async();n.expect(4);let s=!0;const i=r.Z.dbus(t,e);const a=i.subscribe({interface:"com.redhat.Cockpit.DBusTests.Frobber",path:"/otree/frobber"},(function(){s=!0}));i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(s,!0,"signal received")})).then((function(){a.remove(),s=!1,i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","second emission requested"),n.equal(s,!1,"signal not received"),o()}))}))})),s.Z.test("with types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32],{type:"a{ss}uit"}).done((function(e,t){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"round trip"),n.equal(t.type,"a{ss}uit","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("with meta",(function(n){const o=n.async();n.expect(2);const s={"borkety.Bork":{methods:{Echo:{in:["a{ss}","u","i","t"],out:["a{ss}","u","i","t"]}}}},i=r.Z.dbus(t,e);i.addEventListener("meta",(function(e,t){n.deepEqual(t,s,"got meta data")})),i.meta(s),i.call("/bork","borkety.Bork","Echo",[{one:"red",two:"blue"},55,66,32]).then((function(e){n.deepEqual(e,[{one:"red",two:"blue"},55,66,32],"returned round trip")}),(function(e){console.log(e),n.ok(!1,"shouldn't fail")})).always((function(){i.close(),o()}))})),s.Z.test.skipWithPybridge("empty base64",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[""],{type:"ay"}).done((function(e,t){n.deepEqual(e,[""],"round trip"),n.equal(t.type,"ay","got back type")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("invalid/path","borkety.Bork","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'object path is invalid in dbus "call": invalid/path',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad interface name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","!invalid!interface!","Echo",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'interface name is invalid in dbus "call": !invalid!interface!',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad method name",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","!Invalid!Method!",[1]).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'member name is invalid in dbus "call": !Invalid!Method!',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad flags",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/path","borkety.Bork","Method",[1],{flags:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "flags" field is invalid in dbus call',"error message")})).always((function(){o()}))})),s.Z.test.skipWithPybridge("bad types",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:"!!%%"}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" signature is not valid in dbus call: !!%%',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad type invalid",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo",[1],{type:5}).fail((function(e){n.equal(e.problem,"protocol-error","error name"),n.equal(e.message,'the "type" field is invalid in call',"error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad dict type",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",[{"!!!":"value"}],{type:"a{is}"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Unexpected key '!!!' in dict entry","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad object path",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["not/a/path"],{type:"o"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid object path 'not/a/path'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test.skipWithPybridge("bad signature",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","Nobody",["bad signature"],{type:"g"}).fail((function(e){n.equal(e.name,"org.freedesktop.DBus.Error.InvalidArgs","error name"),n.equal(e.message,"Invalid signature 'bad signature'","error message")})).always((function(){n.equal(this.state(),"rejected","should fail"),o()}))})),s.Z.test("flags",(function(n){const o=n.async();n.expect(3);r.Z.dbus(t,e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"],{flags:""}).done((function(e,t){n.equal(typeof t.flags,"string","is string"),n.ok(-1!==t.flags.indexOf(">")||-1!==t.flags.indexOf("<"),"has byte order")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("without introspection",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).call("/bork","borkety.Bork","Echo").done((function(e){n.deepEqual(e,[],"round trip")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),o()}))})),s.Z.test("watch path",(function(n){const o=n.async();n.expect(2);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch("/otree/frobber").done((function(){n.equal(typeof s["/otree/frobber"],"object","has path"),n.deepEqual(s["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),i.removeEventListener("notify",l),o()}))})),s.Z.test("watch object manager",(function(n){const o=n.async();n.expect(1);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),i.removeEventListener("notify",l),o()}))})),s.Z.test("watch change",(n=>{const o=n.async();n.expect(2);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l);const c=(e,t)=>{n.equal(typeof s["/otree/frobber"],"object","has path"),n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),i.removeEventListener("notify",l),i.removeEventListener("notify",c)};i.addEventListener("notify",c),i.watch("/otree/frobber").then((()=>o()))})),s.Z.test("watch barrier",(function(n){const o=n.async();n.expect(2);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch({path_namespace:"/otree"}),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).done((function(e){n.deepEqual(s["/otree/frobber"]["com.redhat.Cockpit.DBusTests.Frobber"],{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data")})).always((function(){n.equal(this.state(),"resolved","finished successfully"),i.removeEventListener("notify",l),o()}))})),s.Z.test("watch interfaces",(function(n){const o=n.async();n.expect(3);const s={},i=r.Z.dbus(t,e),l=(e,t)=>a(s,t);i.addEventListener("notify",l),i.watch({path_namespace:"/otree"}).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42}}},"correct data"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","AddAlpha",[]).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":{}}},"correct data"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","RemoveAlpha",[]).done((function(){n.deepEqual(s,{"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"com.redhat.Cockpit.DBusTests.Alpha":null}},"correct data"),i.removeEventListener("notify",l),o()}))}))}))})),s.Z.test.skipWithPybridge("path loop",(function(n){const o=n.async();n.expect(2);const s="yo"+(new Date).getTime(),i={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(i,t);a.addEventListener("notify",l),a.watch({path_namespace:"/cliques/"+s}).done((function(){a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateClique",[s]).done((function(e){const t={};for(let e=0;e<3;e++)t["/cliques/"+s+"/"+e]={"com.redhat.Cockpit.DBusTests.Clique":{Friend:"/cliques/"+s+"/"+(e+1)%3}};n.deepEqual(i,t,"got all data before method reply")})).always((function(){n.equal(this.state(),"resolved","method called"),a.removeEventListener("notify",l),o()}))}))})),s.Z.test.skipWithPybridge("path signal",(function(n){const o=n.async();n.expect(4);const s="yo"+(new Date).getTime(),i={},a=r.Z.dbus(t,e),l=(e,t)=>Object.assign(i,t);a.addEventListener("notify",l),a.watch({path:"/hidden/"+s}).done((function(){n.deepEqual(i,{},"no data yet"),a.subscribe({path:"/hidden/"+s},(function(e,t,o){n.equal(typeof i[e],"object","have object"),n.deepEqual(i[e],{"com.redhat.Cockpit.DBusTests.Hidden":{Name:s}},"got data before signal"),a.removeEventListener("notify",l)})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","EmitHidden",[s]).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),s.Z.test("proxy",(function(n){const o=n.async();n.expect(7);const s=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");s.wait((function(){n.strictEqual(s.valid,!0,"proxy: is valid"),n.deepEqual(s.data,{FinallyNormalName:"There aint no place like home",ReadonlyProperty:"blah",aay:[],ag:[],ao:[],as:[],ay:"QUJDYWJjAA==",b:!1,d:43,g:"",i:0,n:0,o:"/",q:0,s:"",t:0,u:0,x:0,y:42},"correct data"),n.strictEqual(s.FinallyNormalName,"There aint no place like home","property value"),n.strictEqual(s.ReadonlyProperty,"blah","another property value"),n.equal(typeof s.HelloWorld,"function","has function defined"),s.HelloWorld("From a proxy").done((function(e){n.equal(e,"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))}))})),s.Z.test("proxy call",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("HelloWorld",["From a proxy"]).done((function(e){n.equal(e[0],"Word! You said `From a proxy'. I'm Skeleton, btw!","method args")})).always((function(){n.equal(this.state(),"resolved","method called"),o()}))})),s.Z.test("proxy call with timeout",(function(n){const o=n.async();n.expect(2);r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber").call("NeverReturn",[],{timeout:10}).fail((function(e){n.ok(["org.freedesktop.DBus.Error.Timeout","org.freedesktop.DBus.Error.NoReply"].indexOf(e.name)>=0)})).always((function(){n.equal(this.state(),"rejected","call timed out"),o()}))})),s.Z.test("proxy signal",(function(n){const o=n.async();n.expect(4);let s=!1;const i=r.Z.dbus(t,e).proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber"),a=(e,t,o)=>{n.equal(t,"TestSignal","signals: got right name"),n.deepEqual(o,[43,["foo","frobber"],["/foo","/foo/bar"],{first:[42,42],second:[43,43]}],"got right arguments"),s=!0};i.addEventListener("signal",a),i.call("RequestSignalEmission",[0]).always((function(){n.equal(this.state(),"resolved","emission requested"),n.equal(s,!0,"signal received"),i.removeEventListener("signal",a),o()}))})),s.Z.test("proxy explicit notify",(function(n){const o=n.async();n.expect(1);const s=r.Z.dbus(t,e),i=s.proxy("com.redhat.Cockpit.DBusTests.Frobber","/otree/frobber");i.wait().done((function(){const e=()=>{n.equal(i.FinallyNormalName,"externally injected"),i.removeEventListener("changed",e),o()};i.addEventListener("changed",e),s.notify({"/otree/frobber":{"com.redhat.Cockpit.DBusTests.Frobber":{FinallyNormalName:"externally injected"}}})}))})),s.Z.test("proxies",(function(n){const o=n.async();n.expect(13);const s=r.Z.dbus(t,e);s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteAllObjects",[]).always((function(){n.equal(this.state(),"resolved","deleted stray objects");const e=s.proxies("com.redhat.Cockpit.DBusTests.Frobber","/otree");e.wait().always((function(){let t,r,i;e.addEventListener("added",(function(e,o){t=o,n.strictEqual(t.valid,!0,"added objects valid")})),e.addEventListener("changed",(function(e,t){r=t})),e.addEventListener("removed",(function(e,t){i=t})),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","CreateObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","create objects done"),n.equal(typeof t,"object","got added object"),n.equal(typeof r,"object","no changed object yet"),n.equal(typeof i,"undefined","no removed object yet"),n.equal(t.path,"/otree/other","added object correct"),n.strictEqual(t,r,"added fires changed"),r=null,s.call(t.path,t.iface,"RequestPropertyMods",[]).always((function(){n.equal(this.state(),"resolved","changed object"),n.strictEqual(r,t,"change fired"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","DeleteObject",["/otree/other"]).always((function(){n.equal(this.state(),"resolved","removed object"),n.strictEqual(i,t,"removed fired"),n.strictEqual(i.valid,!1,"removed is invalid"),s.close(),o()}))}))}))}))}))}))}function c(e,t){s.Z.test("track name",(function(n){const o=n.async();n.expect(4);const s="yo.x"+(new Date).getTime();let i=!1,a=!1;const l=r.Z.dbus(t,e);l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[s]).always((function(){n.equal(this.state(),"resolved","name claimed");const t=r.Z.dbus(s,{bus:e.bus,address:e.address,track:!0});t.addEventListener("close",(function(e,t){n.strictEqual(t.problem,void 0,"no problem"),a=!0,i&&o()})),t.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){n.equal(this.state(),"resolved","called on other name"),l.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[s]).always((function(){n.equal(this.state(),"resolved","name released"),i=!0,a&&o()}))}))}))})),s.Z.test("no track name",(function(t){const n=t.async();t.expect(5);const o="yo.y"+(new Date).getTime();let s=!1;const i=r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e);i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name claimed");const a=r.Z.dbus(o,e);a.addEventListener("close",(function(e,t){s=!0})),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"resolved","called on other name"),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[o]).always((function(){t.equal(this.state(),"resolved","name released"),a.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){t.equal(this.state(),"rejected","call after release should fail"),t.equal(s,!1,"is not gone"),n()}))}))}))}))})),s.Z.test.skipWithPybridge("receive readable fd",(function(t){const n=t.async();t.expect(4);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n),s=t.async();o.onmessage=function(e,n){t.equal(n,"Hello, fd"),o.close(),s()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),s.Z.test.skipWithPybridge("receive readable fd and ensure opening more than once fails",(function(t){const n=t.async();t.expect(7);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);t.ok(o);const s=r.Z.channel(n),i=t.async();s.onclose=function(e,n){t.equal(n.channel,s.id),t.equal(n.command,"close"),t.equal(n.problem,"not-found"),i()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),s.Z.test.skipWithPybridge("receive readable fd and ensure writing fails",(function(t){const n=t.async();t.expect(6);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["readable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd");const s=t.async();o.onclose=function(e,n){t.equal(n.channel,o.id),t.equal(n.command,"close"),t.equal(n.problem,"protocol-error"),s()}})).always((function(){t.equal(this.state(),"resolved","fd received"),n()}))})),s.Z.test.skipWithPybridge("receive writable fd",(function(t){const n=t.async();t.expect(3);r.Z.dbus("com.redhat.Cockpit.DBusTests.Test",e).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","MakeTestFd",["writable"]).done((function(e){const n=e[0];t.equal(typeof n.internal,"string"),t.equal(n.payload,"stream");const o=r.Z.channel(n);o.send("Hello, fd"),o.close()})).always((function(){t.equal(this.state(),"resolved","fd received and not writable"),n()}))}))}s=(i.then?(await i)():i)[0],o()}catch(u){o(u)}}))},714:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),s=n(347),i=e([r,s]);[r,s]=i.then?(await i)():i;const a={bus:"session"};function l(e,t){const n=e.async();e.expect(2);o.Z.dbus(null,t).call("/","org.freedesktop.DBus.Introspectable","Introspect").done((function(t){e.ok(-1!==String(t[0]).indexOf("1,"initial owner not empty"),a=n):1===r?e.strictEqual(n,null,"no owner"):2===r&&e.strictEqual(n,a,"has owner again"),r++}function c(){s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ClaimOtherName",[n]).always((function(){e.equal(this.state(),"resolved","name claimed"),i?(e.strictEqual(r,3,"owner changed three times"),t()):(i=o.Z.dbus(n,{bus:"session"}),i.addEventListener("owner",l),i.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["test"]).always((function(){e.equal(this.state(),"resolved","called on other name"),s.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","ReleaseOtherName",[n]).always((function(){e.equal(this.state(),"resolved","name released"),c()}))})))}))}c()})),r.Z.test.skipWithPybridge("bad dbus address",(function(e){const t=e.async();e.expect(1);o.Z.dbus(null,{bus:"none",address:"bad"}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error","bad address closed"),t()}))})),r.Z.test.skipWithPybridge("bad dbus bus",(function(e){const t=e.async();e.expect(1);o.Z.dbus(null,{bus:"bad"}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error","bad bus format"),t()}))})),r.Z.test("wait ready",(function(e){const t=e.async();e.expect(1);const n=o.Z.dbus("com.redhat.Cockpit.DBusTests.Test",{bus:"session"});n.wait().then((function(t){e.ok(!!n.unique_name,"wait fills unique_name")}),(function(){e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test("wait fail",(function(e){const t=e.async();e.expect(1);o.Z.dbus("com.redhat.Cockpit.DBusTests.NotExisting",{bus:"session"}).wait().then((function(t){e.ok(!1,"shouldn't succeed")}),(function(){e.ok(!0,"should fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name",(function(e){const t=e.async();e.expect(1);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:"com.redhat.Cockpit.DBusTests.Test"}).then((function(t){e.deepEqual(t,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"replied")}),(function(t){e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name bad",(function(e){const t=e.async();e.expect(2);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:5}).then((function(t){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'the "name" field is invalid in dbus call',"error message")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name invalid",(function(e){const t=e.async();e.expect(2);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:"!invalid!"}).then((function(t){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'the "name" field in dbus call is not a valid bus name: !invalid!',"error message")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name missing",(function(e){const t=e.async();e.expect(2);o.Z.dbus(null,{bus:"session"}).call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"]).then((function(t){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'the "name" field is missing in dbus call',"error message")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("no default name second",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session"});n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[],{name:"com.redhat.Cockpit.DBusTests.Test"}).then((function(t){return e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Test"],"right name"),n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[],{name:"com.redhat.Cockpit.DBusTests.Second"}).then((function(t){e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Second"],"second name")}),(function(t){e.ok(!1,"shouldn't fail")}))}),(function(t){console.log(t),e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("override default name",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus("com.redhat.Cockpit.DBusTests.Test",{bus:"session"});n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[]).then((function(t){return e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Test"],"right name"),n.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","TellMeYourName",[],{name:"com.redhat.Cockpit.DBusTests.Second"}).then((function(t){e.deepEqual(t,["com.redhat.Cockpit.DBusTests.Second"],"second name")}),(function(t){e.ok(!1,"shouldn't fail")}))}),(function(t){console.log(t),e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test.skipWithPybridge("watch no default name",(function(e){const t=e.async();e.expect(1);const n={},r=o.Z.dbus(null,{bus:"session"});r.addEventListener("notify",(function(e,t){Object.assign(n,t)})),r.watch({path:"/otree/frobber",name:"com.redhat.Cockpit.DBusTests.Second"}).then((function(){e.equal(typeof n["/otree/frobber"],"object","has path")}),(function(t){e.ok(!1,"shouldn't fail")})).always((function(){r.close(),t()}))})),r.Z.test.skipWithPybridge("watch missing name",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session",other:"option"});n.watch("/otree/frobber").then((function(){e.ok(!1,"shouldn't succeed")}),(function(t){e.equal(t.problem,"protocol-error","error problem"),e.equal(t.message,'session: no "name" specified in match',"error message")})).always((function(){n.close(),t()}))})),r.Z.test.skipWithPybridge("shared client",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session"}),r=o.Z.dbus(null,{bus:"session"});e.strictEqual(n,r,"shared bus returned"),n.close(),r.call("/otree/frobber","com.redhat.Cockpit.DBusTests.Frobber","HelloWorld",["Browser-side JS"],{name:"com.redhat.Cockpit.DBusTests.Test"}).then((function(t){e.deepEqual(t,["Word! You said `Browser-side JS'. I'm Skeleton, btw!"],"call still works")}),(function(t){e.ok(!1,"shouldn't fail")})).always((function(){t()}))})),r.Z.test("not shared option",(function(e){e.expect(1);const t=o.Z.dbus(null,{bus:"session"}),n=o.Z.dbus(null,{bus:"session",other:"option"});e.notStrictEqual(t,n,"shared bus returned"),t.close(),n.close()})),r.Z.test.skipWithPybridge("emit signal meta",(function(e){const t=e.async();e.expect(4);let n=!1;const r=o.Z.dbus(null,{bus:"session",other:"option"});r.meta({"borkety.Bork":{signals:{Bork:{in:["i","i","i","i","s"]}}}}),r.wait((function(){r.subscribe({path:"/bork",name:r.unique_name},(function(o,s,i,a){e.equal(o,"/bork","reflected path"),e.equal(s,"borkety.Bork","reflected interface"),e.equal(i,"Bork","reflected signal"),e.deepEqual(a,[1,2,3,4,"Bork"],"reflected arguments"),n=!0,r.close(),t()})),r.addEventListener("close",(function(o,r){n||(console.log(r),e.ok(!1,"shouldn't fail"),t())})),r.signal("/bork","borkety.Bork","Bork",[1,2,3,4,"Bork"],{type:"iiiis"})}))})),r.Z.test.skipWithPybridge("emit signal type",(function(e){const t=e.async();e.expect(4);let n=!1;const r=o.Z.dbus(null,{bus:"session",other:"option"});r.wait((function(){r.subscribe({path:"/bork",name:r.unique_name},(function(o,s,i,a){e.equal(o,"/bork","reflected path"),e.equal(s,"borkety.Bork","reflected interface"),e.equal(i,"Bork","reflected signal"),e.deepEqual(a,[1,2,3,4,"Bork"],"reflected arguments"),n=!0,r.close(),t()})),r.addEventListener("close",(function(o,r){n||(console.log(r),e.ok(!1,"shouldn't fail"),t())})),r.signal("/bork","borkety.Bork","Bork",[1,2,3,4,"Bork"],{type:"iiiis"})}))})),r.Z.test.skipWithPybridge("emit signal no meta",(function(e){const t=e.async();e.expect(2);const n=o.Z.dbus(null,{bus:"session",other:"option"});n.addEventListener("close",(function o(r,s){e.equal(s.problem,"protocol-error","correct problem"),e.equal(s.message,"signal argument types for signal borkety.Bork Bork unknown","correct message"),n.removeEventListener("close",o),n.close(),t()})),n.signal("/bork","borkety.Bork","Bork",[1,2,3,4,"Bork"])})),r.Z.test.skipWithPybridge("publish object",(function(e){const t=e.async();e.expect(4);let n=null;const r={Add:function(e,t){return String(e+t)},Live:function(e){n=e}},s=o.Z.dbus(null,{bus:"session"});s.meta({"org.Interface":{methods:{Add:{in:["i","i"],out:["s"]},Live:{in:["s"]}}}}),s.wait().then((function(){const o=s.publish("/a/path","org.Interface",r);o.then((function(){e.ok(!0,"should resolve")}),(function(){e.ok(!1,"should not have failed")})),s.call("/a/path","org.Interface","Live",["marmalade"],{name:s.unique_name}),s.call("/a/path","org.Interface","Add",[3,44],{name:s.unique_name}).then((function(t){e.ok(o,"object was published"),e.deepEqual(t,["47"],"got back right reply"),e.strictEqual(n,"marmalade","received right arguments")}),(function(t){e.ok(!1,"should not have failed")})).always((function(){s.close(),t()}))}))})),r.Z.test.skipWithPybridge("publish object promise",(function(e){const t=e.async();e.expect(1);const n={Add:function(e,t){const n=o.Z.defer();return window.setTimeout((function(){n.resolve(String(e+t),e,t)}),200),n.promise}},r=o.Z.dbus(null,{bus:"session"});r.meta({"org.Interface":{methods:{Add:{in:["i","i"],out:["s","i","i"]}}}}),r.wait().then((function(){r.publish("/a/path","org.Interface",n),r.call("/a/path","org.Interface","Add",[3,44],{name:r.unique_name}).then((function(t){e.deepEqual(t,["47",3,44],"got back right reply")}),(function(t){e.ok(!1,"should not have failed")})).always((function(){r.close(),t()}))}))})),r.Z.test.skipWithPybridge("publish object failure",(function(e){const t=e.async();e.expect(2);const n={Fails:function(e,t){const n=o.Z.defer(),r=new Error("this is the message");return r.name="org.Error",window.setTimeout((function(){n.reject(r)}),5),n.promise}},r=o.Z.dbus(null,{bus:"session"});r.meta({"org.Interface":{methods:{Fails:{in:["i","i"],out:["s","i","i"]}}}}),r.wait().then((function(){r.publish("/a/path","org.Interface",n),r.call("/a/path","org.Interface","Fails",[3,44],{name:r.unique_name}).then((function(t){e.ok(!1,"should not have succeeded")}),(function(t){e.strictEqual(t.name,"org.Error","got right error name"),e.strictEqual(t.message,"this is the message","got right error message")})).always((function(){r.close(),t()}))}))})),r.Z.test.skipWithPybridge("publish object replaces",(function(e){const t=e.async();e.expect(2);const n={Bonk:function(e){return e+" bonked"}},r={Bonk:function(e){return"nope not bonked"}},s=o.Z.dbus(null,{bus:"session"});s.meta({"org.Interface":{methods:{Bonk:{in:["s"],out:["s"]}}}}),s.wait().then((function(){s.publish("/a/path","org.Interface",n),s.call("/a/path","org.Interface","Bonk",["hi"],{name:s.unique_name}).then((function(n){e.deepEqual(n,["hi bonked"],"got back reply from first object"),s.publish("/a/path","org.Interface",r),s.call("/a/path","org.Interface","Bonk",["hi"],{name:s.unique_name}).then((function(t){e.deepEqual(t,["nope not bonked"],"got back reply from second object")}),(function(){e.ok(!1,"should not have failed")})).always((function(){s.close(),t()}))}),(function(t){e.ok(!1,"should not have failed")}))}))})),r.Z.test.skipWithPybridge("publish object unpublish",(function(e){const t=e.async();e.expect(4);const n={Bonk:function(e){return e+" bonked"}},r=o.Z.dbus(null,{bus:"session"});r.meta({"org.Interface":{methods:{Bonk:{in:["s"],out:["s"]}}}}),r.wait().then((function(){const o=r.publish("/a/path","org.Interface",n);r.call("/a/path","org.Interface","Bonk",["hi"],{name:r.unique_name}).then((function(n){e.deepEqual(n,["hi bonked"],"got back reply from first object"),o.remove(),r.call("/a/path","org.Interface","Bonk",["hi"],{name:r.unique_name}).then((function(t){e.ok(!1,"should not have succeeded")}),(function(t){e.strictEqual(t.name,"org.freedesktop.DBus.Error.UnknownMethod","got right error name"),e.ok(t.message.includes("No such interface")||t.message.includes("Object does not exist"),"unexpected error: "+t.message),e.ok(t.message.indexOf("/a/path")>0,"unexpected error: "+t.message)})).always((function(){r.close(),t()}))}),(function(t){e.ok(!1,"should not have failed")}))}))})),r.Z.test("internal dbus",(function(e){l(e,{bus:"internal"})})),r.Z.test.skipWithPybridge("internal dbus bus none",(function(e){l(e,{bus:"none"})})),r.Z.test.skipWithPybridge("internal dbus bus none with address",(function(e){l(e,{bus:"none",address:"internal"})})),r.Z.test.skipWithPybridge("separate dbus connections for channel groups",(function(e){const t=e.async();e.expect(4);const n=o.Z.channel({payload:"dbus-json3",group:"foo",bus:"session"}),r=o.Z.channel({payload:"dbus-json3",group:"bar",bus:"session"}),s=o.Z.channel({payload:"dbus-json3",group:"foo",bus:"session"}),i=o.Z.channel({payload:"dbus-json3",group:"baz",bus:"session"});Promise.all([n.wait(),r.wait(),s.wait(),i.wait()]).then((function([n,o,r,s]){e.equal(n["unique-name"],r["unique-name"]),e.notEqual(n["unique-name"],o["unique-name"]),e.notEqual(n["unique-name"],s["unique-name"]),e.notEqual(o["unique-name"],s["unique-name"]),t()}))})),r.Z.test("cockpit.Config internal D-Bus API",(async e=>{const t=o.Z.dbus(null,{bus:"internal"}),n=(await t.call("/environment","org.freedesktop.DBus.Properties","Get",["cockpit.Environment","Variables"]))[0].v.XDG_CONFIG_DIRS;await o.Z.file(n+"/cockpit/cockpit.conf").replace("\n[SomeSection]\nSomeA = one\nSomethingElse = 2\nLargeNum = 12345\n\n[Other]\nFlavor=chocolate\nEmpty=\n");const r=t.proxy("cockpit.Config","/config");await r.wait(),await r.Reload(),e.equal(await r.GetString("SomeSection","SomeA"),"one"),e.equal(await r.GetString("Other","Empty"),""),e.equal(await r.GetUInt("SomeSection","SomethingElse",10,100,0),2),e.equal(await r.GetUInt("SomeSection","NotExisting",10,100,0),10),e.equal(await r.GetUInt("SomeSection","SomethingElse",42,50,5),5),e.equal(await r.GetUInt("SomeSection","LargeNum",42,50,5),50),e.equal(await r.GetUInt("SomeSection","SomeA",10,100,0),10),e.rejects(r.GetString("UnknownSection","SomeKey"),/key.*UnknownSection.*not exist/,"unknown section raises an error"),e.rejects(r.GetString("SomeSection","UnknownKey"),/key.*UnknownKey.*not exist/,"unknown key raises an error")})),r.Z.start(),t()}catch(c){t(c)}}))}},s={};function i(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},i.a=(r,s,i)=>{var a;i&&((a=[]).d=1);var l,c,u,d=new Set,f=r.exports,p=new Promise(((e,t)=>{u=t,c=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,s((r=>{var s;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var s=[];s.d=0,r.then((e=>{i[t]=e,o(s)}),(e=>{i[n]=e,o(s)}));var i={};return i[e]=e=>e(s),i}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var i=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),c=new Promise((t=>{(s=()=>t(i)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(s.r++,e.push(s)));l.map((t=>t[e](n)))}));return s.r?c:i()}),(e=>(e?u(p[n]=e):c(f),o(a)))),a&&(a.d=0)},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);i(714)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-echo.js cockpit-284/dist/base1/test-echo.js --- cockpit-283/dist/base1/test-echo.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-echo.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-echo.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=y(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var q=new Array(w),I=w-1;I>=0;--I)q[I]=g.poll();q.total=w+k,a(q)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                Expected:
                                "+nt(n)+"
                                Result:
                                "+nt(r)+"
                                Diff:
                                "+i+"
                                Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                Source:
                                "+nt(e.source)+"
                                "):!e.result&&e.source&&(s+="
                                Source:
                                "+nt(e.source)+"
                                ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                Source:
                                "+nt(e.stack)+"
                                ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function q(e,t,n){return'
                              1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                 
                                ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                "+nt(v.title)+"

                                "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                ")+"

                                  ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                  ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                  "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},468:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("basic",(function(e){const t=e.async();e.expect(4);const n=o.Z.channel({payload:"echo"});let r=0;const i=(o,s)=>{0===r?(e.equal(s.command,"ready","got ready"),r+=1):(e.equal(s.command,"done","got done"),n.close(),n.removeEventListener("control",i),t())};n.addEventListener("control",i),n.addEventListener("message",((t,o)=>{e.strictEqual(o,"the payload","got the right payload"),n.control({command:"done"})})),e.strictEqual(n.binary,!1,"not binary"),n.send("the payload")})),r.Z.test("binary empty",(function(e){const t=e.async();e.expect(2);const n=o.Z.channel({payload:"echo",binary:!0}),r=(o,i)=>{e.ok(i instanceof Uint8Array,"got a byte array"),e.strictEqual(i.length,0,"got the right payload"),n.removeEventListener("message",r),t()};n.addEventListener("message",r),n.send("")})),r.Z.test("binary",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({payload:"echo",binary:!0}),r=(o,i)=>{e.ok(i instanceof Uint8Array,"got a byte array");const s=[];for(let e=0;e{const t=e.async();if(await r.Z.mock_info("pybridge"))return e.ok(!0,"skipping on python bridge, not implemented"),void t();e.expect(2);const n=o.Z.channel({payload:"echo"});n.addEventListener("message",l);const i=o.Z.channel({payload:"echo",group:"fence"});i.addEventListener("message",l);const s=o.Z.channel({payload:"echo"});s.addEventListener("message",l);const a=[];function l(o,r){a.push(r),3==a.length?(e.deepEqual(a,["1","2","3"],"got back before and fence data"),i.close()):5==a.length&&(e.deepEqual(a,["1","2","3","4","5"],"got back data in right order"),n.close(),s.close(),t())}n.send("1"),s.send("4"),s.send("5"),i.send("2"),i.send("3")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(468)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                  ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new P;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(B.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(B.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){ye({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Be(0,0),bold:Be(1,22),dim:Be(2,22),italic:Be(3,23),underline:Be(4,24),inverse:Be(7,27),hidden:Be(8,28),strikethrough:Be(9,29),black:Be(30,39),red:Be(31,39),green:Be(32,39),yellow:Be(33,39),blue:Be(34,39),magenta:Be(35,39),cyan:Be(36,39),white:Be(37,39),gray:Be(90,39),grey:Be(90,39),bgBlack:Be(40,49),bgRed:Be(41,49),bgGreen:Be(42,49),bgYellow:Be(43,49),bgBlue:Be(44,49),bgMagenta:Be(45,49),bgCyan:Be(46,49),bgWhite:Be(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],E=new Array(y),x=y-1;x>=0;--x)(j=c(k,C=b[x]))?(f(j)||(j=p.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sh.peek().score&&h.replaceTop(E))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,x=o.keys,S=x.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=x[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=y(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var q=new Array(w),I=w-1;I>=0;--I)q[I]=g.poll();q.total=w+k,a(q)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                  ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),P(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                  Expected:
                                  "+nt(n)+"
                                  Result:
                                  "+nt(r)+"
                                  Diff:
                                  "+i+"
                                  Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                  Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                  Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                  Source:
                                  "+nt(e.source)+"
                                  "):!e.result&&e.source&&(s+="
                                  Source:
                                  "+nt(e.source)+"
                                  ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){E(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=B("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                  Source:
                                  "+nt(e.stack)+"
                                  ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function q(e,t,n){return'
                                1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                   
                                  ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                  "+nt(v.title)+"

                                  "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                  Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                  ")+"

                                    ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function B(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                    ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                    "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,E,x,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,E=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(E>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,E,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(x>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},468:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("basic",(function(e){const t=e.async();e.expect(4);const n=o.Z.channel({payload:"echo"});let r=0;const i=(o,s)=>{0===r?(e.equal(s.command,"ready","got ready"),r+=1):(e.equal(s.command,"done","got done"),n.close(),n.removeEventListener("control",i),t())};n.addEventListener("control",i),n.addEventListener("message",((t,o)=>{e.strictEqual(o,"the payload","got the right payload"),n.control({command:"done"})})),e.strictEqual(n.binary,!1,"not binary"),n.send("the payload")})),r.Z.test("binary empty",(function(e){const t=e.async();e.expect(2);const n=o.Z.channel({payload:"echo",binary:!0}),r=(o,i)=>{e.ok(i instanceof Uint8Array,"got a byte array"),e.strictEqual(i.length,0,"got the right payload"),n.removeEventListener("message",r),t()};n.addEventListener("message",r),n.send("")})),r.Z.test("binary",(function(e){const t=e.async();e.expect(3);const n=o.Z.channel({payload:"echo",binary:!0}),r=(o,i)=>{e.ok(i instanceof Uint8Array,"got a byte array");const s=[];for(let e=0;e{const t=e.async();if(await r.Z.mock_info("pybridge"))return e.ok(!0,"skipping on python bridge, not implemented"),void t();e.expect(2);const n=o.Z.channel({payload:"echo"});n.addEventListener("message",l);const i=o.Z.channel({payload:"echo",group:"fence"});i.addEventListener("message",l);const s=o.Z.channel({payload:"echo"});s.addEventListener("message",l);const a=[];function l(o,r){a.push(r),3==a.length?(e.deepEqual(a,["1","2","3"],"got back before and fence data"),i.close()):5==a.length&&(e.deepEqual(a,["1","2","3","4","5"],"got back data in right order"),n.close(),s.close(),t())}n.send("1"),s.send("4"),s.send("5"),i.send("2"),i.send("3")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(468)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-events.js cockpit-284/dist/base1/test-events.js --- cockpit-283/dist/base1/test-events.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-events.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-events.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                    ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){we({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],E=new Array(w),x=w-1;x>=0;--x)(j=c(k,C=b[x]))?(f(j)||(j=p.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sh.peek().score&&h.replaceTop(E))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,x=o.keys,S=x.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=x[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var q=new Array(y),I=y-1;I>=0;--I)q[I]=g.poll();q.total=y+k,a(q)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                    ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                    Expected:
                                    "+nt(n)+"
                                    Result:
                                    "+nt(r)+"
                                    Diff:
                                    "+i+"
                                    Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                    Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                    Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                    Source:
                                    "+nt(e.source)+"
                                    "):!e.result&&e.source&&(s+="
                                    Source:
                                    "+nt(e.source)+"
                                    ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){E(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                    Source:
                                    "+nt(e.stack)+"
                                    ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function q(e,t,n){return'
                                  1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                     
                                    ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                    "+nt(v.title)+"

                                    "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                    ")+"

                                      ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                      "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,E,x,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,E=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(E>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,E,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(x>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},206:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("event dispatch",(function(e){const t={};o.Z.event_target(t);let n=0;function r(t){0===n&&(e.equal(typeof t,"object","event is object"),e.equal(t.type,"action","event.type is 'action'"),e.equal(t.data,"Data","event.data is set")),n+=1}const i=new Event("action",{bubbles:!1,cancelable:!1});i.data="Data",t.dispatchEvent(i),e.strictEqual(n,0,"count is zero"),t.onaction=r,t.dispatchEvent(i),e.strictEqual(n,1,"count is one"),t.addEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,3,"count is three"),t.addEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,6,"count is six"),t.removeEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,8,"count is eight"),t.onaction=null,t.dispatchEvent(i),e.strictEqual(n,9,"count is nine"),t.removeEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,9,"count is still nine")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(206)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){we({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],E=new Array(w),x=w-1;x>=0;--x)(j=c(k,C=b[x]))?(f(j)||(j=p.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sh.peek().score&&h.replaceTop(E))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,x=o.keys,S=x.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=x[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var q=new Array(y),I=y-1;I>=0;--I)q[I]=g.poll();q.total=y+k,a(q)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                      Expected:
                                      "+nt(n)+"
                                      Result:
                                      "+nt(r)+"
                                      Diff:
                                      "+i+"
                                      Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                      Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                      Source:
                                      "+nt(e.source)+"
                                      "):!e.result&&e.source&&(s+="
                                      Source:
                                      "+nt(e.source)+"
                                      ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){E(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                      Source:
                                      "+nt(e.stack)+"
                                      ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function q(e,t,n){return'
                                    1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                       
                                      ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                      "+nt(v.title)+"

                                      "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                      ")+"

                                        ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                        "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,E,x,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,E=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(E>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,E,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(x>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},206:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("event dispatch",(function(e){const t={};o.Z.event_target(t);let n=0;function r(t){0===n&&(e.equal(typeof t,"object","event is object"),e.equal(t.type,"action","event.type is 'action'"),e.equal(t.data,"Data","event.data is set")),n+=1}const i=new Event("action",{bubbles:!1,cancelable:!1});i.data="Data",t.dispatchEvent(i),e.strictEqual(n,0,"count is zero"),t.onaction=r,t.dispatchEvent(i),e.strictEqual(n,1,"count is one"),t.addEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,3,"count is three"),t.addEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,6,"count is six"),t.removeEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,8,"count is eight"),t.onaction=null,t.dispatchEvent(i),e.strictEqual(n,9,"count is nine"),t.removeEventListener("action",r,!0),t.dispatchEvent(i),e.strictEqual(n,9,"count is still nine")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(206)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-external.js cockpit-284/dist/base1/test-external.js --- cockpit-283/dist/base1/test-external.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-external.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-external.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                        ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var z=!1;function G(e,t,n){var o,r=z&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}G.only=function(){z||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),z=!0,J.apply(void 0,arguments)},G.skip=function(e,t,n){z||J(e,t,n,{skip:!0})},G.todo=function(e,t,n){z||J(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=_(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=_(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=C.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=L.pollution;ve();var t=T(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=T(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Te(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||pe.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return j(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!j(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||L.currentModule.ignored||new ge(e).queue()}function ye(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,pe.advance())}))):(L.blocking=!1,pe.advance()))}function Te(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Te(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Re=process.env;Oe=Re.FORCE_COLOR,Ne=Re.NODE_DISABLE_COLORS,Me=Re.NO_COLOR,qe=Re.TERM,Ae=process.stdout&&process.stdout.isTTY}var Le={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var Je={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function ze(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var Ge={};L.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){L.blocking=!1,pe.advance()}function Ve(){if(L.started)Ye();else{L.started=C.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(T=c(k,C=b[E]))?(f(T)||(T=h.getPrepared(T)),x[E]=l(e,T,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(T=c(k=t[y],C))&&(f(T)||(T=h.getPrepared(T)),null!==(j=l(e,T,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var T,j;(T=t[y])&&(f(T)||(T=h.getPrepared(T)),null!==(j=l(e,T,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===d)return i;var _=new Array(d);for(y=d-1;y>=0;--y)_[y]=p.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],T=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=h.getPrepared(N)),T[j]=w(t,N,p)):T[j]=null;T.obj=C;var _=d(T);null!==_&&(_g.peek().score&&g.replaceTop(T))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var q=new Array(y),I=y-1;I>=0;--I)q[I]=g.poll();q.total=y+k,a(q)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                        ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                        Expected:
                                        "+nt(n)+"
                                        Result:
                                        "+nt(r)+"
                                        Diff:
                                        "+i+"
                                        Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                        Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                        Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                        Source:
                                        "+nt(e.source)+"
                                        "):!e.result&&e.source&&(s+="
                                        Source:
                                        "+nt(e.source)+"
                                        ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                        Source:
                                        "+nt(e.stack)+"
                                        ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function T(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function q(e,t,n){return'
                                      1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                         
                                        ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                        "+nt(v.title)+"

                                        "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                        Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                        ")+"

                                          ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),L(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                          ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                          "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,T;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(T=-S+m;T<=S-v;T+=2){for(b=a+T,E=(k=T===-S||T!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-T)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>L});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function T(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(T("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},647:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("external get",(function(e){const t=e.async();e.expect(4);const n=window.btoa(JSON.stringify({payload:"fslist1",path:"/tmp",watch:!1})),r=new XMLHttpRequest;r.open("GET","/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n),r.onreadystatechange=function(){4==r.readyState&&(e.equal(r.status,200,"got right status"),e.equal(r.statusText,"OK","got right reason"),e.equal(r.getResponseHeader("Content-Type"),"application/octet-stream","default type"),e.ok(r.responseText.indexOf('"present"'),"got listing"),t())},r.send()})),r.Z.test("external headers",(function(e){const t=e.async();e.expect(3);const n=window.btoa(JSON.stringify({payload:"fslist1",path:"/tmp",watch:!1,external:{"content-disposition":"my disposition; blah","content-type":"test/blah"}})),r=new XMLHttpRequest;r.open("GET","/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n),r.onreadystatechange=function(){4==r.readyState&&(e.equal(this.status,200,"got right status"),e.equal(this.getResponseHeader("Content-Type"),"test/blah","got type"),e.equal(this.getResponseHeader("Content-Disposition"),"my disposition; blah","got disposition"),t())},r.send()})),r.Z.test("external invalid",(function(e){const t=e.async();e.expect(1);const n=new XMLHttpRequest;n.open("GET","/cockpit/channel/invalid"),n.onreadystatechange=function(){4==n.readyState&&(e.equal(this.status,404,"got not found"),t())},n.send()})),r.Z.test("external no token",(function(e){const t=e.async();e.expect(1);const n=window.btoa(JSON.stringify({payload:"fslist1",path:"/tmp",watch:!1})),o=new XMLHttpRequest;o.open("GET","/cockpit/channel/?"+n),o.onreadystatechange=function(){4==o.readyState&&(e.equal(this.status,404,"got not found"),t())},o.send()})),r.Z.test("external websocket",(function(e){const t=e.async();e.expect(3);const n=window.btoa(JSON.stringify({payload:"echo"}));let r=0;const i=new WebSocket("ws://"+window.location.host+"/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n,"protocol-unused");i.onopen=function(){e.ok(!0,"websocket is open"),i.send("oh marmalade")},i.onerror=function(){e.ok(!1,"websocket error")},i.onmessage=function(t){0===r?(e.equal(t.data,"oh marmalade","got payload"),i.send("another test"),r+=1):(e.equal(t.data,"another test","got payload again"),i.close(1e3))},i.onclose=function(){t()}})),o.Z.transport.wait((function(){console.log("cockpittest-tap-expect-resource-error"),r.Z.start()})),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(647)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?j(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                          ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function J(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:J(r,"before"),beforeEach:J(r,"beforeEach"),afterEach:J(r,"afterEach"),after:J(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var $=!1;function G(e,t,n){var o,r=$&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){$||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=j(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=j(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=C.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=L.pollution;ve();var t=T(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=T(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Te(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||pe.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return _(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!_(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||L.currentModule.ignored||new ge(e).queue()}function we(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,pe.advance())}))):(L.blocking=!1,pe.advance()))}function Te(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===Te(e).length}function je(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Re=process.env;Oe=Re.FORCE_COLOR,Ne=Re.NODE_DISABLE_COLORS,Me=Re.NO_COLOR,qe=Re.TERM,Ae=process.stdout&&process.stdout.isTTY}var Le={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function Je(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var ze={beforeEach:Je("beforeEach"),afterEach:Je("afterEach")};function $e(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var Ge={};L.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){L.blocking=!1,pe.advance()}function Ve(){if(L.started)Ye();else{L.started=C.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(T=c(k,C=b[E]))?(f(T)||(T=h.getPrepared(T)),x[E]=l(e,T,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(T=c(k=t[w],C))&&(f(T)||(T=h.getPrepared(T)),null!==(_=l(e,T,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var T,_;(T=t[w])&&(f(T)||(T=h.getPrepared(T)),null!==(_=l(e,T,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var j=new Array(d);for(w=d-1;w>=0;--w)j[w]=p.poll();return j.total=d+g,j},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],T=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=h.getPrepared(N)),T[_]=y(t,N,p)):T[_]=null;T.obj=C;var j=d(T);null!==j&&(jg.peek().score&&g.replaceTop(T))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=h.getPrepared(N)),null!==(M=y(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=h.getPrepared(N)),null!==(M=y(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var q=new Array(w),I=w-1;I>=0;--I)q[I]=g.poll();q.total=w+k,a(q)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=j({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                          ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                          Expected:
                                          "+nt(n)+"
                                          Result:
                                          "+nt(r)+"
                                          Diff:
                                          "+i+"
                                          Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                          Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                          Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                          Source:
                                          "+nt(e.source)+"
                                          "):!e.result&&e.source&&(s+="
                                          Source:
                                          "+nt(e.source)+"
                                          ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                          Source:
                                          "+nt(e.stack)+"
                                          ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function T(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=j(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function j(e){var t="?",n=p.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function q(e,t,n){return'
                                        1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                           
                                          ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                          "+nt(v.title)+"

                                          "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                          Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                          ")+"

                                            ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),L(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=j({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                            ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                            "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,S,C,T;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(T=-S+m;T<=S-v;T+=2){for(b=a+T,E=(k=T===-S||T!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-T)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>L});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function T(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function j(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=j();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(T("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const J={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},647:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("external get",(function(e){const t=e.async();e.expect(4);const n=window.btoa(JSON.stringify({payload:"fslist1",path:"/tmp",watch:!1})),r=new XMLHttpRequest;r.open("GET","/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n),r.onreadystatechange=function(){4==r.readyState&&(e.equal(r.status,200,"got right status"),e.equal(r.statusText,"OK","got right reason"),e.equal(r.getResponseHeader("Content-Type"),"application/octet-stream","default type"),e.ok(r.responseText.indexOf('"present"'),"got listing"),t())},r.send()})),r.Z.test("external headers",(function(e){const t=e.async();e.expect(3);const n=window.btoa(JSON.stringify({payload:"fslist1",path:"/tmp",watch:!1,external:{"content-disposition":"my disposition; blah","content-type":"test/blah"}})),r=new XMLHttpRequest;r.open("GET","/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n),r.onreadystatechange=function(){4==r.readyState&&(e.equal(this.status,200,"got right status"),e.equal(this.getResponseHeader("Content-Type"),"test/blah","got type"),e.equal(this.getResponseHeader("Content-Disposition"),"my disposition; blah","got disposition"),t())},r.send()})),r.Z.test("external invalid",(function(e){const t=e.async();e.expect(1);const n=new XMLHttpRequest;n.open("GET","/cockpit/channel/invalid"),n.onreadystatechange=function(){4==n.readyState&&(e.equal(this.status,404,"got not found"),t())},n.send()})),r.Z.test("external no token",(function(e){const t=e.async();e.expect(1);const n=window.btoa(JSON.stringify({payload:"fslist1",path:"/tmp",watch:!1})),o=new XMLHttpRequest;o.open("GET","/cockpit/channel/?"+n),o.onreadystatechange=function(){4==o.readyState&&(e.equal(this.status,404,"got not found"),t())},o.send()})),r.Z.test("external websocket",(function(e){const t=e.async();e.expect(3);const n=window.btoa(JSON.stringify({payload:"echo"}));let r=0;const i=new WebSocket("ws://"+window.location.host+"/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n,"protocol-unused");i.onopen=function(){e.ok(!0,"websocket is open"),i.send("oh marmalade")},i.onerror=function(){e.ok(!1,"websocket error")},i.onmessage=function(t){0===r?(e.equal(t.data,"oh marmalade","got payload"),i.send("another test"),r+=1):(e.equal(t.data,"another test","got payload again"),i.close(1e3))},i.onclose=function(){t()}})),o.Z.transport.wait((function(){console.log("cockpittest-tap-expect-resource-error"),r.Z.start()})),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(647)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-file.js cockpit-284/dist/base1/test-file.js --- cockpit-283/dist/base1/test-file.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-file.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-file.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function T(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=T(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                            ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!q(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),Z=[],D=new P;function F(e,t,n){var o=Z.length?Z.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:D,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=F(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){Z.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{Z.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!Z.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(B.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(B.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=T(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=T(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=j.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=j.now(),j.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=j.now(),j)){j.mark("qunit_test_end");var t=this.fullName.join(" – ");j.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=C(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:j.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),je(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),je(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return q(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!q(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function qe(e){return e.testsRun+e.testsIgnored===Ce(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Te,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Te=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=Te&&"0"!==Te||Ae),reset:Be(0,0),bold:Be(1,22),dim:Be(2,22),italic:Be(3,23),underline:Be(4,24),inverse:Be(7,27),hidden:Be(8,28),strikethrough:Be(9,29),black:Be(30,39),red:Be(31,39),green:Be(32,39),yellow:Be(33,39),blue:Be(34,39),magenta:Be(35,39),cyan:Be(36,39),white:Be(37,39),gray:Be(90,39),grey:Be(90,39),bgBlack:Be(40,49),bgRed:Be(41,49),bgGreen:Be(42,49),bgYellow:Be(43,49),bgBlue:Be(44,49),bgMagenta:Be(45,49),bgCyan:Be(46,49),bgWhite:Be(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(De(e),null,2)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return De(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=De(e[o],t)})),t.pop();break;default:n=e}return n}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Ze(e.message||"failed")),n+="\n severity: ".concat(Ze(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(Ze(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(Ze(e.expected))),e.stack&&(n+="\n stack: ".concat(Ze(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Ze(A(e))),t+="\n severity: ".concat(Ze("failed")),e&&e.stack&&(t+="\n stack: ".concat(Ze(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Ie,tap:Fe};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||Y(2)}):(D.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=D;var Ge=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ke();else{R.started=j.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=c(k,j=b[E]))?(f(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var j=n.key;for(w=m-1;w>=0;--w)(C=c(k=t[w],j))&&(f(C)||(C=h.getPrepared(C)),null!==(q=l(e,C,o))&&(q.scorep.peek().score&&p.replaceTop(q)))))}else for(w=m-1;w>=0;--w){var C,q;(C=t[w])&&(f(C)||(C=h.getPrepared(C)),null!==(q=l(e,C,o))&&(q.scorep.peek().score&&p.replaceTop(q)))))}if(0===d)return i;var _=new Array(d);for(w=d-1;w>=0;--w)_[w]=p.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var j=n[m],C=new Array(S),q=S-1;q>=0;--q)(O=c(j,T=E[q]))?(f(O)||(O=h.getPrepared(O)),C[q]=y(t,O,p)):C[q]=null;C.obj=j;var _=d(C);null!==_&&(_g.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var T=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(j=n[m],T))&&(f(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===w)return a(i);for(var M=new Array(w),I=w-1;I>=0;--I)M[I]=g.poll();M.total=w+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                            ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",Z(e.name,e.module),P(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=F(i=Je.diff(n,r)).length!==F(n).length+F(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                            Expected:
                                            "+nt(n)+"
                                            Result:
                                            "+nt(r)+"
                                            Diff:
                                            "+i+"
                                            Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                            Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                            Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                            Source:
                                            "+nt(e.source)+"
                                            "):!e.result&&e.source&&(s+="
                                            Source:
                                            "+nt(e.source)+"
                                            ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=B("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                            Source:
                                            "+nt(e.stack)+"
                                            ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function j(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function C(e){var t=S("qunit-filter-input");return t.value=f(t.value),T(),e&&e.preventDefault&&e.preventDefault(),!1}function q(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",q),m(t.getElementsByTagName("select"),"change",q),t}function M(e,t,n){return'
                                          1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                             
                                            ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",j),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                            "+nt(v.title)+"

                                            "+((!(e=Je.config.testId)||e.length<=0?"":"
                                            Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                            ")+"

                                              ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function B(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=Z(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                              ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function Z(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function D(e){return[e.completed," / ",e.defined," tests completed.
                                              "].join("")}function F(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,S,j,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(j=-S+h;j<=S-g;j+=2){for(y=a+j,x=(w=j===-S||j!==S&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-j)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-S+m;C<=S-v;C+=2){for(b=a+C,E=(k=C===-S||C!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(q(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function j(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function q(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function T(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const F={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),D(e,F,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:F[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in F||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),D(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},q(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;q(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},952:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);let s;(r=(i.then?(await i)():i)[0]).Z.test("simple read",(function(e){const t=e.async();e.expect(3);const n=o.Z.file(s+"/foo");e.equal(n.path,s+"/foo","file has path"),n.read().done((function(t){e.equal(t,"1234\n","correct result")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("read non-existent",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/blah").read().done((function(t){e.equal(t,null,"correct result")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("parse read",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/foo.json",{syntax:JSON}).read().done((function(t){e.deepEqual(t,{foo:12},"correct result")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("parse read error",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/foo.bin",{syntax:JSON}).read().fail((function(t){e.ok(t instanceof SyntaxError,"got SyntaxError error")})).always((function(){e.equal(this.state(),"rejected","failed"),t()}))})),r.Z.test("binary read",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/foo.bin",{binary:!0}).read().done((function(t){e.deepEqual(t,new Uint8Array([0,1,2,3]),"correct result")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("read non-regular",(function(e){const t=e.async();e.expect(2),o.Z.file(s,{binary:!0}).read().fail((function(t){e.equal(t.problem,"internal-error","got error")})).always((function(){e.equal(this.state(),"rejected","failed"),t()}))})),r.Z.test("read large",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/large.bin",{binary:!0}).read().done((function(t){e.equal(t.length,524288,"correct result")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("read too large",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/large.bin",{binary:!0,max_read_size:8192}).read().fail((function(t){e.equal(t.problem,"too-large","got error")})).always((function(){e.equal(this.state(),"rejected","failed"),t()}))})),r.Z.test("binary false",(function(e){const t=e.async();e.expect(1),o.Z.file(s+"/foo.bin",{binary:!1}).read().done((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("simple replace",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/bar").replace("4321\n").always((function(){e.equal(this.state(),"resolved","didn't fail"),o.Z.spawn(["cat",s+"/bar"]).done((function(n){e.equal(n,"4321\n","correct content"),t()}))}))})),r.Z.test("stringify replace",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/bar",{syntax:JSON}).replace({foo:4321}).always((function(){e.equal(this.state(),"resolved","didn't fail"),o.Z.spawn(["cat",s+"/bar"]).done((function(n){e.deepEqual(JSON.parse(n),{foo:4321},"correct content"),t()}))}))})),r.Z.test("stringify replace error",(function(e){const t=e.async();e.expect(2);const n={};n.me=n,o.Z.file(s+"/bar",{syntax:JSON}).replace(n).fail((function(t){e.ok(t instanceof TypeError,"got stringify error")})).always((function(){e.equal(this.state(),"rejected","failed"),t()}))})),r.Z.test("binary replace",(function(e){const t=e.async();e.expect(2),o.Z.file(s+"/bar",{binary:!0}).replace(new Uint8Array([3,2,1,0])).always((function(){e.equal(this.state(),"resolved","didn't fail"),o.Z.spawn(["cat",s+"/bar"],{binary:!0}).done((function(n){e.deepEqual(n,new Uint8Array([3,2,1,0]),"correct content"),t()}))}))})),r.Z.test("replace large",(function(e){const t=e.async();e.expect(3);const n=new Array(23529).join("abcdef12345");o.Z.file(s+"/large").replace(n).always((function(){e.equal(this.state(),"resolved","didn't fail"),o.Z.spawn(["cat",s+"/large"]).done((function(o){e.equal(o.length,n.length,"correct large length"),e.ok(o==n,"correct large data"),t()}))}))})),r.Z.test("binary replace large",(function(e){const t=e.async();e.expect(4);const n=new Uint8Array(254727),r=n.byteLength;for(let e=0;e "+s+"/baz"]).done((function(){n.modify((function(t){return a+=1,1==a?e.equal(t,"ABCD\n","correct old (out-of-date) content"):e.equal(t,"XYZ\n","correct old (current) content"),t.toLowerCase()}),r,i).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(a,2,"callback called twice"),o.Z.spawn(["cat",s+"/baz"]).done((function(n){e.equal(n,"xyz\n","correct content"),t()}))}))}))}))})),r.Z.test("watching",(function(e){const t=e.async();e.expect(7);const n=o.Z.file(s+"/foobar").watch((function(i,a){r+=1,1==r?(e.equal(i,null,"initially non-existent"),e.equal(a,"-","empty tag"),o.Z.spawn(["bash","-c","cd "+s+" && echo 1234 > foobar.tmp && mv foobar.tmp foobar"])):2==r?(e.equal(i,"1234\n","correct new content"),e.notEqual(a,"-"),e.ok(a.length>5,"tag has a reasonable size"),o.Z.spawn(["bash","-c","rm "+s+"/foobar"])):3==r&&(e.equal(i,null,"finally non-existent"),e.equal(a,"-","empty tag"),n.remove(),t())}));let r=0})),r.Z.test("binary watching",(function(e){const t=e.async();e.expect(3);const n=o.Z.file(s+"/foobar",{binary:!0}).watch((function(i,a){r+=1,1==r?(e.equal(i,null,"initially non-existent"),o.Z.spawn(["bash","-c","cd "+s+" && echo '//8BAg==' | base64 -d > foobar.tmp && mv foobar.tmp foobar"])):2==r?(e.deepEqual(i,new Uint8Array([255,255,1,2]),"correct new content"),o.Z.spawn(["bash","-c","rm "+s+"/foobar"])):3==r&&(e.equal(i,null,"finally non-existent"),n.remove(),t())}));let r=0})),r.Z.test("syntax watching",(function(e){const t=e.async();e.expect(3);const n=o.Z.file(s+"/foobar.json",{syntax:JSON}).watch((function(i,a,l){r+=1,1==r?(e.equal(i,null,"initially non-existent"),o.Z.spawn(["bash","-c","cd "+s+" && echo '[ 1, 2, 3, 4 ]' > foobar.json.tmp && mv foobar.json.tmp foobar.json"])):2==r?(e.deepEqual(i,[1,2,3,4],"correct new content"),o.Z.spawn(["bash","-c","echo 'hi-there-this-is-not-json' > "+s+"/foobar.json"])):3==r?(e.ok(l instanceof SyntaxError,"got SyntaxError error"),n.remove(),t()):e.ok(!1,"not reached")}));let r=0})),r.Z.test("watching without reading",(function(e){const t=e.async();e.expect(7);const n=o.Z.file(s+"/foobar").watch((function(i,a){r+=1,1==r?(e.equal(i,null,"initially non-existent"),e.equal(a,"-","empty tag"),o.Z.spawn(["bash","-c","cd "+s+" && echo 1234 > foobar.tmp && mv foobar.tmp foobar"])):2==r?(e.equal(i,null,"no content as reading is disabled"),e.notEqual(a,"-"),e.ok(a.length>5,"tag has a reasonable size"),o.Z.spawn(["bash","-c","rm "+s+"/foobar"])):3==r&&(e.equal(i,null,"finally non-existent"),e.equal(a,"-","empty tag"),n.remove(),t())}),{read:!1});let r=0})),r.Z.test("closing",(function(e){const t=e.async();e.expect(2);const n=o.Z.file(s+"/foobarbaz"),r=n.watch((function(t,n,o){o?(e.equal(o.problem,"cancelled","watch got cancelled"),a()):e.ok(!1,"not reached")}));let i=0;function a(){i+=1,2==i&&(r.remove(),t())}n.read().done((function(t,n){e.ok(!1,"read didn't complete")})).fail((function(t){e.equal(t.problem,"cancelled","read got cancelled"),a()})),n.close()})),r.Z.test("channel options",(function(e){const t=e.async();e.expect(1),o.Z.file(s+"/foo",{binary:!0}).read().done((function(t){e.ok(t instanceof Uint8Array,"options applied, got binary data")})).always((function(){t()}))})),r.Z.test("remove testdir",(function(e){const t=e.async();e.expect(1),o.Z.spawn(["rm","-rf",s]).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),o.Z.spawn(["bash","-c","d=$(mktemp -d); echo '1234' >$d/foo; echo '{ \"foo\": 12 }' >$d/foo.json; echo -en '\\x00\\x01\\x02\\x03' >$d/foo.bin; dd if=/dev/zero of=$d/large.bin bs=1k count=512; echo $d"]).done((function(e){s=e.replace(/\n$/,""),r.Z.start()})),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(952)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function T(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=T(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                              ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!q(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),Z=[],D=new P;function F(e,t,n){var o=Z.length?Z.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:D,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=F(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){Z.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{Z.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!Z.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(B.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(B.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=T(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=T(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return q(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!q(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function qe(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Te,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Te=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=Te&&"0"!==Te||Ae),reset:Be(0,0),bold:Be(1,22),dim:Be(2,22),italic:Be(3,23),underline:Be(4,24),inverse:Be(7,27),hidden:Be(8,28),strikethrough:Be(9,29),black:Be(30,39),red:Be(31,39),green:Be(32,39),yellow:Be(33,39),blue:Be(34,39),magenta:Be(35,39),cyan:Be(36,39),white:Be(37,39),gray:Be(90,39),grey:Be(90,39),bgBlack:Be(40,49),bgRed:Be(41,49),bgGreen:Be(42,49),bgYellow:Be(43,49),bgBlue:Be(44,49),bgMagenta:Be(45,49),bgCyan:Be(46,49),bgWhite:Be(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(De(e),null,2)}function De(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return De(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=De(e[o],t)})),t.pop();break;default:n=e}return n}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(Ze(e.message||"failed")),n+="\n severity: ".concat(Ze(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(Ze(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(Ze(e.expected))),e.stack&&(n+="\n stack: ".concat(Ze(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(Ze(A(e))),t+="\n severity: ".concat(Ze("failed")),e&&e.stack&&(t+="\n stack: ".concat(Ze(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Ie,tap:Fe};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||Y(2)}):(D.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=D;var Ge=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ke();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(q=l(e,j,o))&&(q.scoreh.peek().score&&h.replaceTop(q)))))}else for(w=m-1;w>=0;--w){var j,q;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(q=l(e,j,o))&&(q.scoreh.peek().score&&h.replaceTop(q)))))}if(0===d)return i;var _=new Array(d);for(w=d-1;w>=0;--w)_[w]=h.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),q=S-1;q>=0;--q)(O=c(C,T=E[q]))?(f(O)||(O=p.getPrepared(O)),j[q]=y(t,O,h)):j[q]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var T=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],T))&&(f(O)||(O=p.getPrepared(O)),null!==(N=y(t,O,h))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=p.getPrepared(O)),null!==(N=y(t,O,h))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===w)return a(i);for(var M=new Array(w),I=w-1;I>=0;--I)M[I]=g.poll();M.total=w+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                              ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",Z(e.name,e.module),P(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=F(i=Je.diff(n,r)).length!==F(n).length+F(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                              Expected:
                                              "+nt(n)+"
                                              Result:
                                              "+nt(r)+"
                                              Diff:
                                              "+i+"
                                              Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                              Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                              Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                              Source:
                                              "+nt(e.source)+"
                                              "):!e.result&&e.source&&(s+="
                                              Source:
                                              "+nt(e.source)+"
                                              ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=B("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                              Source:
                                              "+nt(e.stack)+"
                                              ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Je.load):Je.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),T(),e&&e.preventDefault&&e.preventDefault(),!1}function q(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in h.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function _(e){var t="?",n=h.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",q),m(t.getElementsByTagName("select"),"change",q),t}function M(e,t,n){return'
                                            1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                               
                                              ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                              "+nt(v.title)+"

                                              "+((!(e=Je.config.testId)||e.length<=0?"":"
                                              Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                              ")+"

                                                ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function B(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=Z(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                                ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function Z(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function D(e){return[e.completed," / ",e.defined," tests completed.
                                                "].join("")}function F(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(q(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function q(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function T(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const F={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),D(e,F,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:F[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in F||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),D(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},q(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;q(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},952:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("simple read",(async e=>{const t=o.Z.file(s+"/foo");e.equal(t.path,s+"/foo","file has path"),e.equal(await t.read(),"1234\n","correct result")})),r.Z.test("read non-existent",(async e=>{e.equal(await o.Z.file(s+"/blah").read(),null,"correct result")})),r.Z.test("parse read",(async e=>{const t=await o.Z.file(s+"/foo.json",{syntax:JSON}).read();e.deepEqual(t,{foo:12},"correct result")})),r.Z.test("parse read error",(async e=>{try{await o.Z.file(s+"/foo.bin",{syntax:JSON}).read(),e.ok(!1,"should have failed")}catch(t){e.ok(t instanceof SyntaxError,"got SyntaxError error")}})),r.Z.test("binary read",(async e=>{const t=await o.Z.file(s+"/foo.bin",{binary:!0}).read();e.deepEqual(t,new Uint8Array([0,1,2,3]),"correct result")})),r.Z.test("read non-regular",(async e=>{try{await o.Z.file(s,{binary:!0}).read(),e.ok(!1,"should have failed")}catch(t){e.equal(t.problem,"internal-error","got error")}})),r.Z.test("read large",(async e=>{const t=await o.Z.file(s+"/large.bin",{binary:!0}).read();e.equal(t.length,524288,"correct result")})),r.Z.test("read too large",(async e=>{try{await o.Z.file(s+"/large.bin",{binary:!0,max_read_size:8192}).read(),e.ok(!1,"should have failed")}catch(t){e.equal(t.problem,"too-large","got error")}})),r.Z.test("binary false",(async e=>{await o.Z.file(s+"/foo.bin",{binary:!1}).read(),e.ok(!0,"did not crash")})),r.Z.test("simple replace",(async e=>{await o.Z.file(s+"/bar").replace("4321\n");const t=await o.Z.spawn(["cat",s+"/bar"]);e.equal(t,"4321\n","correct content")})),r.Z.test("stringify replace",(async e=>{await o.Z.file(s+"/bar",{syntax:JSON}).replace({foo:4321});const t=await o.Z.spawn(["cat",s+"/bar"]);e.deepEqual(JSON.parse(t),{foo:4321},"correct content")})),r.Z.test("stringify replace error",(async e=>{const t={};t.me=t;try{await o.Z.file(s+"/bar",{syntax:JSON}).replace(t),e.ok(!1,"should have failed")}catch(t){e.ok(t instanceof TypeError,"got stringify error")}})),r.Z.test("binary replace",(async e=>{await o.Z.file(s+"/bar",{binary:!0}).replace(new Uint8Array([3,2,1,0]));const t=await o.Z.spawn(["cat",s+"/bar"],{binary:!0});e.deepEqual(t,new Uint8Array([3,2,1,0]),"correct content")})),r.Z.test("replace large",(async e=>{const t=new Array(23529).join("abcdef12345");await o.Z.file(s+"/large").replace(t);const n=await o.Z.spawn(["cat",s+"/large"]);e.equal(n.length,t.length,"correct large length"),e.ok(n==t,"correct large data")})),r.Z.test("binary replace large",(async e=>{const t=new Uint8Array(254727),n=t.byteLength;for(let e=0;e{const t=await o.Z.spawn(["bash","-c","test -f "+s+"/bar && echo exists"]);e.equal(t,"exists\n","exists"),await o.Z.file(s+"/bar").replace(null);const n=await o.Z.spawn(["bash","-c","test -f "+s+"/bar || echo gone"]);e.equal(n,"gone\n","gone")})),r.Z.test("abort replace",(e=>{const t=e.async();e.expect(2);const n=o.Z.file(s+"/bar");let r=0;function i(){r+=1,2==r&&t()}n.replace("1234\n").always((function(){e.equal(this.state(),"rejected","failed as expected"),i()})),n.replace("abcd\n").always((function(){e.equal(this.state(),"resolved","didn't fail"),i()}))})),r.Z.test("replace with tag",(async e=>{const t=e.async(),n=o.Z.file(s+"/barfoo");n.read().then((async(o,r)=>{e.equal(o,null,"file does not exist"),e.equal(r,"-","first tag is -");const i=await n.replace("klmn\n",r);e.notEqual(i,"-","second tag is not -");const s=await n.replace("KLMN\n",i);e.notEqual(s,i,"third tag is different");try{await n.replace("opqr\n",i),e.ok(!1,"should have failed")}catch(n){e.equal(n.problem,"change-conflict","wrong tag is rejected"),t()}}))})),r.Z.test("modify",(async e=>{const t=o.Z.file(s+"/quux");let n=0;await t.modify((t=>(n+=1,e.equal(t,null,"no old content"),"ABCD\n"))),e.equal(n,1,"callback called once"),n=0,await t.modify((t=>(n+=1,e.equal(t,"ABCD\n","correct old content"),"dcba\n"))),e.equal(n,1,"callback called once"),e.equal(await o.Z.spawn(["cat",s+"/quux"]),"dcba\n","correct content")})),r.Z.test("modify with conflict",(async e=>{const t=e.async();e.expect(6);const n=o.Z.file(s+"/baz");let r=0;n.modify((t=>(r+=1,e.equal(t,null,"no old content"),"ABCD\n"))).finally((()=>e.equal(r,1,"callback called once"))).then((async(r,i)=>{let a=0;await o.Z.spawn(["bash","-c","sleep 1; echo XYZ > "+s+"/baz"]),await n.modify((t=>(a+=1,1==a?e.equal(t,"ABCD\n","correct old (out-of-date) content"):e.equal(t,"XYZ\n","correct old (current) content"),t.toLowerCase())),r,i),e.equal(a,2,"callback called twice");const l=await o.Z.spawn(["cat",s+"/baz"]);e.equal(l,"xyz\n","correct content"),t()}))})),r.Z.test("watching",(e=>{const t=e.async();e.expect(7);const n=o.Z.file(s+"/foobar");let r=0;const i=n.watch(((n,a)=>{r+=1,1==r?(e.equal(n,null,"initially non-existent"),e.equal(a,"-","empty tag"),o.Z.spawn(["bash","-c","cd "+s+" && echo 1234 > foobar.tmp && mv foobar.tmp foobar"])):2==r?(e.equal(n,"1234\n","correct new content"),e.notEqual(a,"-"),e.ok(a.length>5,"tag has a reasonable size"),o.Z.spawn(["bash","-c","rm "+s+"/foobar"])):3==r&&(e.equal(n,null,"finally non-existent"),e.equal(a,"-","empty tag"),i.remove(),t())}))})),r.Z.test("binary watching",(e=>{const t=e.async();e.expect(3);const n=o.Z.file(s+"/foobar",{binary:!0});let r=0;const i=n.watch(((n,a)=>{r+=1,1==r?(e.equal(n,null,"initially non-existent"),o.Z.spawn(["bash","-c","cd "+s+" && echo '//8BAg==' | base64 -d > foobar.tmp && mv foobar.tmp foobar"])):2==r?(e.deepEqual(n,new Uint8Array([255,255,1,2]),"correct new content"),o.Z.spawn(["bash","-c","rm "+s+"/foobar"])):3==r&&(e.equal(n,null,"finally non-existent"),i.remove(),t())}))})),r.Z.test("syntax watching",(e=>{const t=e.async();e.expect(3);const n=o.Z.file(s+"/foobar.json",{syntax:JSON});let r=0;const i=n.watch(((n,a,l)=>{r+=1,1==r?(e.equal(n,null,"initially non-existent"),o.Z.spawn(["bash","-c","cd "+s+" && echo '[ 1, 2, 3, 4 ]' > foobar.json.tmp && mv foobar.json.tmp foobar.json"])):2==r?(e.deepEqual(n,[1,2,3,4],"correct new content"),o.Z.spawn(["bash","-c","echo 'hi-there-this-is-not-json' > "+s+"/foobar.json"])):3==r?(e.ok(l instanceof SyntaxError,"got SyntaxError error"),i.remove(),t()):e.ok(!1,"not reached")}))})),r.Z.test("watching without reading",(e=>{const t=e.async();e.expect(7);const n=o.Z.file(s+"/foobar");let r=0;const i=n.watch(((n,a)=>{r+=1,1==r?(e.equal(n,null,"initially non-existent"),e.equal(a,"-","empty tag"),o.Z.spawn(["bash","-c","cd "+s+" && echo 1234 > foobar.tmp && mv foobar.tmp foobar"])):2==r?(e.equal(n,null,"no content as reading is disabled"),e.notEqual(a,"-"),e.ok(a.length>5,"tag has a reasonable size"),o.Z.spawn(["bash","-c","rm "+s+"/foobar"])):3==r&&(e.equal(n,null,"finally non-existent"),e.equal(a,"-","empty tag"),i.remove(),t())}),{read:!1})})),r.Z.test("watching directory",(e=>{const t=e.async();e.expect(20);let n=0;const r=o.Z.channel({payload:"fswatch1",path:s});r.addEventListener("message",((i,a)=>{const l=JSON.parse(a);n+=1,1==n?(e.equal(l.event,"created","world.txt created"),e.equal(l.path,s+"/world.txt"),e.equal(l.type,"file"),e.notEqual(l.tag,"-")):2==n?(e.equal(l.event,"changed","world.txt changed"),e.equal(l.path,s+"/world.txt"),e.notEqual(l.tag,"-")):3==n?(e.equal(l.event,"done-hint","world.txt done-hint"),e.equal(l.path,s+"/world.txt"),e.notEqual(l.tag,"-"),o.Z.spawn(["chmod","001",`${s}/world.txt`])):4==n?(e.equal(l.event,"attribute-changed","world.txt attribute-changed"),e.equal(l.path,s+"/world.txt"),e.notEqual(l.tag,"-"),o.Z.spawn(["rm",`${s}/world.txt`])):5==n?(e.equal(l.event,"deleted","world.txt deleted"),e.equal(l.path,s+"/world.txt"),e.equal(l.tag,"-"),o.Z.spawn(["mkdir",`${s}/somedir`])):6==n&&(e.equal(l.event,"created","somedir created"),e.equal(l.path,s+"/somedir"),e.equal(l.type,"directory"),e.notEqual(l.tag,"-"),r.close(),t())})),o.Z.spawn(["sh","-c",`echo hello > ${s}/world.txt`])})),r.Z.test("closing",(e=>{const t=e.async();e.expect(2);const n=o.Z.file(s+"/foobarbaz"),r=n.watch((function(t,n,o){o?(e.equal(o.problem,"cancelled","watch got cancelled"),a()):e.ok(!1,"not reached")}));let i=0;function a(){i+=1,2==i&&(r.remove(),t())}n.read().then(((t,n)=>{e.ok(!1,"read didn't complete")})).catch((t=>{e.equal(t.problem,"cancelled","read got cancelled"),a()})),n.close()})),r.Z.test("channel options",(async e=>{const t=await o.Z.file(s+"/foo",{binary:!0}).read();e.ok(t instanceof Uint8Array,"options applied, got binary data")})),r.Z.test("remove testdir",(async e=>{await o.Z.spawn(["rm","-rf",s]),e.ok(!0,"did not crash")}));const s=(await o.Z.spawn(["bash","-c","d=$(mktemp -d); echo '1234' >$d/foo; echo '{ \"foo\": 12 }' >$d/foo.json; echo -en '\\x00\\x01\\x02\\x03' >$d/foo.bin; dd if=/dev/zero of=$d/large.bin bs=1k count=512; echo $d"])).replace(/\n$/,"");r.Z.start(),t()}catch(e){t(e)}}),1)}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(952)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-format.js cockpit-284/dist/base1/test-format.js --- cockpit-283/dist/base1/test-format.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-format.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-format.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function M(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=M(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function q(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return q(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new P;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===q(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:Z(r,"before"),beforeEach:Z(r,"beforeEach"),afterEach:Z(r,"afterEach"),after:Z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===q(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===q(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var K=!1;function z(e,t,n){var o,r=K&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}z.only=function(){K||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),K=!0,$.apply(void 0,arguments)},z.skip=function(e,t,n){K||$(e,t,n,{skip:!0})},z.todo=function(e,t,n){K||$(e,t,n,{todo:!0})};var J=(W(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function G(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),J){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===q(e)||""===e?t="You must provide a message to assert.step":"string"!==q(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+W(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=M(e,t),t=T(t,!1),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=M(e,t),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===q(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&B(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===q(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&B(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=q(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=q(t);if(t){if("regexp"===r)o=t.test(B(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=B(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=B(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==q(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=S.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",W(2))}},after:function(){!function(){var e=R.pollution;ve();var t=C(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+B(e),G(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),G(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||W();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+W(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),W(2)),Se(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===q(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,G(e,0)),ve(),_e(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Me,Oe,qe,Ne,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Be=!0;if("undefined"!=typeof process){var Ae=process.env;Me=Ae.FORCE_COLOR,Oe=Ae.NODE_DISABLE_COLORS,qe=Ae.NO_COLOR,Ne=Ae.TERM,Be=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==qe&&"dumb"!==Ne&&(null!=Me&&"0"!==Me||Be),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Le(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+B(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(B(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function Ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:Ze("beforeEach"),afterEach:Ze("afterEach")};function Ke(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(B(e)),source:e&&e.stack||W(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var ze={};R.currentModule.suiteReport=F;var Je=!1,Ge=!1;function We(){Ge=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=S.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||ze.load());We()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Ke(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=c(k,S=b[E]))?(f(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var _=v(x);null!==_&&(_p.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(C=c(k=t[w],S))&&(f(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(w=m-1;w>=0;--w){var C,j;(C=t[w])&&(f(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,_=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var S=n[m],C=new Array(_),j=_-1;j>=0;--j)(O=c(S,M=E[j]))?(f(O)||(O=h.getPrepared(O)),C[j]=y(t,O,p)):C[j]=null;C.obj=S;var T=d(C);null!==T&&(Tg.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var M=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(S=n[m],M))&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,q;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}if(0===w)return a(i);for(var N=new Array(w),I=w-1;I>=0;--I)N[I]=g.poll();N.total=w+k,a(N)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),ze.begin((function(){L()})),ze.on("runEnd",(function(t){var n,o,r,i=_("qunit-banner"),s=_("qunit-tests"),a=_("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),P(tt.failedTests)].join(""))})),ze.log((function(e){var t=_("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+ze.dump.parse(e.expected):ze.dump.parse(e.expected),r=ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                Expected:
                                                "+nt(n)+"
                                                Result:
                                                "+nt(r)+"
                                                Diff:
                                                "+i+"
                                                Message: Diff suppressed as the depth of object is more than current max depth ("+ze.config.maxDepth+").

                                                Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                Source:
                                                "+nt(e.source)+"
                                                "):!e.result&&e.source&&(s+="
                                                Source:
                                                "+nt(e.source)+"
                                                ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),ze.testDone((function(o){var r=_("qunit-tests"),i=_("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),ze.on("error",(function(e){var t=U("global failure");if(t){var n=nt(B(e));n=""+n+"",e&&e.stack&&(n+="
                                                Source:
                                                "+nt(e.stack)+"
                                                ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",ze.load):ze.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function _(e){return v.getElementById&&v.getElementById(e)}function S(){var e=_("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),ze.config.queue.length=0,!1}function C(e){var t=_("qunit-filter-input");return t.value=f(t.value),M(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=_("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function N(e,t,n){return'
                                              1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                 
                                                ',e=_("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",S),t))}function L(){var e,t,n,o,i,s=_("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                "+nt(v.title)+"

                                                "+((!(e=ze.config.testId)||e.length<=0?"":"
                                                Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                ")+"

                                                  ")),(t=_("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=_("qunit-banner"))&&(n.className=""),R(),(o=_("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+ze.version+"; "+b.userAgent))),(i=_("qunit-testrunner-toolbar"))&&(i.appendChild(q()),i.appendChild(A()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=_("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                                  ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                  "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,_,S,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);_++){for(S=-_+h;S<=_-g;S+=2){for(y=a+S,x=(w=S===-_||S!==_&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-_+m;C<=_-v;C+=2){for(b=a+C,E=(k=C===-_||C!==_&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function M(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&q(e),r.promise}function q(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const Z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new W(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),B((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){B((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},388:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("format",(function(e){e.equal(o.Z.format("My $adj message with ${amount} of things",{adj:"special",amount:"lots"}),"My special message with lots of things","named keys"),e.equal(o.Z.format("My $0 message with $1 of things",["special","lots"]),"My special message with lots of things","number keys"),e.equal(o.Z.format("My $0 message with $1 of things","special","lots"),"My special message with lots of things","vararg keys"),e.equal(o.Z.format("My $0 message with lots of things","special"),"My special message with lots of things","vararg one key"),e.equal(o.Z.format("Undefined $value",{}),"Undefined ","missing value"),e.equal(o.Z.format("$0",0),"0","`0` as argument"),e.equal(o.Z.format("$0",0),"0","`0.0` as argument"),e.equal(o.Z.format("$0",!1),"","`false` as argument"),e.equal(o.Z.format("$0",null),"","`null` as argument")})),r.Z.test("format_number",(function(e){const t=[[23.4,"23.4","23,4"],[23.46,"23.5","23,5"],[23.44,"23.4","23,4"],[-23.4,"-23.4","-23,4"],[-23.46,"-23.5","-23,5"],[-23.44,"-23.4","-23,4"],[0,"0","0"],[.001,"0.001","0,001"],[-.001,"-0.001","-0,001"],[3e-4,"0.001","0,001"],[-3e-4,"-0.001","-0,001"],[123,"123","123"],[123.01,"123","123"],[-123,"-123","-123"],[-123.01,"-123","-123"],[null,"",""],[void 0,"",""]],n=o.Z.language;e.expect(3*t.length+7),o.Z.language="en";for(let n=0;n{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(388)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function M(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=M(e[o],t[o]));return n}function O(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function q(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return q(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                  ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new P;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===q(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:Z(r,"before"),beforeEach:Z(r,"beforeEach"),afterEach:Z(r,"afterEach"),after:Z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===q(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===q(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var K=!1;function z(e,t,n){var o,r=K&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}z.only=function(){K||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),K=!0,$.apply(void 0,arguments)},z.skip=function(e,t,n){K||$(e,t,n,{skip:!0})},z.todo=function(e,t,n){K||$(e,t,n,{todo:!0})};var J=(W(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function G(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),J){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===q(e)||""===e?t="You must provide a message to assert.step":"string"!==q(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+W(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=M(e,t),t=T(t,!1),this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=M(e,t),t=T(t),this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:A(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!A(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===q(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&B(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===q(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&B(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=q(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=q(t);if(t){if("regexp"===r)o=t.test(B(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=B(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=B(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==q(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=S.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",W(2))}},after:function(){!function(){var e=R.pollution;ve();var t=C(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+B(e),G(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),G(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||W();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+W(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),W(2)),Se(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===q(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,G(e,0)),ve(),_e(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){ye({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Me,Oe,qe,Ne,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Be=!0;if("undefined"!=typeof process){var Ae=process.env;Me=Ae.FORCE_COLOR,Oe=Ae.NODE_DISABLE_COLORS,qe=Ae.NO_COLOR,Ne=Ae.TERM,Be=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==qe&&"dumb"!==Ne&&(null!=Me&&"0"!==Me||Be),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Le(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+B(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(B(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function Ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:Ze("beforeEach"),afterEach:Ze("afterEach")};function Ke(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(B(e)),source:e&&e.stack||W(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var ze={};R.currentModule.suiteReport=F;var Je=!1,Ge=!1;function We(){Ge=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=S.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||ze.load());We()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Ke(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],E=new Array(y),x=y-1;x>=0;--x)(C=c(k,S=b[x]))?(f(C)||(C=h.getPrepared(C)),E[x]=l(e,C,o)):E[x]=null;E.obj=k;var _=v(E);null!==_&&(_p.peek().score&&p.replaceTop(E))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(C=c(k=t[w],S))&&(f(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(w=m-1;w>=0;--w){var C,j;(C=t[w])&&(f(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,x=o.keys,_=x.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var S=n[m],C=new Array(_),j=_-1;j>=0;--j)(O=c(S,M=x[j]))?(f(O)||(O=h.getPrepared(O)),C[j]=y(t,O,p)):C[j]=null;C.obj=S;var T=d(C);null!==T&&(Tg.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var M=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(O=c(S=n[m],M))&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var O,q;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(q=y(t,O,p))&&(q.scoreg.peek().score&&g.replaceTop(q)))))}if(0===w)return a(i);for(var N=new Array(w),I=w-1;I>=0;--I)N[I]=g.poll();N.total=w+k,a(N)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),ze.begin((function(){L()})),ze.on("runEnd",(function(t){var n,o,r,i=_("qunit-banner"),s=_("qunit-tests"),a=_("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                  ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),P(tt.failedTests)].join(""))})),ze.log((function(e){var t=_("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+ze.dump.parse(e.expected):ze.dump.parse(e.expected),r=ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                  Expected:
                                                  "+nt(n)+"
                                                  Result:
                                                  "+nt(r)+"
                                                  Diff:
                                                  "+i+"
                                                  Message: Diff suppressed as the depth of object is more than current max depth ("+ze.config.maxDepth+").

                                                  Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                  Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                  Source:
                                                  "+nt(e.source)+"
                                                  "):!e.result&&e.source&&(s+="
                                                  Source:
                                                  "+nt(e.source)+"
                                                  ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),ze.testDone((function(o){var r=_("qunit-tests"),i=_("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){E(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),ze.on("error",(function(e){var t=U("global failure");if(t){var n=nt(B(e));n=""+n+"",e&&e.stack&&(n+="
                                                  Source:
                                                  "+nt(e.stack)+"
                                                  ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",ze.load):ze.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function _(e){return v.getElementById&&v.getElementById(e)}function S(){var e=_("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),ze.config.queue.length=0,!1}function C(e){var t=_("qunit-filter-input");return t.value=f(t.value),M(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=_("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function N(e,t,n){return'
                                                1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                   
                                                  ',e=_("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",S),t))}function L(){var e,t,n,o,i,s=_("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                  "+nt(v.title)+"

                                                  "+((!(e=ze.config.testId)||e.length<=0?"":"
                                                  Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                  ")+"

                                                    ")),(t=_("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=_("qunit-banner"))&&(n.className=""),R(),(o=_("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+ze.version+"; "+b.userAgent))),(i=_("qunit-testrunner-toolbar"))&&(i.appendChild(q()),i.appendChild(A()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=_("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                                    ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                    "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,E,x,_,S,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);_++){for(S=-_+h;S<=_-g;S+=2){for(y=a+S,E=(w=S===-_||S!==_&&u[y-1]r)g+=2;else if(E>i)h+=2;else if(p&&(b=a+d-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,E,o)}for(C=-_+m;C<=_-v;C+=2){for(b=a+C,x=(k=C===-_||C!==_&&c[b-1]r)v+=2;else if(x>i)m+=2;else if(!p&&(y=a+d-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function M(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&q(e),r.promise}function q(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const Z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new W(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),B((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){B((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},388:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("format",(function(e){e.equal(o.Z.format("My $adj message with ${amount} of things",{adj:"special",amount:"lots"}),"My special message with lots of things","named keys"),e.equal(o.Z.format("My $0 message with $1 of things",["special","lots"]),"My special message with lots of things","number keys"),e.equal(o.Z.format("My $0 message with $1 of things","special","lots"),"My special message with lots of things","vararg keys"),e.equal(o.Z.format("My $0 message with lots of things","special"),"My special message with lots of things","vararg one key"),e.equal(o.Z.format("Undefined $value",{}),"Undefined ","missing value"),e.equal(o.Z.format("$0",0),"0","`0` as argument"),e.equal(o.Z.format("$0",0),"0","`0.0` as argument"),e.equal(o.Z.format("$0",!1),"","`false` as argument"),e.equal(o.Z.format("$0",null),"","`null` as argument")})),r.Z.test("format_number",(function(e){const t=[[23.4,"23.4","23,4"],[23.46,"23.5","23,5"],[23.44,"23.4","23,4"],[-23.4,"-23.4","-23,4"],[-23.46,"-23.5","-23,5"],[-23.44,"-23.4","-23,4"],[0,"0","0"],[.001,"0.001","0,001"],[-.001,"-0.001","-0,001"],[3e-4,"0.001","0,001"],[-3e-4,"-0.001","-0,001"],[123,"123","123"],[123.01,"123","123"],[-123,"-123","-123"],[-123.01,"-123","-123"],[null,"",""],[void 0,"",""]],n=o.Z.language;e.expect(3*t.length+7),o.Z.language="en";for(let n=0;n{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(388)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-framed-cache.js cockpit-284/dist/base1/test-framed-cache.js --- cockpit-283/dist/base1/test-framed-cache.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-framed-cache.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-framed-cache.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                    ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Pe(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}else for(y=m-1;y>=0;--y){var j,T;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(y=d-1;y>=0;--y)_[y]=h.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(N=c(C,O=E[T]))?(f(N)||(N=p.getPrepared(N)),j[T]=w(t,N,h)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var q=new Array(y),I=y-1;I>=0;--I)q[I]=g.poll();q.total=y+k,a(q)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){P()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                    ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                    Expected:
                                                    "+nt(n)+"
                                                    Result:
                                                    "+nt(r)+"
                                                    Diff:
                                                    "+i+"
                                                    Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                    Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                    Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                    Source:
                                                    "+nt(e.source)+"
                                                    "):!e.result&&e.source&&(s+="
                                                    Source:
                                                    "+nt(e.source)+"
                                                    ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                    Source:
                                                    "+nt(e.stack)+"
                                                    ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function _(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function q(e,t,n){return'
                                                  1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                     
                                                    ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function P(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                    "+nt(v.title)+"

                                                    "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                    ")+"

                                                      ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                      "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},234:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=e.async();e.expect(12),window.assert=e,document.getElementById("qunit-header").innerHTML="Cockpit Parent Frame";let n=0,r=!1;function i(){r&&2==n&&(r=null,t())}window.addEventListener("message",(e=>{"child-done"==e.data&&(r=!0,window.setTimeout(i,0))})),o.Z.cache("cross-frame-cache",(function(t,n){return e.equal(n,"cross-frame-cache","parent provider got right key"),e.equal(typeof t,"function","parent provider got result function"),t({myobject:"value"}),{close:function(){}}}),(function(t,o){n++,e.equal(o,"cross-frame-cache","parent consumer got right key"),1===n?e.equal(t.myobject,"value","parent consumer got parent value"):2===n&&e.equal(t.myobject,"value2","parent consumer got child value"),i()}),"parent");const s=document.createElement("iframe");s.setAttribute("name","cockpit1:blah"),s.setAttribute("src",window.location.href+"?sub"),document.body.appendChild(s)}function a(){const e=window.parent.assert;let t=0;const n=o.Z.cache("cross-frame-cache",(function(t,n){e.equal(n,"cross-frame-cache","child provider got right key"),e.equal(typeof t,"function","child provider got result function");const o=window.setTimeout((()=>{t({myobject:"value2"}),window.clearTimeout(o)}),1e3);return{close:()=>{}}}),(function(o,r){t++,e.equal(r,"cross-frame-cache","child consumer got right key"),1===t?(e.equal(o.myobject,"value","child consumer got parent value"),n.claim()):2==t&&(e.equal(o.myobject,"value2","child consumer got child value"),window.parent.postMessage("child-done","*"))}),"child")}r=(i.then?(await i)():i)[0],window.parent===window?(r.Z.test("framed cache",s),r.Z.start()):a(),t()}catch(l){t(l)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(234)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}else for(y=m-1;y>=0;--y){var j,T;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scoreh.peek().score&&h.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(y=d-1;y>=0;--y)_[y]=h.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(N=c(C,O=E[T]))?(f(N)||(N=p.getPrepared(N)),j[T]=w(t,N,h)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var q=new Array(y),I=y-1;I>=0;--I)q[I]=g.poll();q.total=y+k,a(q)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                      Expected:
                                                      "+nt(n)+"
                                                      Result:
                                                      "+nt(r)+"
                                                      Diff:
                                                      "+i+"
                                                      Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                      Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                      Source:
                                                      "+nt(e.source)+"
                                                      "):!e.result&&e.source&&(s+="
                                                      Source:
                                                      "+nt(e.source)+"
                                                      ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                      Source:
                                                      "+nt(e.stack)+"
                                                      ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function _(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function q(e,t,n){return'
                                                    1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                       
                                                      ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                      "+nt(v.title)+"

                                                      "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                      ")+"

                                                        ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                        "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},234:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=e.async();e.expect(12),window.assert=e,document.getElementById("qunit-header").innerHTML="Cockpit Parent Frame";let n=0,r=!1;function i(){r&&2==n&&(r=null,t())}window.addEventListener("message",(e=>{"child-done"==e.data&&(r=!0,window.setTimeout(i,0))})),o.Z.cache("cross-frame-cache",(function(t,n){return e.equal(n,"cross-frame-cache","parent provider got right key"),e.equal(typeof t,"function","parent provider got result function"),t({myobject:"value"}),{close:function(){}}}),(function(t,o){n++,e.equal(o,"cross-frame-cache","parent consumer got right key"),1===n?e.equal(t.myobject,"value","parent consumer got parent value"):2===n&&e.equal(t.myobject,"value2","parent consumer got child value"),i()}),"parent");const s=document.createElement("iframe");s.setAttribute("name","cockpit1:blah"),s.setAttribute("src",window.location.href+"?sub"),document.body.appendChild(s)}function a(){const e=window.parent.assert;let t=0;const n=o.Z.cache("cross-frame-cache",(function(t,n){e.equal(n,"cross-frame-cache","child provider got right key"),e.equal(typeof t,"function","child provider got result function");const o=window.setTimeout((()=>{t({myobject:"value2"}),window.clearTimeout(o)}),1e3);return{close:()=>{}}}),(function(o,r){t++,e.equal(r,"cross-frame-cache","child consumer got right key"),1===t?(e.equal(o.myobject,"value","child consumer got parent value"),n.claim()):2==t&&(e.equal(o.myobject,"value2","child consumer got child value"),window.parent.postMessage("child-done","*"))}),"child")}r=(i.then?(await i)():i)[0],window.parent===window?(r.Z.test("framed cache",s),r.Z.start()):a(),t()}catch(l){t(l)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(234)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-framed.js cockpit-284/dist/base1/test-framed.js --- cockpit-283/dist/base1/test-framed.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-framed.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-framed.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                        ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function Z(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}Z.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},Z.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},Z.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Pe(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){P()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                        ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                        Expected:
                                                        "+nt(n)+"
                                                        Result:
                                                        "+nt(r)+"
                                                        Diff:
                                                        "+i+"
                                                        Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

                                                        Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                        Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                        Source:
                                                        "+nt(e.source)+"
                                                        "):!e.result&&e.source&&(s+="
                                                        Source:
                                                        "+nt(e.source)+"
                                                        ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                        Source:
                                                        "+nt(e.stack)+"
                                                        ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                      1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                         
                                                        ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function P(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                        "+nt(v.title)+"

                                                        "+((!(e=Ze.config.testId)||e.length<=0?"":"
                                                        Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                        ")+"

                                                          ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                          ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                          "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},961:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=e.async();e.expect(7),window.assert=e,document.getElementById("qunit-header").innerHTML="Cockpit Parent Frame",window.name="cockpit1";let n,r=!1;o.Z.transport.filter((function(e,t,i){r&&n.postMessage(e,o.Z.transport.origin)})),window.addEventListener("message",(e=>{const i=e.data;if(0===i.length)t();else if(i.indexOf&&-1!==i.indexOf('"init"'))r=!0,n.postMessage('\n{ "command": "init", "version": 1, "a": "b", "host" : "frame_host" }',o.Z.transport.origin);else{o.Z.transport.inject(i)||console.error("inject failed")}}),!1);o.Z.channel({payload:"resource2"}).addEventListener("close",(()=>{e.equal(o.Z.transport.host,"localhost","parent cockpit.transport.host");const t=document.createElement("iframe");t.setAttribute("name","cockpit1:blah"),t.setAttribute("src",window.location.href+"?sub"),document.body.appendChild(t),n=window.frames["cockpit1:blah"]}))}function a(){const e=window.parent.assert;let t=!1,n=!1;const r=o.Z.spawn(["/bin/sh","-c","echo hi"],{host:"localhost"}).then((t=>{e.equal(t,"hi\n","framed channel got output")})).always((()=>{e.equal(r.state(),"resolved","framed channel closed"),e.equal(o.Z.transport.host,"frame_host","framed cockpit.transport.host"),t=!0,n&&o.Z.transport.close()})),i=o.Z.channel({payload:"echo",binary:!0,host:"localhost"});i.addEventListener("message",(function(t,n){e.equal(typeof n[0],"number","binary channel got a byte array");let o=!0;for(let e=0;e{e.notOk(i.reason,"binary channel close cleanly"),n=!0,t&&o.Z.transport.close()}));const s=new Array(8);for(let e=0;e<8;e++)s[e]=e;i.send(s)}r=(i.then?(await i)():i)[0],window.parent===window?(r.Z.test("framed",s),r.Z.start()):a(),t()}catch(l){t(l)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(961)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                          ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function Z(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}Z.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},Z.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},Z.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){U()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                          ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                          Expected:
                                                          "+nt(n)+"
                                                          Result:
                                                          "+nt(r)+"
                                                          Diff:
                                                          "+i+"
                                                          Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

                                                          Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                          Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                          Source:
                                                          "+nt(e.source)+"
                                                          "):!e.result&&e.source&&(s+="
                                                          Source:
                                                          "+nt(e.source)+"
                                                          ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                          Source:
                                                          "+nt(e.stack)+"
                                                          ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                        1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                           
                                                          ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                          "+nt(v.title)+"

                                                          "+((!(e=Ze.config.testId)||e.length<=0?"":"
                                                          Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                          ")+"

                                                            ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                            ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                            "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},961:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(e){const t=e.async();e.expect(7),window.assert=e,document.getElementById("qunit-header").innerHTML="Cockpit Parent Frame",window.name="cockpit1";let n,r=!1;o.Z.transport.filter((function(e,t,i){r&&n.postMessage(e,o.Z.transport.origin)})),window.addEventListener("message",(e=>{const i=e.data;if(0===i.length)t();else if(i.indexOf&&-1!==i.indexOf('"init"'))r=!0,n.postMessage('\n{ "command": "init", "version": 1, "a": "b", "host" : "frame_host" }',o.Z.transport.origin);else{o.Z.transport.inject(i)||console.error("inject failed")}}),!1);o.Z.channel({payload:"resource2"}).addEventListener("close",(()=>{e.equal(o.Z.transport.host,"localhost","parent cockpit.transport.host");const t=document.createElement("iframe");t.setAttribute("name","cockpit1:blah"),t.setAttribute("src",window.location.href+"?sub"),document.body.appendChild(t),n=window.frames["cockpit1:blah"]}))}function a(){const e=window.parent.assert;let t=!1,n=!1;const r=o.Z.spawn(["/bin/sh","-c","echo hi"],{host:"localhost"}).then((t=>{e.equal(t,"hi\n","framed channel got output")})).always((()=>{e.equal(r.state(),"resolved","framed channel closed"),e.equal(o.Z.transport.host,"frame_host","framed cockpit.transport.host"),t=!0,n&&o.Z.transport.close()})),i=o.Z.channel({payload:"echo",binary:!0,host:"localhost"});i.addEventListener("message",(function(t,n){e.equal(typeof n[0],"number","binary channel got a byte array");let o=!0;for(let e=0;e{e.notOk(i.reason,"binary channel close cleanly"),n=!0,t&&o.Z.transport.close()}));const s=new Array(8);for(let e=0;e<8;e++)s[e]=e;i.send(s)}r=(i.then?(await i)():i)[0],window.parent===window?(r.Z.test("framed",s),r.Z.start()):a(),t()}catch(l){t(l)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(961)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-http.js cockpit-284/dist/base1/test-http.js --- cockpit-283/dist/base1/test-http.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-http.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-http.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                            ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],H=new B;function F(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:H,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Z(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=F(e,t,o),i=r.testEnvironment,s=r.hooks;Z(s,i,"before"),Z(s,i,"beforeEach"),Z(s,i,"afterEach"),Z(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var $=!1;function z(e,t,n){var o,r=$&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}z.only=function(){$||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),$=!0,J.apply(void 0,arguments)},z.skip=function(e,t,n){$||J(e,t,n,{skip:!0})},z.todo=function(e,t,n){$||J(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=T(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=C.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=L.pollution;ve();var t=j(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||pe.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return _(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!_(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||L.currentModule.ignored||new ge(e).queue()}function we(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,pe.advance())}))):(L.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Re=process.env;qe=Re.FORCE_COLOR,Oe=Re.NODE_DISABLE_COLORS,Ne=Re.NO_COLOR,Me=Re.TERM,Ae=process.stdout&&process.stdout.isTTY}var Le={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Pe(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(He(e),null,2)}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return He(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=He(e[o],t)})),t.pop();break;default:n=e}return n}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ze={console:Ie,tap:Fe};function Qe(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var Je={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function $e(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(H.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var ze={};L.currentModule.suiteReport=H;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){L.blocking=!1,pe.advance()}function Ve(){if(L.started)Ye();else{L.started=C.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||ze.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(O=c(C,q=E[_]))?(f(O)||(O=h.getPrepared(O)),j[_]=y(t,O,p)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===w)return a(i);for(var M=new Array(w),I=w-1;I>=0;--I)M[I]=g.poll();M.total=w+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),ze.begin((function(){P()})),ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                            ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+ze.dump.parse(e.expected):ze.dump.parse(e.expected),r=ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=F(i=ze.diff(n,r)).length!==F(n).length+F(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                            Expected:
                                                            "+nt(n)+"
                                                            Result:
                                                            "+nt(r)+"
                                                            Diff:
                                                            "+i+"
                                                            Message: Diff suppressed as the depth of object is more than current max depth ("+ze.config.maxDepth+").

                                                            Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                            Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                            Source:
                                                            "+nt(e.source)+"
                                                            "):!e.result&&e.source&&(s+="
                                                            Source:
                                                            "+nt(e.source)+"
                                                            ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),ze.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                            Source:
                                                            "+nt(e.stack)+"
                                                            ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",ze.load):ze.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),ze.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function M(e,t,n){return'
                                                          1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                             
                                                            ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function P(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                            "+nt(v.title)+"

                                                            "+((!(e=ze.config.testId)||e.length<=0?"":"
                                                            Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                            ")+"

                                                              ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),L(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                              ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function H(e){return[e.completed," / ",e.defined," tests completed.
                                                              "].join("")}function F(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>L});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const F={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),H(e,F,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:F[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in F||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Z={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),H(e,Z,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},794:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);r=(i.then?(await i)():i)[0];const s="0 1 2 3 4 5 6 7 8 9 ";r.Z.test("public api",(e=>{const t=o.Z.http("/test");e.equal(typeof t,"object","http is an object"),e.equal(typeof t.get,"function","http.get() is a function"),e.equal(typeof t.post,"function","http.post() is a function")}));const a={address:window.location.hostname,port:parseInt(window.location.port,10)};r.Z.test("simple request",(e=>{const t=e.async();e.expect(1),o.Z.http(a).get("/pkg/playground/manifest.json").then((t=>{e.deepEqual(JSON.parse(t),{tools:{index:{label:"Development"}},playground:{"react-patterns":{label:"React Patterns"},translate:{label:"Translating"},exception:{label:"Exceptions"},pkgs:{label:"Packages"},preloaded:{label:"Preloaded"},"notifications-receiver":{label:"Notifications Receiver"},metrics:{label:"Monitoring"},plot:{label:"Plots"},service:{label:"Generic Service Monitor"},speed:{label:"Speed Tests"},journal:{label:"Logs Box"},test:{label:"Playground"}},preload:["preloaded"],"content-security-policy":"img-src 'self' data:"},"returned right data")})).finally(t)})),r.Z.test("with params",(e=>{const t=e.async();e.expect(1),o.Z.http(a).get("/mock/qs",{key:"value",name:"Scruffy the Janitor"}).then((t=>e.equal(t,"key=value&name=Scruffy+the+Janitor","right query string"))).finally(t)})),r.Z.test("not found",(e=>{const t=e.async();e.expect(5),o.Z.http(a).get("/not/found").response((t=>e.equal(t,404,"status code"))).catch(((t,n)=>{e.strictEqual(t.problem,null,"mapped to cockpit code"),e.strictEqual(t.status,404,"has status code"),e.equal(t.message,"Not Found","has reason"),e.true(void 0!==n&&n.includes("

                                                              Not Found

                                                              "),"got body")})).finally(t)})),r.Z.test("streaming",(e=>{const t=e.async();e.expect(3);let n=0,r="";o.Z.http(a).get("/mock/stream").stream((e=>{r+=e,n++})).finally((()=>{e.true(n>1,"got at least two chunks"),e.true(n<=10,"got at most 10 chunks"),e.equal(r,s,"stream got right data"),t()}))})),r.Z.test("close",(e=>{const t=e.async();e.expect(3);let n=0;const r=o.Z.http(a);r.get("/mock/stream").stream((t=>{n+=1,e.equal(t,"0 ","first stream part"),r.close("bad-boy")})).catch((t=>e.equal(t.problem,"bad-boy","right problem"))).finally((()=>{e.equal(n,1,"stream got cancelled"),t()}))})),r.Z.test("close all",(e=>{const t=e.async();e.expect(3);const n=o.Z.http(a),r=n.get("/mock/stream");let i=0;r.stream((t=>{i+=1,e.equal(t,"0 ","first stream part"),n.close("bad-boy")})).catch((t=>e.equal(t.problem,"bad-boy","right problem"))).finally((()=>{e.equal(i,1,"stream got cancelled"),n.close("closed"),t()}))})),r.Z.test("headers",(e=>{const t=e.async();e.expect(3),o.Z.http(a).get("/mock/headers",null,{Header1:"booo",Header2:"yay value"}).response(((t,n)=>{e.equal(t,201,"status code"),e.deepEqual(n,{Header1:"booo",Header2:"yay value",Header3:"three",Header4:"marmalade","Referrer-Policy":"no-referrer","X-DNS-Prefetch-Control":"off","X-Content-Type-Options":"nosniff","X-Frame-Options":"sameorigin","Cross-Origin-Resource-Policy":"same-origin"},"got back headers")})).then((()=>e.ok(!0,"split response succeeded"))).finally(t)})),r.Z.test("escape host header",(e=>{const t=e.async();e.expect(3),o.Z.http(a).get("/mock/host",null,{}).response(((t,n)=>{e.equal(t,201,"status code"),e.deepEqual(n.Host,window.location.host,"got back escaped headers")})).then((()=>e.ok(!0,"split response succeeded"))).finally(t)})),r.Z.test("connection headers",(e=>{const t=e.async();e.expect(2),o.Z.http({port:a.port,headers:{Header1:"booo",Header2:"not this"}}).get("/mock/headers",null,{Header2:"yay value",Header0:"extra"}).response(((t,n)=>{e.equal(t,201,"status code"),e.deepEqual(n,{Header0:"extra",Header1:"booo",Header2:"yay value",Header3:"three",Header4:"marmalade","Referrer-Policy":"no-referrer","X-DNS-Prefetch-Control":"off","X-Content-Type-Options":"nosniff","X-Frame-Options":"sameorigin","Cross-Origin-Resource-Policy":"same-origin"},"got back combined headers")})).finally(t)})),r.Z.test("http promise recursive",(e=>{e.expect(7);const t={},n=o.Z.http(a).get("/").promise(t);e.strictEqual(n,t,"used target"),e.equal(typeof n.done,"function","promise2.done()"),e.equal(typeof n.promise,"function","promise2.promise()"),e.equal(typeof n.input,"function","promise2.input()");const r=n.promise();e.equal(typeof r.done,"function","promise3.done()"),e.equal(typeof r.promise,"function","promise3.promise()"),e.equal(typeof r.input,"function","promise3.input()")})),r.Z.test("http keep alive",(async e=>{if(e.expect(1),await r.Z.mock_info("pybridge"))return void e.rejects(o.Z.http({port:a.port,connection:"one"}).get("/mock/connection"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects connection option on python bridge");const t=await o.Z.http({port:a.port,connection:"marmalade"}).get("/mock/connection"),n=await o.Z.http({port:a.port,connection:"marmalade"}).get("/mock/connection");e.equal(t,n,"same connection")})),r.Z.test("http connection different",(async e=>{if(e.expect(1),await r.Z.mock_info("pybridge"))return void e.ok(!0);const t=await o.Z.http({port:a.port,connection:"one"}).get("/mock/connection"),n=await o.Z.http({port:a.port,connection:"two"}).get("/mock/connection");e.notEqual(t,n,"different connection")})),r.Z.test("http connection without address",(async e=>{if(e.expect(1),await r.Z.mock_info("pybridge"))return void e.ok(!0);const t=await o.Z.http({port:a.port,connection:"one"}).get("/mock/connection"),n=await o.Z.http({connection:"one"}).get("/mock/connection");e.equal(t,n,"same connection")})),r.Z.test("no dns address",(e=>{e.expect(1),e.rejects(o.Z.http({port:8080,address:"the-other-host.example.com"}).get("/"),(e=>"timeout"===e.problem||"not-found"===e.problem))})),r.Z.test("address with params",(e=>{const t=e.async();e.expect(1),o.Z.http(a).get("/mock/qs",{key:"value",name:"Scruffy the Janitor"}).then((t=>e.equal(t,"key=value&name=Scruffy+the+Janitor","right query string"))).finally(t)})),r.Z.test("HEAD method",(e=>{const t=e.async();e.expect(4),e.rejects(o.Z.http(a).get("/mock/headonly"),(e=>400==e.status&&"Only HEAD allowed on this path"==e.reason),"rejects GET request on /headonly path");const n="some chars";o.Z.http(a).request({path:"/mock/headonly",method:"HEAD",headers:{InputData:n},body:""}).response(((t,o)=>{e.equal(t,200),e.equal(o.InputDataLength,n.length)})).then((t=>e.equal(t,""))).finally(t)})),r.Z.test("wrong options",(async e=>{e.rejects(o.Z.http({}).get("/"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects request without port or unix option"),e.rejects(o.Z.http({port:1234,unix:"/nonexisting/socket"}).get("/"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects request with both port and unix option"),await r.Z.mock_info("pybridge")?e.rejects(o.Z.http({unix:"/nonexisting/socket",tls:{}}).get("/"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects request with both unix and tls option"):e.ok(!0,"skipping on python bridge, not implemented")})),r.Z.test("parallel stress test",(async e=>{if(await r.Z.mock_info("skip_slow_tests"))return void e.ok(!0,"skipping on python bridge, not implemented");const t=1e3;e.expect(1001);const n=[];for(let e=0;e{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(794)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                              ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],H=new B;function F(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:H,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Z(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=F(e,t,o),i=r.testEnvironment,s=r.hooks;Z(s,i,"before"),Z(s,i,"beforeEach"),Z(s,i,"afterEach"),Z(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var z=!1;function $(e,t,n){var o,r=z&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}$.only=function(){z||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),z=!0,J.apply(void 0,arguments)},$.skip=function(e,t,n){z||J(e,t,n,{skip:!0})},$.todo=function(e,t,n){z||J(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=T(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=C.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=L.pollution;ve();var t=j(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||pe.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return _(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!_(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||L.currentModule.ignored||new ge(e).queue()}function we(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,pe.advance())}))):(L.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Re=process.env;qe=Re.FORCE_COLOR,Oe=Re.NODE_DISABLE_COLORS,Ne=Re.NO_COLOR,Me=Re.TERM,Ae=process.stdout&&process.stdout.isTTY}var Le={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Pe(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(He(e),null,2)}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return He(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=He(e[o],t)})),t.pop();break;default:n=e}return n}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ze={console:Ie,tap:Fe};function Qe(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var Je={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function ze(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(H.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var $e={};L.currentModule.suiteReport=H;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){L.blocking=!1,pe.advance()}function Ve(){if(L.started)Ye();else{L.started=C.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||$e.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(O=c(C,q=E[_]))?(f(O)||(O=h.getPrepared(O)),j[_]=y(t,O,p)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=y(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===w)return a(i);for(var M=new Array(w),I=w-1;I>=0;--I)M[I]=g.poll();M.total=w+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=$e.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;$e.on("runStart",(function(e){tt.defined=e.testCounts.total})),$e.begin((function(){P()})),$e.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                              ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),$e.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+$e.dump.parse(e.expected):$e.dump.parse(e.expected),r=$e.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=F(i=$e.diff(n,r)).length!==F(n).length+F(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                              Expected:
                                                              "+nt(n)+"
                                                              Result:
                                                              "+nt(r)+"
                                                              Diff:
                                                              "+i+"
                                                              Message: Diff suppressed as the depth of object is more than current max depth ("+$e.config.maxDepth+").

                                                              Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                              Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                              Source:
                                                              "+nt(e.source)+"
                                                              "):!e.result&&e.source&&(s+="
                                                              Source:
                                                              "+nt(e.source)+"
                                                              ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),$e.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),$e.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                              Source:
                                                              "+nt(e.stack)+"
                                                              ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",$e.load):$e.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),$e.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){$e.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},$e.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function M(e,t,n){return'
                                                            1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                               
                                                              ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function P(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                              "+nt(v.title)+"

                                                              "+((!(e=$e.config.testId)||e.length<=0?"":"
                                                              Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                              ")+"

                                                                ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),L(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+$e.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function H(e){return[e.completed," / ",e.defined," tests completed.
                                                                "].join("")}function F(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),$e.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>L});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const F={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),H(e,F,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:F[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in F||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Z={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),H(e,Z,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},794:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);r=(i.then?(await i)():i)[0];const s="0 1 2 3 4 5 6 7 8 9 ";r.Z.test("public api",(e=>{const t=o.Z.http("/test");e.equal(typeof t,"object","http is an object"),e.equal(typeof t.get,"function","http.get() is a function"),e.equal(typeof t.post,"function","http.post() is a function")}));const a={address:window.location.hostname,port:parseInt(window.location.port,10)};r.Z.test("simple request",(e=>{const t=e.async();e.expect(1),o.Z.http(a).get("/pkg/playground/manifest.json").then((t=>{e.deepEqual(JSON.parse(t),{tools:{index:{label:"Development"}},playground:{"react-patterns":{label:"React Patterns"},translate:{label:"Translating"},exception:{label:"Exceptions"},pkgs:{label:"Packages"},preloaded:{label:"Preloaded"},"notifications-receiver":{label:"Notifications Receiver"},metrics:{label:"Monitoring"},plot:{label:"Plots"},service:{label:"Generic Service Monitor"},speed:{label:"Speed Tests"},journal:{label:"Logs Box"},test:{label:"Playground"}},preload:["preloaded"],"content-security-policy":"img-src 'self' data:"},"returned right data")})).finally(t)})),r.Z.test("with params",(e=>{const t=e.async();e.expect(1),o.Z.http(a).get("/mock/qs",{key:"value",name:"Scruffy the Janitor"}).then((t=>e.equal(t,"key=value&name=Scruffy+the+Janitor","right query string"))).finally(t)})),r.Z.test("not found",(e=>{const t=e.async();e.expect(5),o.Z.http(a).get("/not/found").response((t=>e.equal(t,404,"status code"))).catch(((t,n)=>{e.strictEqual(t.problem,null,"mapped to cockpit code"),e.strictEqual(t.status,404,"has status code"),e.equal(t.message,"Not Found","has reason"),e.true(void 0!==n&&n.includes("

                                                                Not Found

                                                                "),"got body")})).finally(t)})),r.Z.test("streaming",(e=>{const t=e.async();e.expect(3);let n=0,r="";o.Z.http(a).get("/mock/stream").stream((e=>{r+=e,n++})).finally((()=>{e.true(n>1,"got at least two chunks"),e.true(n<=10,"got at most 10 chunks"),e.equal(r,s,"stream got right data"),t()}))})),r.Z.test("close",(e=>{const t=e.async();e.expect(3);let n=0;const r=o.Z.http(a);r.get("/mock/stream").stream((t=>{n+=1,e.equal(t,"0 ","first stream part"),r.close("bad-boy")})).catch((t=>e.equal(t.problem,"bad-boy","right problem"))).finally((()=>{e.equal(n,1,"stream got cancelled"),t()}))})),r.Z.test("close all",(e=>{const t=e.async();e.expect(3);const n=o.Z.http(a),r=n.get("/mock/stream");let i=0;r.stream((t=>{i+=1,e.equal(t,"0 ","first stream part"),n.close("bad-boy")})).catch((t=>e.equal(t.problem,"bad-boy","right problem"))).finally((()=>{e.equal(i,1,"stream got cancelled"),n.close("closed"),t()}))})),r.Z.test("headers",(e=>{const t=e.async();e.expect(3),o.Z.http(a).get("/mock/headers",null,{Header1:"booo",Header2:"yay value"}).response(((t,n)=>{e.equal(t,201,"status code"),e.deepEqual(n,{Header1:"booo",Header2:"yay value",Header3:"three",Header4:"marmalade","Referrer-Policy":"no-referrer","X-DNS-Prefetch-Control":"off","X-Content-Type-Options":"nosniff","X-Frame-Options":"sameorigin","Cross-Origin-Resource-Policy":"same-origin"},"got back headers")})).then((()=>e.ok(!0,"split response succeeded"))).finally(t)})),r.Z.test("escape host header",(e=>{const t=e.async();e.expect(3),o.Z.http(a).get("/mock/host",null,{}).response(((t,n)=>{e.equal(t,201,"status code"),e.deepEqual(n.Host,window.location.host,"got back escaped headers")})).then((()=>e.ok(!0,"split response succeeded"))).finally(t)})),r.Z.test("connection headers",(e=>{const t=e.async();e.expect(2),o.Z.http({port:a.port,headers:{Header1:"booo",Header2:"not this"}}).get("/mock/headers",null,{Header2:"yay value",Header0:"extra"}).response(((t,n)=>{e.equal(t,201,"status code"),e.deepEqual(n,{Header0:"extra",Header1:"booo",Header2:"yay value",Header3:"three",Header4:"marmalade","Referrer-Policy":"no-referrer","X-DNS-Prefetch-Control":"off","X-Content-Type-Options":"nosniff","X-Frame-Options":"sameorigin","Cross-Origin-Resource-Policy":"same-origin"},"got back combined headers")})).finally(t)})),r.Z.test("http promise recursive",(e=>{e.expect(7);const t={},n=o.Z.http(a).get("/").promise(t);e.strictEqual(n,t,"used target"),e.equal(typeof n.done,"function","promise2.done()"),e.equal(typeof n.promise,"function","promise2.promise()"),e.equal(typeof n.input,"function","promise2.input()");const r=n.promise();e.equal(typeof r.done,"function","promise3.done()"),e.equal(typeof r.promise,"function","promise3.promise()"),e.equal(typeof r.input,"function","promise3.input()")})),r.Z.test("http keep alive",(async e=>{if(e.expect(1),await r.Z.mock_info("pybridge"))return void e.rejects(o.Z.http({port:a.port,connection:"one"}).get("/mock/connection"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects connection option on python bridge");const t=await o.Z.http({port:a.port,connection:"marmalade"}).get("/mock/connection"),n=await o.Z.http({port:a.port,connection:"marmalade"}).get("/mock/connection");e.equal(t,n,"same connection")})),r.Z.test("http connection different",(async e=>{if(e.expect(1),await r.Z.mock_info("pybridge"))return void e.ok(!0);const t=await o.Z.http({port:a.port,connection:"one"}).get("/mock/connection"),n=await o.Z.http({port:a.port,connection:"two"}).get("/mock/connection");e.notEqual(t,n,"different connection")})),r.Z.test("http connection without address",(async e=>{if(e.expect(1),await r.Z.mock_info("pybridge"))return void e.ok(!0);const t=await o.Z.http({port:a.port,connection:"one"}).get("/mock/connection"),n=await o.Z.http({connection:"one"}).get("/mock/connection");e.equal(t,n,"same connection")})),r.Z.test("no dns address",(e=>{e.expect(1),e.rejects(o.Z.http({port:8080,address:"the-other-host.example.com"}).get("/"),(e=>"timeout"===e.problem||"not-found"===e.problem))})),r.Z.test("address with params",(e=>{const t=e.async();e.expect(1),o.Z.http(a).get("/mock/qs",{key:"value",name:"Scruffy the Janitor"}).then((t=>e.equal(t,"key=value&name=Scruffy+the+Janitor","right query string"))).finally(t)})),r.Z.test("HEAD method",(e=>{const t=e.async();e.expect(4),e.rejects(o.Z.http(a).get("/mock/headonly"),(e=>400==e.status&&"Only HEAD allowed on this path"==e.reason),"rejects GET request on /headonly path");const n="some chars";o.Z.http(a).request({path:"/mock/headonly",method:"HEAD",headers:{InputData:n},body:""}).response(((t,o)=>{e.equal(t,200),e.equal(o.InputDataLength,n.length)})).then((t=>e.equal(t,""))).finally(t)})),r.Z.test("wrong options",(async e=>{e.rejects(o.Z.http({}).get("/"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects request without port or unix option"),e.rejects(o.Z.http({port:1234,unix:"/nonexisting/socket"}).get("/"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects request with both port and unix option"),await r.Z.mock_info("pybridge")?e.rejects(o.Z.http({unix:"/nonexisting/socket",tls:{}}).get("/"),(e=>"protocol-error"==e.problem&&null==e.status),"rejects request with both unix and tls option"):e.ok(!0,"skipping on python bridge, not implemented")})),r.Z.test("parallel stress test",(async e=>{if(await r.Z.mock_info("skip_slow_tests"))return void e.ok(!0,"skipping on python bridge, not implemented");const t=1e3;e.expect(1001);const n=[];for(let e=0;e{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(794)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-journal-renderer.js cockpit-284/dist/base1/test-journal-renderer.js --- cockpit-283/dist/base1/test-journal-renderer.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-journal-renderer.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-journal-renderer.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function I(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return M(t)===e}function A(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&I(l,o.testEnvironment),I(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:A(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(W(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function Y(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+W(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&q(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&q(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(q(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=q(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=q(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=S.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return I(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,I(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",W(2))}},after:function(){!function(){var e=L.pollution;ve();var t=C(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+q(e),Y(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||pe.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),Y(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||W();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+W(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),W(2)),Se(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,Y(e,0)),ve(),_e(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return j(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!j(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||L.currentModule.ignored||new ge(e).queue()}function we(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,pe.advance())}))):(L.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}I(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ie,Me,Ne,Ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),qe=!0;if("undefined"!=typeof process){var Re=process.env;Oe=Re.FORCE_COLOR,Ie=Re.NODE_DISABLE_COLORS,Me=Re.NO_COLOR,Ne=Re.TERM,qe=process.stdout&&process.stdout.isTTY}var Le={enabled:!Ie&&null==Me&&"dumb"!==Ne&&(null!=Oe&&"0"!==Oe||qe),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+q(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(q(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ae,tap:He};function ze(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(q(e)),source:e&&e.stack||W(2)}):(F.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var Ge={};L.currentModule.suiteReport=F;var Ze=!1,Ye=!1;function We(){Ye=!0,g?g((function(){Ve()})):Ve()}function Ke(){L.blocking=!1,pe.advance()}function Ve(){if(L.started)Ke();else{L.started=S.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||Ge.load());We()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=c(k,S=b[E]))?(f(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var _=v(x);null!==_&&(_p.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(C=c(k=t[w],S))&&(f(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(w=m-1;w>=0;--w){var C,j;(C=t[w])&&(f(C)||(C=h.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,_=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var S=n[m],C=new Array(_),j=_-1;j>=0;--j)(I=c(S,O=E[j]))?(f(I)||(I=h.getPrepared(I)),C[j]=y(t,I,p)):C[j]=null;C.obj=S;var T=d(C);null!==T&&(Tg.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(I=c(S=n[m],O))&&(f(I)||(I=h.getPrepared(I)),null!==(M=y(t,I,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var I,M;(I=n[m])&&(f(I)||(I=h.getPrepared(I)),null!==(M=y(t,I,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var N=new Array(w),A=w-1;A>=0;--A)N[A]=g.poll();N.total=w+k,a(N)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=_("qunit-banner"),s=_("qunit-tests"),a=_("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=_("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                Expected:
                                                                "+nt(n)+"
                                                                Result:
                                                                "+nt(r)+"
                                                                Diff:
                                                                "+i+"
                                                                Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                Source:
                                                                "+nt(e.source)+"
                                                                "):!e.result&&e.source&&(s+="
                                                                Source:
                                                                "+nt(e.source)+"
                                                                ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=_("qunit-tests"),i=_("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(q(e));n=""+n+"",e&&e.stack&&(n+="
                                                                Source:
                                                                "+nt(e.stack)+"
                                                                ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function _(e){return v.getElementById&&v.getElementById(e)}function S(){var e=_("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function C(e){var t=_("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=_("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=I(I({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function N(e,t,n){return'
                                                              1. "}function A(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                 
                                                                ',e=_("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",S),t))}function U(){var e,t,n,o,i,s=_("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                "+nt(v.title)+"

                                                                "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                ")+"

                                                                  ")),(t=_("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=_("qunit-banner"))&&(n.className=""),L(),(o=_("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=_("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=_("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                  ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                  "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,_,S,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);_++){for(S=-_+h;S<=_-g;S+=2){for(y=a+S,x=(w=S===-_||S!==_&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-_+m;C<=_-v;C+=2){for(b=a+C,E=(k=C===-_||C!==_&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>D});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function I(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=I(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return I(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new W(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),q((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){q((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=I(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;enew Intl.DateTimeFormat(L.language.replace("_","-"),e),P=e=>U({timeStyle:"short"}).format(e);const B=L.gettext,D={build_cmd:function(){const e=[],t={follow:!0};for(let n=0;n0)for(e=i,i=[],t=0;t{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},989:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(810),r=n(348),i=e([o]);o=(i.then?(await i)():i)[0];const s=!1;function a(e,t){let n=e;t&&(n+=": ",n+=t.toSource()),console.log(n)}function l(e,t){s&&a(e,t)}const u=0;let c,f,d,p=0;function h(e){return{__REALTIME_TIMESTAMP:u.toString(),__CURSOR:"fake",_BOOT_ID:p.toString(),_COMM:"fake",UNUSED_FIELD:"12",SYSLOG_IDENTIFIER:"fake",PRIORITY:"3",MESSAGE:e}}function g(){p+=1}const m={render_line:(e,t,n,o,r,i)=>({message:n,count:o}),render_day_header:e=>({day:e}),render_reboot_separator:()=>({reboot:!0}),append:e=>{l("append",e),c.push(e)},remove_last:()=>{l("remove-last"),c=c.slice(0,c.length-1)},prepend:e=>{l("prepend",e),c.unshift(e)},remove_first:()=>{l("remove-first"),c=c.slice(1,c.length)}};function v(e){f.append(h(e))}function b(){f.append_flush()}function y(e){f.prepend(h(e))}function w(){f.prepend_flush()}function k(e,t,n){e.ok(function(e){if(c.length!=e.length)return!1;for(let o=0;o{v("foo"),v("foo"),b(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}]),v("foo"),b(),k(e,"three repeated lines after flush",[{day:d},{message:"foo",count:3}])})),o.Z.test("prepend",(e=>{y("foo"),y("foo"),w(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}]),y("foo"),w(),k(e,"three repeated lines after flush",[{day:d},{message:"foo",count:3}])})),o.Z.test("prepend after append",(e=>{v("foo"),b(),y("foo"),w(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}])})),o.Z.test("prepend after append",(e=>{v("foo"),b(),y("bar"),w(),k(e,"two different lines",[{day:d},{message:"bar",count:1},{message:"foo",count:1}])})),o.Z.test("append after prepend",(e=>{y("foo"),w(),v("foo"),b(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}])})),o.Z.test("append after split",(e=>{y("bar"),y("baz"),w(),v("foo"),b(),k(e,"two different lines",[{day:d},{message:"baz",count:1},{message:"bar",count:1},{message:"foo",count:1}])})),o.Z.test("append after split",(e=>{y("bar"),y("baz"),w(),v("bar"),b(),k(e,"two repeated lines",[{day:d},{message:"baz",count:1},{message:"bar",count:2}])})),o.Z.test("prepend after split",(e=>{v("foo"),v("bar"),b(),y("baz"),w(),k(e,"two different lines",[{day:d},{message:"baz",count:1},{message:"foo",count:1},{message:"bar",count:1}])})),o.Z.test("prepend after split",(e=>{v("foo"),v("bar"),b(),y("foo"),w(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2},{message:"bar",count:1}])})),o.Z.test("reboot",(e=>{v("foo"),v("foo"),g(),v("foo"),b(),k(e,"two repeated lines before reboot",[{day:d},{message:"foo",count:2},{reboot:!0},{message:"foo",count:1}])})),o.Z.test("prepend to reboot same day",(e=>{v("foo"),v("baz"),b(),g(),y("bar"),w(),k(e,"different lines",[{day:d},{message:"bar",count:1},{reboot:!0},{message:"foo",count:1},{message:"baz",count:1}])})),o.Z.test("prepend to reboot same day",(e=>{v("foo"),v("baz"),b(),g(),y("foo"),w(),k(e,"repeated line",[{day:d},{message:"foo",count:1},{reboot:!0},{message:"foo",count:1},{message:"baz",count:1}])})),o.Z.start(),t()}catch(E){t(E)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(989)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&N("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?j(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function I(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function N(e,t){return M(t)===e}function A(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":N("regexp",e)?"regexp":N("date",e)?"date":N("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                  ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&I(l,o.testEnvironment),I(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:A(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var $=!1;function G(e,t,n){var o,r=$&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}G.only=function(){$||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),$=!0,J.apply(void 0,arguments)},G.skip=function(e,t,n){$||J(e,t,n,{skip:!0})},G.todo=function(e,t,n){$||J(e,t,n,{todo:!0})};var Z=(W(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function Y(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+W(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=j(e),t=j(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=j(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=j(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&q(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&q(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(q(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=q(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=q(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=S.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return I(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,I(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",W(2))}},after:function(){!function(){var e=L.pollution;ve();var t=C(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+q(e),Y(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||pe.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),Y(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||W();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+W(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),W(2)),Se(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,Y(e,0)),ve(),_e(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return T(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!T(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||L.currentModule.ignored||new ge(e).queue()}function we(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,pe.advance())}))):(L.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===Ce(e).length}function je(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}I(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ie,Me,Ne,Ae=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),qe=!0;if("undefined"!=typeof process){var Re=process.env;Oe=Re.FORCE_COLOR,Ie=Re.NODE_DISABLE_COLORS,Me=Re.NO_COLOR,Ne=Re.TERM,qe=process.stdout&&process.stdout.isTTY}var Le={enabled:!Ie&&null==Me&&"dumb"!==Ne&&(null!=Oe&&"0"!==Oe||qe),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+q(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(q(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ae,tap:He};function ze(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var Je={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function $e(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(q(e)),source:e&&e.stack||W(2)}):(F.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var Ge={};L.currentModule.suiteReport=F;var Ze=!1,Ye=!1;function We(){Ye=!0,g?g((function(){Ve()})):Ve()}function Ke(){L.blocking=!1,pe.advance()}function Ve(){if(L.started)Ke();else{L.started=S.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||Ge.load());We()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(C=c(k,S=b[E]))?(f(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var _=v(x);null!==_&&(_p.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(C=c(k=t[w],S))&&(f(C)||(C=h.getPrepared(C)),null!==(T=l(e,C,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}else for(w=m-1;w>=0;--w){var C,T;(C=t[w])&&(f(C)||(C=h.getPrepared(C)),null!==(T=l(e,C,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}if(0===d)return i;var j=new Array(d);for(w=d-1;w>=0;--w)j[w]=p.poll();return j.total=d+g,j},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,_=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var S=n[m],C=new Array(_),T=_-1;T>=0;--T)(I=c(S,O=E[T]))?(f(I)||(I=h.getPrepared(I)),C[T]=y(t,I,p)):C[T]=null;C.obj=S;var j=d(C);null!==j&&(jg.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(I=c(S=n[m],O))&&(f(I)||(I=h.getPrepared(I)),null!==(M=y(t,I,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var I,M;(I=n[m])&&(f(I)||(I=h.getPrepared(I)),null!==(M=y(t,I,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var N=new Array(w),A=w-1;A>=0;--A)N[A]=g.poll();N.total=w+k,a(N)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=j({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=_("qunit-banner"),s=_("qunit-tests"),a=_("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                  ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=_("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                  Expected:
                                                                  "+nt(n)+"
                                                                  Result:
                                                                  "+nt(r)+"
                                                                  Diff:
                                                                  "+i+"
                                                                  Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                  Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                  Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                  Source:
                                                                  "+nt(e.source)+"
                                                                  "):!e.result&&e.source&&(s+="
                                                                  Source:
                                                                  "+nt(e.source)+"
                                                                  ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=_("qunit-tests"),i=_("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(q(e));n=""+n+"",e&&e.stack&&(n+="
                                                                  Source:
                                                                  "+nt(e.stack)+"
                                                                  ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Ge.load):Ge.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function _(e){return v.getElementById&&v.getElementById(e)}function S(){var e=_("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function C(e){var t=_("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=j(r);if("hidepassed"===o.name&&"replaceState"in p.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=_("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function j(e){var t="?",n=p.location;for(var r in e=I(I({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function N(e,t,n){return'
                                                                1. "}function A(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                   
                                                                  ',e=_("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",S),t))}function U(){var e,t,n,o,i,s=_("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                  "+nt(v.title)+"

                                                                  "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                  Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                  ")+"

                                                                    ")),(t=_("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=_("qunit-banner"))&&(n.className=""),L(),(o=_("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=_("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=_("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=j({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                    ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                    "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,y,w,k,x,E,_,S,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);_++){for(S=-_+h;S<=_-g;S+=2){for(y=a+S,x=(w=S===-_||S!==_&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-_+m;C<=_-v;C+=2){for(b=a+C,E=(k=C===-_||C!==_&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+d-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>D});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function j(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=j();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function I(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=I(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return I(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new W(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),q((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){q((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=I(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;enew Intl.DateTimeFormat(L.language.replace("_","-"),e),P=e=>U({timeStyle:"short"}).format(e);const B=L.gettext,D={build_cmd:function(){const e=[],t={follow:!0};for(let n=0;n0)for(e=i,i=[],t=0;t{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},989:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(810),r=n(348),i=e([o]);o=(i.then?(await i)():i)[0];const s=!1;function a(e,t){let n=e;t&&(n+=": ",n+=t.toSource()),console.log(n)}function l(e,t){s&&a(e,t)}const u=0;let c,f,d,p=0;function h(e){return{__REALTIME_TIMESTAMP:u.toString(),__CURSOR:"fake",_BOOT_ID:p.toString(),_COMM:"fake",UNUSED_FIELD:"12",SYSLOG_IDENTIFIER:"fake",PRIORITY:"3",MESSAGE:e}}function g(){p+=1}const m={render_line:(e,t,n,o,r,i)=>({message:n,count:o}),render_day_header:e=>({day:e}),render_reboot_separator:()=>({reboot:!0}),append:e=>{l("append",e),c.push(e)},remove_last:()=>{l("remove-last"),c=c.slice(0,c.length-1)},prepend:e=>{l("prepend",e),c.unshift(e)},remove_first:()=>{l("remove-first"),c=c.slice(1,c.length)}};function v(e){f.append(h(e))}function b(){f.append_flush()}function y(e){f.prepend(h(e))}function w(){f.prepend_flush()}function k(e,t,n){e.ok(function(e){if(c.length!=e.length)return!1;for(let o=0;o{v("foo"),v("foo"),b(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}]),v("foo"),b(),k(e,"three repeated lines after flush",[{day:d},{message:"foo",count:3}])})),o.Z.test("prepend",(e=>{y("foo"),y("foo"),w(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}]),y("foo"),w(),k(e,"three repeated lines after flush",[{day:d},{message:"foo",count:3}])})),o.Z.test("prepend after append",(e=>{v("foo"),b(),y("foo"),w(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}])})),o.Z.test("prepend after append",(e=>{v("foo"),b(),y("bar"),w(),k(e,"two different lines",[{day:d},{message:"bar",count:1},{message:"foo",count:1}])})),o.Z.test("append after prepend",(e=>{y("foo"),w(),v("foo"),b(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2}])})),o.Z.test("append after split",(e=>{y("bar"),y("baz"),w(),v("foo"),b(),k(e,"two different lines",[{day:d},{message:"baz",count:1},{message:"bar",count:1},{message:"foo",count:1}])})),o.Z.test("append after split",(e=>{y("bar"),y("baz"),w(),v("bar"),b(),k(e,"two repeated lines",[{day:d},{message:"baz",count:1},{message:"bar",count:2}])})),o.Z.test("prepend after split",(e=>{v("foo"),v("bar"),b(),y("baz"),w(),k(e,"two different lines",[{day:d},{message:"baz",count:1},{message:"foo",count:1},{message:"bar",count:1}])})),o.Z.test("prepend after split",(e=>{v("foo"),v("bar"),b(),y("foo"),w(),k(e,"two repeated lines",[{day:d},{message:"foo",count:2},{message:"bar",count:1}])})),o.Z.test("reboot",(e=>{v("foo"),v("foo"),g(),v("foo"),b(),k(e,"two repeated lines before reboot",[{day:d},{message:"foo",count:2},{reboot:!0},{message:"foo",count:1}])})),o.Z.test("prepend to reboot same day",(e=>{v("foo"),v("baz"),b(),g(),y("bar"),w(),k(e,"different lines",[{day:d},{message:"bar",count:1},{reboot:!0},{message:"foo",count:1},{message:"baz",count:1}])})),o.Z.test("prepend to reboot same day",(e=>{v("foo"),v("baz"),b(),g(),y("foo"),w(),k(e,"repeated line",[{day:d},{message:"foo",count:1},{reboot:!0},{message:"foo",count:1},{message:"baz",count:1}])})),o.Z.start(),t()}catch(E){t(E)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(989)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-locale.js cockpit-284/dist/base1/test-locale.js --- cockpit-283/dist/base1/test-locale.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-locale.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-locale.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&A("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function A(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":A("regexp",e)?"regexp":A("date",e)?"date":A("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                    ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),$=[],H=new P;function D(e,t,n){var o=$.length?$.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:H,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function F(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function Q(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=D(e,t,o),i=r.testEnvironment,s=r.hooks;F(s,i,"before"),F(s,i,"beforeEach"),F(s,i,"afterEach"),F(s,i,"after");var a={before:Z(r,"before"),beforeEach:Z(r,"beforeEach"),afterEach:Z(r,"afterEach"),after:Z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){$.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{$.pop(),R.currentModule=r.parentModule||l}}}var z=!1;function J(e,t,n){var o,r=z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!$.some((function(e){return o.includes(e.moduleId)})));Q(e,t,n,{ignored:r})}J.only=function(){z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),z=!0,Q.apply(void 0,arguments)},J.skip=function(e,t,n){z||Q(e,t,n,{skip:!0})},J.todo=function(e,t,n){z||Q(e,t,n,{todo:!0})};var Y=(W(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function G(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Y){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+W(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&N(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&N(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(N(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=N(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=N(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;de()}()}function fe(e){if(ce.length&&!R.blocking){var t=S.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:de,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",W(2))}},after:function(){!function(){var e=R.pollution;ve();var t=T(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=T(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+N(e),G(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Te(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),G(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||W();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+W(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),W(2)),Se(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,G(e,0)),ve(),Ce(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function Te(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Te(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Me,Ae,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ne=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ae=Le.TERM,Ne=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Me&&"dumb"!==Ae&&(null!=qe&&"0"!==qe||Ne),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Be(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(He(e),null,2)}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return He(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=He(e[o],t)})),t.pop();break;default:n=e}return n}var De=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+N(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat($e(e.message||"failed")),n+="\n severity: ".concat($e(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat($e(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat($e(e.expected))),e.stack&&(n+="\n stack: ".concat($e(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat($e(N(e))),t+="\n severity: ".concat($e("failed")),e&&e.stack&&(t+="\n stack: ".concat($e(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Fe={console:Ie,tap:De};function Ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var Qe={beforeEach:Ze("beforeEach"),afterEach:Ze("afterEach")};function ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(N(e)),source:e&&e.stack||W(2)}):(H.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=H;var Ye=!1,Ge=!1;function We(){Ge=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ke();else{R.started=S.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());We()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(T=c(k,S=b[E]))?(d(T)||(T=h.getPrepared(T)),x[E]=l(e,T,o)):x[E]=null;x.obj=k;var C=v(x);null!==C&&(Cp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(T=c(k=t[w],S))&&(d(T)||(T=h.getPrepared(T)),null!==(j=l(e,T,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(w=m-1;w>=0;--w){var T,j;(T=t[w])&&(d(T)||(T=h.getPrepared(T)),null!==(j=l(e,T,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===f)return i;var _=new Array(f);for(w=f-1;w>=0;--w)_[w]=p.poll();return _.total=f+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=f(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||u,E=o.keys,C=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var S=n[m],T=new Array(C),j=C-1;j>=0;--j)(O=c(S,q=E[j]))?(d(O)||(O=h.getPrepared(O)),T[j]=y(t,O,p)):T[j]=null;T.obj=S;var _=f(T);null!==_&&(_g.peek().score&&g.replaceTop(T))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(S=n[m],q))&&(d(O)||(O=h.getPrepared(O)),null!==(M=y(t,O,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,M;(O=n[m])&&(d(O)||(O=h.getPrepared(O)),null!==(M=y(t,O,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var A=new Array(w),I=w-1;I>=0;--I)A[I]=g.poll();A.total=w+k,a(A)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,d=0;;){if(n===o[u]){if(s[d++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(d=l)-1]+1;break}}l=0;var f=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,y=g;else b=s,y=d;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--f]]}else if(e[l]===o[u]){if(a[f++]=u,++l===r){d=!0;break}++u}else u=p[u];if(d)var g=a,m=f;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){B()})),Je.on("runEnd",(function(t){var n,o,r,i=C("qunit-banner"),s=C("qunit-tests"),a=C("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                    ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",$(e.name,e.module),P(tt.failedTests)].join(""))})),Je.log((function(e){var t=C("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=D(i=Je.diff(n,r)).length!==D(n).length+D(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                    Expected:
                                                                    "+nt(n)+"
                                                                    Result:
                                                                    "+nt(r)+"
                                                                    Diff:
                                                                    "+i+"
                                                                    Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                    Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                    Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                    Source:
                                                                    "+nt(e.source)+"
                                                                    "):!e.result&&e.source&&(s+="
                                                                    Source:
                                                                    "+nt(e.source)+"
                                                                    ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=C("qunit-tests"),i=C("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,p=u?""+u+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,d)}else{if(f(d,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,d)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),f(d,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=U("global failure");if(t){var n=nt(N(e));n=""+n+"",e&&e.stack&&(n+="
                                                                    Source:
                                                                    "+nt(e.stack)+"
                                                                    ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?f(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function C(e){return v.getElementById&&v.getElementById(e)}function S(){var e=C("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function T(e){var t=C("qunit-filter-input");return t.value=d(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=C("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=f.indexOf("skipped")>-1;(h||g)&&t.push(d)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function A(e,t,n){return'
                                                                  1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                     
                                                                    ',e=C("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",S),t))}function B(){var e,t,n,o,i,s=C("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                    "+nt(v.title)+"

                                                                    "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                    ")+"

                                                                      ")),(t=C("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=C("qunit-banner"))&&(n.className=""),R(),(o=C("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=C("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=C("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=$(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                                                      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function $(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function H(e){return[e.completed," / ",e.defined," tests completed.
                                                                      "].join("")}function D(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],f=u[1],d=u[2],p=u[3],h=u[4],g=this.DiffMain(c,d,o,r),m=this.DiffMain(f,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,d,f,s]:null}return r=this,u=f(n,o,Math.ceil(n.length/4)),c=f(n,o,Math.ceil(n.length/2)),u||c?(d=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,d="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,f=(r=this.DiffMain(d,c,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,u=0,d="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,d,f,p,h,g,m,v,b,y,w,k,x,E,C,S,T;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),d=0;do);C++){for(S=-C+h;S<=C-g;S+=2){for(y=a+S,x=(w=S===-C||S!==C&&u[y-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+f-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(T=-C+m;T<=C-v;T+=2){for(b=a+T,E=(k=T===-C||T!==C&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(y=a+f-T)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,d,f,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][1]=d.substring(0,d.length-p),e[s+1][1]=f.substring(p),s++):(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-h),e[s+1][0]=t,e[s+1][1]=d.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function T(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(T("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const D={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),H(e,D,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:D[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in D||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const F={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),H(e,F,t,n)};const Z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function Q(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,d=r.length;let f;for(f=u>0?u-1:u;f=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=f;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),f(c,i.items.slice(c-u,d-u),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new W(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),N((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){N((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),d(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let d,f=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},181:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);r=(i.then?(await i)():i)[0];const s={"":{language:"pig","plural-forms":function(e){return 1!=e}},Control:[null,"Ontrolcay"],User:[null,"Useray"],Waiting:[null,"Aitingway"],"$0 disk is missing":["$0 disk is missing","$0 isksbay is issingmay","$0 isksbay are issingmay"],"keyControl":[null,"OntrolCAY"],"disk-non-rotational$0 disk is missing":["disk-non-rotational$0 disk is missing","$0 isksBAY is issingMAY","$0 isksBAY are issingMAY"]},a={"":{language:"ru","plural-forms":function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},"$0 bit":["$0 bits","$0 бит","$0 бита","$0 бит"]};function l(){const e=document.createElement("div");e.setAttribute("id","translations"),e.setAttribute("hidden","hidden"),document.querySelector("body").appendChild(e),r.Z.start()}r.Z.test("public api",(function(e){e.equal(typeof o.Z.locale,"function","cockpit.locale is a function")})),r.Z.test("gettext",(function(e){o.Z.locale(null),o.Z.locale(s),e.equal(o.Z.language,"pig","correct lang"),e.equal(o.Z.gettext("Control"),"Ontrolcay","returned translation"),e.equal(o.Z.gettext("key","Control"),"OntrolCAY","with context"),e.equal(o.Z.gettext("Empty"),"Empty","english default"),e.equal(o.Z.gettext("verb","Empty"),"Empty","english default context")})),r.Z.test("underscore",(function(e){o.Z.locale(null),o.Z.locale(s);const t=o.Z.gettext,n=t;e.equal(t("Control"),"Ontrolcay","returned translation"),e.equal(t("Empty"),"Empty","english default"),e.equal(n("key","Control"),"OntrolCAY","with context"),e.equal(n("verb","Empty"),"Empty","with context")})),r.Z.test("ngettext simple",(function(e){o.Z.locale(null),o.Z.locale(s),e.equal(o.Z.ngettext("$0 disk is missing","$0 disks are missing",0),"$0 isksbay are issingmay","zero things"),e.equal(o.Z.ngettext("$0 disk is missing","$0 disks are missing",1),"$0 isksbay is issingmay","one thing"),e.equal(o.Z.ngettext("$0 disk is missing","$0 disks are missing",5),"$0 isksbay are issingmay","multiple things"),e.equal(o.Z.ngettext("disk-non-rotational","$0 disk is missing","$0 disks are missing",0),"$0 isksBAY are issingMAY","zero things context"),e.equal(o.Z.ngettext("disk-non-rotational","$0 disk is missing","$0 disks are missing",1),"$0 isksBAY is issingMAY","one thing context"),e.equal(o.Z.ngettext("disk-non-rotational","$0 disk is missing","$0 disks are missing",5),"$0 isksBAY are issingMAY","multiple things context"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",1),"$0 byte","default one"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",2),"$0 bytes","default multiple"),e.equal(o.Z.ngettext("memory","$0 byte","$0 bytes",1),"$0 byte","default one context"),e.equal(o.Z.ngettext("memory","$0 byte","$0 bytes",2),"$0 bytes","default multiple context")})),r.Z.test("ngettext complex",(function(e){o.Z.locale(null),o.Z.locale(a),e.equal(o.Z.ngettext("$0 bit","$0 bits",0),"$0 бит","zero things"),e.equal(o.Z.ngettext("$0 bit","$0 bits",1),"$0 бит","one thing"),e.equal(o.Z.ngettext("$0 bit","$0 bits",5),"$0 бит","multiple things"),e.equal(o.Z.ngettext("$0 bit","$0 bits",23),"$0 бита","genitive singular"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",1),"$0 byte","default one"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",2),"$0 bytes","default multiple")})),r.Z.test("translate document",(function(e){o.Z.locale(null),o.Z.locale(s),document.getElementById("translations").innerHTML="Control",o.Z.translate();const t=document.getElementById("translatable-html");e.equal(t.innerHTML,"Ontrolcay","translate element"),e.equal(t.hasAttribute("translate"),!1,"translate element attribute removed")})),r.Z.test("translate elements",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="ControlControl";const n=document.createElement("div");n.setAttribute("translate","translate"),n.innerHTML="User";const r=document.createElement("div");r.innerHTML="Waiting";const i=document.getElementById("translations");i.appendChild(t),i.appendChild(n),i.appendChild(r),o.Z.translate(t,n,r);const a=document.getElementById("translatable-html");e.equal(a.innerHTML,"Ontrolcay","translate element"),e.equal(a.hasAttribute("translate"),!1,"translate element attribute removed");const l=document.getElementById("translatable-context-html");e.equal(l.innerHTML,"OntrolCAY","translate context"),e.equal(l.hasAttribute("translate"),!1,"translate context attribute removed")})),r.Z.test("translate array",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="ControlControl";const n=document.createElement("div");n.setAttribute("translate","translate"),n.innerHTML="User";const r=document.createElement("div");r.innerHTML="Waiting";const i=document.getElementById("translations");i.appendChild(t),i.appendChild(n),i.appendChild(r),o.Z.translate(document.querySelector("#translations div"));const a=document.getElementById("translatable-html");e.equal(a.innerHTML,"Ontrolcay","translate element"),e.equal(a.hasAttribute("translate"),!1,"translate element attribute removed");const l=document.getElementById("translatable-context-html");e.equal(l.innerHTML,"OntrolCAY","translate context"),e.equal(l.hasAttribute("translate"),!1,"translate context attribute removed")})),r.Z.test("translate glade",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="ControlControl",document.getElementById("translations").appendChild(t),o.Z.translate(t);const n=document.getElementById("translatable-glade");e.equal(n.innerHTML,"Ontrolcay","translatable element"),e.equal(n.hasAttribute("translate"),!1,"translate element removed");const r=document.getElementById("translatable-glade-context");e.equal(r.innerHTML,"OntrolCAY","translate context"),e.equal(r.hasAttribute("translate"),!1,"translate context attribute removed")})),r.Z.test("translate attributes",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="Waiting
                                                                      WaitingWaiting
                                                                      Waiting",document.getElementById("translations").appendChild(t),o.Z.translate(t);const n=document.getElementById("translatable-attribute");e.equal(n.getAttribute("title"),"Ontrolcay","translate attribute"),e.equal(n.innerHTML,"Waiting","translate attribute doesn't affect text"),e.equal(n.hasAttribute("translate"),!1,"translate element removed");const r=document.getElementById("translatable-attribute-context");e.equal(r.getAttribute("title"),"OntrolCAY","translatable element"),e.equal(r.innerHTML,"Waiting","translate context doesn't affect text"),e.equal(r.hasAttribute("translate"),!1,"translate element removed");const i=document.getElementById("translatable-attribute-both");e.equal(i.getAttribute("title"),"Useray","translate attribute both"),e.equal(i.innerHTML,"Aitingway","translate text both"),e.equal(i.hasAttribute("translate"),!1,"translate removed");const a=document.getElementById("translatable-attribute-both");e.equal(a.getAttribute("title"),"Useray","translate syntax both"),e.equal(a.innerHTML,"Aitingway","translate syntax both"),e.equal(a.hasAttribute("translate"),!1,"translate removed")})),"loading"==document.readyState?document.addEventListener("DOMContentLoaded",l):l(),t()}catch(u){t(u)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,d=new Set,f=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(181)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&A("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function A(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":A("regexp",e)?"regexp":A("date",e)?"date":A("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),$=[],H=new P;function D(e,t,n){var o=$.length?$.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:H,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function F(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function Q(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=D(e,t,o),i=r.testEnvironment,s=r.hooks;F(s,i,"before"),F(s,i,"beforeEach"),F(s,i,"afterEach"),F(s,i,"after");var a={before:Z(r,"before"),beforeEach:Z(r,"beforeEach"),afterEach:Z(r,"afterEach"),after:Z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){$.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{$.pop(),R.currentModule=r.parentModule||l}}}var z=!1;function J(e,t,n){var o,r=z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!$.some((function(e){return o.includes(e.moduleId)})));Q(e,t,n,{ignored:r})}J.only=function(){z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),z=!0,Q.apply(void 0,arguments)},J.skip=function(e,t,n){z||Q(e,t,n,{skip:!0})},J.todo=function(e,t,n){z||Q(e,t,n,{todo:!0})};var Y=(W(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function G(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Y){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+W(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&N(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&N(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(N(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=N(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=N(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;de()}()}function fe(e){if(ce.length&&!R.blocking){var t=S.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:de,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",W(2))}},after:function(){!function(){var e=R.pollution;ve();var t=T(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=T(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+N(e),G(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Te(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),G(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||W();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+W(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),W(2)),Se(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,G(e,0)),ve(),Ce(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function Te(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Te(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Me,Ae,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ne=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ae=Le.TERM,Ne=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Me&&"dumb"!==Ae&&(null!=qe&&"0"!==qe||Ne),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Be(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(He(e),null,2)}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return He(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=He(e[o],t)})),t.pop();break;default:n=e}return n}var De=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+N(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat($e(e.message||"failed")),n+="\n severity: ".concat($e(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat($e(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat($e(e.expected))),e.stack&&(n+="\n stack: ".concat($e(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat($e(N(e))),t+="\n severity: ".concat($e("failed")),e&&e.stack&&(t+="\n stack: ".concat($e(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Fe={console:Ie,tap:De};function Ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var Qe={beforeEach:Ze("beforeEach"),afterEach:Ze("afterEach")};function ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(N(e)),source:e&&e.stack||W(2)}):(H.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=H;var Ye=!1,Ge=!1;function We(){Ge=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ke();else{R.started=S.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());We()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=f();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=p.getPreparedSearch(e)),t?(d(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,f=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(T=c(k,S=b[E]))?(d(T)||(T=p.getPrepared(T)),x[E]=l(e,T,o)):x[E]=null;x.obj=k;var C=v(x);null!==C&&(Ch.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(T=c(k=t[w],S))&&(d(T)||(T=p.getPrepared(T)),null!==(j=l(e,T,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(w=m-1;w>=0;--w){var T,j;(T=t[w])&&(d(T)||(T=p.getPrepared(T)),null!==(j=l(e,T,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===f)return i;var _=new Array(f);for(w=f-1;w>=0;--w)_[w]=h.poll();return _.total=f+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=f(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||u,E=o.keys,C=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var S=n[m],T=new Array(C),j=C-1;j>=0;--j)(O=c(S,q=E[j]))?(d(O)||(O=p.getPrepared(O)),T[j]=y(t,O,h)):T[j]=null;T.obj=S;var _=f(T);null!==_&&(_g.peek().score&&g.replaceTop(T))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(S=n[m],q))&&(d(O)||(O=p.getPrepared(O)),null!==(M=y(t,O,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,M;(O=n[m])&&(d(O)||(O=p.getPrepared(O)),null!==(M=y(t,O,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var A=new Array(w),I=w-1;I>=0;--I)A[I]=g.poll();A.total=w+k,a(A)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,d=0;;){if(n===o[u]){if(s[d++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(d=l)-1]+1;break}}l=0;var f=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=d;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var d=!1,f=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--f]]}else if(e[l]===o[u]){if(a[f++]=u,++l===r){d=!0;break}++u}else u=h[u];if(d)var g=a,m=f;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){B()})),Je.on("runEnd",(function(t){var n,o,r,i=C("qunit-banner"),s=C("qunit-tests"),a=C("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",$(e.name,e.module),P(tt.failedTests)].join(""))})),Je.log((function(e){var t=C("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=D(i=Je.diff(n,r)).length!==D(n).length+D(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                      Expected:
                                                                      "+nt(n)+"
                                                                      Result:
                                                                      "+nt(r)+"
                                                                      Diff:
                                                                      "+i+"
                                                                      Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                      Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                      Source:
                                                                      "+nt(e.source)+"
                                                                      "):!e.result&&e.source&&(s+="
                                                                      Source:
                                                                      "+nt(e.source)+"
                                                                      ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=C("qunit-tests"),i=C("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,h=u?""+u+", "+l+", ":"";if(d.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,d)}else{if(f(d,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,d)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),f(d,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=U("global failure");if(t){var n=nt(N(e));n=""+n+"",e&&e.stack&&(n+="
                                                                      Source:
                                                                      "+nt(e.stack)+"
                                                                      ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?f(h,"load",Je.load):Je.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function C(e){return v.getElementById&&v.getElementById(e)}function S(){var e=C("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function T(e){var t=C("qunit-filter-input");return t.value=d(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in h.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=C("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=f.indexOf("skipped")>-1;(p||g)&&t.push(d)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function _(e){var t="?",n=h.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function A(e,t,n){return'
                                                                    1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                       
                                                                      ',e=C("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",S),t))}function B(){var e,t,n,o,i,s=C("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                      "+nt(v.title)+"

                                                                      "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                      ")+"

                                                                        ")),(t=C("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=C("qunit-banner"))&&(n.className=""),R(),(o=C("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=C("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=C("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=$(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                                                        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function $(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function H(e){return[e.completed," / ",e.defined," tests completed.
                                                                        "].join("")}function D(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],f=u[1],d=u[2],h=u[3],p=u[4],g=this.DiffMain(c,d,o,r),m=this.DiffMain(f,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,d,f,s]:null}return r=this,u=f(n,o,Math.ceil(n.length/4)),c=f(n,o,Math.ceil(n.length/2)),u||c?(d=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,d="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,f=(r=this.DiffMain(d,c,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,u=0,d="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,d,f,h,p,g,m,v,b,y,w,k,x,E,C,S,T;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),d=0;do);C++){for(S=-C+p;S<=C-g;S+=2){for(y=a+S,x=(w=S===-C||S!==C&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+f-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(T=-C+m;T<=C-v;T+=2){for(b=a+T,E=(k=T===-C||T!==C&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+f-T)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,d,f,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(f,d))?(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][1]=d.substring(0,d.length-h),e[s+1][1]=f.substring(h),s++):(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-p),e[s+1][0]=t,e[s+1][1]=d.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function T(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(T("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):d.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const D={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),H(e,D,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:D[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in D||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const F={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),H(e,F,t,n)};const Z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function Q(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,d=r.length;let f;for(f=u>0?u-1:u;f=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=f;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),f(c,i.items.slice(c-u,d-u),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new W(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),N((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){N((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let de,fe={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&f?f.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),d(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let d,f=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},181:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);r=(i.then?(await i)():i)[0];const s={"":{language:"pig","plural-forms":function(e){return 1!=e}},Control:[null,"Ontrolcay"],User:[null,"Useray"],Waiting:[null,"Aitingway"],"$0 disk is missing":["$0 disk is missing","$0 isksbay is issingmay","$0 isksbay are issingmay"],"keyControl":[null,"OntrolCAY"],"disk-non-rotational$0 disk is missing":["disk-non-rotational$0 disk is missing","$0 isksBAY is issingMAY","$0 isksBAY are issingMAY"]},a={"":{language:"ru","plural-forms":function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}},"$0 bit":["$0 bits","$0 бит","$0 бита","$0 бит"]};function l(){const e=document.createElement("div");e.setAttribute("id","translations"),e.setAttribute("hidden","hidden"),document.querySelector("body").appendChild(e),r.Z.start()}r.Z.test("public api",(function(e){e.equal(typeof o.Z.locale,"function","cockpit.locale is a function")})),r.Z.test("gettext",(function(e){o.Z.locale(null),o.Z.locale(s),e.equal(o.Z.language,"pig","correct lang"),e.equal(o.Z.gettext("Control"),"Ontrolcay","returned translation"),e.equal(o.Z.gettext("key","Control"),"OntrolCAY","with context"),e.equal(o.Z.gettext("Empty"),"Empty","english default"),e.equal(o.Z.gettext("verb","Empty"),"Empty","english default context")})),r.Z.test("underscore",(function(e){o.Z.locale(null),o.Z.locale(s);const t=o.Z.gettext,n=t;e.equal(t("Control"),"Ontrolcay","returned translation"),e.equal(t("Empty"),"Empty","english default"),e.equal(n("key","Control"),"OntrolCAY","with context"),e.equal(n("verb","Empty"),"Empty","with context")})),r.Z.test("ngettext simple",(function(e){o.Z.locale(null),o.Z.locale(s),e.equal(o.Z.ngettext("$0 disk is missing","$0 disks are missing",0),"$0 isksbay are issingmay","zero things"),e.equal(o.Z.ngettext("$0 disk is missing","$0 disks are missing",1),"$0 isksbay is issingmay","one thing"),e.equal(o.Z.ngettext("$0 disk is missing","$0 disks are missing",5),"$0 isksbay are issingmay","multiple things"),e.equal(o.Z.ngettext("disk-non-rotational","$0 disk is missing","$0 disks are missing",0),"$0 isksBAY are issingMAY","zero things context"),e.equal(o.Z.ngettext("disk-non-rotational","$0 disk is missing","$0 disks are missing",1),"$0 isksBAY is issingMAY","one thing context"),e.equal(o.Z.ngettext("disk-non-rotational","$0 disk is missing","$0 disks are missing",5),"$0 isksBAY are issingMAY","multiple things context"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",1),"$0 byte","default one"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",2),"$0 bytes","default multiple"),e.equal(o.Z.ngettext("memory","$0 byte","$0 bytes",1),"$0 byte","default one context"),e.equal(o.Z.ngettext("memory","$0 byte","$0 bytes",2),"$0 bytes","default multiple context")})),r.Z.test("ngettext complex",(function(e){o.Z.locale(null),o.Z.locale(a),e.equal(o.Z.ngettext("$0 bit","$0 bits",0),"$0 бит","zero things"),e.equal(o.Z.ngettext("$0 bit","$0 bits",1),"$0 бит","one thing"),e.equal(o.Z.ngettext("$0 bit","$0 bits",5),"$0 бит","multiple things"),e.equal(o.Z.ngettext("$0 bit","$0 bits",23),"$0 бита","genitive singular"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",1),"$0 byte","default one"),e.equal(o.Z.ngettext("$0 byte","$0 bytes",2),"$0 bytes","default multiple")})),r.Z.test("translate document",(function(e){o.Z.locale(null),o.Z.locale(s),document.getElementById("translations").innerHTML="Control",o.Z.translate();const t=document.getElementById("translatable-html");e.equal(t.innerHTML,"Ontrolcay","translate element"),e.equal(t.hasAttribute("translate"),!1,"translate element attribute removed")})),r.Z.test("translate elements",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="ControlControl";const n=document.createElement("div");n.setAttribute("translate","translate"),n.innerHTML="User";const r=document.createElement("div");r.innerHTML="Waiting";const i=document.getElementById("translations");i.appendChild(t),i.appendChild(n),i.appendChild(r),o.Z.translate(t,n,r);const a=document.getElementById("translatable-html");e.equal(a.innerHTML,"Ontrolcay","translate element"),e.equal(a.hasAttribute("translate"),!1,"translate element attribute removed");const l=document.getElementById("translatable-context-html");e.equal(l.innerHTML,"OntrolCAY","translate context"),e.equal(l.hasAttribute("translate"),!1,"translate context attribute removed")})),r.Z.test("translate array",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="ControlControl";const n=document.createElement("div");n.setAttribute("translate","translate"),n.innerHTML="User";const r=document.createElement("div");r.innerHTML="Waiting";const i=document.getElementById("translations");i.appendChild(t),i.appendChild(n),i.appendChild(r),o.Z.translate(document.querySelector("#translations div"));const a=document.getElementById("translatable-html");e.equal(a.innerHTML,"Ontrolcay","translate element"),e.equal(a.hasAttribute("translate"),!1,"translate element attribute removed");const l=document.getElementById("translatable-context-html");e.equal(l.innerHTML,"OntrolCAY","translate context"),e.equal(l.hasAttribute("translate"),!1,"translate context attribute removed")})),r.Z.test("translate glade",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="ControlControl",document.getElementById("translations").appendChild(t),o.Z.translate(t);const n=document.getElementById("translatable-glade");e.equal(n.innerHTML,"Ontrolcay","translatable element"),e.equal(n.hasAttribute("translate"),!1,"translate element removed");const r=document.getElementById("translatable-glade-context");e.equal(r.innerHTML,"OntrolCAY","translate context"),e.equal(r.hasAttribute("translate"),!1,"translate context attribute removed")})),r.Z.test("translate attributes",(function(e){o.Z.locale(null),o.Z.locale(s);const t=document.createElement("div");t.innerHTML="Waiting
                                                                        WaitingWaiting
                                                                        Waiting",document.getElementById("translations").appendChild(t),o.Z.translate(t);const n=document.getElementById("translatable-attribute");e.equal(n.getAttribute("title"),"Ontrolcay","translate attribute"),e.equal(n.innerHTML,"Waiting","translate attribute doesn't affect text"),e.equal(n.hasAttribute("translate"),!1,"translate element removed");const r=document.getElementById("translatable-attribute-context");e.equal(r.getAttribute("title"),"OntrolCAY","translatable element"),e.equal(r.innerHTML,"Waiting","translate context doesn't affect text"),e.equal(r.hasAttribute("translate"),!1,"translate element removed");const i=document.getElementById("translatable-attribute-both");e.equal(i.getAttribute("title"),"Useray","translate attribute both"),e.equal(i.innerHTML,"Aitingway","translate text both"),e.equal(i.hasAttribute("translate"),!1,"translate removed");const a=document.getElementById("translatable-attribute-both");e.equal(a.getAttribute("title"),"Useray","translate syntax both"),e.equal(a.innerHTML,"Aitingway","translate syntax both"),e.equal(a.hasAttribute("translate"),!1,"translate removed")})),"loading"==document.readyState?document.addEventListener("DOMContentLoaded",l):l(),t()}catch(u){t(u)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,d=new Set,f=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=f,h[e]=e=>(a&&e(a),d.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(181)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-location.js cockpit-284/dist/base1/test-location.js --- cockpit-283/dist/base1/test-location.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-location.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-location.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                        ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function Z(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=Z(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var z=!1;function J(e,t,n){var o,r=z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}J.only=function(){z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),z=!0,$.apply(void 0,arguments)},J.skip=function(e,t,n){z||$(e,t,n,{skip:!0})},J.todo=function(e,t,n){z||$(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var Ze=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Ie,tap:Ze};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(O=c(C,q=E[_]))?(f(O)||(O=h.getPrepared(O)),j[_]=w(t,O,p)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                        ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=Z(i=Je.diff(n,r)).length!==Z(n).length+Z(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                        Expected:
                                                                        "+nt(n)+"
                                                                        Result:
                                                                        "+nt(r)+"
                                                                        Diff:
                                                                        "+i+"
                                                                        Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                        Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                        Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                        Source:
                                                                        "+nt(e.source)+"
                                                                        "):!e.result&&e.source&&(s+="
                                                                        Source:
                                                                        "+nt(e.source)+"
                                                                        ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                        Source:
                                                                        "+nt(e.stack)+"
                                                                        ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function M(e,t,n){return'
                                                                      1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                         
                                                                        ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                        "+nt(v.title)+"

                                                                        "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                        Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                        ")+"

                                                                          ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                          ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                          "].join("")}function Z(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const Z={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,Z,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:Z[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in Z||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},246:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("basic",(function(e){window.location.hash="",e.equal(typeof o.Z.location,"object","cockpit.location exists"),e.ok(Array.isArray(o.Z.location.path),"cockpit.location.path exists"),e.equal(typeof o.Z.location.options,"object","cockpit.location.options exists"),e.equal(typeof o.Z.location.go,"function","cockpit.location.go exists"),e.equal(typeof o.Z.location.replace,"function","cockpit.location.replace exists"),e.equal(typeof o.Z.location.decode,"function","cockpit.location.decode exists"),e.equal(typeof o.Z.location.encode,"function","cockpit.location.encode exists"),e.deepEqual(o.Z.location.path,[],"path is empty"),e.deepEqual(o.Z.location.options,{},"options are empty")})),r.Z.test("decode",(function(e){window.location.hash="#/base/test";const t=[["#/host/path/sub?a=1&b=2",{path:["host","path","sub"],options:{a:"1",b:"2"}}],["",{path:[],options:{}}],["#",{path:[],options:{}}],["#/",{path:[],options:{}}],["/horst",{path:["horst"],options:{}}],["//one",{path:["one"],options:{}}],["//one/",{path:["one"],options:{}}],["///two",{path:["two"],options:{}}],["/slash/%2f",{path:["slash","/"],options:{}}],["?a=1",{path:[],options:{a:"1"}}],["?a=1&a=2",{path:[],options:{a:["1","2"]}}],["?%3f=%3d",{path:[],options:{"?":"="}}],["#?=",{path:[],options:{"":""}}],["?=",{path:[],options:{"":""}}],["relative/sub",{path:["base","relative","sub"],options:{}}],["./relative/sub",{path:["base","relative","sub"],options:{}}],["../relative/sub",{path:["relative","sub"],options:{}}],["/top/../sub",{path:["sub"],options:{}}],["/top/./sub/./",{path:["top","sub"],options:{}}],["relative/../sub",{path:["base","sub"],options:{}}]];e.expect(t.length);for(let n=0;n{e.strictEqual(window.location.hash,"#/gonna-happen","hash has changed"),o.Z.removeEventListener("locationchanged",r),n=!0,t()};o.Z.addEventListener("locationchanged",r),o.Z.location.go(["gonna-happen"]),e.ok(!n,"not yet triggered")})),r.Z.test("test",(function(e){const t=e.async();window.location.hash="#/hello";const n=o.Z.location;e.deepEqual(o.Z.location.path,["hello"],"path is right"),window.setTimeout((function(){n.go(["not-gonna-happen"]),e.strictEqual(window.location.hash,"#/other","hash is correct"),o.Z.location.go(["gonna-happen"]),e.strictEqual(window.location.hash,"#/gonna-happen","hash has changed"),t()}),100),window.location.hash="#/other"})),r.Z.module("url_root tests",{beforeEach:()=>{window.mock={url_root:"cockpit"}},afterEach:()=>{window.mock=null}}),r.Z.test("encode",(e=>{let t=o.Z.location.encode("path","",!0);e.equal(t,"/cockpit/path","path is correct"),t=o.Z.location.encode("/cockpit/path","",!0),e.equal(t,"/cockpit/path","path is correct")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(246)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                          ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function Z(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function H(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=Z(e,t,o),i=r.testEnvironment,s=r.hooks;H(s,i,"before"),H(s,i,"beforeEach"),H(s,i,"afterEach"),H(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var Ze=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),He={console:Ie,tap:Ze};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(O=c(C,q=E[_]))?(f(O)||(O=h.getPrepared(O)),j[_]=w(t,O,p)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                          ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=Z(i=Je.diff(n,r)).length!==Z(n).length+Z(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                          Expected:
                                                                          "+nt(n)+"
                                                                          Result:
                                                                          "+nt(r)+"
                                                                          Diff:
                                                                          "+i+"
                                                                          Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                          Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                          Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                          Source:
                                                                          "+nt(e.source)+"
                                                                          "):!e.result&&e.source&&(s+="
                                                                          Source:
                                                                          "+nt(e.source)+"
                                                                          ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                          Source:
                                                                          "+nt(e.stack)+"
                                                                          ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function M(e,t,n){return'
                                                                        1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                           
                                                                          ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                          "+nt(v.title)+"

                                                                          "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                          Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                          ")+"

                                                                            ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                            ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                            "].join("")}function Z(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const Z={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,Z,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:Z[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in Z||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const H={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},246:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("basic",(function(e){window.location.hash="",e.equal(typeof o.Z.location,"object","cockpit.location exists"),e.ok(Array.isArray(o.Z.location.path),"cockpit.location.path exists"),e.equal(typeof o.Z.location.options,"object","cockpit.location.options exists"),e.equal(typeof o.Z.location.go,"function","cockpit.location.go exists"),e.equal(typeof o.Z.location.replace,"function","cockpit.location.replace exists"),e.equal(typeof o.Z.location.decode,"function","cockpit.location.decode exists"),e.equal(typeof o.Z.location.encode,"function","cockpit.location.encode exists"),e.deepEqual(o.Z.location.path,[],"path is empty"),e.deepEqual(o.Z.location.options,{},"options are empty")})),r.Z.test("decode",(function(e){window.location.hash="#/base/test";const t=[["#/host/path/sub?a=1&b=2",{path:["host","path","sub"],options:{a:"1",b:"2"}}],["",{path:[],options:{}}],["#",{path:[],options:{}}],["#/",{path:[],options:{}}],["/horst",{path:["horst"],options:{}}],["//one",{path:["one"],options:{}}],["//one/",{path:["one"],options:{}}],["///two",{path:["two"],options:{}}],["/slash/%2f",{path:["slash","/"],options:{}}],["?a=1",{path:[],options:{a:"1"}}],["?a=1&a=2",{path:[],options:{a:["1","2"]}}],["?%3f=%3d",{path:[],options:{"?":"="}}],["#?=",{path:[],options:{"":""}}],["?=",{path:[],options:{"":""}}],["relative/sub",{path:["base","relative","sub"],options:{}}],["./relative/sub",{path:["base","relative","sub"],options:{}}],["../relative/sub",{path:["relative","sub"],options:{}}],["/top/../sub",{path:["sub"],options:{}}],["/top/./sub/./",{path:["top","sub"],options:{}}],["relative/../sub",{path:["base","sub"],options:{}}]];e.expect(t.length);for(let n=0;n{e.strictEqual(window.location.hash,"#/gonna-happen","hash has changed"),o.Z.removeEventListener("locationchanged",r),n=!0,t()};o.Z.addEventListener("locationchanged",r),o.Z.location.go(["gonna-happen"]),e.ok(!n,"not yet triggered")})),r.Z.test("test",(function(e){const t=e.async();window.location.hash="#/hello";const n=o.Z.location;e.deepEqual(o.Z.location.path,["hello"],"path is right"),window.setTimeout((function(){n.go(["not-gonna-happen"]),e.strictEqual(window.location.hash,"#/other","hash is correct"),o.Z.location.go(["gonna-happen"]),e.strictEqual(window.location.hash,"#/gonna-happen","hash has changed"),t()}),100),window.location.hash="#/other"})),r.Z.module("url_root tests",{beforeEach:()=>{window.mock={url_root:"cockpit"}},afterEach:()=>{window.mock=null}}),r.Z.test("encode",(e=>{let t=o.Z.location.encode("path","",!0);e.equal(t,"/cockpit/path","path is correct"),t=o.Z.location.encode("/cockpit/path","",!0),e.equal(t,"/cockpit/path","path is correct")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(246)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-metrics.js cockpit-284/dist/base1/test-metrics.js --- cockpit-283/dist/base1/test-metrics.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-metrics.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-metrics.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                            ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function Z(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}Z.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},Z.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},Z.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){U()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                            ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                            Expected:
                                                                            "+nt(n)+"
                                                                            Result:
                                                                            "+nt(r)+"
                                                                            Diff:
                                                                            "+i+"
                                                                            Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

                                                                            Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                            Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                            Source:
                                                                            "+nt(e.source)+"
                                                                            "):!e.result&&e.source&&(s+="
                                                                            Source:
                                                                            "+nt(e.source)+"
                                                                            ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                            Source:
                                                                            "+nt(e.stack)+"
                                                                            ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                                          1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                             
                                                                            ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                            "+nt(v.title)+"

                                                                            "+((!(e=Ze.config.testId)||e.length<=0?"":"
                                                                            Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                            ")+"

                                                                              ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                              ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                              "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},314:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(){o.Z.event_target(this);let e=null;this.onopened=function(e,t,n){},this.onclosed=function(e,t,n){},this.send=function(t){"string"!=typeof t&&(t=String(t)),e?e.valid?e.dispatchEvent("message",t):console.log("dropping message after close"):console.log("dropping message before open")},this.send_json=function(e){this.send(JSON.stringify(e))},this.close=function(e,t){console.assert(e),e.valid&&(e.valid=!1,e.dispatchEvent("close",t||{}))};const t=this;let n=0;function i(e){o.Z.event_target(this),this.number=n++,this.options=e,this.valid=!0;const i=this;this.transport=new function(){this.close=function(e){console.assert(1==arguments.length)}},this.send=function(e){console.assert(1==arguments.length),console.assert(this.valid),t.dispatchEvent("recv",i,e)},this.close=function(e){console.assert(arguments.length<=1),this.valid=!1,t.dispatchEvent("close",i,e||{})},r.Z.testDone((function(){i.valid=!1})),t.dispatchEvent("open",i,e||{})}o.Z.channel=function(t){return e=new i(t),e}}function a(e,t){const n=this;return n.samples=[],n.series={input:function(e,t,o){for(let o=0;o{l=o.Z.channel},afterEach:()=>{o.Z.channel=l}}),r.Z.test("non-instanced decompression",(e=>{e.expect(1);const t=new s,n=new a,r=o.Z.metrics(1e3,{source:"source",metrics:[{name:"m1"}]});r.series=n.series,r.follow(),t.send_json({timestamp:0,now:0,interval:1e3,metrics:[{name:"m1"}]}),t.send_json([[10]]),t.send_json([[]]),e.deepEqual(n.samples,[[10],[10]],"got correct samples")})),r.Z.test("interval validation",(e=>{e.expect(2);const t=e.async();o.Z.channel({payload:"metrics1",source:"internal",interval:-1}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error"),e.equal(o.message,'invalid "interval" value: -1'),t()}))})),r.Z.test("metrics validation",(e=>{e.expect(2);const t=e.async();o.Z.channel({payload:"metrics1",source:"internal",interval:1e3,metrics:{foo:1}}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error"),e.equal(o.message,'invalid "metrics" option was specified (not an array)'),t()}))})),r.Z.test("metrics object validation",(e=>{e.expect(1);const t=e.async();o.Z.channel({payload:"metrics1",source:"internal",interval:1e3,metrics:[{name:"nonexistant",derive:"rate"}]}).addEventListener("close",((n,o)=>{e.equal(o.problem,"not-supported"),t()}))})),r.Z.start(),t()}catch(u){t(u)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(314)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                              ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function Z(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}Z.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,J.apply(void 0,arguments)},Z.skip=function(e,t,n){$||J(e,t,n,{skip:!0})},Z.todo=function(e,t,n){$||J(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var Je={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){U()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                              ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                              Expected:
                                                                              "+nt(n)+"
                                                                              Result:
                                                                              "+nt(r)+"
                                                                              Diff:
                                                                              "+i+"
                                                                              Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

                                                                              Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                              Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                              Source:
                                                                              "+nt(e.source)+"
                                                                              "):!e.result&&e.source&&(s+="
                                                                              Source:
                                                                              "+nt(e.source)+"
                                                                              ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                              Source:
                                                                              "+nt(e.stack)+"
                                                                              ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                                            1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                               
                                                                              ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                              "+nt(v.title)+"

                                                                              "+((!(e=Ze.config.testId)||e.length<=0?"":"
                                                                              Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                              ")+"

                                                                                ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},314:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(){o.Z.event_target(this);let e=null;this.onopened=function(e,t,n){},this.onclosed=function(e,t,n){},this.send=function(t){"string"!=typeof t&&(t=String(t)),e?e.valid?e.dispatchEvent("message",t):console.log("dropping message after close"):console.log("dropping message before open")},this.send_json=function(e){this.send(JSON.stringify(e))},this.close=function(e,t){console.assert(e),e.valid&&(e.valid=!1,e.dispatchEvent("close",t||{}))};const t=this;let n=0;function i(e){o.Z.event_target(this),this.number=n++,this.options=e,this.valid=!0;const i=this;this.transport=new function(){this.close=function(e){console.assert(1==arguments.length)}},this.send=function(e){console.assert(1==arguments.length),console.assert(this.valid),t.dispatchEvent("recv",i,e)},this.close=function(e){console.assert(arguments.length<=1),this.valid=!1,t.dispatchEvent("close",i,e||{})},r.Z.testDone((function(){i.valid=!1})),t.dispatchEvent("open",i,e||{})}o.Z.channel=function(t){return e=new i(t),e}}function a(e,t){const n=this;return n.samples=[],n.series={input:function(e,t,o){for(let o=0;o{l=o.Z.channel},afterEach:()=>{o.Z.channel=l}}),r.Z.test("non-instanced decompression",(e=>{e.expect(1);const t=new s,n=new a,r=o.Z.metrics(1e3,{source:"source",metrics:[{name:"m1"}]});r.series=n.series,r.follow(),t.send_json({timestamp:0,now:0,interval:1e3,metrics:[{name:"m1"}]}),t.send_json([[10]]),t.send_json([[]]),e.deepEqual(n.samples,[[10],[10]],"got correct samples")})),r.Z.test("interval validation",(e=>{e.expect(2);const t=e.async();o.Z.channel({payload:"metrics1",source:"internal",interval:-1}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error"),e.equal(o.message,'invalid "interval" value: -1'),t()}))})),r.Z.test("metrics validation",(e=>{e.expect(2);const t=e.async();o.Z.channel({payload:"metrics1",source:"internal",interval:1e3,metrics:{foo:1}}).addEventListener("close",((n,o)=>{e.equal(o.problem,"protocol-error"),e.equal(o.message,'invalid "metrics" option was specified (not an array)'),t()}))})),r.Z.test("metrics object validation",(e=>{e.expect(1);const t=e.async();o.Z.channel({payload:"metrics1",source:"internal",interval:1e3,metrics:[{name:"nonexistant",derive:"rate"}]}).addEventListener("close",((n,o)=>{e.equal(o.problem,"not-supported"),t()}))})),r.Z.start(),t()}catch(u){t(u)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(314)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-no-jquery.js cockpit-284/dist/base1/test-no-jquery.js --- cockpit-283/dist/base1/test-no-jquery.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-no-jquery.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-no-jquery.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                Expected:
                                                                                "+nt(n)+"
                                                                                Result:
                                                                                "+nt(r)+"
                                                                                Diff:
                                                                                "+i+"
                                                                                Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                Source:
                                                                                "+nt(e.source)+"
                                                                                "):!e.result&&e.source&&(s+="
                                                                                Source:
                                                                                "+nt(e.source)+"
                                                                                ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                Source:
                                                                                "+nt(e.stack)+"
                                                                                ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                                              1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                 
                                                                                ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                "+nt(v.title)+"

                                                                                "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                ")+"

                                                                                  ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                  ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                  "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},162:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("cockpit object without jQuery",(e=>{const t=e.async();e.expect(8),e.equal(typeof jQuery,"undefined","jQuery is not defined"),e.equal(typeof $,"undefined","$ is not defined"),e.equal(typeof o.Z,"object","cockpit is defined"),e.notEqual(o.Z.channel,void 0,"cockpit.channel is defined"),e.notEqual(o.Z.spawn,void 0,"cockpit.spawn is defined");let n=!1;const r=o.Z.channel({payload:"stream",spawn:["sh","-c","echo hello"]});r.onmessage=t=>{n=!0,e.equal(t.detail,"hello\n","channel message correct"),r.onmessage=null},r.onclose=o=>{e.equal(o.detail.command,"close","channel close data correct"),e.ok(n,"channel got message"),t()}})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(162)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                  ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=y(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var I=new Array(w),q=w-1;q>=0;--q)I[q]=g.poll();I.total=w+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                  ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                  Expected:
                                                                                  "+nt(n)+"
                                                                                  Result:
                                                                                  "+nt(r)+"
                                                                                  Diff:
                                                                                  "+i+"
                                                                                  Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                  Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                  Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                  Source:
                                                                                  "+nt(e.source)+"
                                                                                  "):!e.result&&e.source&&(s+="
                                                                                  Source:
                                                                                  "+nt(e.source)+"
                                                                                  ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                  Source:
                                                                                  "+nt(e.stack)+"
                                                                                  ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                                                1. "}function q(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                   
                                                                                  ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                  "+nt(v.title)+"

                                                                                  "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                  Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                  ")+"

                                                                                    ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                    ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                    "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},162:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("cockpit object without jQuery",(e=>{const t=e.async();e.expect(8),e.equal(typeof jQuery,"undefined","jQuery is not defined"),e.equal(typeof $,"undefined","$ is not defined"),e.equal(typeof o.Z,"object","cockpit is defined"),e.notEqual(o.Z.channel,void 0,"cockpit.channel is defined"),e.notEqual(o.Z.spawn,void 0,"cockpit.spawn is defined");let n=!1;const r=o.Z.channel({payload:"stream",spawn:["sh","-c","echo hello"]});r.onmessage=t=>{n=!0,e.equal(t.detail,"hello\n","channel message correct"),r.onmessage=null},r.onclose=o=>{e.equal(o.detail.command,"close","channel close data correct"),e.ok(n,"channel got message"),t()}})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(162)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-permissions.js cockpit-284/dist/base1/test-permissions.js --- cockpit-283/dist/base1/test-permissions.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-permissions.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-permissions.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                    ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var Z=!1;function J(e,t,n){var o,r=Z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){Z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),Z=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){Z||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){Z||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=_(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=_(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===_e(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function _e(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===_e(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Pe(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(_=c(k,C=b[E]))?(f(_)||(_=h.getPrepared(_)),x[E]=l(e,_,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(_=c(k=t[y],C))&&(f(_)||(_=h.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var _,j;(_=t[y])&&(f(_)||(_=h.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],_=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=h.getPrepared(N)),_[j]=w(t,N,p)):_[j]=null;_.obj=C;var T=d(_);null!==T&&(Tg.peek().score&&g.replaceTop(_))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){P()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                    ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                    Expected:
                                                                                    "+nt(n)+"
                                                                                    Result:
                                                                                    "+nt(r)+"
                                                                                    Diff:
                                                                                    "+i+"
                                                                                    Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                    Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                    Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                    Source:
                                                                                    "+nt(e.source)+"
                                                                                    "):!e.result&&e.source&&(s+="
                                                                                    Source:
                                                                                    "+nt(e.source)+"
                                                                                    ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                    Source:
                                                                                    "+nt(e.stack)+"
                                                                                    ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function _(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=N(N({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function I(e,t,n){return'
                                                                                  1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                     
                                                                                    ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function P(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                    "+nt(v.title)+"

                                                                                    "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                    ")+"

                                                                                      ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                      "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,_;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(_=-S+m;_<=S-v;_+=2){for(b=a+_,E=(k=_===-S||_!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-_)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function _(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(_("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},539:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);r=(i.then?(await i)():i)[0];const s={name:"weird-root",id:0,groups:null},a={name:"user",id:1e3,groups:["user","agroup"]};let l,u;r.Z.module("Permission tests",{before:()=>{l=o.Z.dbus,u=o.Z._is_superuser,o.Z._is_superuser=!1},after:()=>{o.Z.dbus=l,o.Z._is_superuser=u}}),r.Z.test("root-all-permissions",(function(e){e.expect(2);const t=o.Z.permission({user:a});e.equal(t.allowed,!1,"not root, not allowed");const n=o.Z.permission({user:s});e.equal(n.allowed,!0,"is root, allowed")})),r.Z.test("group-permissions",(function(e){e.expect(4);const t=o.Z.permission({user:a,group:"badgroup"});e.equal(t.allowed,!1,"no group, not allowed");const n=o.Z.permission({user:a,group:"agroup"});e.equal(n.allowed,!0,"has group, allowed");const r=o.Z.permission({user:s,group:"agroup"});e.equal(r.allowed,!0,"no group but root, allowed");const i=o.Z.permission({user:{id:0,groups:["other"]},group:"agroup"});e.equal(i.allowed,!0,"no group match but root, allowed")})),r.Z.test("admin-permissions",(function(e){e.expect(2);const t=o.Z.permission({user:a,_is_superuser:!1,admin:!0});e.equal(t.allowed,!1,"no superuser, admin not allowed");const n=o.Z.permission({user:a,_is_superuser:!0,admin:!0});e.equal(n.allowed,!0,"superuser, admin allowed")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(539)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function Z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));Z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,Z.apply(void 0,arguments)},J.skip=function(e,t,n){$||Z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||Z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=_(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=_(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===_e(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function _e(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===_e(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var Ze={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(_=c(k,C=b[E]))?(f(_)||(_=h.getPrepared(_)),x[E]=l(e,_,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(_=c(k=t[y],C))&&(f(_)||(_=h.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var _,j;(_=t[y])&&(f(_)||(_=h.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scorep.peek().score&&p.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],_=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=h.getPrepared(N)),_[j]=w(t,N,p)):_[j]=null;_.obj=C;var T=d(_);null!==T&&(Tg.peek().score&&g.replaceTop(_))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=h.getPrepared(N)),null!==(M=w(t,N,p))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                      Expected:
                                                                                      "+nt(n)+"
                                                                                      Result:
                                                                                      "+nt(r)+"
                                                                                      Diff:
                                                                                      "+i+"
                                                                                      Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                      Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                      Source:
                                                                                      "+nt(e.source)+"
                                                                                      "):!e.result&&e.source&&(s+="
                                                                                      Source:
                                                                                      "+nt(e.source)+"
                                                                                      ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                      Source:
                                                                                      "+nt(e.stack)+"
                                                                                      ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function _(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=N(N({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function I(e,t,n){return'
                                                                                    1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                       
                                                                                      ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                      "+nt(v.title)+"

                                                                                      "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                      ")+"

                                                                                        ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                        "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,_;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(_=-S+m;_<=S-v;_+=2){for(b=a+_,E=(k=_===-S||_!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-_)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function _(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(_("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function Z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},539:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);r=(i.then?(await i)():i)[0];const s={name:"weird-root",id:0,groups:null},a={name:"user",id:1e3,groups:["user","agroup"]};let l,u;r.Z.module("Permission tests",{before:()=>{l=o.Z.dbus,u=o.Z._is_superuser,o.Z._is_superuser=!1},after:()=>{o.Z.dbus=l,o.Z._is_superuser=u}}),r.Z.test("root-all-permissions",(function(e){e.expect(2);const t=o.Z.permission({user:a});e.equal(t.allowed,!1,"not root, not allowed");const n=o.Z.permission({user:s});e.equal(n.allowed,!0,"is root, allowed")})),r.Z.test("group-permissions",(function(e){e.expect(4);const t=o.Z.permission({user:a,group:"badgroup"});e.equal(t.allowed,!1,"no group, not allowed");const n=o.Z.permission({user:a,group:"agroup"});e.equal(n.allowed,!0,"has group, allowed");const r=o.Z.permission({user:s,group:"agroup"});e.equal(r.allowed,!0,"no group but root, allowed");const i=o.Z.permission({user:{id:0,groups:["other"]},group:"agroup"});e.equal(i.allowed,!0,"no group match but root, allowed")})),r.Z.test("admin-permissions",(function(e){e.expect(2);const t=o.Z.permission({user:a,_is_superuser:!1,admin:!0});e.equal(t.allowed,!1,"no superuser, admin not allowed");const n=o.Z.permission({user:a,_is_superuser:!0,admin:!0});e.equal(n.allowed,!0,"superuser, admin allowed")})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(539)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-promise.js cockpit-284/dist/base1/test-promise.js --- cockpit-283/dist/base1/test-promise.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-promise.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-promise.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                        ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Pe(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){P()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                        ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                        Expected:
                                                                                        "+nt(n)+"
                                                                                        Result:
                                                                                        "+nt(r)+"
                                                                                        Diff:
                                                                                        "+i+"
                                                                                        Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                        Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                        Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                        Source:
                                                                                        "+nt(e.source)+"
                                                                                        "):!e.result&&e.source&&(s+="
                                                                                        Source:
                                                                                        "+nt(e.source)+"
                                                                                        ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                        Source:
                                                                                        "+nt(e.stack)+"
                                                                                        ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                                                      1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                         
                                                                                        ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function P(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                        "+nt(v.title)+"

                                                                                        "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                        Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                        ")+"

                                                                                          ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                          ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                          "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},987:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("should be able to dispatch es2015 promises",(function(e){e.expect(1);const t=e.async(),n=o.Z.defer();n.promise.then((()=>Promise.resolve(42))).then((n=>{e.equal(n,42),t()})),n.resolve()})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(987)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                          ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                          ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                          Expected:
                                                                                          "+nt(n)+"
                                                                                          Result:
                                                                                          "+nt(r)+"
                                                                                          Diff:
                                                                                          "+i+"
                                                                                          Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                          Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                          Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                          Source:
                                                                                          "+nt(e.source)+"
                                                                                          "):!e.result&&e.source&&(s+="
                                                                                          Source:
                                                                                          "+nt(e.source)+"
                                                                                          ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                          Source:
                                                                                          "+nt(e.stack)+"
                                                                                          ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                                                        1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                           
                                                                                          ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                          "+nt(v.title)+"

                                                                                          "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                          Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                          ")+"

                                                                                            ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                            ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                            "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},987:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("should be able to dispatch es2015 promises",(function(e){e.expect(1);const t=e.async(),n=o.Z.defer();n.promise.then((()=>Promise.resolve(42))).then((n=>{e.equal(n,42),t()})),n.resolve()})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(987)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-series.js cockpit-284/dist/base1/test-series.js --- cockpit-283/dist/base1/test-series.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-series.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-series.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function T(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=T(e[o],t[o]));return n}function O(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                            ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!q(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Z(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Z(s,i,"before"),Z(s,i,"beforeEach"),Z(s,i,"afterEach"),Z(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=T(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=T(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;de()}()}function fe(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:de,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return q(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!q(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function qe(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){we({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Te,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Te=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=Te&&"0"!==Te||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ze={console:Ie,tap:He};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],E=new Array(w),x=w-1;x>=0;--x)(j=c(k,C=b[x]))?(d(j)||(j=h.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sp.peek().score&&p.replaceTop(E))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(d(j)||(j=h.getPrepared(j)),null!==(q=l(e,j,o))&&(q.scorep.peek().score&&p.replaceTop(q)))))}else for(y=m-1;y>=0;--y){var j,q;(j=t[y])&&(d(j)||(j=h.getPrepared(j)),null!==(q=l(e,j,o))&&(q.scorep.peek().score&&p.replaceTop(q)))))}if(0===f)return i;var _=new Array(f);for(y=f-1;y>=0;--y)_[y]=p.poll();return _.total=f+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=f(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||u,x=o.keys,S=x.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var C=n[m],j=new Array(S),q=S-1;q>=0;--q)(O=c(C,T=x[q]))?(d(O)||(O=h.getPrepared(O)),j[q]=w(t,O,p)):j[q]=null;j.obj=C;var _=f(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var T=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(O=c(C=n[m],T))&&(d(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var O,N;(O=n[m])&&(d(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,d=0;;){if(n===o[u]){if(s[d++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(d=l)-1]+1;break}}l=0;var f=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=d;for(var y=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--f]]}else if(e[l]===o[u]){if(a[f++]=u,++l===r){d=!0;break}++u}else u=p[u];if(d)var g=a,m=f;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                            ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                            Expected:
                                                                                            "+nt(n)+"
                                                                                            Result:
                                                                                            "+nt(r)+"
                                                                                            Diff:
                                                                                            "+i+"
                                                                                            Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                            Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                            Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                            Source:
                                                                                            "+nt(e.source)+"
                                                                                            "):!e.result&&e.source&&(s+="
                                                                                            Source:
                                                                                            "+nt(e.source)+"
                                                                                            ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,p=u?""+u+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,d)}else{if(f(d,"click",(function(){E(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,d)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),f(d,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                            Source:
                                                                                            "+nt(e.stack)+"
                                                                                            ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?f(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=d(t.value),T(),e&&e.preventDefault&&e.preventDefault(),!1}function q(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=f.indexOf("skipped")>-1;(h||g)&&t.push(d)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",q),m(t.getElementsByTagName("select"),"change",q),t}function M(e,t,n){return'
                                                                                          1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                             
                                                                                            ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                            "+nt(v.title)+"

                                                                                            "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                            Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                            ")+"

                                                                                              ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                              ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                              "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],f=u[1],d=u[2],p=u[3],h=u[4],g=this.DiffMain(c,d,o,r),m=this.DiffMain(f,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,d,f,s]:null}return r=this,u=f(n,o,Math.ceil(n.length/4)),c=f(n,o,Math.ceil(n.length/2)),u||c?(d=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,d="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,f=(r=this.DiffMain(d,c,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,u=0,d="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,d,f,p,h,g,m,v,b,w,y,k,E,x,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),d=0;do);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,E=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(E>i)h+=2;else if(p&&(b=a+f-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,E,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(x>i)m+=2;else if(!p&&(w=a+f-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,d,f,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][1]=d.substring(0,d.length-p),e[s+1][1]=f.substring(p),s++):(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-h),e[s+1][0]=t,e[s+1][1]=d.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(q(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function q(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function T(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Z={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Z,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,d=r.length;let f;for(f=u>0?u-1:u;f=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=f;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),f(c,i.items.slice(c-u,d-u),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},q(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),d(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;q(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let d,f=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},450:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("public api",(function(e){e.equal(typeof o.Z.grid,"function","cockpit.grid is a function"),e.equal(typeof o.Z.series,"function","cockpit.series is a function");const t=o.Z.grid(555,3,8);e.strictEqual(t.interval,555,"grid.interval"),e.strictEqual(t.beg,3,"grid.beg"),e.strictEqual(t.end,8,"grid.end"),e.equal(typeof t.add,"function","grid.add()"),e.equal(typeof t.remove,"function","grid.remove()"),e.equal(typeof t.close,"function","grid.close()"),e.equal(typeof t.notify,"function","grid.notify()"),e.equal(typeof t.move,"function","grid.move()"),e.equal(typeof t.sync,"function","grid.sync()");const n=o.Z.grid(555,3);e.strictEqual(n.beg,3,"not-null grid.beg"),e.strictEqual(n.end,3,"same grid.end");const r=o.Z.grid(555,0);e.strictEqual(r.end,0,"zero grid.end");const i=o.Z.series(888);e.strictEqual(i.interval,888,"series.interval"),e.equal(typeof i.input,"function","series.input()"),e.equal(typeof i.load,"function","series.load()")})),r.Z.test("calculated row",(function(e){const t=o.Z.grid(1e3,3,8),n=t.add((function(e,t,n){for(let o=0;o{a=[t,n]}));n.input(7,[{one:{sub:[200,201,202],another:[20,21,22]},two:{sub:[2e3,2001,2002],marmalade:[0,1,2]}},{one:{sub:[300,301,302],another:[30,31,32]},two:{sub:[3e3,3001,3002],marmalade:[0,1,2]}},{one:{sub:[400,401,402],another:[40,41,42]},two:{sub:[4e3,4001,4002],marmalade:[0,1,2]}}]),e.deepEqual(a,[2,3]),e.deepEqual(r,[void 0,void 0,202,302,402],"row with string path"),e.deepEqual(i,[void 0,void 0,202,302,402],"row with array path"),e.deepEqual(s,[void 0,void 0,404,604,804],"row with calculated"),t.close()})),r.Z.test("sink no path",(function(e){const t=o.Z.grid(1e3,5,15),n=o.Z.series(1e3),r=t.add(n);n.input(8,[567,768,{hello:"scruffy"}]),e.deepEqual(r,[void 0,void 0,void 0,567,768,{hello:"scruffy"}],"row without a path")})),r.Z.test("sink after close",(function(e){const t=o.Z.grid(1e3,5,15),n=o.Z.series(1e3),r=t.add(n),i=[1,2,3];n.input(5,i),e.deepEqual(r,[1,2,3],"row got values"),n.input(8,i),e.deepEqual(r,[1,2,3,1,2,3],"row got more values"),t.close(),n.input(11,i),e.deepEqual(r,[1,2,3,1,2,3],"row got no more values")})),r.Z.test("sink mapping",(function(e){const t=o.Z.grid(1e3,5,15),n=o.Z.series(1e3),r=t.add(n,"two.sub.1"),i=t.add(n,"one.sub"),s=t.add(n,"invalid");n.input(5,[[[[200,201,202],[20,21,22]],[[2e3,2001,2002],[0,1,2]]],[[[300,301,302],[30,31,32]],[[3e3,3001,3002],[0,1,2]]],[[[400,401,402],[40,41,42]],[[4e3,4001,4002],[0,1,2]]]],{one:{"":0,sub:{"":0},another:{"":1}},two:{"":1,sub:{"":0},marmalade:{"":1}}}),e.deepEqual(r,[2001,3001,4001],"mapped with trailing"),e.deepEqual(i,[[200,201,202],[300,301,302],[400,401,402]],"mapped simply"),e.deepEqual(s,[void 0,void 0,void 0],"mapped undefined"),t.close()})),r.Z.test("cache simple",(function(e){const t=[];const n=o.Z.series(1e3,null,(function(e,n){t.push([e,n])}));n.input(7,[{one:{sub:[200,201,202],another:[20,21,22]},two:{sub:[2e3,2001,2002],marmalade:[0,1,2]}},{one:{sub:[300,301,302],another:[30,31,32]},two:{sub:[3e3,3001,3002],marmalade:[0,1,2]}},{one:{sub:[400,401,402],another:[40,41,42]},two:{sub:[4e3,4001,4002],marmalade:[0,1,2]}}]);const r=o.Z.grid(1e3,5,15);let i=null;r.addEventListener("notify",((e,t,n)=>{i=[t,n]}));const s=r.add(n,"one.sub.2"),a=r.add(n,["one","sub",2]),l=r.add((function(e,t,n){for(let o=0;o{i=[t,n]}));const s=r.add(n,"one.sub.2"),a=r.add(n,["one","sub",2]),l=r.add((function(e,t,n){for(let o=0;o{l=[t,n]})),n.input(7,[{one:{sub:[200,201,202],another:[20,21,22]},two:{sub:[2e3,2001,2002],marmalade:[0,1,2]}},{one:{sub:[300,301,302],another:[30,31,32]},two:{sub:[3e3,3001,3002],marmalade:[0,1,2]}},{one:{sub:[400,401,402],another:[40,41,42]},two:{sub:[4e3,4001,4002],marmalade:[0,1,2]}}]),e.deepEqual(t,[],"fetched no data"),e.strictEqual(l,null,"not notified"),e.deepEqual(i,[],"row1 empty"),e.deepEqual(s,[],"row2 empty"),e.deepEqual(a,[],"calc empty"),r.move(5,15),e.deepEqual(t,[[5,7],[10,15]],"fetched right data"),e.deepEqual(l,[0,10],"not notified"),e.deepEqual(i,[void 0,void 0,202,302,402],"row1 with data"),e.deepEqual(s,[void 0,void 0,202,302,402],"row2 with data"),e.deepEqual(a,[void 0,void 0,404,604,804,void 0,void 0,void 0,void 0,void 0],"row with calculated"),r.close()})),r.Z.test("move negative",(function(e){const t=Date.now(),n=o.Z.grid(1e3,-20,-5);e.equal(n.beg,Math.floor(t/1e3)-20),e.equal(n.end,Math.floor(t/1e3)-5),n.move(-30,-0),e.equal(n.beg,Math.floor(t/1e3)-30),e.equal(n.end,Math.floor(t/1e3)),n.close()})),r.Z.test("test",(function(e){const t=e.async();e.expect(5);const n=[];const r=o.Z.series(100,null,(function(e,t){n.push([e,t])})),i=o.Z.grid(100,20,25);i.add(r,[]);let s=0;i.walk(),i.addEventListener("notify",(()=>{s+=1,e.equal(s,n.length,"fetched "+s),5==s&&(i.close(),t())}))})),Date.now=function(){return 0},r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,d=new Set,f=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(450)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function T(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=T(e[o],t[o]));return n}function O(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                              ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!q(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Z(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Z(s,i,"before"),Z(s,i,"beforeEach"),Z(s,i,"afterEach"),Z(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=T(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=T(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;de()}()}function fe(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:de,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return q(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!q(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function qe(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){we({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Te,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Te=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=Te&&"0"!==Te||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var d=e.split("\n").map((function(e){return a+e}));return"|+\n"+d.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ze={console:Ie,tap:He};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=f();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(d(e)||(e=h.getPreparedSearch(e)),t?(d(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,f=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],E=new Array(w),x=w-1;x>=0;--x)(j=c(k,C=b[x]))?(d(j)||(j=h.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sp.peek().score&&p.replaceTop(E))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(d(j)||(j=h.getPrepared(j)),null!==(q=l(e,j,o))&&(q.scorep.peek().score&&p.replaceTop(q)))))}else for(y=m-1;y>=0;--y){var j,q;(j=t[y])&&(d(j)||(j=h.getPrepared(j)),null!==(q=l(e,j,o))&&(q.scorep.peek().score&&p.replaceTop(q)))))}if(0===f)return i;var _=new Array(f);for(y=f-1;y>=0;--y)_[y]=p.poll();return _.total=f+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=f(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var f=o.scoreFn||u,x=o.keys,S=x.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var C=n[m],j=new Array(S),q=S-1;q>=0;--q)(O=c(C,T=x[q]))?(d(O)||(O=h.getPrepared(O)),j[q]=w(t,O,p)):j[q]=null;j.obj=C;var _=f(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var T=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(O=c(C=n[m],T))&&(d(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var O,N;(O=n[m])&&(d(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,d=0;;){if(n===o[u]){if(s[d++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(d=l)-1]+1;break}}l=0;var f=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++f>r-2)break;if(e[f]===e[f+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===f?l:f===l?l+1:f===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=d;for(var y=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var d=!1,f=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--f]]}else if(e[l]===o[u]){if(a[f++]=u,++l===r){d=!0;break}++u}else u=p[u];if(d)var g=a,m=f;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                              ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                              Expected:
                                                                                              "+nt(n)+"
                                                                                              Result:
                                                                                              "+nt(r)+"
                                                                                              Diff:
                                                                                              "+i+"
                                                                                              Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                              Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                              Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                              Source:
                                                                                              "+nt(e.source)+"
                                                                                              "):!e.result&&e.source&&(s+="
                                                                                              Source:
                                                                                              "+nt(e.source)+"
                                                                                              ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var d=i.firstChild,p=u?""+u+", "+l+", ":"";if(d.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,d)}else{if(f(d,"click",(function(){E(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,d)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),f(d,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                              Source:
                                                                                              "+nt(e.stack)+"
                                                                                              ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?f(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=d(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=d(t.value),T(),e&&e.preventDefault&&e.preventDefault(),!1}function q(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=f.indexOf("skipped")>-1;(h||g)&&t.push(d)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",q),m(t.getElementsByTagName("select"),"change",q),t}function M(e,t,n){return'
                                                                                            1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                               
                                                                                              ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",f(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                              "+nt(v.title)+"

                                                                                              "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                              Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                              ")+"

                                                                                                ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],f=u[1],d=u[2],p=u[3],h=u[4],g=this.DiffMain(c,d,o,r),m=this.DiffMain(f,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,d;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,d,f,s]:null}return r=this,u=f(n,o,Math.ceil(n.length/4)),c=f(n,o,Math.ceil(n.length/2)),u||c?(d=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=d[0],l=d[1],a=d[2],s=d[3]):(a=d[0],s=d[1],i=d[2],l=d[3]),[i,l,a,s,d[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,d,f;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,d="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,f=(r=this.DiffMain(d,c,!1,o)).length-1;f>=0;f--)i.splice(a,0,r[f]);a+=r.length}l=0,u=0,d="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,d,f,p,h,g,m,v,b,w,y,k,E,x,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),d=0;do);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,E=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(E>i)h+=2;else if(p&&(b=a+f-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,E,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(x>i)m+=2;else if(!p&&(w=a+f-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,d,f,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(f,d))?(p>=d.length/2||p>=f.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][1]=d.substring(0,d.length-p),e[s+1][1]=f.substring(p),s++):(h>=d.length/2||h>=f.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=f.substring(0,f.length-h),e[s+1][0]=t,e[s+1][1]=d.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(q(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function q(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function T(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=d.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):d.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):d.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):d.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){f&&f.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Z={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Z,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,d=r.length;let f;for(f=u>0?u-1:u;f=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=f;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(f=0;f0);f++);r.splice(0,f)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),f(c,i.items.slice(c-u,d-u),i.mapping),s=d;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,f=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},q(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:f,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),f(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function f(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),d(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let de,fe={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(fe,e),t=e[""]):null===e&&(fe={}),t&&(t["plural-forms"]&&(de=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&f?f.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return f=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),d(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;q(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let d,f=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){f=s;let r=0;f.now&&f.timestamp&&(r=f.timestamp+(Date.now()-f.now)),d=Math.floor(r/e),n(d,f,null,t[0]),o.meta=f,o.dispatchEvent("changed")}else if(f){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},450:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("public api",(function(e){e.equal(typeof o.Z.grid,"function","cockpit.grid is a function"),e.equal(typeof o.Z.series,"function","cockpit.series is a function");const t=o.Z.grid(555,3,8);e.strictEqual(t.interval,555,"grid.interval"),e.strictEqual(t.beg,3,"grid.beg"),e.strictEqual(t.end,8,"grid.end"),e.equal(typeof t.add,"function","grid.add()"),e.equal(typeof t.remove,"function","grid.remove()"),e.equal(typeof t.close,"function","grid.close()"),e.equal(typeof t.notify,"function","grid.notify()"),e.equal(typeof t.move,"function","grid.move()"),e.equal(typeof t.sync,"function","grid.sync()");const n=o.Z.grid(555,3);e.strictEqual(n.beg,3,"not-null grid.beg"),e.strictEqual(n.end,3,"same grid.end");const r=o.Z.grid(555,0);e.strictEqual(r.end,0,"zero grid.end");const i=o.Z.series(888);e.strictEqual(i.interval,888,"series.interval"),e.equal(typeof i.input,"function","series.input()"),e.equal(typeof i.load,"function","series.load()")})),r.Z.test("calculated row",(function(e){const t=o.Z.grid(1e3,3,8),n=t.add((function(e,t,n){for(let o=0;o{a=[t,n]}));n.input(7,[{one:{sub:[200,201,202],another:[20,21,22]},two:{sub:[2e3,2001,2002],marmalade:[0,1,2]}},{one:{sub:[300,301,302],another:[30,31,32]},two:{sub:[3e3,3001,3002],marmalade:[0,1,2]}},{one:{sub:[400,401,402],another:[40,41,42]},two:{sub:[4e3,4001,4002],marmalade:[0,1,2]}}]),e.deepEqual(a,[2,3]),e.deepEqual(r,[void 0,void 0,202,302,402],"row with string path"),e.deepEqual(i,[void 0,void 0,202,302,402],"row with array path"),e.deepEqual(s,[void 0,void 0,404,604,804],"row with calculated"),t.close()})),r.Z.test("sink no path",(function(e){const t=o.Z.grid(1e3,5,15),n=o.Z.series(1e3),r=t.add(n);n.input(8,[567,768,{hello:"scruffy"}]),e.deepEqual(r,[void 0,void 0,void 0,567,768,{hello:"scruffy"}],"row without a path")})),r.Z.test("sink after close",(function(e){const t=o.Z.grid(1e3,5,15),n=o.Z.series(1e3),r=t.add(n),i=[1,2,3];n.input(5,i),e.deepEqual(r,[1,2,3],"row got values"),n.input(8,i),e.deepEqual(r,[1,2,3,1,2,3],"row got more values"),t.close(),n.input(11,i),e.deepEqual(r,[1,2,3,1,2,3],"row got no more values")})),r.Z.test("sink mapping",(function(e){const t=o.Z.grid(1e3,5,15),n=o.Z.series(1e3),r=t.add(n,"two.sub.1"),i=t.add(n,"one.sub"),s=t.add(n,"invalid");n.input(5,[[[[200,201,202],[20,21,22]],[[2e3,2001,2002],[0,1,2]]],[[[300,301,302],[30,31,32]],[[3e3,3001,3002],[0,1,2]]],[[[400,401,402],[40,41,42]],[[4e3,4001,4002],[0,1,2]]]],{one:{"":0,sub:{"":0},another:{"":1}},two:{"":1,sub:{"":0},marmalade:{"":1}}}),e.deepEqual(r,[2001,3001,4001],"mapped with trailing"),e.deepEqual(i,[[200,201,202],[300,301,302],[400,401,402]],"mapped simply"),e.deepEqual(s,[void 0,void 0,void 0],"mapped undefined"),t.close()})),r.Z.test("cache simple",(function(e){const t=[];const n=o.Z.series(1e3,null,(function(e,n){t.push([e,n])}));n.input(7,[{one:{sub:[200,201,202],another:[20,21,22]},two:{sub:[2e3,2001,2002],marmalade:[0,1,2]}},{one:{sub:[300,301,302],another:[30,31,32]},two:{sub:[3e3,3001,3002],marmalade:[0,1,2]}},{one:{sub:[400,401,402],another:[40,41,42]},two:{sub:[4e3,4001,4002],marmalade:[0,1,2]}}]);const r=o.Z.grid(1e3,5,15);let i=null;r.addEventListener("notify",((e,t,n)=>{i=[t,n]}));const s=r.add(n,"one.sub.2"),a=r.add(n,["one","sub",2]),l=r.add((function(e,t,n){for(let o=0;o{i=[t,n]}));const s=r.add(n,"one.sub.2"),a=r.add(n,["one","sub",2]),l=r.add((function(e,t,n){for(let o=0;o{l=[t,n]})),n.input(7,[{one:{sub:[200,201,202],another:[20,21,22]},two:{sub:[2e3,2001,2002],marmalade:[0,1,2]}},{one:{sub:[300,301,302],another:[30,31,32]},two:{sub:[3e3,3001,3002],marmalade:[0,1,2]}},{one:{sub:[400,401,402],another:[40,41,42]},two:{sub:[4e3,4001,4002],marmalade:[0,1,2]}}]),e.deepEqual(t,[],"fetched no data"),e.strictEqual(l,null,"not notified"),e.deepEqual(i,[],"row1 empty"),e.deepEqual(s,[],"row2 empty"),e.deepEqual(a,[],"calc empty"),r.move(5,15),e.deepEqual(t,[[5,7],[10,15]],"fetched right data"),e.deepEqual(l,[0,10],"not notified"),e.deepEqual(i,[void 0,void 0,202,302,402],"row1 with data"),e.deepEqual(s,[void 0,void 0,202,302,402],"row2 with data"),e.deepEqual(a,[void 0,void 0,404,604,804,void 0,void 0,void 0,void 0,void 0],"row with calculated"),r.close()})),r.Z.test("move negative",(function(e){const t=Date.now(),n=o.Z.grid(1e3,-20,-5);e.equal(n.beg,Math.floor(t/1e3)-20),e.equal(n.end,Math.floor(t/1e3)-5),n.move(-30,-0),e.equal(n.beg,Math.floor(t/1e3)-30),e.equal(n.end,Math.floor(t/1e3)),n.close()})),r.Z.test("test",(function(e){const t=e.async();e.expect(5);const n=[];const r=o.Z.series(100,null,(function(e,t){n.push([e,t])})),i=o.Z.grid(100,20,25);i.add(r,[]);let s=0;i.walk(),i.addEventListener("notify",(()=>{s+=1,e.equal(s,n.length,"fetched "+s),5==s&&(i.close(),t())}))})),Date.now=function(){return 0},r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,d=new Set,f=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=f,p[e]=e=>(a&&e(a),d.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!d.has(e)&&(d.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(f),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(450)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-spawn.js cockpit-284/dist/base1/test-spawn.js --- cockpit-283/dist/base1/test-spawn.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-spawn.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-spawn.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:Z(r,"before"),beforeEach:Z(r,"beforeEach"),afterEach:Z(r,"afterEach"),after:Z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=j.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=j.now(),j.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=j.now(),j)){j.mark("qunit_test_end");var t=this.fullName.join(" – ");j.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=C(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:j.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),je(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),je(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function Ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:Ze("beforeEach"),afterEach:Ze("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=j.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(C=c(k,j=b[E]))?(f(C)||(C=h.getPrepared(C)),x[E]=l(e,C,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var j=n.key;for(y=m-1;y>=0;--y)(C=c(k=t[y],j))&&(f(C)||(C=h.getPrepared(C)),null!==(_=l(e,C,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var C,_;(C=t[y])&&(f(C)||(C=h.getPrepared(C)),null!==(_=l(e,C,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var j=n[m],C=new Array(S),_=S-1;_>=0;--_)(O=c(j,q=E[_]))?(f(O)||(O=h.getPrepared(O)),C[_]=w(t,O,p)):C[_]=null;C.obj=j;var T=d(C);null!==T&&(Tg.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(j=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                Expected:
                                                                                                "+nt(n)+"
                                                                                                Result:
                                                                                                "+nt(r)+"
                                                                                                Diff:
                                                                                                "+i+"
                                                                                                Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                                Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                Source:
                                                                                                "+nt(e.source)+"
                                                                                                "):!e.result&&e.source&&(s+="
                                                                                                Source:
                                                                                                "+nt(e.source)+"
                                                                                                ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                Source:
                                                                                                "+nt(e.stack)+"
                                                                                                ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function j(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function C(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function M(e,t,n){return'
                                                                                              1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                 
                                                                                                ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",j),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                "+nt(v.title)+"

                                                                                                "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                                Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                ")+"

                                                                                                  ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                  ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                  "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,j,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(j=-S+h;j<=S-g;j+=2){for(w=a+j,x=(y=j===-S||j!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-j)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(C=-S+m;C<=S-v;C+=2){for(b=a+C,E=(k=C===-S||C!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-C)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function j(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const Z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},425:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(){o.Z.event_target(this),this.onopened=function(e,t,n){},this.onclosed=function(e,t,n){},this.oncontrol=function(e,t,n){},this.send=function(e,t){"string"!=typeof t&&(t=String(t)),window.setTimeout((function(){e.valid?e.dispatchEvent("message",t):console.log("dropping message after close from MockPeer")}),5)},this.close=function(e,t){console.assert(e),window.setTimeout((function(){e.valid&&(e.valid=!1,e.dispatchEvent("close",t||{}))}),5)};const e=this;let t=0;function n(n){o.Z.event_target(this),this.number=t++,this.options=n,this.valid=!0;const i=this;this.transport=new function(){this.close=function(e){console.assert(1==arguments.length)}},this.send=function(t){console.assert(1==arguments.length),console.assert(this.valid),window.setTimeout((function(){e.dispatchEvent("recv",i,t)}),5)},this.control=function(t){console.assert("string"==typeof command),console.assert(null!==t&&"object"==typeof t),console.assert(1==arguments.length),window.setTimeout((function(){e.dispatchEvent("control",i,t)}),5)},this.close=function(t){console.assert(arguments.length<=1),this.valid=!1,window.setTimeout((function(){e.dispatchEvent("closed",i,t||{})}),5),this.dispatchEvent("close",t||{})},this.buffer=function(e){const t=[];return t.callback=e,t.squash=function(){return t.join("")},this.onmessage=function(e,n){if(t.push(n),t.callback){const e=t.squash();if(e.length>0){const n=t.callback.call(this,e);"number"!=typeof n||n===e.length?t.length=0:(t.length=1,t[0]=e.substring(n))}}},t},r.Z.testDone((function(){i.valid=!1})),e.dispatchEvent("opened",i,n)}o.Z.channel=function(e){return new n(e)}}(r=(i.then?(await i)():i)[0]).Z.test("public api",(function(e){e.equal(typeof o.Z.spawn,"function","spawn is a function")})),r.Z.test("simple request",(function(e){const t=e.async();e.expect(5);const n=new s;n.addEventListener("opened",(function(t,n,o){e.deepEqual(n.options.spawn,["/the/path","arg1","arg2"],"passed spawn correctly"),e.equal(n.options.host,void 0,"had no host")})),n.addEventListener("recv",(function(t,n,o){e.equal(o,"input","had input"),this.send(n,"output"),this.close(n)})),o.Z.spawn(["/the/path","arg1","arg2"]).input("input",!0).done((function(t){e.deepEqual(t,"output","returned right json")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("input large",(function(e){const t=e.async();e.expect(25);const n=new Array(131072).join("abcdef12345");let r="",i=0;const a=new s;a.addEventListener("recv",(function(t,n,o){e.ok("string"==typeof o,"got payload"),r+=o,i+=1})),a.addEventListener("control",(function(e,t,n){"done"==n.command&&this.close(t)})),o.Z.spawn(["/path/to/command"]).input(n).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n,r,"right output"),e.ok(i>1,"broken into multiple blocks"),t()}))})),r.Z.test("binary large",(function(e){const t=e.async();e.expect(10);const n=new Uint8Array(254727),r=n.byteLength;for(let e=0;e1,"broken into multiple blocks"),t()}))})),r.Z.test("string command",(function(e){const t=e.async();e.expect(2);(new s).addEventListener("opened",(function(n,o,r){e.deepEqual(o.options.spawn,["/the/path"],"passed spawn correctly"),e.equal(o.options.host,"hostname","had host"),t()})),o.Z.spawn("/the/path",{host:"hostname"})})),r.Z.test("channel options",(function(e){const t=e.async();e.expect(1);(new s).addEventListener("opened",(function(n,o){e.deepEqual(o.options,{spawn:["/the/path","arg"],host:"the-other-host.example.com","extra-option":"zerogjuggs",payload:"stream"},"sent correctly"),t()}));o.Z.spawn(["/the/path","arg"],{"extra-option":"zerogjuggs",host:"the-other-host.example.com"})})),r.Z.test("streaming",(function(e){const t=e.async();e.expect(15);(new s).addEventListener("opened",(function(e,t){for(let e=0;e<10;e++)this.send(t,String(e));this.close(t)}));let n=0;const r=o.Z.spawn(["/unused"]).stream((function(t){e.equal(String(n),t,"stream got right data"),0===n&&e.strictEqual(this,r,"stream got right this"),n++})).done((function(t){e.ok(!t,"stream didn't send data to done"),e.strictEqual(this,r,"done got right this")})).always((function(){e.equal(this.state(),"resolved","split response didn't fail"),e.strictEqual(this,r,"always got right this"),t()}))})),r.Z.test("with problem",(function(e){const t=e.async();e.expect(4);const n=new s;n.addEventListener("opened",(function(e,t){n.close(t,{problem:"not-found"})})),o.Z.spawn("/unused").fail((function(t){e.equal(t.problem,"not-found","got problem"),e.strictEqual(t.exit_signal,null,"got no signal"),e.strictEqual(t.exit_status,null,"got no status")})).always((function(){e.equal(this.state(),"rejected","should fail"),t()}))})),r.Z.test("with status",(function(e){const t=e.async();e.expect(5);const n=new s;n.addEventListener("opened",(function(e,t){n.send(t,"the data"),n.close(t,{"exit-status":5})})),o.Z.spawn("/unused").fail((function(t,n){e.strictEqual(t.problem,null,"got null problem"),e.strictEqual(t.exit_signal,null,"got no signal"),e.strictEqual(t.exit_status,5,"got status"),e.equal(n,"the data","got data even with exit status")})).always((function(){e.equal(this.state(),"rejected","should fail"),t()}))})),r.Z.test("with signal",(function(e){const t=e.async();e.expect(5);const n=new s;n.addEventListener("opened",(function(e,t){n.send(t,"signal data here"),n.close(t,{"exit-signal":"TERM"})})),o.Z.spawn("/unused").fail((function(t,n){e.strictEqual(t.problem,null,"got null problem"),e.strictEqual(t.exit_signal,"TERM","got signal"),e.strictEqual(t.exit_status,null,"got no status"),e.equal(n,"signal data here","got data even with signal")})).always((function(){e.equal(this.state(),"rejected","should fail"),t()}))})),r.Z.test("spawn promise recursive",(function(e){e.expect(7);const t={},n=o.Z.spawn(["/the/path","arg1","arg2"]).promise(t);e.strictEqual(n,t,"used target"),e.equal(typeof n.done,"function","promise2.done()"),e.equal(typeof n.promise,"function","promise2.promise()"),e.equal(typeof n.input,"function","promise2.input()");const r=n.promise();e.equal(typeof r.done,"function","promise3.done()"),e.equal(typeof r.promise,"function","promise3.promise()"),e.equal(typeof r.input,"function","promise3.input()")})),r.Z.start(),t()}catch(a){t(a)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(425)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(x.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)x.call(t,o)&&x.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)x.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=E.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===E.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                  ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:Z(r,"before"),beforeEach:Z(r,"beforeEach"),afterEach:Z(r,"afterEach"),after:Z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var $=!1;function J(e,t,n){var o,r=$&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}J.only=function(){$||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),$=!0,z.apply(void 0,arguments)},J.skip=function(e,t,n){$||z(e,t,n,{skip:!0})},J.todo=function(e,t,n){$||z(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(x.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function Ee(e,t){return"".concat(e," [").concat(t,"]")}function xe(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){xe(t,(function(t,o){we({testName:Ee(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){xe(t,(function(t,n){we({testName:Ee(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){xe(t,(function(t,o){ye({testName:Ee(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function Ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:Ze("beforeEach"),afterEach:Ze("afterEach")};function $e(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],E=new Array(w),x=w-1;x>=0;--x)(j=c(k,C=b[x]))?(f(j)||(j=h.getPrepared(j)),E[x]=l(e,j,o)):E[x]=null;E.obj=k;var S=v(E);null!==S&&(Sp.peek().score&&p.replaceTop(E))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=h.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scorep.peek().score&&p.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=p.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function E(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,x=o.keys,S=x.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(O=c(C,q=x[_]))?(f(O)||(O=h.getPrepared(O)),j[_]=w(t,O,p)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));(O=c(C=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(E):setTimeout(E));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(E):E()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,E=0;E=0;--E)t.indexes[E]=b[E];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                  ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                  Expected:
                                                                                                  "+nt(n)+"
                                                                                                  Result:
                                                                                                  "+nt(r)+"
                                                                                                  Diff:
                                                                                                  "+i+"
                                                                                                  Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                                  Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                  Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                  Source:
                                                                                                  "+nt(e.source)+"
                                                                                                  "):!e.result&&e.source&&(s+="
                                                                                                  Source:
                                                                                                  "+nt(e.source)+"
                                                                                                  ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;x(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){E(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){E(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                  Source:
                                                                                                  "+nt(e.stack)+"
                                                                                                  ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function E(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):x(e,t)}function x(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function T(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function M(e,t,n){return'
                                                                                                1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                   
                                                                                                  ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                  "+nt(v.title)+"

                                                                                                  "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                                  Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                  ")+"

                                                                                                    ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                    ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                    "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,E,x,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,E=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(E>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,E,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,x=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(x>i)m+=2;else if(!p&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,E,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(x(r>>>18&63),x(r>>>12&63),x(r>>>6&63),x(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:E(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,x((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const Z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},425:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);function s(){o.Z.event_target(this),this.onopened=function(e,t,n){},this.onclosed=function(e,t,n){},this.oncontrol=function(e,t,n){},this.send=function(e,t){"string"!=typeof t&&(t=String(t)),window.setTimeout((function(){e.valid?e.dispatchEvent("message",t):console.log("dropping message after close from MockPeer")}),5)},this.close=function(e,t){console.assert(e),window.setTimeout((function(){e.valid&&(e.valid=!1,e.dispatchEvent("close",t||{}))}),5)};const e=this;let t=0;function n(n){o.Z.event_target(this),this.number=t++,this.options=n,this.valid=!0;const i=this;this.transport=new function(){this.close=function(e){console.assert(1==arguments.length)}},this.send=function(t){console.assert(1==arguments.length),console.assert(this.valid),window.setTimeout((function(){e.dispatchEvent("recv",i,t)}),5)},this.control=function(t){console.assert("string"==typeof command),console.assert(null!==t&&"object"==typeof t),console.assert(1==arguments.length),window.setTimeout((function(){e.dispatchEvent("control",i,t)}),5)},this.close=function(t){console.assert(arguments.length<=1),this.valid=!1,window.setTimeout((function(){e.dispatchEvent("closed",i,t||{})}),5),this.dispatchEvent("close",t||{})},this.buffer=function(e){const t=[];return t.callback=e,t.squash=function(){return t.join("")},this.onmessage=function(e,n){if(t.push(n),t.callback){const e=t.squash();if(e.length>0){const n=t.callback.call(this,e);"number"!=typeof n||n===e.length?t.length=0:(t.length=1,t[0]=e.substring(n))}}},t},r.Z.testDone((function(){i.valid=!1})),e.dispatchEvent("opened",i,n)}o.Z.channel=function(e){return new n(e)}}(r=(i.then?(await i)():i)[0]).Z.test("public api",(function(e){e.equal(typeof o.Z.spawn,"function","spawn is a function")})),r.Z.test("simple request",(function(e){const t=e.async();e.expect(5);const n=new s;n.addEventListener("opened",(function(t,n,o){e.deepEqual(n.options.spawn,["/the/path","arg1","arg2"],"passed spawn correctly"),e.equal(n.options.host,void 0,"had no host")})),n.addEventListener("recv",(function(t,n,o){e.equal(o,"input","had input"),this.send(n,"output"),this.close(n)})),o.Z.spawn(["/the/path","arg1","arg2"]).input("input",!0).done((function(t){e.deepEqual(t,"output","returned right json")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("input large",(function(e){const t=e.async();e.expect(25);const n=new Array(131072).join("abcdef12345");let r="",i=0;const a=new s;a.addEventListener("recv",(function(t,n,o){e.ok("string"==typeof o,"got payload"),r+=o,i+=1})),a.addEventListener("control",(function(e,t,n){"done"==n.command&&this.close(t)})),o.Z.spawn(["/path/to/command"]).input(n).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n,r,"right output"),e.ok(i>1,"broken into multiple blocks"),t()}))})),r.Z.test("binary large",(function(e){const t=e.async();e.expect(10);const n=new Uint8Array(254727),r=n.byteLength;for(let e=0;e1,"broken into multiple blocks"),t()}))})),r.Z.test("string command",(function(e){const t=e.async();e.expect(2);(new s).addEventListener("opened",(function(n,o,r){e.deepEqual(o.options.spawn,["/the/path"],"passed spawn correctly"),e.equal(o.options.host,"hostname","had host"),t()})),o.Z.spawn("/the/path",{host:"hostname"})})),r.Z.test("channel options",(function(e){const t=e.async();e.expect(1);(new s).addEventListener("opened",(function(n,o){e.deepEqual(o.options,{spawn:["/the/path","arg"],host:"the-other-host.example.com","extra-option":"zerogjuggs",payload:"stream"},"sent correctly"),t()}));o.Z.spawn(["/the/path","arg"],{"extra-option":"zerogjuggs",host:"the-other-host.example.com"})})),r.Z.test("streaming",(function(e){const t=e.async();e.expect(15);(new s).addEventListener("opened",(function(e,t){for(let e=0;e<10;e++)this.send(t,String(e));this.close(t)}));let n=0;const r=o.Z.spawn(["/unused"]).stream((function(t){e.equal(String(n),t,"stream got right data"),0===n&&e.strictEqual(this,r,"stream got right this"),n++})).done((function(t){e.ok(!t,"stream didn't send data to done"),e.strictEqual(this,r,"done got right this")})).always((function(){e.equal(this.state(),"resolved","split response didn't fail"),e.strictEqual(this,r,"always got right this"),t()}))})),r.Z.test("with problem",(function(e){const t=e.async();e.expect(4);const n=new s;n.addEventListener("opened",(function(e,t){n.close(t,{problem:"not-found"})})),o.Z.spawn("/unused").fail((function(t){e.equal(t.problem,"not-found","got problem"),e.strictEqual(t.exit_signal,null,"got no signal"),e.strictEqual(t.exit_status,null,"got no status")})).always((function(){e.equal(this.state(),"rejected","should fail"),t()}))})),r.Z.test("with status",(function(e){const t=e.async();e.expect(5);const n=new s;n.addEventListener("opened",(function(e,t){n.send(t,"the data"),n.close(t,{"exit-status":5})})),o.Z.spawn("/unused").fail((function(t,n){e.strictEqual(t.problem,null,"got null problem"),e.strictEqual(t.exit_signal,null,"got no signal"),e.strictEqual(t.exit_status,5,"got status"),e.equal(n,"the data","got data even with exit status")})).always((function(){e.equal(this.state(),"rejected","should fail"),t()}))})),r.Z.test("with signal",(function(e){const t=e.async();e.expect(5);const n=new s;n.addEventListener("opened",(function(e,t){n.send(t,"signal data here"),n.close(t,{"exit-signal":"TERM"})})),o.Z.spawn("/unused").fail((function(t,n){e.strictEqual(t.problem,null,"got null problem"),e.strictEqual(t.exit_signal,"TERM","got signal"),e.strictEqual(t.exit_status,null,"got no status"),e.equal(n,"signal data here","got data even with signal")})).always((function(){e.equal(this.state(),"rejected","should fail"),t()}))})),r.Z.test("spawn promise recursive",(function(e){e.expect(7);const t={},n=o.Z.spawn(["/the/path","arg1","arg2"]).promise(t);e.strictEqual(n,t,"used target"),e.equal(typeof n.done,"function","promise2.done()"),e.equal(typeof n.promise,"function","promise2.promise()"),e.equal(typeof n.input,"function","promise2.input()");const r=n.promise();e.equal(typeof r.done,"function","promise3.done()"),e.equal(typeof r.promise,"function","promise3.promise()"),e.equal(typeof r.input,"function","promise3.input()")})),r.Z.start(),t()}catch(a){t(a)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(425)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-spawn-proc.js cockpit-284/dist/base1/test-spawn-proc.js --- cockpit-283/dist/base1/test-spawn-proc.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-spawn-proc.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-spawn-proc.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                    ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Z(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Z(s,i,"before"),Z(s,i,"beforeEach"),Z(s,i,"afterEach"),Z(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var z=!1;function J(e,t,n){var o,r=z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}J.only=function(){z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),z=!0,$.apply(void 0,arguments)},J.skip=function(e,t,n){z||$(e,t,n,{skip:!0})},J.todo=function(e,t,n){z||$(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ze={console:Ie,tap:He};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||Y(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ke();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=h.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}else for(y=m-1;y>=0;--y){var j,T;(j=t[y])&&(f(j)||(j=h.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(y=d-1;y>=0;--y)_[y]=p.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(O=c(C,q=E[T]))?(f(O)||(O=h.getPrepared(O)),j[T]=w(t,O,p)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                    ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                    Expected:
                                                                                                    "+nt(n)+"
                                                                                                    Result:
                                                                                                    "+nt(r)+"
                                                                                                    Diff:
                                                                                                    "+i+"
                                                                                                    Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                                    Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                    Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                    Source:
                                                                                                    "+nt(e.source)+"
                                                                                                    "):!e.result&&e.source&&(s+="
                                                                                                    Source:
                                                                                                    "+nt(e.source)+"
                                                                                                    ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                    Source:
                                                                                                    "+nt(e.stack)+"
                                                                                                    ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function M(e,t,n){return'
                                                                                                  1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                     
                                                                                                    ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                    "+nt(v.title)+"

                                                                                                    "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                                    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                    ")+"

                                                                                                      ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                      "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Z={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Z,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},395:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("simple process",(function(e){const t=e.async();e.expect(2),o.Z.spawn(["/bin/sh","-c","echo hi"]).done((function(t){e.equal(t,"hi\n","returned output")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("path",(function(e){const t=e.async();e.expect(1),o.Z.spawn(["true"]).always((function(){e.equal(this.state(),"resolved","found executable"),t()}))})),r.Z.test("directory",(function(e){const t=e.async();e.expect(2),o.Z.spawn(["pwd"],{directory:"/tmp"}).done((function(t){e.equal(t,"/tmp\n","was right")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("error log",(function(e){const t=e.async();e.expect(2),o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2"]).done((function(t){e.equal(t,"hi\n","produced no output")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("error output",(function(e){const t=e.async();e.expect(2),o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2"],{err:"out"}).done((function(t){e.equal(t,"hi\nyo\n","showed up")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("error message",(function(e){const t=e.async();e.expect(3),o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2"],{err:"message"}).done((function(t,n){e.equal(t,"hi\n","produced output"),e.equal(n,"yo\n","produced message")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("error message fail",(function(e){const t=e.async();e.expect(3),o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2; exit 2"],{err:"message"}).fail((function(t,n){e.equal(n,"hi\n","produced output"),e.equal(t.message,"yo","produced message")})).always((function(){e.equal(this.state(),"rejected","didn't fail"),t()}))})),r.Z.test("nonexisting executable",(e=>{e.rejects(o.Z.spawn(["/bin/nonexistent"]),(e=>"not-found"==e.problem))})),r.Z.test("permission denied",(e=>{e.rejects(o.Z.spawn(["/etc/hostname"]),(e=>"access-denied"==e.problem))})),r.Z.test("write eof read",(function(e){const t=e.async();e.expect(2);const n=o.Z.spawn(["/usr/bin/sort"]);n.done((function(t){e.equal(t,"1\n2\n3\n","output")})),n.always((function(){e.equal(this.state(),"resolved","didn't fail"),t()})),n.input("2\n",!0),n.input("3\n1\n")})),r.Z.test("stream",(function(e){const t=e.async();e.expect(4);let n=0,r="";const i=o.Z.spawn(["/bin/cat"]).stream((function(e){r+=e,n+=1})).done((function(t){e.equal(t,"","no done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(r,"11\n22\n33\n","stream data"),e.ok(n>0,"stream handler called"),t()}));i.input("11\n",!0),i.input("22\n",!0),i.input("33\n")})),r.Z.test("stream packets",(function(e){const t=e.async();e.expect(3);let n="";const r=o.Z.spawn(["/bin/cat"]).stream((function(e){n+=e})).done((function(t){e.equal(t,"","no done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n,"11\n22\n33\n","stream data"),t()}));r.input("11\n",!0),r.input("22\n",!0),r.input("33\n")})),r.Z.test("stream replaced",(function(e){const t=e.async();e.expect(3);let n=!1,r=!1;const i=o.Z.spawn(["/bin/cat"]).stream((function(e){n=!0})).stream((function(e){r=!0})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.ok(!n,"first stream handler not called"),e.ok(r,"second stream handler called"),t()}));i.input("11\n",!0),i.input("22\n",!0),i.input("33\n")})),r.Z.test("stream partial",(function(e){const t=e.async();e.expect(3);let n="";o.Z.spawn(["/bin/cat"]).stream((function(e){if(e.length>0)return n+=e[0],1})).done((function(t){e.equal(t,"234","right done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n,"1","stream data"),t()})).input("1234")})),r.Z.test("stream partial binary",(function(e){const t=e.async();e.expect(3);const n=[];o.Z.spawn(["/bin/cat"],{binary:!0}).stream((function(e){if(e.length>0)return n.push(e[0]),1})).done((function(t){e.equal(t.length,3,"right done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.deepEqual(n,[49],"stream data"),t()})).input("1234")})),r.Z.test("script with input",(function(e){const t=e.async();e.expect(2);const n=o.Z.script("#!/bin/sh\n\n# Test\n/usr/bin/sort\necho $2\necho $1",["5","4"]);n.done((function(t){e.equal(t,"1\n2\n3\n4\n5\n","output matched")})),n.always((function(){e.equal(this.state(),"resolved","didn't fail"),t()})),n.input("2\n",!0),n.input("3\n1\n")})),r.Z.test("script with options",(function(e){const t=e.async();e.expect(2);const n=o.Z.script("#!/bin/sh\n\n# Test\n/usr/bin/sort\necho $2\necho $1 >&2",["5","4"],{err:"out"});n.done((function(t){e.equal(t,"1\n2\n3\n4\n5\n","output matched")})),n.always((function(){e.equal(this.state(),"resolved","didn't fail"),t()})),n.input("2\n",!0),n.input("3\n1\n")})),r.Z.test("script without args",(function(e){const t=e.async();e.expect(2);const n=o.Z.script("#!/bin/sh\n\n# Test\n/usr/bin/sort >&2",{err:"out"});n.done((function(t){e.equal(t,"1\n2\n3\n","output matched")})),n.always((function(){e.equal(this.state(),"resolved","didn't fail"),t()})),n.input("2\n",!0),n.input("3\n1\n")})),r.Z.test("pty",(async function(e){const t=o.Z.spawn(["sh","-c","tty; test -t 0"],{pty:!0}),n=await t.done();e.equal(n.indexOf("/dev/pts"),0,"TTY is a pty: "+n)})),r.Z.test("pty window size",(async function(e){const t=o.Z.spawn(["tput","lines","cols"],{pty:!0,window:{rows:77,cols:88}}),n=await t.done();e.equal(n,"77\r\n88\r\n","Correct rows and columns")})),r.Z.test("stream large output",(function(e){const t=e.async();e.expect(4);let n=null;o.Z.spawn(["seq","10000000"]).stream((function(t){null===n&&e.equal(t.slice(0,4),"1\n2\n","stream data starts with first numbers"),n=t})).then((function(t){e.equal(t,"","no done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n.slice(-18),"\n9999999\n10000000\n","stream data has last numbers"),t()}))})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(395)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&M("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?_(r,t):r}return n}function q(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=q(e[o],t[o]));return n}function O(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function N(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function M(e,t){return N(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":M("regexp",e)?"regexp":M("date",e)?"date":M("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!T(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&O(l,o.testEnvironment),O(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Z(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function Q(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===N(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Z(s,i,"before"),Z(s,i,"beforeEach"),Z(s,i,"afterEach"),Z(s,i,"after");var a={before:Q(r,"before"),beforeEach:Q(r,"beforeEach"),afterEach:Q(r,"afterEach"),after:Q(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===N(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===N(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var z=!1;function J(e,t,n){var o,r=z&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}J.only=function(){z||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),z=!0,$.apply(void 0,arguments)},J.skip=function(e,t,n){z||$(e,t,n,{skip:!0})},J.todo=function(e,t,n){z||$(e,t,n,{todo:!0})};var G=(Y(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===N(e)||""===e?t="You must provide a message to assert.step":"string"!==N(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+Y(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=_(e),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=q(e,t),t=_(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=q(e,t),t=_(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===N(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===N(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=N(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=N(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}K.prototype.raises=K.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==N(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},he=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return O(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,O(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),pe.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new he(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",Y(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||pe.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||Y();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+Y(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),Y(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===N(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return T(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!T(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,pe.advance())}))):(R.blocking=!1,pe.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function Te(e){return e.testsRun+e.testsIgnored===je(e).length}function _e(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}O(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var qe,Oe,Ne,Me,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;qe=Le.FORCE_COLOR,Oe=Le.NODE_DISABLE_COLORS,Ne=Le.NO_COLOR,Me=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Oe&&null==Ne&&"dumb"!==Me&&(null!=qe&&"0"!==qe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(h.log,h),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ze={console:Ie,tap:He};function Qe(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:Qe("beforeEach"),afterEach:Qe("afterEach")};function ze(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||Y(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Je={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ye(){We=!0,g?g((function(){Ve()})):Ve()}function Ke(){R.blocking=!1,pe.advance()}function Ve(){if(R.started)Ke();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Je.load());Ye()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),ze(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},p=d();return function t(r){var h={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=h.getPreparedSearch(e)),t?(f(t)||(t=h.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=h.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=h.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sp.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=h.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}else for(y=m-1;y>=0;--y){var j,T;(j=t[y])&&(f(j)||(j=h.getPrepared(j)),null!==(T=l(e,j,o))&&(T.scorep.peek().score&&p.replaceTop(T)))))}if(0===d)return i;var _=new Array(d);for(y=d-1;y>=0;--y)_[y]=p.poll();return _.total=d+g,_},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var p=(t=h.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?h.algorithm:h.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),T=S-1;T>=0;--T)(O=c(C,q=E[T]))?(f(O)||(O=h.getPrepared(O)),j[T]=w(t,O,p)):j[T]=null;j.obj=C;var _=d(j);null!==_&&(_g.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var q=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(O=c(C=n[m],q))&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var O,N;(O=n[m])&&(f(O)||(O=h.getPrepared(O)),null!==(N=w(t,O,p))&&(N.scoreg.peek().score&&g.replaceTop(N)))))}if(0===y)return a(i);for(var M=new Array(y),I=y-1;I>=0;--I)M[I]=g.poll();M.total=y+k,a(M)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return h.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return h.prepare(e);var t=n.get(e);return void 0!==t||(t=h.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return h.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=h.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,p=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){p=!0;break}++u}else u=m[u];if(p)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=h.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:p[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=p[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=p[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=h.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return h}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(p&&v){var e=Je.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=_({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Je.on("runStart",(function(e){tt.defined=e.testCounts.total})),Je.begin((function(){U()})),Je.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Je.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Je.dump.parse(e.expected):Je.dump.parse(e.expected),r=Je.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Je.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                      Expected:
                                                                                                      "+nt(n)+"
                                                                                                      Result:
                                                                                                      "+nt(r)+"
                                                                                                      Diff:
                                                                                                      "+i+"
                                                                                                      Message: Diff suppressed as the depth of object is more than current max depth ("+Je.config.maxDepth+").

                                                                                                      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                      Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                      Source:
                                                                                                      "+nt(e.source)+"
                                                                                                      "):!e.result&&e.source&&(s+="
                                                                                                      Source:
                                                                                                      "+nt(e.source)+"
                                                                                                      ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Je.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,p=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+p+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var h=v.createElement("em");h.className="qunit-skipped-label",h.innerHTML="skipped",i.insertBefore(h,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Je.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                      Source:
                                                                                                      "+nt(e.stack)+"
                                                                                                      ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=p.phantom)&&s.version&&s.version.major>0;a&&h.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(p,"load",Je.load):Je.load();var l=p.onerror;p.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Je.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),q(),e&&e.preventDefault&&e.preventDefault(),!1}function T(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=_(r);if("hidepassed"===o.name&&"replaceState"in p.history){Je.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(h||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}p.history.replaceState(null,"",i)}else p.location=i}function _(e){var t="?",n=p.location;for(var r in e=O(O({},Je.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",T),m(t.getElementsByTagName("select"),"change",T),t}function M(e,t,n){return'
                                                                                                    1. "}function I(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                       
                                                                                                      ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                      "+nt(v.title)+"

                                                                                                      "+((!(e=Je.config.testId)||e.length<=0?"":"
                                                                                                      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                      ")+"

                                                                                                        ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Je.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(N()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=_({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                        "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Je.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],p=u[3],h=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,p,o,r),g.concat([[0,h]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,p,h,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+h;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)h+=2;else if(p&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!p&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,p,h;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(h=this.diffCommonOverlap(d,f))?(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,p)]),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=d.substring(p),s++):(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,h)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-h),e[s+1][0]=t,e[s+1][1]=f.substring(h),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(T(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function T(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function _(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function q(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=_();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function O(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),p(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=O(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return O(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&N(e),r.promise}function N(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Z={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Z,t,n)};const Q={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const p={beg:e,items:t,mapping:n};for(s||(s=p),a&&(a.next=p),a=p,i+=t.length,r.splice(u,0,p),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const h=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),p=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();h(Math.floor((e-p)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function K(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new Y(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(h=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(h)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},T(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&p.push(e);return g+=1,v(t),h=null,l(),{remove:function(){if(e){const t=p.indexOf(e);t>-1&&(p[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new K(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=O(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new K(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const p=[];let h,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=h&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){h=arguments[1]||null,c(p,o,arguments)}return o};let fe,de={};function pe(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&h.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(h=t,p&&(h.headers=h.headers||{},c(p,s,[h.status,h.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new K(r.problem));else{const e=g.squash();if(h&&(h.status<200||h.status>299)){let t;const o=ve(h.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",h.status),n.reject(new ge(h.status,h.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===p&&(p=[]),p.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;T(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,p=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},395:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("simple process",(async e=>{const t=await o.Z.spawn(["/bin/sh","-c","echo hi"]);e.equal(t,"hi\n","returned output")})),r.Z.test("path",(async e=>{const t=await o.Z.spawn(["true"]);e.equal(t,"","found executable")})),r.Z.test("directory",(async e=>{const t=await o.Z.spawn(["pwd"],{directory:"/tmp"});e.equal(t,"/tmp\n","was right")})),r.Z.test("error log",(async e=>{const t=await o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2"]);e.equal(t,"hi\n","produced no output")})),r.Z.test("error output",(async e=>{const t=await o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2"],{err:"out"});e.equal(t,"hi\nyo\n","showed up")})),r.Z.test("error message",(e=>{const t=e.async();e.expect(3),o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2"],{err:"message"}).done((function(t,n){e.equal(t,"hi\n","produced output"),e.equal(n,"yo\n","produced message")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),t()}))})),r.Z.test("error message fail",(function(e){const t=e.async();e.expect(3),o.Z.spawn(["/bin/sh","-c","echo hi; echo yo >&2; exit 2"],{err:"message"}).fail((function(t,n){e.equal(n,"hi\n","produced output"),e.equal(t.message,"yo","produced message")})).always((function(){e.equal(this.state(),"rejected","didn't fail"),t()}))})),r.Z.test("nonexisting executable",(e=>{e.rejects(o.Z.spawn(["/bin/nonexistent"]),(e=>"not-found"==e.problem))})),r.Z.test("permission denied",(e=>{e.rejects(o.Z.spawn(["/etc/hostname"]),(e=>"access-denied"==e.problem))})),r.Z.test("write eof read",(async e=>{const t=o.Z.spawn(["/usr/bin/sort"]);t.input("2\n",!0),t.input("3\n1\n"),e.equal(await t,"1\n2\n3\n","output")})),r.Z.test("stream",(function(e){const t=e.async();e.expect(4);let n=0,r="";const i=o.Z.spawn(["/bin/cat"]).stream((function(e){r+=e,n+=1})).done((function(t){e.equal(t,"","no done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(r,"11\n22\n33\n","stream data"),e.ok(n>0,"stream handler called"),t()}));i.input("11\n",!0),i.input("22\n",!0),i.input("33\n")})),r.Z.test("stream packets",(function(e){const t=e.async();e.expect(3);let n="";const r=o.Z.spawn(["/bin/cat"]).stream((function(e){n+=e})).done((function(t){e.equal(t,"","no done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n,"11\n22\n33\n","stream data"),t()}));r.input("11\n",!0),r.input("22\n",!0),r.input("33\n")})),r.Z.test("stream replaced",(function(e){const t=e.async();e.expect(3);let n=!1,r=!1;const i=o.Z.spawn(["/bin/cat"]).stream((function(e){n=!0})).stream((function(e){r=!0})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.ok(!n,"first stream handler not called"),e.ok(r,"second stream handler called"),t()}));i.input("11\n",!0),i.input("22\n",!0),i.input("33\n")})),r.Z.test("stream partial",(function(e){const t=e.async();e.expect(3);let n="";o.Z.spawn(["/bin/cat"]).stream((function(e){if(e.length>0)return n+=e[0],1})).done((function(t){e.equal(t,"234","right done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n,"1","stream data"),t()})).input("1234")})),r.Z.test("stream partial binary",(function(e){const t=e.async();e.expect(3);const n=[];o.Z.spawn(["/bin/cat"],{binary:!0}).stream((function(e){if(e.length>0)return n.push(e[0]),1})).done((function(t){e.equal(t.length,3,"right done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.deepEqual(n,[49],"stream data"),t()})).input("1234")})),r.Z.test("script with input",(async e=>{const t=o.Z.script("#!/bin/sh\n\n# Test\n/usr/bin/sort\necho $2\necho $1",["5","4"]);t.input("2\n",!0),t.input("3\n1\n"),e.equal(await t,"1\n2\n3\n4\n5\n","output matched")})),r.Z.test("script with options",(async e=>{const t=o.Z.script("#!/bin/sh\n\n# Test\n/usr/bin/sort\necho $2\necho $1 >&2",["5","4"],{err:"out"});t.input("2\n",!0),t.input("3\n1\n"),e.equal(await t,"1\n2\n3\n4\n5\n","output matched")})),r.Z.test("script without args",(async e=>{const t=o.Z.script("#!/bin/sh\n\n# Test\n/usr/bin/sort >&2",{err:"out"});t.input("2\n",!0),t.input("3\n1\n"),e.equal(await t,"1\n2\n3\n","output matched")})),r.Z.test("pty",(async e=>{const t=o.Z.spawn(["sh","-c","tty; test -t 0"],{pty:!0}),n=await t;e.equal(n.indexOf("/dev/pts"),0,"TTY is a pty: "+n)})),r.Z.test("pty window size",(async e=>{const t=o.Z.spawn(["tput","lines","cols"],{pty:!0,window:{rows:77,cols:88}});e.equal(await t,"77\r\n88\r\n","Correct rows and columns")})),r.Z.test("stream large output",(function(e){const t=e.async();e.expect(4);let n=null;o.Z.spawn(["seq","10000000"]).stream((function(t){null===n&&e.equal(t.slice(0,4),"1\n2\n","stream data starts with first numbers"),n=t})).then((function(t){e.equal(t,"","no done data")})).always((function(){e.equal(this.state(),"resolved","didn't fail"),e.equal(n.slice(-18),"\n9999999\n10000000\n","stream data has last numbers"),t()}))})),r.Z.test("cancel process",(async e=>{const t=o.Z.spawn(["sleep","418"]);await o.Z.script("until pgrep -af [s]leep.*418; do sleep 0.1; done"),t.close("cancelled"),await o.Z.script("timeout 5 sh -ec 'while pgrep -af [s]leep.*418; do sleep 0.1; done'");try{await t,e.ok(!1,"proc should have failed")}catch(t){e.equal(t.problem,"cancelled","proc failed with correct problem")}})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,p=new Promise(((e,t)=>{c=t,u=e}));p[t]=d,p[e]=e=>(a&&e(a),f.forEach(e),p.catch((e=>{}))),r.exports=p,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(p[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(395)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-user.js cockpit-284/dist/base1/test-user.js --- cockpit-283/dist/base1/test-user.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-user.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-user.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                        ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=y(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var q=new Array(w),I=w-1;I>=0;--I)q[I]=g.poll();q.total=w+k,a(q)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                        ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                        Expected:
                                                                                                        "+nt(n)+"
                                                                                                        Result:
                                                                                                        "+nt(r)+"
                                                                                                        Diff:
                                                                                                        "+i+"
                                                                                                        Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                                        Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                        Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                        Source:
                                                                                                        "+nt(e.source)+"
                                                                                                        "):!e.result&&e.source&&(s+="
                                                                                                        Source:
                                                                                                        "+nt(e.source)+"
                                                                                                        ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                        Source:
                                                                                                        "+nt(e.stack)+"
                                                                                                        ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function q(e,t,n){return'
                                                                                                      1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                         
                                                                                                        ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                        "+nt(v.title)+"

                                                                                                        "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                                        Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                        ")+"

                                                                                                          ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                          ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                          "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},340:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("load user info",(function(e){const t=e.async();e.expect(9);o.Z.dbus(null,{bus:"internal"}).call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).done((function(t){const n=t[0];e.ok(void 0!==n.Name,"has Name"),e.equal(n.Name.t,"s","string Name"),e.ok(void 0!==n.Full,"has Full name"),e.equal(n.Full.t,"s","string Full"),e.ok(void 0!==n.Shell,"has Shell"),e.equal(n.Home.t,"s","type Home"),e.equal(n.Home.v.indexOf("/"),0,"Home starts with slash"),e.equal(n.Groups.t,"as","type Groups")})).always((function(){e.equal(this.state(),"resolved","finished successfully"),t()}))})),r.Z.test("user object",(function(e){const t=e.async();e.expect(6),o.Z.user().done((function(n){e.equal(typeof n.name,"string","user name"),e.equal(typeof n.full_name,"string","user full name"),e.equal(typeof n.shell,"string","user shell"),e.equal(typeof n.home,"string","user home"),e.equal(typeof n.id,"number","user id"),e.ok(Array.isArray(n.groups),"user groups"),t()}))})),r.Z.test("user environment",(function(e){const t=e.async();e.expect(6),o.Z.spawn(["/bin/sh","-c","echo $USER~$SHELL~$HOME"]).done((function(t){const n=t.split("~");e.ok(n[0].length>0,"valid $USER"),e.ok(n[1].length>0,"valid $HOME"),e.equal(n[1].indexOf("/"),0,"$HOME starts with slash"),e.ok(n[2].length>0,"valid $SHELL"),e.equal(n[1].indexOf("/"),0,"$SHELL starts with slash")})).fail((function(e){console.warn(e)})).always((function(){e.equal(this.state(),"resolved","finished successfully"),t()}))})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(340)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&q("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function q(e,t){return M(t)===e}function I(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":q("regexp",e)?"regexp":q("date",e)?"date":q("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                          ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:I(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=j(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return _(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!_(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,qe,Ie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,qe=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==qe&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:Ie,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),E=y-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=m-1;w>=0;--w)(j=c(k=t[w],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(w=m-1;w>=0;--w){var j,_;(j=t[w])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=y(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var q=new Array(w),I=w-1;I>=0;--I)q[I]=g.poll();q.total=w+k,a(q)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                          ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                          Expected:
                                                                                                          "+nt(n)+"
                                                                                                          Result:
                                                                                                          "+nt(r)+"
                                                                                                          Diff:
                                                                                                          "+i+"
                                                                                                          Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                                          Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                          Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                          Source:
                                                                                                          "+nt(e.source)+"
                                                                                                          "):!e.result&&e.source&&(s+="
                                                                                                          Source:
                                                                                                          "+nt(e.source)+"
                                                                                                          ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                          Source:
                                                                                                          "+nt(e.stack)+"
                                                                                                          ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function q(e,t,n){return'
                                                                                                        1. "}function I(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                           
                                                                                                          ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                          "+nt(v.title)+"

                                                                                                          "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                                          Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                          ")+"

                                                                                                            ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                            ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                            "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(y=a+C,x=(w=C===-S||C!==S&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(y=a+d-j)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},340:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("load user info",(function(e){const t=e.async();e.expect(9);o.Z.dbus(null,{bus:"internal"}).call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).done((function(t){const n=t[0];e.ok(void 0!==n.Name,"has Name"),e.equal(n.Name.t,"s","string Name"),e.ok(void 0!==n.Full,"has Full name"),e.equal(n.Full.t,"s","string Full"),e.ok(void 0!==n.Shell,"has Shell"),e.equal(n.Home.t,"s","type Home"),e.equal(n.Home.v.indexOf("/"),0,"Home starts with slash"),e.equal(n.Groups.t,"as","type Groups")})).always((function(){e.equal(this.state(),"resolved","finished successfully"),t()}))})),r.Z.test("user object",(function(e){const t=e.async();e.expect(6),o.Z.user().done((function(n){e.equal(typeof n.name,"string","user name"),e.equal(typeof n.full_name,"string","user full name"),e.equal(typeof n.shell,"string","user shell"),e.equal(typeof n.home,"string","user home"),e.equal(typeof n.id,"number","user id"),e.ok(Array.isArray(n.groups),"user groups"),t()}))})),r.Z.test("user environment",(function(e){const t=e.async();e.expect(6),o.Z.spawn(["/bin/sh","-c","echo $USER~$SHELL~$HOME"]).done((function(t){const n=t.split("~");e.ok(n[0].length>0,"valid $USER"),e.ok(n[1].length>0,"valid $HOME"),e.equal(n[1].indexOf("/"),0,"$HOME starts with slash"),e.ok(n[2].length>0,"valid $SHELL"),e.equal(n[1].indexOf("/"),0,"$SHELL starts with slash")})).fail((function(e){console.warn(e)})).always((function(){e.equal(this.state(),"resolved","finished successfully"),t()}))})),r.Z.start(),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(340)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-utf8.js cockpit-284/dist/base1/test-utf8.js --- cockpit-283/dist/base1/test-utf8.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-utf8.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-utf8.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                            ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function Z(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}Z.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},Z.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},Z.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=_(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=_(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===_e(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function _e(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===_e(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(_=c(k,C=b[E]))?(f(_)||(_=p.getPrepared(_)),x[E]=l(e,_,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(_=c(k=t[y],C))&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var _,j;(_=t[y])&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],_=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=p.getPrepared(N)),_[j]=w(t,N,h)):_[j]=null;_.obj=C;var T=d(_);null!==T&&(Tg.peek().score&&g.replaceTop(_))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){U()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                            ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                            Expected:
                                                                                                            "+nt(n)+"
                                                                                                            Result:
                                                                                                            "+nt(r)+"
                                                                                                            Diff:
                                                                                                            "+i+"
                                                                                                            Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

                                                                                                            Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                            Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                            Source:
                                                                                                            "+nt(e.source)+"
                                                                                                            "):!e.result&&e.source&&(s+="
                                                                                                            Source:
                                                                                                            "+nt(e.source)+"
                                                                                                            ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                            Source:
                                                                                                            "+nt(e.stack)+"
                                                                                                            ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function _(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function I(e,t,n){return'
                                                                                                          1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                             
                                                                                                            ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                            "+nt(v.title)+"

                                                                                                            "+((!(e=Ze.config.testId)||e.length<=0?"":"
                                                                                                            Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                            ")+"

                                                                                                              ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                              ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                              "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,_;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(_=-S+m;_<=S-v;_+=2){for(b=a+_,E=(k=_===-S||_!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-_)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function _(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(_("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},538:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("utf8 basic",(function(e){const t="Base 64 — Mozilla Developer Network",n=o.Z.utf8_encoder().encode(t);e.deepEqual(n,[66,97,115,101,32,54,52,32,226,128,148,32,77,111,122,105,108,108,97,32,68,101,118,101,108,111,112,101,114,32,78,101,116,119,111,114,107],"encoded"),e.equal(o.Z.utf8_decoder().decode(n),t,"decoded")})),r.Z.test("utf8 round trip",(function(e){const t=4096,n=o.Z.utf8_encoder(),r=o.Z.utf8_decoder();function i(e){if(e+0!==e)return e.toString();const t=e<=65535?4:6;return"U+"+("000000"+e.toString(16).toUpperCase()).slice(-t)}function s(e,t,n){const o=[];for(let r=0;r=55296&&t<=57343||(t<65536?o.push(String.fromCharCode(t)):(t-=65536,o.push(String.fromCharCode(55296+(t>>10))),o.push(String.fromCharCode(56320+(1023&t)))))}return o.join("")}for(let o=0;o<1114111;o+=t){const a=i(o)+" - "+i(o+t-1),l=s(o,t,31),u=n.encode(l),c=r.decode(u),f=l.length;for(let t=0;t{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(538)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                              ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new P;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new P(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function Z(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}Z.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},Z.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},Z.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var G=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),G){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(B.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(B.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=C.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=_(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=_(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===_e(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||R.currentModule.ignored||new ge(e).queue()}function ye(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function _e(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===_e(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Be(0,0),bold:Be(1,22),dim:Be(2,22),italic:Be(3,23),underline:Be(4,24),inverse:Be(7,27),hidden:Be(8,28),strikethrough:Be(9,29),black:Be(30,39),red:Be(31,39),green:Be(32,39),yellow:Be(33,39),blue:Be(34,39),magenta:Be(35,39),cyan:Be(36,39),white:Be(37,39),gray:Be(90,39),grey:Be(90,39),bgBlack:Be(40,49),bgRed:Be(41,49),bgGreen:Be(42,49),bgYellow:Be(43,49),bgBlue:Be(44,49),bgMagenta:Be(45,49),bgCyan:Be(46,49),bgWhite:Be(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Pe.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Pe.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ze={};R.currentModule.suiteReport=F;var Ge=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=C.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ze.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(_=c(k,C=b[E]))?(f(_)||(_=p.getPrepared(_)),x[E]=l(e,_,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(_=c(k=t[y],C))&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var _,j;(_=t[y])&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],_=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=p.getPrepared(N)),_[j]=w(t,N,h)):_[j]=null;_.obj=C;var T=d(_);null!==T&&(Tg.peek().score&&g.replaceTop(_))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ze.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ze.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ze.begin((function(){U()})),Ze.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                              ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",P(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),P(tt.failedTests)].join(""))})),Ze.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ze.dump.parse(e.expected):Ze.dump.parse(e.expected),r=Ze.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ze.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                              Expected:
                                                                                                              "+nt(n)+"
                                                                                                              Result:
                                                                                                              "+nt(r)+"
                                                                                                              Diff:
                                                                                                              "+i+"
                                                                                                              Message: Diff suppressed as the depth of object is more than current max depth ("+Ze.config.maxDepth+").

                                                                                                              Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                              Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                              Source:
                                                                                                              "+nt(e.source)+"
                                                                                                              "):!e.result&&e.source&&(s+="
                                                                                                              Source:
                                                                                                              "+nt(e.source)+"
                                                                                                              ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ze.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ze.on("error",(function(e){var t=B("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                              Source:
                                                                                                              "+nt(e.stack)+"
                                                                                                              ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ze.load):Ze.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ze.config.queue.length=0,!1}function _(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ze.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ze.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function I(e,t,n){return'
                                                                                                            1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                               
                                                                                                              ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                              "+nt(v.title)+"

                                                                                                              "+((!(e=Ze.config.testId)||e.length<=0?"":"
                                                                                                              Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                              ")+"

                                                                                                                ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),R(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ze.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function B(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function P(e){return 0===e.length?"":["
                                                                                                                ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                                "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ze.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,_;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(_=-S+m;_<=S-v;_+=2){for(b=a+_,E=(k=_===-S||_!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-_)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function _(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(_("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},538:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("utf8 basic",(function(e){const t="Base 64 — Mozilla Developer Network",n=o.Z.utf8_encoder().encode(t);e.deepEqual(n,[66,97,115,101,32,54,52,32,226,128,148,32,77,111,122,105,108,108,97,32,68,101,118,101,108,111,112,101,114,32,78,101,116,119,111,114,107],"encoded"),e.equal(o.Z.utf8_decoder().decode(n),t,"decoded")})),r.Z.test("utf8 round trip",(function(e){const t=4096,n=o.Z.utf8_encoder(),r=o.Z.utf8_decoder();function i(e){if(e+0!==e)return e.toString();const t=e<=65535?4:6;return"U+"+("000000"+e.toString(16).toUpperCase()).slice(-t)}function s(e,t,n){const o=[];for(let r=0;r=55296&&t<=57343||(t<65536?o.push(String.fromCharCode(t)):(t-=65536,o.push(String.fromCharCode(55296+(t>>10))),o.push(String.fromCharCode(56320+(1023&t)))))}return o.join("")}for(let o=0;o<1114111;o+=t){const a=i(o)+" - "+i(o+t-1),l=s(o,t,31),u=n.encode(l),c=r.decode(u),f=l.length;for(let t=0;t{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(538)})(); \ No newline at end of file diff -Nru cockpit-283/dist/base1/test-websocket.js cockpit-284/dist/base1/test-websocket.js --- cockpit-283/dist/base1/test-websocket.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/base1/test-websocket.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-websocket.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                                ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!_(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=C.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=L.pollution;ve();var t=j(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=j(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===je(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||he.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return _(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!_(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||L.currentModule.ignored||new ge(e).queue()}function ye(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,he.advance())}))):(L.blocking=!1,he.advance()))}function je(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function _e(e){return e.testsRun+e.testsIgnored===je(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Re=process.env;Oe=Re.FORCE_COLOR,Ne=Re.NODE_DISABLE_COLORS,Me=Re.NO_COLOR,Ie=Re.TERM,Ae=process.stdout&&process.stdout.isTTY}var Le={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var Ge={};L.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){L.blocking=!1,he.advance()}function Ve(){if(L.started)Ye();else{L.started=C.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(j=c(k,C=b[E]))?(f(j)||(j=p.getPrepared(j)),x[E]=l(e,j,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(j=c(k=t[y],C))&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}else for(y=m-1;y>=0;--y){var j,_;(j=t[y])&&(f(j)||(j=p.getPrepared(j)),null!==(_=l(e,j,o))&&(_.scoreh.peek().score&&h.replaceTop(_)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],j=new Array(S),_=S-1;_>=0;--_)(N=c(C,O=E[_]))?(f(N)||(N=p.getPrepared(N)),j[_]=w(t,N,h)):j[_]=null;j.obj=C;var T=d(j);null!==T&&(Tg.peek().score&&g.replaceTop(j))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                                ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                                Expected:
                                                                                                                "+nt(n)+"
                                                                                                                Result:
                                                                                                                "+nt(r)+"
                                                                                                                Diff:
                                                                                                                "+i+"
                                                                                                                Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                                                Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                                Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                                Source:
                                                                                                                "+nt(e.source)+"
                                                                                                                "):!e.result&&e.source&&(s+="
                                                                                                                Source:
                                                                                                                "+nt(e.source)+"
                                                                                                                ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                                Source:
                                                                                                                "+nt(e.stack)+"
                                                                                                                ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function j(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function _(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",_),m(t.getElementsByTagName("select"),"change",_),t}function I(e,t,n){return'
                                                                                                              1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                                 
                                                                                                                ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                                "+nt(v.title)+"

                                                                                                                "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                                                Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                                ")+"

                                                                                                                  ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),L(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                                  ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                                  "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,j;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(j=-S+m;j<=S-v;j+=2){for(b=a+j,E=(k=j===-S||j!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-j)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>L});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(_(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function j(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function _(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(j("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},_(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;_(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},81:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("external channel websocket",(function(e){const t=e.async();e.expect(3);const n=window.btoa(JSON.stringify({payload:"websocket-stream1",address:"localhost",port:parseInt(window.location.port,10),path:"/cockpit/echosocket/"}));let r=0;const i=new WebSocket("ws://"+window.location.host+"/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n);i.onopen=function(){e.ok(!0,"websocket is open"),i.send("oh marmalade")},i.onerror=function(){e.ok(!1,"websocket error")},i.onmessage=function(t){0===r?(e.equal(t.data,"OH MARMALADE","got payload"),i.send("another test"),r+=1):(e.equal(t.data,"ANOTHER TEST","got payload again"),i.close(1e3))},i.onclose=function(e){t()}})),r.Z.test("bad channel options websocket",(function(e){const t=e.async(),n=[window.btoa(JSON.stringify({payload:"websocket-stream1",address:"localhost",port:"bad",path:"/cockpit/echosocket/"})),window.btoa(JSON.stringify({payload:"websocket-stream1",address:"localhost",port:parseInt(window.location.port,10)}))];e.expect(3*n.length),function r(){const i=n.shift(),s="ws://"+window.location.host+"/cockpit/channel/"+o.Z.transport.csrf_token+"?"+i;console.log(s);let a=new WebSocket(s);a.onopen=function(){e.ok(!0,"websocket opened")},a.onclose=function(o){console.log(o),e.ok(o.wasClean,s+"websocket unclean shutdown"),e.notEqual(o.code,0,s+"websocket error code"),a=null,0===n.length?t():r()}}()})),o.Z.transport.wait((function(){r.Z.start()})),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(81)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={732:(e,t,n)=>{"use strict";n.r(t)},553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(E.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)E.call(t,o)&&E.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)E.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                                  ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:L.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),L.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){L.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+L.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function J(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=L.currentModule;if(L.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),L.currentModule=r.parentModule||l}}}var $=!1;function G(e,t,n){var o,r=$&&(o=L.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));J(e,t,n,{ignored:r})}G.only=function(){$||(L.modules.length=0,L.queue.length=0,L.currentModule.ignored=!0),$=!0,J.apply(void 0,arguments)},G.skip=function(e,t,n){$||J(e,t,n,{skip:!0})},G.todo=function(e,t,n){$||J(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:L.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||L.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:R(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!R(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||L.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=L.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!L.blocking){var t=C.now()-e;if(!g||L.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(L.queue.length-ue+1));L.queue.splice(ue+o,0,e)}else L.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=C.now(),C.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=C.now(),C)){C.mark("qunit_test_end");var t=this.fullName.join(" – ");C.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=L.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new y,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=L.pollution;ve();var t=_(L.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=_(e,L.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(L.current=n,L.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===_e(e).filter((function(e){return!e.skip})).length-1}(n)||!(L.queue.length>0||he.taskCount()>2))if(L.current=o,L.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&L.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:C.now()-this.started,todo:!!this.todo};if(E.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(L.timeout),L.timeout=g(L.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;L.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===L.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(L.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Ce(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof L.testTimeout&&(t=L.testTimeout),"number"==typeof t&&t>0&&(L.timeoutHandler=function(e){return function(){L.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Ce(n)}},m(L.timeout),L.timeout=g(L.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(L.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Se(n)}))}}}},valid:function(){var e=L.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=L.module&&L.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(L.moduleId&&L.moduleId.length>0&&!function e(t){return j(t.moduleId,L.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(L.testId&&L.testId.length>0&&!j(this.testId,L.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function we(e){be||L.currentModule.ignored||new ge(e).queue()}function ye(e){L.currentModule.ignored||(be||(L.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){we({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function Ee(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(L.timeout),L.timeout=g((function(){e.pauses.size>0||(m(L.timeout),L.timeout=null,L.blocking=!1,he.advance())}))):(L.blocking=!1,he.advance()))}function _e(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===_e(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){we({testName:e,callback:t,todo:!0})},skip:function(e){we({testName:e,skip:!0})},only:function(e,t){ye({testName:e,callback:t})},each:function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){Ee(t,(function(t,o){we({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){Ee(t,(function(t,n){we({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){Ee(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Re=process.env;Oe=Re.FORCE_COLOR,Ne=Re.NODE_DISABLE_COLORS,Me=Re.NO_COLOR,Ie=Re.TERM,Ae=process.stdout&&process.stdout.isTTY}var Le={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Le.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Le.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Le.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Le.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Le.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Le.cyan("# todo ".concat(e.testCounts.todo))),this.log(Le.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){L.globalHooks[e]||(L.globalHooks[e]=[]),L.globalHooks[e].push(t)}}var Je={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function $e(e){L.current?L.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,L.stats.bad++,L.stats.all++,ne("error",e))}var Ge={};L.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){L.blocking=!1,he.advance()}function Ve(){if(L.started)Ye();else{L.started=C.now(),""===L.modules[0].name&&0===L.modules[0].tests.length&&L.modules.shift();for(var e=L.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(L.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!L.pageLoaded)return L.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),$e(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,w=b.length,y=m-1;y>=0;--y){for(var k=t[y],x=new Array(w),E=w-1;E>=0;--E)(_=c(k,C=b[E]))?(f(_)||(_=p.getPrepared(_)),x[E]=l(e,_,o)):x[E]=null;x.obj=k;var S=v(x);null!==S&&(Sh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(y=m-1;y>=0;--y)(_=c(k=t[y],C))&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(y=m-1;y>=0;--y){var _,j;(_=t[y])&&(f(_)||(_=p.getPrepared(_)),null!==(j=l(e,_,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(y=d-1;y>=0;--y)T[y]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,y=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,E=o.keys,S=E.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var C=n[m],_=new Array(S),j=S-1;j>=0;--j)(N=c(C,O=E[j]))?(f(N)||(N=p.getPrepared(N)),_[j]=w(t,N,h)):_[j]=null;_.obj=C;var T=d(_);null!==T&&(Tg.peek().score&&g.replaceTop(_))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(C=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=w(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===y)return a(i);for(var I=new Array(y),q=y-1;q>=0;--q)I[q]=g.poll();I.total=y+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,w=g;else b=s,w=f;for(var y=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,w=0;w=0;--w)t.indexes[w]=g[w];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=S("qunit-banner"),s=S("qunit-tests"),a=S("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                                  ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=S("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                                  Expected:
                                                                                                                  "+nt(n)+"
                                                                                                                  Result:
                                                                                                                  "+nt(r)+"
                                                                                                                  Diff:
                                                                                                                  "+i+"
                                                                                                                  Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                                                  Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                                  Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                                  Source:
                                                                                                                  "+nt(e.source)+"
                                                                                                                  "):!e.result&&e.source&&(s+="
                                                                                                                  Source:
                                                                                                                  "+nt(e.source)+"
                                                                                                                  ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=S("qunit-tests"),i=S("qunit-test-output-"+o.testId);if(r&&i){var s;E(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                                  Source:
                                                                                                                  "+nt(e.stack)+"
                                                                                                                  ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){w(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!w(e,t)?k(e,t):E(e,t)}function E(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function S(e){return v.getElementById&&v.getElementById(e)}function C(){var e=S("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function _(e){var t=S("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=S("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var w;null!=(w=t.pop());)s.appendChild(w)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function I(e,t,n){return'
                                                                                                                1. "}function q(){var t=null;i={options:[],selectedMap:new y,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                                   
                                                                                                                  ',e=S("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",C),t))}function U(){var e,t,n,o,i,s=S("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                                  "+nt(v.title)+"

                                                                                                                  "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                                                  Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                                  ")+"

                                                                                                                    ")),(t=S("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=S("qunit-banner"))&&(n.className=""),L(),(o=S("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=S("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(R()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=S("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                                    ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                                    "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,w,y,k,x,E,S,C,_;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);S++){for(C=-S+p;C<=S-g;C+=2){for(w=a+C,x=(y=C===-S||C!==S&&u[w-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-C)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,y,x,o)}for(_=-S+m;_<=S-v;_+=2){for(b=a+_,E=(k=_===-S||_!==S&&c[b-1]r)v+=2;else if(E>i)m+=2;else if(!h&&(w=a+d-_)>=0&&w=(k=r-k)))return this.diffBisectSplit(e,n,y,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";let o;n.d(t,{Z:()=>L});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(E(r>>>18&63),E(r>>>12&63),E(r>>>6&63),E(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function C(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function _(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(_("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,E((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function J(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function ye(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(785),i=n.n(r),s=n(553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},81:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(99),r=n(810),i=e([r]);(r=(i.then?(await i)():i)[0]).Z.test("external channel websocket",(function(e){const t=e.async();e.expect(3);const n=window.btoa(JSON.stringify({payload:"websocket-stream1",address:"localhost",port:parseInt(window.location.port,10),path:"/cockpit/echosocket/"}));let r=0;const i=new WebSocket("ws://"+window.location.host+"/cockpit/channel/"+o.Z.transport.csrf_token+"?"+n);i.onopen=function(){e.ok(!0,"websocket is open"),i.send("oh marmalade")},i.onerror=function(){e.ok(!1,"websocket error")},i.onmessage=function(t){0===r?(e.equal(t.data,"OH MARMALADE","got payload"),i.send("another test"),r+=1):(e.equal(t.data,"ANOTHER TEST","got payload again"),i.close(1e3))},i.onclose=function(e){t()}})),r.Z.test("bad channel options websocket",(function(e){const t=e.async(),n=[window.btoa(JSON.stringify({payload:"websocket-stream1",address:"localhost",port:"bad",path:"/cockpit/echosocket/"})),window.btoa(JSON.stringify({payload:"websocket-stream1",address:"localhost",port:parseInt(window.location.port,10)}))];e.expect(3*n.length),function r(){const i=n.shift(),s="ws://"+window.location.host+"/cockpit/channel/"+o.Z.transport.csrf_token+"?"+i;console.log(s);let a=new WebSocket(s);a.onopen=function(){e.ok(!0,"websocket opened")},a.onclose=function(o){console.log(o),e.ok(o.wasClean,s+"websocket unclean shutdown"),e.notEqual(o.code,0,s+"websocket error code"),a=null,0===n.length?t():r()}}()})),o.Z.transport.wait((function(){r.Z.start()})),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(81)})(); \ No newline at end of file diff -Nru cockpit-283/dist/kdump/index.html cockpit-284/dist/kdump/index.html --- cockpit-283/dist/kdump/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/kdump/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,37 @@ + + + + + + Kernel dump + + + + + + + + + + + +
                                                                                                                    + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/index.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/kdump.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/kdump.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/kdump.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/kdump.js.gz differ diff -Nru cockpit-283/dist/kdump/Makefile.deps cockpit-284/dist/kdump/Makefile.deps --- cockpit-283/dist/kdump/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/kdump/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for kdump kdump_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/kdump/config-client-suse.js \ pkg/kdump/config-client.js \ @@ -50,10 +51,12 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) kdump_OUTPUTS = \ - dist/kdump/index.html.gz \ + dist/kdump/index.html \ dist/kdump/kdump.css.gz \ dist/kdump/kdump.js.LICENSE.txt.gz \ dist/kdump/kdump.js.gz \ @@ -85,7 +88,7 @@ $(NULL) kdump_INSTALL = \ - dist/kdump/index.html.gz \ + dist/kdump/index.html \ dist/kdump/kdump.css.gz \ dist/kdump/kdump.js.LICENSE.txt.gz \ dist/kdump/kdump.js.gz \ @@ -119,7 +122,7 @@ $(srcdir)/dist/kdump/manifest.json: $(kdump_INPUTS) -dist/kdump/index.html.gz: $(srcdir)/dist/kdump/manifest.json +dist/kdump/index.html: $(srcdir)/dist/kdump/manifest.json dist/kdump/kdump.css.gz: $(srcdir)/dist/kdump/manifest.json @@ -179,6 +182,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/kdump/config-client-suse.js: @@ -277,6 +282,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(kdump_INPUTS) WEBPACK_OUTPUTS += $(kdump_OUTPUTS) WEBPACK_INSTALL += $(kdump_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/kdump/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/kdump/po.zh_TW.js.gz differ diff -Nru cockpit-283/dist/kdump/test-config-client.js cockpit-284/dist/kdump/test-config-client.js --- cockpit-283/dist/kdump/test-config-client.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/kdump/test-config-client.js 2023-01-25 05:21:41.000000000 +0000 @@ -1,2 +1,2 @@ /*! For license information please see test-config-client.js.LICENSE.txt */ -(()=>{var e,t,n,o,r={6732:(e,t,n)=>{"use strict";n.r(t)},8553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(_.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)_.call(t,o)&&_.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)_.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                                    ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function $(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function z(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:$(r,"before"),beforeEach:$(r,"beforeEach"),afterEach:$(r,"afterEach"),after:$(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));z(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,z.apply(void 0,arguments)},G.skip=function(e,t,n){J||z(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||z(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(U.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(U.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=S.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=C(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(_.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Se(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Ee(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function _e(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){_e(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){_e(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){_e(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){_e(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Ue(0,0),bold:Ue(1,22),dim:Ue(2,22),italic:Ue(3,23),underline:Ue(4,24),inverse:Ue(7,27),hidden:Ue(8,28),strikethrough:Ue(9,29),black:Ue(30,39),red:Ue(31,39),green:Ue(32,39),yellow:Ue(33,39),blue:Ue(34,39),magenta:Ue(35,39),cyan:Ue(36,39),white:Ue(37,39),gray:Ue(90,39),grey:Ue(90,39),bgBlack:Ue(40,49),bgRed:Ue(41,49),bgGreen:Ue(42,49),bgYellow:Ue(43,49),bgBlue:Ue(44,49),bgMagenta:Ue(45,49),bgCyan:Ue(46,49),bgWhite:Ue(47,49)};function Pe(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function $e(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var ze={beforeEach:$e("beforeEach"),afterEach:$e("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=S.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),_=y-1;_>=0;--_)(C=c(k,S=b[_]))?(f(C)||(C=p.getPrepared(C)),x[_]=l(e,C,o)):x[_]=null;x.obj=k;var E=v(x);null!==E&&(Eh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(C=c(k=t[w],S))&&(f(C)||(C=p.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(w=m-1;w>=0;--w){var C,j;(C=t[w])&&(f(C)||(C=p.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,_=o.keys,E=_.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var S=n[m],C=new Array(E),j=E-1;j>=0;--j)(N=c(S,O=_[j]))?(f(N)||(N=p.getPrepared(N)),C[j]=y(t,N,h)):C[j]=null;C.obj=S;var T=d(C);null!==T&&(Tg.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(S=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var I=new Array(w),q=w-1;q>=0;--q)I[q]=g.poll();I.total=w+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){P()})),Ge.on("runEnd",(function(t){var n,o,r,i=E("qunit-banner"),s=E("qunit-tests"),a=E("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                                    ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=E("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                                    Expected:
                                                                                                                    "+nt(n)+"
                                                                                                                    Result:
                                                                                                                    "+nt(r)+"
                                                                                                                    Diff:
                                                                                                                    "+i+"
                                                                                                                    Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                                                    Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                                    Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                                    Source:
                                                                                                                    "+nt(e.source)+"
                                                                                                                    "):!e.result&&e.source&&(s+="
                                                                                                                    Source:
                                                                                                                    "+nt(e.source)+"
                                                                                                                    ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=E("qunit-tests"),i=E("qunit-test-output-"+o.testId);if(r&&i){var s;_(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=U("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                                    Source:
                                                                                                                    "+nt(e.stack)+"
                                                                                                                    ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):_(e,t)}function _(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function E(e){return v.getElementById&&v.getElementById(e)}function S(){var e=E("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function C(e){var t=E("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=E("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function I(e,t,n){return'
                                                                                                                  1. "}function q(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                                     
                                                                                                                    ',e=E("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",S),t))}function P(){var e,t,n,o,i,s=E("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                                    "+nt(v.title)+"

                                                                                                                    "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                                                    Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                                    ")+"

                                                                                                                      ")),(t=E("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=E("qunit-banner"))&&(n.className=""),R(),(o=E("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=E("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function U(e,t,n){var o=E("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                                      ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                                      "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,_,E,S,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);E++){for(S=-E+p;S<=E-g;S+=2){for(y=a+S,x=(w=S===-E||S!==E&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-E+m;C<=E-v;C+=2){for(b=a+C,_=(k=C===-E||C!==E&&c[b-1]r)v+=2;else if(_>i)m+=2;else if(!h&&(y=a+d-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";n.d(t,{l:()=>s});var o=n(7099);const r=["net","options","link_delay","disk_timeout","debug_mem_level","blacklist"],i=["raw","nfs","ssh","sshkey","path","core_collector","kdump_post","kdump_pre","extra_bins","extra_modules","default","force_rebuild","override_resettable","dracut_args","fence_kdump_args","fence_kdump_nodes"];class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.filename=e,this._rawContent=void 0,this._lines=[],this._originalSettings={},this._dataAvailable=new Promise((e=>{this._dataAvailableResolve=e})),this.settings={},o.Z.event_target(this),this._fileHandle=o.Z.file(e,{superuser:t}),this._fileHandle.watch((e=>{this._parseText(e)}))}close(){this._fileHandle&&(this._fileHandle.close(),this._fileHandle=void 0)}wait(){return this._dataAvailable}_parseText(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._dataAvailableResolve(),!e)return this._originalSettings=null,this.settings=null,void(t||this.dispatchEvent("kdumpConfigChanged",this.settings));e!=this._rawContent&&(this._rawContent=e,this._lines=e.split(/\r?\n/),this.settings={_internal:{},targets:{},compression:{enabled:!1,allowed:!1}},this._lines.forEach(((e,t)=>{const n=e.trim();if(0===n.indexOf("#")||0===n.length)return;const o=n.indexOf(" ");if(-1===o)return;const r=n.substring(0,o);let i=n.substring(o+1).trim();const s=i.indexOf("#");let a;-1!==s&&(a=i.substring(s).trim(),i=i.substring(0,s).trim()),this.settings._internal[r]={index:t,value:i,origLine:e,comment:a}})),this._originalSettings={},Object.keys(this.settings._internal).forEach((e=>{this._originalSettings[e]={...this.settings._internal[e]}})),this._extractSettings(),t||this.dispatchEvent("kdumpConfigChanged",this.settings))}_extractSettings(){const e=this.settings._internal.path||{value:""};Object.keys(this.settings._internal).forEach((t=>{if("nfs"===t){const n=this.settings._internal.nfs.value.match(/^([^[][^:]+|\[[^\]]+\]):(.*)$/);if(!n)return;this.settings.targets.nfs={type:t,path:e.value,server:n[1],export:n[2]}}else if("ssh"===t)this.settings.targets.ssh={type:t,path:e.value,server:this.settings._internal.ssh.value},"sshkey"in this.settings._internal&&(this.settings.targets.ssh.sshkey=this.settings._internal.sshkey.value);else if("raw"===t)this.settings.targets.raw={type:t,partition:this.settings._internal.raw.value};else{if(!t||t in i||t in r)return;const n=JSON.stringify(this.settings._internal[t]).toLowerCase();(n.indexOf("uuid")>-1||n.indexOf("label")>-1||n.indexOf("/dev")>-1)&&(this.settings.targets.mount={type:"mount",path:e.value,fsType:t,partition:this.settings._internal[t].value})}})),0===Object.keys(this.settings.targets).length&&(this.settings.targets.local={type:"local",path:e.value}),this.settings.compression.allowed=!("core_collector"in this.settings._internal)||0===this.settings._internal.core_collector.value.trim().indexOf("makedumpfile"),this.settings.compression.enabled="core_collector"in this.settings._internal&&this.settings._internal.core_collector.value&&-1!=this.settings._internal.core_collector.value.split(" ").indexOf("-c")}_updateSetting(e,t,n){t in e._internal?n?e._internal[t].value=n:delete e._internal[t]:n&&(e._internal[t]={value:n})}_persistSettings(e){if(Object.keys(e.targets).length>0){const t=Object.values(e.targets)[0];this._updateSetting(e,"path",t.path);for(const t in this.settings.targets){const n=this.settings.targets[t];"mount"==n.type?delete e._internal[n.fsType]:"ssh"==n.type?(delete e._internal.ssh,delete e._internal.sshkey):delete e._internal[t]}"nfs"===t.type?this._updateSetting(e,"nfs",[t.server,t.export].join(":")):"ssh"===t.type?(this._updateSetting(e,"ssh",t.server),"sshkey"in t&&this._updateSetting(e,"sshkey",t.sshkey)):"raw"===t.type?this._updateSetting(e,"raw",t.partition):"mount"===t.type&&this._updateSetting(e,t.fsType,t.partition),"core_collector"in e._internal&&e._internal.core_collector.value.includes("makedumpfile")&&("ssh"!==t.type||e._internal.core_collector.value.includes("-F")?e._internal.core_collector.value.includes("-F")&&(e._internal.core_collector.value=e._internal.core_collector.value.split(" ").filter((e=>"-F"!=e)).join(" ")):e._internal.core_collector.value+=" -F")}return this.settings.compression.enabled!=e.compression.enabled&&(e.compression.enabled?"core_collector"in e._internal?e._internal.core_collector.value=e._internal.core_collector.value+" -c":e._internal.core_collector={value:"makedumpfile -c"}:"core_collector"in this.settings._internal?e._internal.core_collector.value=e._internal.core_collector.value.split(" ").filter((e=>"-c"!=e)).join(" "):delete e._internal.core_collector),e}_generateConfig(e){e=this._persistSettings(e);const t=this._lines.slice(0),n=[];return Object.keys(this._originalSettings).forEach((o=>{if(!(o in e._internal)||!(o in e._internal)||!e._internal[o].value){const e=this._originalSettings[o];void 0!==e.comment?t[e.index]="#"+e.origLine:n.push(e.index)}})),Object.keys(e._internal).forEach((n=>{const o=e._internal[n];let r=n+" "+o.value;if(o.comment&&(r=r+" "+o.comment),!(n in this._originalSettings))return void t.push(r);const i=this._originalSettings[n];t[i.index]=r})),n.sort().reverse().forEach((e=>{t.splice(e,1)})),t.join("\n")+"\n"}write(e){return this._fileHandle.modify((t=>(this._parseText(t,!0),this._generateConfig(e))))}}},7099:(e,t,n)=>{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(_(r>>>18&63),_(r>>>12&63),_(r>>>6&63),_(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,_((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const $={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function z(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},4810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(9785),i=n.n(r),s=n(8553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(6732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},5174:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(4810),r=n(7099),i=n(7356),s=e([o]);o=(s.then?(await s)():s)[0];const a=["# top comment","","foo bar"," indented value","","will disappear","key value #comment"].join("\n"),l=["# top comment","","foo moo","indented value","","#key value #comment","hooray value",""].join("\n");o.Z.test("config_update",(function(e){const t=e.async();e.expect(6);const n=new Promise((e=>{this.dataWasChangedResolve=e}));let o;const s=(t,n)=>{e.equal(n._internal.foo.value,"moo","value changed correctly"),e.equal("key"in n._internal,!1,"setting with comment deleted correctly"),e.equal("will"in n._internal,!1,"setting without comment deleted correctly"),e.equal(n._internal.hooray.value,"value","value added correctly"),e.equal(o._rawContent,l,"raw text for changed config is correct"),this.dataWasChangedResolve()},u="cockpit_config_read",c=r.Z.file(u);c.replace(a).then((()=>{e.equal(c.path,u,"file has correct path"),o=new i.l(u),o.wait().then((()=>{o.settings._internal.foo.value="moo",delete o.settings._internal.key,delete o.settings._internal.will,o.settings._internal.hooray={value:"value"},o.addEventListener("kdumpConfigChanged",s),o.write(o.settings).then((()=>n.then(t)))}))}))})),window.setTimeout((function(){o.Z.start()})),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(5174)})(); \ No newline at end of file +(()=>{var e,t,n,o,r={6732:(e,t,n)=>{"use strict";n.r(t)},8553:function(e,t,n){var o,r;!function(i,s){"use strict";o=function(){var e="1.5.1",t=Array.prototype.slice;function n(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}function o(e,t){var n;for(n=0;n{var o;e=n.nmd(e),function(){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=t&&I("array",e)?[]:{};for(var o in e)if(_.call(e,o)){var r=e[o];n[o]=r===Object(r)?T(r,t):r}return n}function O(e,t){if(e!==Object(e))return e;var n={};for(var o in t)_.call(t,o)&&_.call(e,o)&&(n[o]=O(e[o],t[o]));return n}function N(e,t,n){for(var o in t)_.call(t,o)&&(void 0===t[o]?delete e[o]:n&&void 0!==e[o]||(e[o]=t[o]));return e}function M(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=x.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return r(e)}}function I(e,t){return M(t)===e}function q(e,t){for(var n=e+""+t,o=0,r=0;rs.maxDepth)return"[object Array]";this.up();for(var o=e.length,r=new Array(o);o--;)r[o]=this.parse(e[o],void 0,t);return this.down(),n("[",r,"]")}var i=/^function (\w+)/,s={parse:function(e,t,n){var o=(n=n||[]).indexOf(e);if(-1!==o)return"recursion(".concat(o-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],s=r(i);if("function"===s){n.push(e);var a=i.call(this,e,n);return n.pop(),a}return"string"===s?i:"[ERROR: Missing QUnit.dump formatter for type "+t+"]"},typeOf:function(e){var t;return t=null===e?"null":void 0===e?"undefined":I("regexp",e)?"regexp":I("date",e)?"date":I("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===x.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":r(e),t},separator:function(){return this.multiline?this.HTML?"
                                                                                                                      ":"\n":this.HTML?" ":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g," ").replace(/ /g," ")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:R.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",o="name"in e?e.name:(i.exec(e)||[])[1];return o&&(t+=" "+o),n(t=[t+="(",s.parse(e,"functionArgs"),"){"].join(""),s.parse(e,"functionCode"),"}")},array:o,nodelist:o,arguments:o,object:function(e,t){var o=[];if(s.maxDepth&&s.depth>s.maxDepth)return"[object Object]";s.up();var r=[];for(var i in e)r.push(i);var a=["message","name"];for(var l in a){var u=a[l];u in e&&!j(u,r)&&r.push(u)}r.sort();for(var c=0;c",o=e.nodeName.toLowerCase(),r=t+o,i=e.attributes;if(i)for(var a=0,l=i.length;a0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e.failed+=this.globalFailureCount,e.total+=this.globalFailureCount,e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,o=e.skipped,r=e.todo;return n?"failed":o===t?"skipped":r===t?"todo":"passed"}}]),e}(),D=[],F=new B;function H(e,t,n){var o=D.length?D.slice(-1)[0]:null,r=null!==o?[o.name,e].join(" > "):e,i=o?o.suiteReport:F,s=null!==o&&o.skip||n.skip,a=null!==o&&o.todo||n.todo,l={};o&&N(l,o.testEnvironment),N(l,t);var u={name:r,parentModule:o,hooks:{before:[],beforeEach:[],afterEach:[],after:[]},testEnvironment:l,tests:[],moduleId:q(r),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new B(e,i),stats:null,skip:s,todo:!s&&a,ignored:n.ignored||!1};return o&&o.childModules.push(u),R.modules.push(u),u}function Q(e,t,n){var o=t[n];"function"==typeof o&&e[n].push(o),delete t[n]}function z(e,t){return function(n){R.currentModule!==e&&k.warn("The `"+t+"` hook was called inside the wrong module (`"+R.currentModule.name+"`). Instead, use hooks provided by the callback to the containing module (`"+e.name+"`). This will become an error in QUnit 3.0."),e.hooks[t].push(n)}}function $(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===M(t)&&(n=t,t=void 0);var r=H(e,t,o),i=r.testEnvironment,s=r.hooks;Q(s,i,"before"),Q(s,i,"beforeEach"),Q(s,i,"afterEach"),Q(s,i,"after");var a={before:z(r,"before"),beforeEach:z(r,"beforeEach"),afterEach:z(r,"afterEach"),after:z(r,"after")},l=R.currentModule;if(R.currentModule=r,"function"===M(n)){D.push(r);try{var u=n.call(r.testEnvironment,a);null!=u&&"function"===M(u.then)&&k.warn("Returning a promise from a module callback is not supported. Instead, use hooks for async behavior. This will become an error in QUnit 3.0.")}finally{D.pop(),R.currentModule=r.parentModule||l}}}var J=!1;function G(e,t,n){var o,r=J&&(o=R.modules.filter((function(e){return!e.ignored})).map((function(e){return e.moduleId})),!D.some((function(e){return o.includes(e.moduleId)})));$(e,t,n,{ignored:r})}G.only=function(){J||(R.modules.length=0,R.queue.length=0,R.currentModule.ignored=!0),J=!0,$.apply(void 0,arguments)},G.skip=function(e,t,n){J||$(e,t,n,{skip:!0})},G.todo=function(e,t,n){J||$(e,t,n,{todo:!0})};var Z=(K(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function W(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),Z){for(var o=[],r=t;r0&&this.test.internalResetTimeout(this.test.timeout))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===M(e)||""===e?t="You must provide a message to assert.step":"string"!==M(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=void 0===e?1:e;return this.test.internalStop(t)}},{key:"push",value:function(t,n,o,r,i){return k.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:R.current.assert).pushResult({result:t,actual:n,expected:o,message:r,negative:i})}},{key:"pushResult",value:function(t){var n=this,o=n instanceof e&&n.test||R.current;if(!o)throw new Error("assertion outside test context, in "+K(2));return n instanceof e||(n=o.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(P.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(P.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var o=t==e;this.pushResult({result:o,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var o=t!=e;this.pushResult({result:o,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=T(e),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"propContains",value:function(e,t,n){e=O(e,t),t=T(t,!1),this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notPropContains",value:function(e,t,n){e=O(e,t),t=T(t),this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:L(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!L(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,o){var r=l(V(n,o,"throws"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current;if("function"===M(t)){var s,a=!1;i.ignoreGlobalErrors=!0;try{t.call(i.testEnvironment)}catch(e){s=e}if(i.ignoreGlobalErrors=!1,s){var u=l(X(s,n,o),3);a=u[0],n=u[1],o=u[2]}i.assert.pushResult({result:a,actual:s&&A(s),expected:n,message:o})}else{var c='The value provided to `assert.throws` in "'+i.testName+'" was not a function.';i.assert.pushResult({result:!1,actual:t,message:c})}}},{key:"rejects",value:function(t,n,o){var r=l(V(n,o,"rejects"),2);n=r[0],o=r[1];var i=this instanceof e&&this.test||R.current,s=t&&t.then;if("function"===M(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+i.testName+'" did not reject.';i.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t,r=l(X(e,n,o),3);t=r[0],n=r[1],o=r[2],i.assert.pushResult({result:t,actual:e&&A(e),expected:n,message:o}),a()}))}var u='The value provided to `assert.rejects` in "'+i.testName+'" was not a promise.';i.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function V(e,t,n){var o=M(e);if("string"===o){if(void 0===t)return t=e,[e=void 0,t];throw new Error("assert."+n+" does not accept a string value for the expected argument.\nUse a non-string object value (e.g. RegExp or validator function) instead if necessary.")}if(!(!e||"regexp"===o||"function"===o||"object"===o))throw new Error("Invalid expected value type ("+o+") provided to assert."+n+".");return[e,t]}function X(e,t,n){var o=!1,r=M(t);if(t){if("regexp"===r)o=t.test(A(e)),t=String(t);else if("function"===r&&void 0!==t.prototype&&e instanceof t)o=!0;else if("object"===r)o=e instanceof t.constructor&&e.name===t.name&&e.message===t.message,t=A(t);else if("function"===r)try{o=!0===t.call({},e),t=null}catch(e){t=A(e)}}else o=!0;return[o,t,n]}Y.prototype.raises=Y.prototype.throws;var ee=Object.create(null),te=["error","runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function ne(e,t){if("string"!==M(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=ee[e],o=n?u(n):[],r=0;r=0;e--){var n=t.key(e);0===n.indexOf("qunit-test-")&&t.removeItem(n)}}))}();e=R.queue.shift()(),void ce.push.apply(ce,u(e)),ue>0&&ue--;var e;fe()}()}function de(e){if(ce.length&&!R.blocking){var t=S.now()-e;if(!g||R.updateRate<=0||t>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var o=Math.floor(le()*(R.queue.length-ue+1));R.queue.splice(ue+o,0,e)}else R.queue.push(e)},advance:fe,taskCount:function(){return ce.length}},pe=function(){function e(t,n,o){i(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!o.skip,this.todo=!!o.todo,this.valid=o.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return a(e,[{key:"start",value:function(e){return e&&(this._startTime=S.now(),S.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=S.now(),S)){S.mark("qunit_test_end");var t=this.fullName.join(" – ");S.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return N(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function ge(e){if(this.expected=null,this.assertions=[],this.module=R.currentModule,this.steps=[],this.timeout=void 0,this.data=void 0,this.withData=!1,this.pauses=new w,this.nextPauseId=1,this.stackOffset=3,N(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),he.finished)k.warn("Unexpected test after runEnd. This is unstable and will fail in QUnit 3.0.");else{if(!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++ge.count,this.errorForStack=new Error,this.callback&&this.callback.validTest&&(this.errorForStack.stack=void 0),this.testReport=new pe(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,o=this.module.tests;n0&&me("Test did not finish synchronously even though assert.timeout( 0 ) was used.",K(2))}},after:function(){!function(){var e=R.pollution;ve();var t=C(R.pollution,e);t.length>0&&me("Introduced global variable(s): "+t.join(", "));var n=C(e,R.pollution);n.length>0&&me("Deleted global variable(s): "+n.join(", "))}()},queueGlobalHook:function(e,t){var n=this;return function(){var o;if(R.current=n,R.notrycatch)o=e.call(n.testEnvironment,n.assert);else try{o=e.call(n.testEnvironment,n.assert)}catch(e){return void n.pushFailure("Global "+t+" failed on "+n.testName+": "+A(e),W(e,0))}n.resolvePromise(o,t)}},queueHook:function(e,t,n){var o=this,r=function(){var n=e.call(o.testEnvironment,o.assert);o.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;o.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===Ce(e).filter((function(e){return!e.skip})).length-1}(n)||!(R.queue.length>0||he.taskCount()>2))if(R.current=o,R.notrycatch)r();else try{r()}catch(e){o.pushFailure(t+" failed on "+o.testName+": "+(e.message||e),W(e,0))}}},hooks:function(e){var t=[];return this.skip||(!function(n){if(("beforeEach"===e||"afterEach"===e)&&R.globalHooks[e])for(var o=0;o Test: "+n+"\n> Message: "+t+"\n")}var o={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:S.now()-this.started,todo:!!this.todo};if(_.call(e,"expected")&&(o.expected=e.expected),!e.result){var r=e.source||K();r&&(o.source=r)}this.logAssertion(o),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof ge))throw new Error("pushFailure() assertion outside test context, was "+K(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){ae("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),ne("assertion",t)},internalResetTimeout:function(e){m(R.timeout),R.timeout=g(R.timeoutHandler(e),e)},internalStop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;R.blocking=!0;var t,n=this,o=this.nextPauseId++,r={cancelled:!1,remaining:e};function i(){if(!r.cancelled){if(void 0===R.current)throw new Error("Unexpected release of async pause after tests finished.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(R.current!==n)throw new Error("Unexpected release of async pause during a different test.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));if(r.remaining<=0)throw new Error("Tried to release async pause that was already released.\n"+"> Test: ".concat(n.testName," [async #").concat(o,"]"));r.remaining--,0===r.remaining&&n.pauses.delete(o),Se(n)}}(n.pauses.set(o,r),g)&&("number"==typeof n.timeout?t=n.timeout:"number"==typeof R.testTimeout&&(t=R.testTimeout),"number"==typeof t&&t>0&&(R.timeoutHandler=function(e){return function(){R.timeout=null,r.cancelled=!0,n.pauses.delete(o),n.pushFailure("Test took longer than ".concat(e,"ms; test timed out."),K(2)),Se(n)}},m(R.timeout),R.timeout=g(R.timeoutHandler(t),t)));return i},resolvePromise:function(e,t){if(null!=e){var n=this,o=e.then;if("function"===M(o)){var r=n.internalStop(),i=function(){r()};if(R.notrycatch)o.call(e,i);else{o.call(e,i,(function(e){var o="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(o,W(e,0)),ve(),Ee(n)}))}}}},valid:function(){var e=R.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=R.module&&R.module.toLowerCase(),o=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(R.moduleId&&R.moduleId.length>0&&!function e(t){return j(t.moduleId,R.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(R.testId&&R.testId.length>0&&!j(this.testId,R.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],o):this.stringFilter(e,o)))))},regexFilter:function(e,t,n,o){return new RegExp(t,n).test(o)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var be=!1;function ye(e){be||R.currentModule.ignored||new ge(e).queue()}function we(e){R.currentModule.ignored||(be||(R.queue.length=0,be=!0),new ge(e).queue())}function ke(e,t){ye({testName:e,callback:t})}function xe(e,t){return"".concat(e," [").concat(t,"]")}function _e(e,t){if(Array.isArray(e))for(var n=0;n0||(g?(m(R.timeout),R.timeout=g((function(){e.pauses.size>0||(m(R.timeout),R.timeout=null,R.blocking=!1,he.advance())}))):(R.blocking=!1,he.advance()))}function Ce(e){for(var t=[].concat(e.tests),n=u(e.childModules);n.length;){var o=n.shift();t.push.apply(t,o.tests),n.push.apply(n,u(o.childModules))}return t}function je(e){return e.testsRun+e.testsIgnored===Ce(e).length}function Te(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}N(ke,{todo:function(e,t){ye({testName:e,callback:t,todo:!0})},skip:function(e){ye({testName:e,skip:!0})},only:function(e,t){we({testName:e,callback:t})},each:function(e,t,n){_e(t,(function(t,o){ye({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))}}),ke.todo.each=function(e,t,n){_e(t,(function(t,o){ye({testName:xe(e,o),callback:n,todo:!0,withData:!0,stackOffset:5,data:t})}))},ke.skip.each=function(e,t){_e(t,(function(t,n){ye({testName:xe(e,n),stackOffset:5,skip:!0})}))},ke.only.each=function(e,t,n){_e(t,(function(t,o){we({testName:xe(e,o),callback:n,withData:!0,stackOffset:5,data:t})}))};var Oe,Ne,Me,Ie,qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testStart",this.onTestStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onError",value:function(e){this.log("error",e)}},{key:"onRunStart",value:function(e){this.log("runStart",e)}},{key:"onTestStart",value:function(e){this.log("testStart",e)}},{key:"onTestEnd",value:function(e){this.log("testEnd",e)}},{key:"onRunEnd",value:function(e){this.log("runEnd",e)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Ae=!0;if("undefined"!=typeof process){var Le=process.env;Oe=Le.FORCE_COLOR,Ne=Le.NODE_DISABLE_COLORS,Me=Le.NO_COLOR,Ie=Le.TERM,Ae=process.stdout&&process.stdout.isTTY}var Re={enabled:!Ne&&null==Me&&"dumb"!==Ie&&(null!=Oe&&"0"!==Oe||Ae),reset:Pe(0,0),bold:Pe(1,22),dim:Pe(2,22),italic:Pe(3,23),underline:Pe(4,24),inverse:Pe(7,27),hidden:Pe(8,28),strikethrough:Pe(9,29),black:Pe(30,39),red:Pe(31,39),green:Pe(32,39),yellow:Pe(33,39),blue:Pe(34,39),magenta:Pe(35,39),cyan:Pe(36,39),white:Pe(37,39),gray:Pe(90,39),grey:Pe(90,39),bgBlack:Pe(40,49),bgRed:Pe(41,49),bgGreen:Pe(42,49),bgYellow:Pe(43,49),bgBlue:Pe(44,49),bgMagenta:Pe(45,49),bgCyan:Pe(46,49),bgWhite:Pe(47,49)};function Ue(e,t){for(var n,o=0,r="",i="";o1&&void 0!==arguments[1]?arguments[1]:4;if(void 0===e&&(e=String(e)),"number"!=typeof e||isFinite(e)||(e=String(e)),"number"==typeof e)return JSON.stringify(e);if("string"==typeof e){var n=/['"\\/[{}\]\r\n]/,o=/[-?:,[\]{}#&*!|=>'"%@`]/,r=/(^\s|\s$)/,i=/^[\d._-]+$/,s=/^(true|false|y|n|yes|no|on|off)$/i;if(""===e||n.test(e)||o.test(e[0])||r.test(e)||i.test(e)||s.test(e)){if(!/\n/.test(e))return JSON.stringify(e);var a=new Array(t+1).join(" "),l=e.match(/\n+$/),u=l?l[0].length:0;if(1===u){var c=e.replace(/\n$/,"").split("\n").map((function(e){return a+e}));return"|\n"+c.join("\n")}var f=e.split("\n").map((function(e){return a+e}));return"|+\n"+f.join("\n")}return e}return JSON.stringify(Fe(e),null,2)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(-1!==t.indexOf(e))return"[Circular]";var n,o=Object.prototype.toString.call(e).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase();switch(o){case"array":t.push(e),n=e.map((function(e){return Fe(e,t)})),t.pop();break;case"object":t.push(e),n={},Object.keys(e).forEach((function(o){n[o]=Fe(e[o],t)})),t.pop();break;default:n=e}return n}var He=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.log=n.log||Function.prototype.bind.call(p.log,p),this.testCount=0,this.ended=!1,this.bailed=!1,t.on("error",this.onError.bind(this)),t.on("runStart",this.onRunStart.bind(this)),t.on("testEnd",this.onTestEnd.bind(this)),t.on("runEnd",this.onRunEnd.bind(this))}return a(e,[{key:"onRunStart",value:function(e){this.log("TAP version 13")}},{key:"onError",value:function(e){this.bailed||(this.bailed=!0,this.ended||(this.testCount=this.testCount+1,this.log(Re.red("not ok ".concat(this.testCount," global failure"))),this.logError(e)),this.log("Bail out! "+A(e).split("\n")[0]),this.ended&&this.logError(e))}},{key:"onTestEnd",value:function(e){var t=this;this.testCount=this.testCount+1,"passed"===e.status?this.log("ok ".concat(this.testCount," ").concat(e.fullName.join(" > "))):"skipped"===e.status?this.log(Re.yellow("ok ".concat(this.testCount," # SKIP ").concat(e.fullName.join(" > ")))):"todo"===e.status?(this.log(Re.cyan("not ok ".concat(this.testCount," # TODO ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e,"todo")}))):(this.log(Re.red("not ok ".concat(this.testCount," ").concat(e.fullName.join(" > ")))),e.errors.forEach((function(e){return t.logAssertion(e)})))}},{key:"onRunEnd",value:function(e){this.ended=!0,this.log("1..".concat(e.testCounts.total)),this.log("# pass ".concat(e.testCounts.passed)),this.log(Re.yellow("# skip ".concat(e.testCounts.skipped))),this.log(Re.cyan("# todo ".concat(e.testCounts.todo))),this.log(Re.red("# fail ".concat(e.testCounts.failed)))}},{key:"logAssertion",value:function(e,t){var n=" ---";n+="\n message: ".concat(De(e.message||"failed")),n+="\n severity: ".concat(De(t||"failed")),Be.call(e,"actual")&&(n+="\n actual : ".concat(De(e.actual))),Be.call(e,"expected")&&(n+="\n expected: ".concat(De(e.expected))),e.stack&&(n+="\n stack: ".concat(De(e.stack+"\n"))),n+="\n ...",this.log(n)}},{key:"logError",value:function(e){var t=" ---";t+="\n message: ".concat(De(A(e))),t+="\n severity: ".concat(De("failed")),e&&e.stack&&(t+="\n stack: ".concat(De(e.stack+"\n"))),t+="\n ...",this.log(t)}}],[{key:"init",value:function(t,n){return new e(t,n)}}]),e}(),Qe={console:qe,tap:He};function ze(e){return function(t){R.globalHooks[e]||(R.globalHooks[e]=[]),R.globalHooks[e].push(t)}}var $e={beforeEach:ze("beforeEach"),afterEach:ze("afterEach")};function Je(e){R.current?R.current.assert.pushResult({result:!1,message:"global failure: ".concat(A(e)),source:e&&e.stack||K(2)}):(F.globalFailureCount++,R.stats.bad++,R.stats.all++,ne("error",e))}var Ge={};R.currentModule.suiteReport=F;var Ze=!1,We=!1;function Ke(){We=!0,g?g((function(){Ve()})):Ve()}function Ye(){R.blocking=!1,he.advance()}function Ve(){if(R.started)Ye();else{R.started=S.now(),""===R.modules[0].name&&0===R.modules[0].tests.length&&R.modules.shift();for(var e=R.modules.length,t=[],n=0;n1)throw new Error("Called start() outside of a test context too many times");if(R.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!R.pageLoaded)return R.autostart=!0,void(v||Ge.load());Ke()},onUnhandledRejection:function(e){k.warn("QUnit.onUnhandledRejection is deprecated and will be removed in QUnit 3.0. Please use QUnit.onUncaughtException instead."),Je(e)},extend:function(){k.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n=0;--n){var o=e[n];if(null!==o){var r=o.score;r>t&&(t=r)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var o=t;Array.isArray(t)||(o=t.split("."));for(var r=o.length,i=-1;e&&++i>1]=e[n],r=1+(n<<1)}for(var s=n-1>>1;n>0&&o.score>1)e[n]=e[s];e[n]=o}return n.add=function(n){var o=t;e[t++]=n;for(var r=o-1>>1;o>0&&n.score>1)e[o]=e[r];e[o]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],o(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,o()},n},h=d();return function t(r){var p={single:function(e,t,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=p.getPreparedSearch(e)),t?(f(t)||(t=p.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:t?t[0]:null}];if(!e)return i;var o=(e=p.prepareSearch(e))[0],s=n&&n.threshold||r&&r.threshold||-9007199254740991,a=n&&n.limit||r&&r.limit||9007199254740991,l=(n&&void 0!==n.allowTypo?n.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,d=0,g=0,m=t.length;if(n&&n.keys)for(var v=n.scoreFn||u,b=n.keys,y=b.length,w=m-1;w>=0;--w){for(var k=t[w],x=new Array(y),_=y-1;_>=0;--_)(C=c(k,S=b[_]))?(f(C)||(C=p.getPrepared(C)),x[_]=l(e,C,o)):x[_]=null;x.obj=k;var E=v(x);null!==E&&(Eh.peek().score&&h.replaceTop(x))))}else if(n&&n.key){var S=n.key;for(w=m-1;w>=0;--w)(C=c(k=t[w],S))&&(f(C)||(C=p.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}else for(w=m-1;w>=0;--w){var C,j;(C=t[w])&&(f(C)||(C=p.getPrepared(C)),null!==(j=l(e,C,o))&&(j.scoreh.peek().score&&h.replaceTop(j)))))}if(0===d)return i;var T=new Array(d);for(w=d-1;w>=0;--w)T[w]=h.poll();return T.total=d+g,T},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,l){if("farzher"==t)return a([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!t)return a(i);var h=(t=p.prepareSearch(t))[0],g=d(),m=n.length-1,v=o&&o.threshold||r&&r.threshold||-9007199254740991,b=o&&o.limit||r&&r.limit||9007199254740991,y=(o&&void 0!==o.allowTypo?o.allowTypo:!r||void 0===r.allowTypo||r.allowTypo)?p.algorithm:p.algorithmNoTypo,w=0,k=0;function x(){if(s)return l("canceled");var r=Date.now();if(o&&o.keys)for(var d=o.scoreFn||u,_=o.keys,E=_.length;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));for(var S=n[m],C=new Array(E),j=E-1;j>=0;--j)(N=c(S,O=_[j]))?(f(N)||(N=p.getPrepared(N)),C[j]=y(t,N,h)):C[j]=null;C.obj=S;var T=d(C);null!==T&&(Tg.peek().score&&g.replaceTop(C))))}else if(o&&o.key)for(var O=o.key;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));(N=c(S=n[m],O))&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}else for(;m>=0;--m){if(m%1e3==0&&Date.now()-r>=10)return void(e?setImmediate(x):setTimeout(x));var N,M;(N=n[m])&&(f(N)||(N=p.getPrepared(N)),null!==(M=y(t,N,h))&&(M.scoreg.peek().score&&g.replaceTop(M)))))}if(0===w)return a(i);for(var I=new Array(w),q=w-1;q>=0;--q)I[q]=g.poll();I.total=w+k,a(I)}e?setImmediate(x):x()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if("function"==typeof t)return p.highlightCallback(e,t);if(null===e)return null;void 0===t&&(t=""),void 0===n&&(n="");for(var o="",r=0,i=!1,s=e.target,a=s.length,l=e.indexes,u=0;u999)return p.prepare(e);var t=n.get(e);return void 0!==t||(t=p.prepare(e),n.set(e,t)),t},getPreparedSearch:function(e){if(e.length>999)return p.prepareSearch(e);var t=o.get(e);return void 0!==t||(t=p.prepareSearch(e),o.set(e,t)),t},algorithm:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0,f=0;;){if(n===o[u]){if(s[f++]=u,++l===r)break;n=e[0===c?l:c===l?l+1:c===l-1?l-1:l]}if(++u>=i)for(;;){if(l<=1)return null;if(0===c){if(n===e[--l])continue;c=l}else{if(1===c)return null;if((n=e[1+(l=--c)])===e[l])continue}u=s[(f=l)-1]+1;break}}l=0;var d=0,h=!1,g=0,m=t._nextBeginningIndexes;null===m&&(m=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target));var v=u=0===s[0]?0:m[s[0]-1];if(u!==i)for(;;)if(u>=i){if(l<=0){if(++d>r-2)break;if(e[d]===e[d+1])continue;u=v;continue}--l,u=m[a[--g]]}else if(e[0===d?l:d===l?l+1:d===l-1?l-1:l]===o[u]){if(a[g++]=u,++l===r){h=!0;break}++u}else u=m[u];if(h)var b=a,y=g;else b=s,y=f;for(var w=0,k=-1,x=0;x=0;--x)t.indexes[x]=b[x];return t},algorithmNoTypo:function(e,t,n){for(var o=t._targetLowerCodes,r=e.length,i=o.length,l=0,u=0,c=0;;){if(n===o[u]){if(s[c++]=u,++l===r)break;n=e[l]}if(++u>=i)return null}l=0;var f=!1,d=0,h=t._nextBeginningIndexes;if(null===h&&(h=t._nextBeginningIndexes=p.prepareNextBeginningIndexes(t.target)),(u=0===s[0]?0:h[s[0]-1])!==i)for(;;)if(u>=i){if(l<=0)break;--l,u=h[a[--d]]}else if(e[l]===o[u]){if(a[d++]=u,++l===r){f=!0;break}++u}else u=h[u];if(f)var g=a,m=d;else g=s,m=c;for(var v=0,b=-1,y=0;y=0;--y)t.indexes[y]=g[y];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],o=e.toLowerCase(),r=0;r=65&&a<=90,u=l||a>=97&&a<=122||a>=48&&a<=57,c=l&&!r||!i||!u;r=l,i=u,c&&(n[o++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=p.prepareBeginningIndexes(e),o=[],r=n[0],i=0,s=0;ss?o[s]=r:(r=n[++i],o[s]=void 0===r?t:r);return o},cleanup:l,new:t};return p}()},e.exports?e.exports=n():t.fuzzysort=n()}(Xe);var et=Xe.exports,tt={failedTests:[],defined:0,completed:0};function nt(e){return e?(""+e).replace(/['"<>&]/g,(function(e){switch(e){case"'":return"'";case'"':return""";case"<":return"<";case">":return">";case"&":return"&"}})):""}!function(){if(h&&v){var e=Ge.config,t=[],n=!1,o=Object.prototype.hasOwnProperty,r=T({filter:void 0,module:void 0,moduleId:void 0,testId:void 0}),i=null;Ge.on("runStart",(function(e){tt.defined=e.testCounts.total})),Ge.begin((function(){U()})),Ge.on("runEnd",(function(t){var n,o,r,i=E("qunit-banner"),s=E("qunit-tests"),a=E("qunit-abort-tests-button"),l=e.stats.all-e.stats.bad,u=[t.testCounts.total," tests completed in ",Math.round(t.runtime)," milliseconds, with ",t.testCounts.failed," failed, ",t.testCounts.skipped," skipped, and ",t.testCounts.todo," todo.
                                                                                                                      ","",l," assertions of ",e.stats.all," passed, ",e.stats.bad," failed.",B(tt.failedTests)].join("");if(a&&a.disabled){u="Tests aborted after "+Math.round(t.runtime)+" milliseconds.";for(var c=0;c":"Running: ",D(e.name,e.module),B(tt.failedTests)].join(""))})),Ge.log((function(e){var t=E("qunit-test-output-"+e.testId);if(t){var n,r,i,s=nt(e.message)||(e.result?"okay":"failed");s=""+s+"",s+="@ "+Math.round(e.runtime)+" ms";var a=!1;!e.result&&o.call(e,"expected")?(n=e.negative?"NOT "+Ge.dump.parse(e.expected):Ge.dump.parse(e.expected),r=Ge.dump.parse(e.actual),s+="",r!==n?(s+="","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(a=!0,i=((i=e.actual-e.expected)>0?"+":"")+i):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(a=H(i=Ge.diff(n,r)).length!==H(n).length+H(r).length),a&&(s+="")):-1!==n.indexOf("[object Array]")||-1!==n.indexOf("[object Object]")?s+="":s+="",e.source&&(s+=""),s+="
                                                                                                                      Expected:
                                                                                                                      "+nt(n)+"
                                                                                                                      Result:
                                                                                                                      "+nt(r)+"
                                                                                                                      Diff:
                                                                                                                      "+i+"
                                                                                                                      Message: Diff suppressed as the depth of object is more than current max depth ("+Ge.config.maxDepth+").

                                                                                                                      Hint: Use QUnit.dump.maxDepth to run with a higher max depth or Rerun without max depth.

                                                                                                                      Message: Diff suppressed as the expected and actual results have an equivalent serialization
                                                                                                                      Source:
                                                                                                                      "+nt(e.source)+"
                                                                                                                      "):!e.result&&e.source&&(s+="
                                                                                                                      Source:
                                                                                                                      "+nt(e.source)+"
                                                                                                                      ");var l=t.getElementsByTagName("ol")[0],u=v.createElement("li");u.className=e.result?"pass":"fail",u.innerHTML=s,l.appendChild(u)}})),Ge.testDone((function(o){var r=E("qunit-tests"),i=E("qunit-test-output-"+o.testId);if(r&&i){var s;_(i,"running"),s=o.failed>0?"failed":o.todo?"todo":o.skipped?"skipped":"passed";var a=i.getElementsByTagName("ol")[0],l=o.passed,u=o.failed,c=o.failed>0?o.todo:!o.todo;c?k(a,"qunit-collapsed"):(tt.failedTests.push(o.testId),e.collapse&&(n?k(a,"qunit-collapsed"):n=!0));var f=i.firstChild,h=u?""+u+", "+l+", ":"";if(f.innerHTML+=" ("+h+o.assertions.length+")",tt.completed++,o.skipped){i.className="skipped";var p=v.createElement("em");p.className="qunit-skipped-label",p.innerHTML="skipped",i.insertBefore(p,f)}else{if(d(f,"click",(function(){x(a,"qunit-collapsed")})),i.className=c?"pass":"fail",o.todo){var g=v.createElement("em");g.className="qunit-todo-label",g.innerHTML="todo",i.className+=" todo",i.insertBefore(g,f)}var m=v.createElement("span");m.className="runtime",m.innerHTML=Math.round(o.runtime)+" ms",i.insertBefore(m,a)}if(o.source){var b=v.createElement("p");b.innerHTML="Source: "+nt(o.source),k(b,"qunit-source"),c&&k(b,"qunit-collapsed"),d(f,"click",(function(){x(b,"qunit-collapsed")})),i.appendChild(b)}e.hidepassed&&("passed"===s||o.skipped)&&(t.push(i),r.removeChild(i))}})),Ge.on("error",(function(e){var t=P("global failure");if(t){var n=nt(A(e));n=""+n+"",e&&e.stack&&(n+="
                                                                                                                      Source:
                                                                                                                      "+nt(e.stack)+"
                                                                                                                      ");var o=t.getElementsByTagName("ol")[0],r=v.createElement("li");r.className="fail",r.innerHTML=n,o.appendChild(r),t.className="fail"}}));var s,a=(s=h.phantom)&&s.version&&s.version.major>0;a&&p.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),a||"complete"!==v.readyState?d(h,"load",Ge.load):Ge.load();var l=h.onerror;h.onerror=function(t,n,o,r,i){var s=!1;if(l){for(var a=arguments.length,u=new Array(a>5?a-5:0),c=5;c=0}function k(e,t){y(e,t)||(e.className+=(e.className?" ":"")+t)}function x(e,t,n){n||void 0===n&&!y(e,t)?k(e,t):_(e,t)}function _(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=f(n)}function E(e){return v.getElementById&&v.getElementById(e)}function S(){var e=E("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ge.config.queue.length=0,!1}function C(e){var t=E("qunit-filter-input");return t.value=f(t.value),O(),e&&e.preventDefault&&e.preventDefault(),!1}function j(){var n,o=this,r={};n="selectedIndex"in o?o.options[o.selectedIndex].value||void 0:o.checked?o.defaultValue||!0:void 0,r[o.name]=n;var i=T(r);if("hidepassed"===o.name&&"replaceState"in h.history){Ge.urlParams[o.name]=n,e[o.name]=n||!1;var s=E("qunit-tests");if(s){var a=s.children.length,l=s.children;if(o.checked){for(var u=0;u-1,g=d.indexOf("skipped")>-1;(p||g)&&t.push(f)}var m,v=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(t);try{for(v.s();!(m=v.n()).done;){var b=m.value;s.removeChild(b)}}catch(e){v.e(e)}finally{v.f()}}else for(var y;null!=(y=t.pop());)s.appendChild(y)}h.history.replaceState(null,"",i)}else h.location=i}function T(e){var t="?",n=h.location;for(var r in e=N(N({},Ge.urlParams),e))if(o.call(e,r)&&void 0!==e[r])for(var i=[].concat(e[r]),s=0;s"+s.label+": "}else r+=""}return r}(),k(t,"qunit-url-config"),m(t.getElementsByTagName("input"),"change",j),m(t.getElementsByTagName("select"),"change",j),t}function I(e,t,n){return'
                                                                                                                    1. "}function q(){var t=null;i={options:[],selectedMap:new w,isDirty:function(){return u(i.selectedMap.keys()).sort().join(",")!==u(t.keys()).sort().join(",")}};for(var n=0;nRunning...
                                                                                                                       
                                                                                                                      ',e=E("qunit-testresult-controls")),e&&e.appendChild(((t=v.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",d(t,"click",S),t))}function U(){var e,t,n,o,i,s=E("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="

                                                                                                                      "+nt(v.title)+"

                                                                                                                      "+((!(e=Ge.config.testId)||e.length<=0?"":"
                                                                                                                      Rerunning selected tests: "+nt(e.join(", "))+" Run all tests
                                                                                                                      ")+"

                                                                                                                        ")),(t=E("qunit-header"))&&(t.innerHTML=""+t.innerHTML+" "),(n=E("qunit-banner"))&&(n.className=""),R(),(o=E("qunit-userAgent"))&&(o.innerHTML="",o.appendChild(v.createTextNode("QUnit "+Ge.version+"; "+b.userAgent))),(i=E("qunit-testrunner-toolbar"))&&(i.appendChild(M()),i.appendChild(L()),i.appendChild(v.createElement("div")).className="clearfix")}function P(e,t,n){var o=E("qunit-tests");if(o){var r=v.createElement("strong");r.innerHTML=D(e,n);var i=v.createElement("li");if(i.appendChild(r),void 0!==t){var s=v.createElement("a");s.innerHTML="Rerun",s.href=T({testId:t}),i.id="qunit-test-output-"+t,i.appendChild(s)}var a=v.createElement("ol");return a.className="qunit-assert-list",i.appendChild(a),o.appendChild(i),i}}function B(e){return 0===e.length?"":["
                                                                                                                        ",1===e.length?"Rerun 1 failed test":"Rerun "+e.length+" failed tests",""].join("")}function D(e,t){var n="";return t&&(n=""+nt(t)+": "),n+=""+nt(e)+""}function F(e){return[e.completed," / ",e.defined," tests completed.
                                                                                                                        "].join("")}function H(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/"/g,"").replace(/\s+/g,"")}}(),Ge.diff=function(){function e(){}var t=-1,n=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var o,r,i,s,a,l;if(o=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),r=n,i=this.diffCommonPrefix(e,t),s=e.substring(0,i),e=e.substring(i),t=t.substring(i),i=this.diffCommonSuffix(e,t),a=e.substring(e.length-i),e=e.substring(0,e.length-i),t=t.substring(0,t.length-i),l=this.diffCompute(e,t,r,o),s&&l.unshift([0,s]),a&&l.push([0,a]),this.diffCleanupMerge(l),l)},e.prototype.diffCleanupEfficiency=function(e){var n,o,r,i,s,a,l,u,c;for(n=!1,o=[],r=0,i=null,s=0,a=!1,l=!1,u=!1,c=!1;s0?o[r-1]:-1,u=c=!1),n=!0)),s++;n&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){for(var n=[],o=0;o";break;case t:n[o]=""+nt(i)+"";break;case 0:n[o]=""+nt(i)+""}}return n.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,o,r,i;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(r=0,n=o=Math.min(e.length,t.length),i=0;rn.length?e:n,a=e.length>n.length?n:e,-1!==(l=s.indexOf(a))?(i=[[1,s.substring(0,l)],[0,a],[1,s.substring(l+a.length)]],e.length>n.length&&(i[0][0]=i[2][0]=t),i):1===a.length?[[t,e],[1,n]]:(u=this.diffHalfMatch(e,n))?(c=u[0],d=u[1],f=u[2],h=u[3],p=u[4],g=this.DiffMain(c,f,o,r),m=this.DiffMain(d,h,o,r),g.concat([[0,p]],m)):o&&e.length>100&&n.length>100?this.diffLineMode(e,n,r):this.diffBisect(e,n,r)):[[t,e]]:[[1,n]]},e.prototype.diffHalfMatch=function(e,t){var n,o,r,i,s,a,l,u,c,f;if(n=e.length>t.length?e:t,o=e.length>t.length?t:e,n.length<4||2*o.length=e.length?[u,c,f,d,s]:null}return r=this,u=d(n,o,Math.ceil(n.length/4)),c=d(n,o,Math.ceil(n.length/2)),u||c?(f=c?u&&u[4].length>c[4].length?u:c:u,e.length>t.length?(i=f[0],l=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],i=f[2],l=f[3]),[i,l,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,n,o){var r,i,s,a,l,u,c,f,d;for(e=(r=this.diffLinesToChars(e,n)).chars1,n=r.chars2,s=r.lineArray,i=this.DiffMain(e,n,!1,o),this.diffCharsToLines(i,s),this.diffCleanupSemantic(i),i.push([0,""]),a=0,u=0,l=0,f="",c="";a=1&&l>=1){for(i.splice(a-u-l,u+l),a=a-u-l,d=(r=this.DiffMain(f,c,!1,o)).length-1;d>=0;d--)i.splice(a,0,r[d]);a+=r.length}l=0,u=0,f="",c=""}a++}return i.pop(),i},e.prototype.diffBisect=function(e,n,o){var r,i,s,a,l,u,c,f,d,h,p,g,m,v,b,y,w,k,x,_,E,S,C;for(r=e.length,i=n.length,a=s=Math.ceil((r+i)/2),l=2*s,u=new Array(l),c=new Array(l),f=0;fo);E++){for(S=-E+p;S<=E-g;S+=2){for(y=a+S,x=(w=S===-E||S!==E&&u[y-1]r)g+=2;else if(x>i)p+=2;else if(h&&(b=a+d-S)>=0&&b=(k=r-c[b]))return this.diffBisectSplit(e,n,w,x,o)}for(C=-E+m;C<=E-v;C+=2){for(b=a+C,_=(k=C===-E||C!==E&&c[b-1]r)v+=2;else if(_>i)m+=2;else if(!h&&(y=a+d-C)>=0&&y=(k=r-k)))return this.diffBisectSplit(e,n,w,x,o)}}return[[t,e],[1,n]]},e.prototype.diffBisectSplit=function(e,t,n,o,r){var i,s,a,l,u,c;return i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=this.DiffMain(i,a,!1,r),c=this.DiffMain(s,l,!1,r),u.concat(c)},e.prototype.diffCleanupSemantic=function(e){var n,o,r,i,s,a,l,u,c,f,d,h,p;for(n=!1,o=[],r=0,i=null,s=0,u=0,c=0,a=0,l=0;s0?o[r-1]:-1,u=0,c=0,a=0,l=0,i=null,n=!0)),s++;for(n&&this.diffCleanupMerge(e),s=1;s=(p=this.diffCommonOverlap(d,f))?(h>=f.length/2||h>=d.length/2)&&(e.splice(s,0,[0,d.substring(0,h)]),e[s-1][1]=f.substring(0,f.length-h),e[s+1][1]=d.substring(h),s++):(p>=f.length/2||p>=d.length/2)&&(e.splice(s,0,[0,f.substring(0,p)]),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-p),e[s+1][0]=t,e[s+1][1]=f.substring(p),s++),s++),s++},e.prototype.diffCommonOverlap=function(e,t){var n,o,r,i,s,a,l;if(n=e.length,o=t.length,0===n||0===o)return 0;if(n>o?e=e.substring(n-o):n1?(0!==o&&0!==r&&(0!==(a=this.diffCommonPrefix(i,s))&&(n-o-r>0&&0===e[n-o-r-1][0]?e[n-o-r-1][1]+=i.substring(0,a):(e.splice(0,0,[0,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),0!==(a=this.diffCommonSuffix(i,s))&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),0===o?e.splice(n-r,o+r,[1,i]):0===r?e.splice(n-o,o+r,[t,s]):e.splice(n-o-r,o+r,[t,s],[1,i]),n=n-o-r+(o?1:0)+(r?1:0)+1):0!==n&&0===e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",i=""}for(""===e[e.length-1][1]&&e.pop(),l=!1,n=1;n{"use strict";n.d(t,{l:()=>s});var o=n(7099);const r=["net","options","link_delay","disk_timeout","debug_mem_level","blacklist"],i=["raw","nfs","ssh","sshkey","path","core_collector","kdump_post","kdump_pre","extra_bins","extra_modules","default","force_rebuild","override_resettable","dracut_args","fence_kdump_args","fence_kdump_nodes"];class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.filename=e,this._rawContent=void 0,this._lines=[],this._originalSettings={},this._dataAvailable=new Promise((e=>{this._dataAvailableResolve=e})),this.settings={},o.Z.event_target(this),this._fileHandle=o.Z.file(e,{superuser:t}),this._fileHandle.watch((e=>{this._parseText(e)}))}close(){this._fileHandle&&(this._fileHandle.close(),this._fileHandle=void 0)}wait(){return this._dataAvailable}_parseText(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._dataAvailableResolve(),!e)return this._originalSettings=null,this.settings=null,void(t||this.dispatchEvent("kdumpConfigChanged",this.settings));e!=this._rawContent&&(this._rawContent=e,this._lines=e.split(/\r?\n/),this.settings={_internal:{},targets:{},compression:{enabled:!1,allowed:!1}},this._lines.forEach(((e,t)=>{const n=e.trim();if(0===n.indexOf("#")||0===n.length)return;const o=n.indexOf(" ");if(-1===o)return;const r=n.substring(0,o);let i=n.substring(o+1).trim();const s=i.indexOf("#");let a;-1!==s&&(a=i.substring(s).trim(),i=i.substring(0,s).trim()),this.settings._internal[r]={index:t,value:i,origLine:e,comment:a}})),this._originalSettings={},Object.keys(this.settings._internal).forEach((e=>{this._originalSettings[e]={...this.settings._internal[e]}})),this._extractSettings(),t||this.dispatchEvent("kdumpConfigChanged",this.settings))}_extractSettings(){const e=this.settings._internal.path||{value:""};Object.keys(this.settings._internal).forEach((t=>{if("nfs"===t){const n=this.settings._internal.nfs.value.match(/^([^[][^:]+|\[[^\]]+\]):(.*)$/);if(!n)return;this.settings.targets.nfs={type:t,path:e.value,server:n[1],export:n[2]}}else if("ssh"===t)this.settings.targets.ssh={type:t,path:e.value,server:this.settings._internal.ssh.value},"sshkey"in this.settings._internal&&(this.settings.targets.ssh.sshkey=this.settings._internal.sshkey.value);else if("raw"===t)this.settings.targets.raw={type:t,partition:this.settings._internal.raw.value};else{if(!t||t in i||t in r)return;const n=JSON.stringify(this.settings._internal[t]).toLowerCase();(n.indexOf("uuid")>-1||n.indexOf("label")>-1||n.indexOf("/dev")>-1)&&(this.settings.targets.mount={type:"mount",path:e.value,fsType:t,partition:this.settings._internal[t].value})}})),0===Object.keys(this.settings.targets).length&&(this.settings.targets.local={type:"local",path:e.value}),this.settings.compression.allowed=!("core_collector"in this.settings._internal)||0===this.settings._internal.core_collector.value.trim().indexOf("makedumpfile"),this.settings.compression.enabled="core_collector"in this.settings._internal&&this.settings._internal.core_collector.value&&-1!=this.settings._internal.core_collector.value.split(" ").indexOf("-c")}_updateSetting(e,t,n){t in e._internal?n?e._internal[t].value=n:delete e._internal[t]:n&&(e._internal[t]={value:n})}_persistSettings(e){if(Object.keys(e.targets).length>0){const t=Object.values(e.targets)[0];this._updateSetting(e,"path",t.path);for(const t in this.settings.targets){const n=this.settings.targets[t];"mount"==n.type?delete e._internal[n.fsType]:"ssh"==n.type?(delete e._internal.ssh,delete e._internal.sshkey):delete e._internal[t]}"nfs"===t.type?this._updateSetting(e,"nfs",[t.server,t.export].join(":")):"ssh"===t.type?(this._updateSetting(e,"ssh",t.server),"sshkey"in t&&this._updateSetting(e,"sshkey",t.sshkey)):"raw"===t.type?this._updateSetting(e,"raw",t.partition):"mount"===t.type&&this._updateSetting(e,t.fsType,t.partition),"core_collector"in e._internal&&e._internal.core_collector.value.includes("makedumpfile")&&("ssh"!==t.type||e._internal.core_collector.value.includes("-F")?e._internal.core_collector.value.includes("-F")&&(e._internal.core_collector.value=e._internal.core_collector.value.split(" ").filter((e=>"-F"!=e)).join(" ")):e._internal.core_collector.value+=" -F")}return this.settings.compression.enabled!=e.compression.enabled&&(e.compression.enabled?"core_collector"in e._internal?e._internal.core_collector.value=e._internal.core_collector.value+" -c":e._internal.core_collector={value:"makedumpfile -c"}:"core_collector"in this.settings._internal?e._internal.core_collector.value=e._internal.core_collector.value.split(" ").filter((e=>"-c"!=e)).join(" "):delete e._internal.core_collector),e}_generateConfig(e){e=this._persistSettings(e);const t=this._lines.slice(0),n=[];return Object.keys(this._originalSettings).forEach((o=>{if(!(o in e._internal)||!(o in e._internal)||!e._internal[o].value){const e=this._originalSettings[o];void 0!==e.comment?t[e.index]="#"+e.origLine:n.push(e.index)}})),Object.keys(e._internal).forEach((n=>{const o=e._internal[n];let r=n+" "+o.value;if(o.comment&&(r=r+" "+o.comment),!(n in this._originalSettings))return void t.push(r);const i=this._originalSettings[n];t[i.index]=r})),n.sort().reverse().forEach((e=>{t.splice(e,1)})),t.join("\n")+"\n"}write(e){return this._fileHandle.modify((t=>(this._parseText(t,!0),this._generateConfig(e))))}}},7099:(e,t,n)=>{"use strict";let o;n.d(t,{Z:()=>R});const r=document.head.querySelector("meta[name='url-root']");if(r)o=r.content.replace(/^\/+|\/+$/g,"");else try{o=window.localStorage.getItem("url-root")}catch(e){}const i={};if(j(i,{}),void 0===window.debugging)try{Object.defineProperty(window,"debugging",{get:function(){return window.sessionStorage.debugging||window.localStorage.debugging},set:function(e){window.sessionStorage.debugging=e}})}catch(e){}function s(e){return"function"==typeof e}function a(e){return null!==e&&"object"==typeof e}function l(e){return a(e)&&"[object Object]"===Object.prototype.toString.call(e)}function u(e){return((e=+e)||1/e)<0}function c(e,t,n){const o=e?e.length:0;for(let r=0;r>>n&24),2!==n&&t-i!=1||(o+=String.fromCharCode(_(r>>>18&63),_(r>>>12&63),_(r>>>6&63),_(63&r)),r=0);return o.substr(0,o.length-2+n)+(2===n?"":1===n?"=":"==")}function S(e,t){if(t===String)return window.atob(e);const n=e.length;let o;for(o=0;o<3&&"="==e[n-(o+1)];o++);const r=(3*n+1>>2)-o,i=new(t||Array)(r);for(let t,o,a=0,l=0,u=0;u64&&s<91?s-65:s>96&&s<123?s-71:s>47&&s<58?s+4:43===s?62:47===s?63:0)<<18-6*o,3===o||n-u==1){for(t=0;t<3&&l>>(16>>>t&24)&255;a=0}var s;return i}function C(){"all"!=window.debugging&&"channel"!=window.debugging||console.debug.apply(console,arguments)}function j(e,t){Object.defineProperties(e,{addEventListener:{enumerable:!1,value:function(e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)}},removeEventListener:{enumerable:!1,value:function(e,n){const o=t[e]?t[e].length:0;for(let r=0;r2&&(e=r),n=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e}),r.unshift(n)}else o=n.type,r=arguments;s(e["on"+o])&&e["on"+o].apply(e,r),c(t[o],e,r)}}})}function T(){let e=window.location.pathname||"/",t=o;return window.mock&&window.mock.pathname&&(e=window.mock.pathname),window.mock&&window.mock.url_root&&(t=window.mock.url_root),t&&0===e.indexOf("/"+t)&&(e=e.replace("/"+t,"")||"/"),0!==e.indexOf("/cockpit/")&&0!==e.indexOf("/cockpit+")&&(e=0===e.indexOf("/=")?"/cockpit+"+e.split("/")[1]:"/cockpit"),e.split("/")[1]}function O(e){e||(e="socket");const t=window.location.toString(),n=document.head.querySelector("meta[name='websocket-root']");let r=n?n.content.replace(/^\/+|\/+$/g,""):o;if(window.mock&&window.mock.url)return window.mock.url;window.mock&&window.mock.url_root&&(r=window.mock.url_root);let i=T();return r&&(i=r+"/"+i),0===t.indexOf("http:")?"ws://"+window.location.host+"/"+i+"/"+e:0===t.indexOf("https:")?"wss://"+window.location.host+"/"+i+"/"+e:(C("Cockpit must be used over http or https"),null)}function N(e,t){if(!t)return e.join("");let n=0;const o=e.length;for(let t=0;t0;){const e=f.shift();e[0]?(e[1].channel=u,n.send_control(e[1])):g(e[1])}})),t.send=function(e){r?console.warn("sending message on closed channel"):l?console.warn("sending message after done"):n?g(e):f.push([!1,e])},t.control=function(e){(e=e||{}).command||(e.command="options"),"done"===e.command&&(l=!0),e.channel=u,n?n.send_control(e):f.push([!0,e])},t.wait=function(e){s||(s=i.defer(),r?s.reject(r):o?s.resolve(o):(t.addEventListener("ready",(function(e,t){s.resolve(t)})),t.addEventListener("close",(function(e,t){s.reject(t)}))));const n=s.promise;return e&&n.then(e,e),n},t.close=function(e){r||(e?"string"==typeof e&&(e={problem:e}):e={},e.command="close",e.channel=u,n?n.send_control(e):f.push([!0,e]),h(e))},t.buffer=function(e){const n=[];function o(e,o){if(n.push(o),n.callback){const e=N(n,c);if(e.length>0){const o=n.callback.call(t,e);"number"!=typeof o||o===e.length?n.length=0:0===o?(n.length=1,n[0]=e):0!==o&&(n.length=1,e.subarray?n[0]=e.subarray(o):e.substring?n[0]=e.substring(o):n[0]=e.slice(o))}}}return n.callback=e,n.squash=function(){return N(n,c)},t.addEventListener("message",o),t.addEventListener("close",(function e(){t.removeEventListener("message",o),t.removeEventListener("close",e)})),n},t.toString=function(){const n=e.host||"localhost";return"[Channel "+(t.valid?u:"")+" -> "+n+"]"}}k||(k=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")),window.addEventListener("beforeunload",(function(){g=!0}),!1),window.addEventListener("unload",(function(){d&&d.close()})),window.cockpit=function(){function e(e){this.encoding="utf-8",this.encode=function(t,n){const o=window.unescape(encodeURIComponent(t));return e===String?o:x(o,e)}}function t(e){let t=null;this.encoding="utf-8",this.decode=function(n,o){const r=o&&o.stream;null==n&&(n=""),"string"!=typeof n&&(n=function(e){const t=e.length;let n="";for(let o=0;o251&&o<254?6:o>247&&o<252?5:o>239&&o<248?4:o>223&&o<240?3:o>191&&o<224?2:o<128?1:0;let c=a+u<=i;if(!c&&r){t=n.substring(a);break}0===u&&(c=!1);for(let e=1;c&&e0&&M(e),r.promise}function M(e){!e.process_scheduled&&e.pending&&(e.process_scheduled=!0,_((function(){!function(e){const t=e.pending;e.process_scheduled=!1,e.pending=void 0;for(let n=0,o=t.length;n0&&e<=o?o.toLocaleString(n):e<0&&e>=-o?(-o).toLocaleString(n):e>999||e<-999?e.toFixed(0):e.toLocaleString(n,{maximumSignificantDigits:t,minimumSignificantDigits:t}):""};const H={1e3:[null,"KB","MB","GB","TB","PB","EB","ZB"],1024:[null,"KiB","MiB","GiB","TiB","PiB","EiB","ZiB"]};i.format_bytes=function(e,t,n){return void 0===t&&(t=1e3),F(e,H,t,n)},i.get_byte_units=function(e,t){function n(e){return{name:H[t][e],factor:Math.pow(t,e)}}void 0!==t&&t in H||(t=1e3);const o=[n(2),n(3),n(4)];for(let t=o.length-1;t>=0;t--)if(0===t||e/o[t].factor>=10){o[t].selected=!0;break}return o};const Q={1e3:["B/s","kB/s","MB/s","GB/s","TB/s","PB/s","EB/s","ZB/s"],1024:["B/s","KiB/s","MiB/s","GiB/s","TiB/s","PiB/s","EiB/s","ZiB/s"]};i.format_bytes_per_sec=function(e,t,n){return void 0===t&&(t=1e3),F(e,Q,t,n)};const z={1e3:["bps","Kbps","Mbps","Gbps","Tbps","Pbps","Ebps","Zbps"]};function $(e){const t=this;let n;try{n=window[e]}catch(e){}t.prefixedKey=function(e){return i.transport.application()+":"+e},t.getItem=function(e,o){let r=n.getItem(t.prefixedKey(e));return!r&&o&&(r=n.getItem(e)),r},t.setItem=function(e,o,r){n.setItem(t.prefixedKey(e),o),r&&n.setItem(e,o)},t.removeItem=function(e,o){n.removeItem(t.prefixedKey(e)),o&&n.removeItem(e)},t.clear=function(e){let t=0;for(;tt))return r;o=r-1}}return n}function u(e,t,o){n&&(o||c(e,new Array(t-e),{}),n(e,t,o))}function c(e,t,n){if(!t.length)return;let u=l(r,e);const c=e+t.length,f=r.length;let d;for(d=u>0?u-1:u;d=u)break}const h={beg:e,items:t,mapping:n};for(s||(s=h),a&&(a.next=h),a=h,i+=t.length,r.splice(u,0,h),u--;u<=d;u++){const e=r[u];e&&!e.items.length&&(r.splice(u,1),u--)}for(;s&&i>o.limit;)i-=s.items.length,s.items=[],s.mapping=null,s=s.next||null;const p=r.length;for(d=0;d0);d++);r.splice(0,d)}o.load=function(e,t,n){if(t<=e)return;const o=l(r,e),i=r.length;let s=e;const a=[];for(let n=o>0?o-1:o;ns&&a.push([s,c]),d(c,i.items.slice(c-u,f-u),i.mapping),s=f;else if(n>=o)break}for(let e=0;eo.end-o.beg&&(t=o.end-o.beg-e),t<=0)return;const n=i.length;for(let r=0;r2e9||(g(),h=e-o.beg*o.interval,d=window.setInterval((function(){const e=Date.now();p(Math.floor((e-h)/o.interval),void 0,!0)}),o.interval))},o.close=function(){for(g();l.length;)l.pop().links.remove()},o.move(t,n)}function Y(e,t){this.problem=e,this.message=t||i.message(e),this.toString=function(){return this.message}}i.grid=function(e,t,n){return new K(e,t,n)},i.logout=function(e,t){i.sessionStorage.clear(!0),i.localStorage.removeItem("login-data",!0),i.localStorage.clear(!1),!1!==e&&(p=!0),A((function(e){e.send_control({command:"logout",disconnect:!0})||window.location.reload(p)})),window.sessionStorage.setItem("logout-intent","explicit"),t&&window.sessionStorage.setItem("logout-reason",t)},i.drop_privileges=function(){A((function(e){e.send_control({command:"logout",disconnect:!1})}))},i.info={},j(i.info,{}),m=function(e){e.system&&Object.assign(i.info,e.system),e.system&&i.info.dispatchEvent("changed")};let V=null;i.user=function(){const e=i.defer();if(V)e.resolve(V);else{const t=i.dbus(null,{bus:"internal"});t.call("/user","org.freedesktop.DBus.Properties","GetAll",["cockpit.User"],{type:"s"}).then((t=>{let[n]=t;V={id:n.Id.v,name:n.Name.v,full_name:n.Full.v,groups:n.Groups.v,home:n.Home.v,shell:n.Shell.v},e.resolve(V)})).catch((t=>e.reject(t))).finally((()=>t.close()))}return e.promise},document.addEventListener("click",(function(e){e.target.classList&&function(e,t){const n=e.length;for(let o=0;o0&&e.apply(i,arguments)},i.addEventListener("close",(function(){ce[o]==i&&(ce[o]=null)})),ce[o]=i}return i},i.variant=function(e,t){return{v:t,t:e}},i.byte_array=function(e){return window.btoa(e)},i.file=function(e,t){const n=(t=t||{}).binary,o={path:e,read:l,replace:d,modify:function(e,t,n){const o=i.defer();function r(t,n){let r=e(t);void 0===r&&(r=t),d(r,n).done((function(e){o.resolve(r,e)})).fail((function(e){"change-conflict"==e.problem?s():o.reject(e)}))}function s(){l().done(r).fail((function(e){o.reject(e)}))}void 0===t?s():r(t,n);return o.promise},watch:function(e,t){e&&h.push(e);return g+=1,v(t),p=null,l(),{remove:function(){if(e){const t=h.indexOf(e);t>-1&&(h[t]=null)}g-=1,v(t)}}},close:function(){s&&s.close("cancelled");u&&u.close("cancelled");m&&m.close("cancelled")}},r={...t};delete r.syntax;let s,a=null;function l(){if(a)return a;const o=i.defer(),l={...r,payload:"fsread1",path:e};return function e(){s=i.channel(l);const r=[];s.addEventListener("message",(function(e,t){r.push(t)})),s.addEventListener("close",(function(i,l){if(s=null,"change-conflict"==l.problem)return void e();if(a=null,l.problem){const e=new Y(l.problem,l.message);return b(null,null,e),void o.reject(e)}let u;if("-"==l.tag)u=null;else try{c=N(r,n),u=t.syntax&&t.syntax.parse?t.syntax.parse(c):c}catch(e){return b(null,null,e),void o.reject(e)}var c;b(u,l.tag),o.resolve(u,l.tag)}))}(),a=o.promise,a}let u=null;function d(n,o){const s=i.defer();let a;try{a=null===n?null:(l=n,t.syntax&&t.syntax.stringify?t.syntax.stringify(l):l)}catch(e){return s.reject(e),s.promise}var l;u&&u.close("abort");const c={...r,payload:"fsreplace1",path:e,tag:o};return u=i.channel(c),u.addEventListener("close",(function(e,t){u=null,t.problem?s.reject(new Y(t.problem,t.message)):(b(n,t.tag),s.resolve(t.tag))})),f(a,(function(e){u.send(e)})),u.control({command:"done"}),s.promise}const h=[];let p,g=0,m=null;function v(t){if(g>0){if(m)return;const n={payload:"fswatch1",path:e,superuser:r.superuser};m=i.channel(n),m.addEventListener("message",(function(n,o){let r;try{r=JSON.parse(o)}catch(e){r=null}r&&r.path==e&&r.tag&&r.tag!=p&&(t&&void 0!==t.read&&!t.read?b(null,r.tag):l())}))}else m&&(m.close(),m=null)}function b(){p=arguments[1]||null,c(h,o,arguments)}return o};let fe,de={};function he(e){return!0===e?1:e||0}i.language="en",i.language_direction="ltr",i.locale=function(e){let t,n=i.language,o=i.language_direction;e?(Object.assign(de,e),t=e[""]):null===e&&(de={}),t&&(t["plural-forms"]&&(fe=t["plural-forms"]),t.language&&(n=t.language),t["language-direction"]&&(o=t["language-direction"])),i.language=n,i.language_direction=o},i.translate=function(){let e;e=0===arguments.length?[document]:1===arguments.length&&arguments[0].length?arguments[0]:arguments;const t=e.length;for(let n=0;n=200&&p.status<=299&&d?d.call(s,e):0}));function m(e,t){"response"==t.command&&(p=t,h&&(p.headers=p.headers||{},c(h,s,[p.status,p.headers])))}return u.addEventListener("control",m),u.addEventListener("close",(function e(t,r){const i=o.indexOf(s);if(i>=0&&o.splice(i,1),r.problem)me("http problem: ",r.problem),n.reject(new Y(r.problem));else{const e=g.squash();if(p&&(p.status<200||p.status>299)){let t;const o=ve(p.headers,"Content-Type");o&&!u.binary&&0===o.indexOf("text/plain")&&(t=e),me("http status: ",p.status),n.reject(new ge(p.status,p.reason,t),e)}else me("http done"),n.resolve(e)}u.removeEventListener("control",m),u.removeEventListener("close",e)})),s.stream=function(e){return d=e,s},s.response=function(e){return null===h&&(h=[]),h.push(e),s},s.input=function(e,t){return null!=e&&(me("http input:",e),f(e,(function(e){u.send(e)}))),t||(me("http done"),u.control({command:"done"})),s},s.close=function(e){return me("http closing:",e),u.close(e),s},o.push(s),s},n.get=function(e,t,o){return n.request({method:"GET",params:t,path:e,body:"",headers:o})},n.post=function(e,t,o){return o=o||{},l(t)||Array.isArray(t)?(t=JSON.stringify(t),void 0===ve(o,"Content-Type")&&(o["Content-Type"]="application/json")):null==t?t="":"string"!=typeof t&&(t=String(t)),n.request({method:"POST",path:e,body:t,headers:o})},n.close=function(e){const t=o.slice();for(let n=0;n{const n=i.channel({payload:"null",superuser:"require"});n.wait().then((()=>e(!0))).catch((()=>e(!1))).always((()=>n.close()))}))]).then((e=>{let[n,r]=e;t.user=n,t.is_superuser=r;const i=a(n);t.allowed!==i&&(t.allowed=i,o(),t.dispatchEvent("changed"))})),t.close=function(){}}function we(e,t,n){const o=this;j(o,{}),void 0===t.length&&(t=[t]);const r=[];let s=!1;function a(t,n,l){if(0===t.length)return;if(!l){if(s)return;s=!0}const u={payload:"metrics1",interval:e,source:"internal",...t[0]};delete u.archive_source;const c=i.channel(u);r.push(c);let f,d=null,h=null;c.addEventListener("close",(function(e,r){l||(s=!1),t.length>1&&("not-supported"==r.problem||"not-found"==r.problem)?a(t.slice(1),n):r.problem?"terminated"==r.problem||"disconnected"==r.problem||"authentication-failed"==r.problem||"not-found"==r.problem&&l||"not-supported"==r.problem&&l||console.warn("metrics channel failed: "+r.problem):l&&(o.archives||(o.archives=!0,o.dispatchEvent("changed")))})),c.addEventListener("message",(function(r,i){const s=JSON.parse(i),a=s.length;if(void 0===a){d=s;let r=0;d.now&&d.timestamp&&(r=d.timestamp+(Date.now()-d.now)),f=Math.floor(r/e),n(f,d,null,t[0]),o.meta=d,o.dispatchEvent("changed")}else if(d){for(let e=0;e{"use strict";let e=!1;QUnit.config.autostart=!1;const t=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,n,o){let r=!1;return t&&(r=t(e,n,o)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){e=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));const n=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){const e=n.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){e||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},4810:(e,t,n)=>{"use strict";n.a(e,(async(e,o)=>{try{n.d(t,{Z:()=>e});var r=n(9785),i=n.n(r),s=n(8553),a=n.n(s);window.QUnit=i(),window.qunitTap=a(),n(956),n(6732),i().mock_info=async e=>{const t=await fetch(`http://${window.location.hostname}:${window.location.port}/mock/info`);return(await t.json())[e]},await i().mock_info("pybridge")?i().test.skipWithPybridge=i().test.skip:i().test.skipWithPybridge=i().test;const e=i();o()}catch(e){o(e)}}),1)},5174:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var o=n(4810),r=n(7099),i=n(7356),s=e([o]);o=(s.then?(await s)():s)[0];const a=["# top comment","","foo bar"," indented value","","will disappear","key value #comment"].join("\n"),l=["# top comment","","foo moo","indented value","","#key value #comment","hooray value",""].join("\n");o.Z.test("config_update",(function(e){const t=e.async();e.expect(6);const n=new Promise((e=>{this.dataWasChangedResolve=e}));let o;const s=(t,n)=>{e.equal(n._internal.foo.value,"moo","value changed correctly"),e.equal("key"in n._internal,!1,"setting with comment deleted correctly"),e.equal("will"in n._internal,!1,"setting without comment deleted correctly"),e.equal(n._internal.hooray.value,"value","value added correctly"),e.equal(o._rawContent,l,"raw text for changed config is correct"),this.dataWasChangedResolve()},u="cockpit_config_read",c=r.Z.file(u);c.replace(a).then((()=>{e.equal(c.path,u,"file has correct path"),o=new i.l(u),o.wait().then((()=>{o.settings._internal.foo.value="moo",delete o.settings._internal.key,delete o.settings._internal.will,o.settings._internal.hooray={value:"value"},o.addEventListener("kdumpConfigChanged",s),o.write(o.settings).then((()=>n.then(t)))}))}))})),window.setTimeout((function(){o.Z.start()})),t()}catch(e){t(e)}}))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",o=e=>{e&&!e.d&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},s.a=(r,i,s)=>{var a;s&&((a=[]).d=1);var l,u,c,f=new Set,d=r.exports,h=new Promise(((e,t)=>{c=t,u=e}));h[t]=d,h[e]=e=>(a&&e(a),f.forEach(e),h.catch((e=>{}))),r.exports=h,i((r=>{var i;l=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{s[t]=e,o(i)}),(e=>{s[n]=e,o(i)}));var s={};return s[e]=e=>e(i),s}}var a={};return a[e]=e=>{},a[t]=r,a})))(r);var s=()=>l.map((e=>{if(e[n])throw e[n];return e[t]})),u=new Promise((t=>{(i=()=>t(s)).r=0;var n=e=>e!==a&&!f.has(e)&&(f.add(e),e&&!e.d&&(i.r++,e.push(i)));l.map((t=>t[e](n)))}));return i.r?u:s()}),(e=>(e?c(h[n]=e):u(d),o(a)))),a&&(a.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);s(5174)})(); \ No newline at end of file Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/index.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/index.css.gz differ diff -Nru cockpit-283/dist/metrics/index.html cockpit-284/dist/metrics/index.html --- cockpit-283/dist/metrics/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/metrics/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,37 @@ + + + + + Metrics and history + + + + + + + + + + + + + + +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/index.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/index.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/index.js.gz differ diff -Nru cockpit-283/dist/metrics/Makefile.deps cockpit-284/dist/metrics/Makefile.deps --- cockpit-283/dist/metrics/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/metrics/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for metrics metrics_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-dialog.jsx \ @@ -59,11 +60,13 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) metrics_OUTPUTS = \ dist/metrics/index.css.gz \ - dist/metrics/index.html.gz \ + dist/metrics/index.html \ dist/metrics/index.js.LICENSE.txt.gz \ dist/metrics/index.js.gz \ dist/metrics/po.cs.js.gz \ @@ -91,7 +94,7 @@ metrics_INSTALL = \ dist/metrics/index.css.gz \ - dist/metrics/index.html.gz \ + dist/metrics/index.html \ dist/metrics/index.js.LICENSE.txt.gz \ dist/metrics/index.js.gz \ dist/metrics/manifest.json \ @@ -125,7 +128,7 @@ dist/metrics/index.css.gz: $(srcdir)/dist/metrics/manifest.json -dist/metrics/index.html.gz: $(srcdir)/dist/metrics/manifest.json +dist/metrics/index.html: $(srcdir)/dist/metrics/manifest.json dist/metrics/index.js.LICENSE.txt.gz: $(srcdir)/dist/metrics/manifest.json @@ -175,6 +178,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -291,6 +296,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(metrics_INPUTS) WEBPACK_OUTPUTS += $(metrics_OUTPUTS) WEBPACK_INSTALL += $(metrics_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/metrics/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/metrics/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/firewall.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/firewall.css.gz differ diff -Nru cockpit-283/dist/networkmanager/firewall.html cockpit-284/dist/networkmanager/firewall.html --- cockpit-283/dist/networkmanager/firewall.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/networkmanager/firewall.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,36 @@ + + + + + Firewall + + + + + + + + + + + +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/firewall.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/firewall.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/firewall.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/firewall.js.gz differ diff -Nru cockpit-283/dist/networkmanager/index.html cockpit-284/dist/networkmanager/index.html --- cockpit-283/dist/networkmanager/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/networkmanager/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,39 @@ + + + + + + Networking + + + + + + + + + + + +
                                                                                                                        +
                                                                                                                        + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/index.html.gz differ diff -Nru cockpit-283/dist/networkmanager/Makefile.deps cockpit-284/dist/networkmanager/Makefile.deps --- cockpit-283/dist/networkmanager/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/networkmanager/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for networkmanager networkmanager_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-dialog.jsx \ @@ -82,14 +83,16 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) networkmanager_OUTPUTS = \ dist/networkmanager/firewall.css.gz \ - dist/networkmanager/firewall.html.gz \ + dist/networkmanager/firewall.html \ dist/networkmanager/firewall.js.LICENSE.txt.gz \ dist/networkmanager/firewall.js.gz \ - dist/networkmanager/index.html.gz \ + dist/networkmanager/index.html \ dist/networkmanager/network.css.gz \ dist/networkmanager/network.js.LICENSE.txt.gz \ dist/networkmanager/network.js.gz \ @@ -122,10 +125,10 @@ networkmanager_INSTALL = \ dist/networkmanager/firewall.css.gz \ - dist/networkmanager/firewall.html.gz \ + dist/networkmanager/firewall.html \ dist/networkmanager/firewall.js.LICENSE.txt.gz \ dist/networkmanager/firewall.js.gz \ - dist/networkmanager/index.html.gz \ + dist/networkmanager/index.html \ dist/networkmanager/manifest.json \ dist/networkmanager/network.css.gz \ dist/networkmanager/network.js.LICENSE.txt.gz \ @@ -161,13 +164,13 @@ dist/networkmanager/firewall.css.gz: $(srcdir)/dist/networkmanager/manifest.json -dist/networkmanager/firewall.html.gz: $(srcdir)/dist/networkmanager/manifest.json +dist/networkmanager/firewall.html: $(srcdir)/dist/networkmanager/manifest.json dist/networkmanager/firewall.js.LICENSE.txt.gz: $(srcdir)/dist/networkmanager/manifest.json dist/networkmanager/firewall.js.gz: $(srcdir)/dist/networkmanager/manifest.json -dist/networkmanager/index.html.gz: $(srcdir)/dist/networkmanager/manifest.json +dist/networkmanager/index.html: $(srcdir)/dist/networkmanager/manifest.json dist/networkmanager/network.css.gz: $(srcdir)/dist/networkmanager/manifest.json @@ -227,6 +230,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -389,6 +394,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(networkmanager_INPUTS) WEBPACK_OUTPUTS += $(networkmanager_OUTPUTS) WEBPACK_INSTALL += $(networkmanager_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/network.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/network.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/network.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/network.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/networkmanager/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/networkmanager/po.zh_TW.js.gz differ diff -Nru cockpit-283/dist/packagekit/index.html cockpit-284/dist/packagekit/index.html --- cockpit-283/dist/packagekit/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/packagekit/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,37 @@ + + + + + + Software updates + + + + + + + + + + +
                                                                                                                        + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/index.html.gz differ diff -Nru cockpit-283/dist/packagekit/Makefile.deps cockpit-284/dist/packagekit/Makefile.deps --- cockpit-283/dist/packagekit/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/packagekit/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for packagekit packagekit_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-dialog.jsx \ @@ -63,10 +64,12 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) packagekit_OUTPUTS = \ - dist/packagekit/index.html.gz \ + dist/packagekit/index.html \ dist/packagekit/po.cs.js.gz \ dist/packagekit/po.de.js.gz \ dist/packagekit/po.es.js.gz \ @@ -94,7 +97,7 @@ $(NULL) packagekit_INSTALL = \ - dist/packagekit/index.html.gz \ + dist/packagekit/index.html \ dist/packagekit/manifest.json \ dist/packagekit/po.cs.js.gz \ dist/packagekit/po.de.js.gz \ @@ -127,7 +130,7 @@ $(srcdir)/dist/packagekit/manifest.json: $(packagekit_INPUTS) -dist/packagekit/index.html.gz: $(srcdir)/dist/packagekit/manifest.json +dist/packagekit/index.html: $(srcdir)/dist/packagekit/manifest.json dist/packagekit/po.cs.js.gz: $(srcdir)/dist/packagekit/manifest.json @@ -179,6 +182,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -303,6 +308,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(packagekit_INPUTS) WEBPACK_OUTPUTS += $(packagekit_OUTPUTS) WEBPACK_INSTALL += $(packagekit_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/updates.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/updates.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/packagekit/updates.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/packagekit/updates.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/exception.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/exception.css.gz differ diff -Nru cockpit-283/dist/playground/exception.html cockpit-284/dist/playground/exception.html --- cockpit-283/dist/playground/exception.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/exception.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,23 @@ + + + + + Javascript exceptions + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Exception

                                                                                                                        + +

                                                                                                                        Clicking this button should make a javascript exception happen.

                                                                                                                        + + +

                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/exception.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/exception.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/index.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/index.css.gz differ diff -Nru cockpit-283/dist/playground/index.html cockpit-284/dist/playground/index.html --- cockpit-283/dist/playground/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,29 @@ + + + + + Cockpit Development Playground + + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Development Playground

                                                                                                                        + +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Page Status

                                                                                                                        + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/index.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/index.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/index.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/journal.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/journal.css.gz differ diff -Nru cockpit-283/dist/playground/journal.html cockpit-284/dist/playground/journal.html --- cockpit-283/dist/playground/journal.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/journal.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,21 @@ + + + + + Cockpit Journal Box + + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/journal.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/journal.html.gz differ diff -Nru cockpit-283/dist/playground/Makefile.deps cockpit-284/dist/playground/Makefile.deps --- cockpit-283/dist/playground/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/playground/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for playground playground_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-dialog.jsx \ @@ -77,30 +78,32 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) playground_OUTPUTS = \ dist/playground/exception.css.gz \ - dist/playground/exception.html.gz \ + dist/playground/exception.html \ dist/playground/exception.js.gz \ dist/playground/hammer.gif \ dist/playground/index.css.gz \ - dist/playground/index.html.gz \ + dist/playground/index.html \ dist/playground/index.js.gz \ dist/playground/journal.css.gz \ - dist/playground/journal.html.gz \ + dist/playground/journal.html \ dist/playground/journal.js.LICENSE.txt.gz \ dist/playground/journal.js.gz \ dist/playground/metrics.css.gz \ - dist/playground/metrics.html.gz \ + dist/playground/metrics.html \ dist/playground/metrics.js.gz \ - dist/playground/notifications-receiver.html.gz \ + dist/playground/notifications-receiver.html \ dist/playground/notifications-receiver.js.gz \ dist/playground/pkgs.css.gz \ - dist/playground/pkgs.html.gz \ + dist/playground/pkgs.html \ dist/playground/pkgs.js.gz \ dist/playground/plot.css.gz \ - dist/playground/plot.html.gz \ + dist/playground/plot.html \ dist/playground/plot.js.LICENSE.txt.gz \ dist/playground/plot.js.gz \ dist/playground/po.cs.js.gz \ @@ -124,49 +127,49 @@ dist/playground/po.uk.js.gz \ dist/playground/po.zh_CN.js.gz \ dist/playground/po.zh_TW.js.gz \ - dist/playground/preloaded.html.gz \ + dist/playground/preloaded.html \ dist/playground/preloaded.js.gz \ dist/playground/react-patterns.css.gz \ - dist/playground/react-patterns.html.gz \ + dist/playground/react-patterns.html \ dist/playground/react-patterns.js.LICENSE.txt.gz \ dist/playground/react-patterns.js.gz \ dist/playground/service.css.gz \ - dist/playground/service.html.gz \ + dist/playground/service.html \ dist/playground/service.js.gz \ dist/playground/speed.css.gz \ - dist/playground/speed.html.gz \ + dist/playground/speed.html \ dist/playground/speed.js.gz \ dist/playground/test.css.gz \ - dist/playground/test.html.gz \ + dist/playground/test.html \ dist/playground/test.js.gz \ dist/playground/translate.css.gz \ - dist/playground/translate.html.gz \ + dist/playground/translate.html \ dist/playground/translate.js.gz \ $(NULL) playground_INSTALL = \ dist/playground/exception.css.gz \ - dist/playground/exception.html.gz \ + dist/playground/exception.html \ dist/playground/exception.js.gz \ dist/playground/hammer.gif \ dist/playground/index.css.gz \ - dist/playground/index.html.gz \ + dist/playground/index.html \ dist/playground/index.js.gz \ dist/playground/journal.css.gz \ - dist/playground/journal.html.gz \ + dist/playground/journal.html \ dist/playground/journal.js.LICENSE.txt.gz \ dist/playground/journal.js.gz \ dist/playground/manifest.json \ dist/playground/metrics.css.gz \ - dist/playground/metrics.html.gz \ + dist/playground/metrics.html \ dist/playground/metrics.js.gz \ - dist/playground/notifications-receiver.html.gz \ + dist/playground/notifications-receiver.html \ dist/playground/notifications-receiver.js.gz \ dist/playground/pkgs.css.gz \ - dist/playground/pkgs.html.gz \ + dist/playground/pkgs.html \ dist/playground/pkgs.js.gz \ dist/playground/plot.css.gz \ - dist/playground/plot.html.gz \ + dist/playground/plot.html \ dist/playground/plot.js.LICENSE.txt.gz \ dist/playground/plot.js.gz \ dist/playground/po.cs.js.gz \ @@ -190,23 +193,23 @@ dist/playground/po.uk.js.gz \ dist/playground/po.zh_CN.js.gz \ dist/playground/po.zh_TW.js.gz \ - dist/playground/preloaded.html.gz \ + dist/playground/preloaded.html \ dist/playground/preloaded.js.gz \ dist/playground/react-patterns.css.gz \ - dist/playground/react-patterns.html.gz \ + dist/playground/react-patterns.html \ dist/playground/react-patterns.js.LICENSE.txt.gz \ dist/playground/react-patterns.js.gz \ dist/playground/service.css.gz \ - dist/playground/service.html.gz \ + dist/playground/service.html \ dist/playground/service.js.gz \ dist/playground/speed.css.gz \ - dist/playground/speed.html.gz \ + dist/playground/speed.html \ dist/playground/speed.js.gz \ dist/playground/test.css.gz \ - dist/playground/test.html.gz \ + dist/playground/test.html \ dist/playground/test.js.gz \ dist/playground/translate.css.gz \ - dist/playground/translate.html.gz \ + dist/playground/translate.html \ dist/playground/translate.js.gz \ $(NULL) @@ -217,7 +220,7 @@ dist/playground/exception.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/exception.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/exception.html: $(srcdir)/dist/playground/manifest.json dist/playground/exception.js.gz: $(srcdir)/dist/playground/manifest.json @@ -225,13 +228,13 @@ dist/playground/index.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/index.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/index.html: $(srcdir)/dist/playground/manifest.json dist/playground/index.js.gz: $(srcdir)/dist/playground/manifest.json dist/playground/journal.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/journal.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/journal.html: $(srcdir)/dist/playground/manifest.json dist/playground/journal.js.LICENSE.txt.gz: $(srcdir)/dist/playground/manifest.json @@ -239,23 +242,23 @@ dist/playground/metrics.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/metrics.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/metrics.html: $(srcdir)/dist/playground/manifest.json dist/playground/metrics.js.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/notifications-receiver.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/notifications-receiver.html: $(srcdir)/dist/playground/manifest.json dist/playground/notifications-receiver.js.gz: $(srcdir)/dist/playground/manifest.json dist/playground/pkgs.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/pkgs.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/pkgs.html: $(srcdir)/dist/playground/manifest.json dist/playground/pkgs.js.gz: $(srcdir)/dist/playground/manifest.json dist/playground/plot.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/plot.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/plot.html: $(srcdir)/dist/playground/manifest.json dist/playground/plot.js.LICENSE.txt.gz: $(srcdir)/dist/playground/manifest.json @@ -303,13 +306,13 @@ dist/playground/po.zh_TW.js.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/preloaded.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/preloaded.html: $(srcdir)/dist/playground/manifest.json dist/playground/preloaded.js.gz: $(srcdir)/dist/playground/manifest.json dist/playground/react-patterns.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/react-patterns.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/react-patterns.html: $(srcdir)/dist/playground/manifest.json dist/playground/react-patterns.js.LICENSE.txt.gz: $(srcdir)/dist/playground/manifest.json @@ -317,30 +320,32 @@ dist/playground/service.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/service.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/service.html: $(srcdir)/dist/playground/manifest.json dist/playground/service.js.gz: $(srcdir)/dist/playground/manifest.json dist/playground/speed.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/speed.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/speed.html: $(srcdir)/dist/playground/manifest.json dist/playground/speed.js.gz: $(srcdir)/dist/playground/manifest.json dist/playground/test.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/test.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/test.html: $(srcdir)/dist/playground/manifest.json dist/playground/test.js.gz: $(srcdir)/dist/playground/manifest.json dist/playground/translate.css.gz: $(srcdir)/dist/playground/manifest.json -dist/playground/translate.html.gz: $(srcdir)/dist/playground/manifest.json +dist/playground/translate.html: $(srcdir)/dist/playground/manifest.json dist/playground/translate.js.gz: $(srcdir)/dist/playground/manifest.json .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -493,6 +498,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(playground_INPUTS) WEBPACK_OUTPUTS += $(playground_OUTPUTS) WEBPACK_INSTALL += $(playground_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/metrics.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/metrics.css.gz differ diff -Nru cockpit-283/dist/playground/metrics.html cockpit-284/dist/playground/metrics.html --- cockpit-283/dist/playground/metrics.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/metrics.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,22 @@ + + + + + Cockpit Monitoring + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Monitoring

                                                                                                                        + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/metrics.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/metrics.html.gz differ diff -Nru cockpit-283/dist/playground/notifications-receiver.html cockpit-284/dist/playground/notifications-receiver.html --- cockpit-283/dist/playground/notifications-receiver.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/notifications-receiver.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,18 @@ + + + + + Notifications Receiver + + + + + + +

                                                                                                                        Notifications Receiver

                                                                                                                        + + / + + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/notifications-receiver.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/notifications-receiver.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/notifications-receiver.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/notifications-receiver.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/pkgs.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/pkgs.css.gz differ diff -Nru cockpit-283/dist/playground/pkgs.html cockpit-284/dist/playground/pkgs.html --- cockpit-283/dist/playground/pkgs.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/pkgs.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,19 @@ + + + + + Cockpit Packages + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/pkgs.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/pkgs.html.gz differ diff -Nru cockpit-283/dist/playground/plot.html cockpit-284/dist/playground/plot.html --- cockpit-283/dist/playground/plot.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/plot.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,15 @@ + + + + + Cockpit Plots + + + + + + +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/plot.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/plot.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/plot.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/plot.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/po.zh_TW.js.gz differ diff -Nru cockpit-283/dist/playground/preloaded.html cockpit-284/dist/playground/preloaded.html --- cockpit-283/dist/playground/preloaded.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/preloaded.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,20 @@ + + + + + Preloaded Page + + + + + + +

                                                                                                                        Preloaded

                                                                                                                        + +
                                                                                                                        +
                                                                                                                        
                                                                                                                        +  
                                                                                                                        
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/preloaded.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/preloaded.html.gz differ
                                                                                                                        Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/react-patterns.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/react-patterns.css.gz differ
                                                                                                                        diff -Nru cockpit-283/dist/playground/react-patterns.html cockpit-284/dist/playground/react-patterns.html
                                                                                                                        --- cockpit-283/dist/playground/react-patterns.html	1970-01-01 00:00:00.000000000 +0000
                                                                                                                        +++ cockpit-284/dist/playground/react-patterns.html	2023-01-25 05:21:41.000000000 +0000
                                                                                                                        @@ -0,0 +1,34 @@
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +    
                                                                                                                        +    Cockpit React Patterns Usage
                                                                                                                        +    
                                                                                                                        +    
                                                                                                                        +    
                                                                                                                        +    
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +    
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Select file

                                                                                                                        +
                                                                                                                        +
                                                                                                                        + +
                                                                                                                        +

                                                                                                                        Dialogs

                                                                                                                        + + +
                                                                                                                        +
                                                                                                                        + +
                                                                                                                        +

                                                                                                                        Cards

                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/react-patterns.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/react-patterns.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/react-patterns.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/react-patterns.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/service.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/service.css.gz differ diff -Nru cockpit-283/dist/playground/service.html cockpit-284/dist/playground/service.html --- cockpit-283/dist/playground/service.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/service.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,24 @@ + + + + + Cockpit Generic Service Monitor + + + + + + + + + + + +
                                                                                                                        Exists
                                                                                                                        State
                                                                                                                        Enabled
                                                                                                                        + + + + + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/service.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/service.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/speed.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/speed.css.gz differ diff -Nru cockpit-283/dist/playground/speed.html cockpit-284/dist/playground/speed.html --- cockpit-283/dist/playground/speed.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/speed.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,114 @@ + + + + + Cockpit Speed Tests + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Speed Tests

                                                                                                                        + + + + + + + + + + + + + + + +
                                                                                                                          
                                                                                                                          
                                                                                                                          
                                                                                                                        +

                                                                                                                        + +

                                                                                                                        Echo Tests

                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Read Test

                                                                                                                        + + + + + + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        Download Test

                                                                                                                        + + + + + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        spawn test

                                                                                                                        + + + + + + + + + + + + + + + + +
                                                                                                                        +
                                                                                                                        
                                                                                                                        +                        
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/speed.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/speed.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/test.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/test.css.gz differ diff -Nru cockpit-283/dist/playground/test.html cockpit-284/dist/playground/test.html --- cockpit-283/dist/playground/test.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/test.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,48 @@ + + + + + Cockpit playground + + + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + +
                                                                                                                        +
                                                                                                                        + + +
                                                                                                                        +
                                                                                                                        + + +
                                                                                                                        + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + + +
                                                                                                                        + +
                                                                                                                        + Visibility: +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/test.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/test.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/translate.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/translate.css.gz differ diff -Nru cockpit-283/dist/playground/translate.html cockpit-284/dist/playground/translate.html --- cockpit-283/dist/playground/translate.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/playground/translate.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,138 @@ + + + + + Cockpit playground + + + + +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +

                                                                                                                        HTML translations

                                                                                                                        + +

                                                                                                                        For translating HTML use these forms:

                                                                                                                        + +

                                                                                                                        + <span translate>Ready</span> + = Ready +

                                                                                                                        + +

                                                                                                                        + <span translate translate-context="verb">Ready</span> + = Ready +

                                                                                                                        + +

                                                                                                                        + <span translate="yes">Not ready</span> + = Not ready +

                                                                                                                        + +

                                                                                                                        + <span translate="title" title="Unavailable">Cancel</span> + = Cancel +

                                                                                                                        + +

                                                                                                                        + <span translate="yes title" title="Unavailable">Cancel</span> + = Cancel +

                                                                                                                        + +

                                                                                                                        Note that we do not support:

                                                                                                                        +

                                                                                                                          +
                                                                                                                        • Interpolation of variables.
                                                                                                                        • +
                                                                                                                        • Pluralization
                                                                                                                        • +
                                                                                                                        • The <translate> element
                                                                                                                        • +
                                                                                                                        + +
                                                                                                                        + +

                                                                                                                        Old Glade style

                                                                                                                        + +

                                                                                                                        The old Glade style is not recommended:

                                                                                                                        + +

                                                                                                                        + <span translate="yes">Empty</span> + = Empty +

                                                                                                                        + +

                                                                                                                        + <span translate="yes" context="verb">Empty</span> + = Empty +

                                                                                                                        + +

                                                                                                                        Note that we do not support:

                                                                                                                        +

                                                                                                                          +
                                                                                                                        • Interpolation of variables.
                                                                                                                        • +
                                                                                                                        • Translatable attributes.
                                                                                                                        • +
                                                                                                                        • Pluralization
                                                                                                                        • +
                                                                                                                        • The <translate> element
                                                                                                                        • +
                                                                                                                        + +
                                                                                                                        + +

                                                                                                                        Code Translations

                                                                                                                        + +

                                                                                                                        For translating in javascript code, use these forms:

                                                                                                                        + +

                                                                                                                        + _("Empty") + = +

                                                                                                                        + +

                                                                                                                        + _("verb", "Empty") + = +

                                                                                                                        + +

                                                                                                                        + C_("verb", "Empty") + = +

                                                                                                                        + +

                                                                                                                        + cockpit.gettext("Control") + = +

                                                                                                                        + +

                                                                                                                        + cockpit.gettext("key", "Control") + = +

                                                                                                                        + +

                                                                                                                        + cockpit.ngettext("$0 disk is missing", "$0 disks are missing", 1) + = +

                                                                                                                        + +

                                                                                                                        + cockpit.ngettext("$0 disk is missing", "$0 disks are missing", 2) + = +

                                                                                                                        + +

                                                                                                                        + cockpit.ngettext("disk-non-rotational", "$0 disk is missing", "$0 disks are missing", 1) + = +

                                                                                                                        + +

                                                                                                                        + cockpit.ngettext("disk-non-rotational", "$0 disk is missing", "$0 disks are missing", 2) + = +

                                                                                                                        + +

                                                                                                                        Note that we do not support:

                                                                                                                        +

                                                                                                                          +
                                                                                                                        • Extraction of single quoted strings.
                                                                                                                        • +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        + + + + + + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/playground/translate.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/playground/translate.html.gz differ diff -Nru cockpit-283/dist/selinux/Makefile.deps cockpit-284/dist/selinux/Makefile.deps --- cockpit-283/dist/selinux/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/selinux/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for selinux selinux_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-empty-state.css \ @@ -48,6 +49,8 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) selinux_OUTPUTS = \ @@ -75,7 +78,7 @@ dist/selinux/selinux.css.gz \ dist/selinux/selinux.js.LICENSE.txt.gz \ dist/selinux/selinux.js.gz \ - dist/selinux/setroubleshoot.html.gz \ + dist/selinux/setroubleshoot.html \ $(NULL) selinux_INSTALL = \ @@ -104,7 +107,7 @@ dist/selinux/selinux.css.gz \ dist/selinux/selinux.js.LICENSE.txt.gz \ dist/selinux/selinux.js.gz \ - dist/selinux/setroubleshoot.html.gz \ + dist/selinux/setroubleshoot.html \ $(NULL) selinux_TESTS = \ @@ -160,10 +163,12 @@ dist/selinux/selinux.js.gz: $(srcdir)/dist/selinux/manifest.json -dist/selinux/setroubleshoot.html.gz: $(srcdir)/dist/selinux/manifest.json +dist/selinux/setroubleshoot.html: $(srcdir)/dist/selinux/manifest.json .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -258,6 +263,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(selinux_INPUTS) WEBPACK_OUTPUTS += $(selinux_OUTPUTS) WEBPACK_INSTALL += $(selinux_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/selinux.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/selinux.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/selinux.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/selinux.js.gz differ diff -Nru cockpit-283/dist/selinux/setroubleshoot.html cockpit-284/dist/selinux/setroubleshoot.html --- cockpit-283/dist/selinux/setroubleshoot.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/selinux/setroubleshoot.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,38 @@ + + + + + + SELinux troubleshoot + + + + + + + + + + + + +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/selinux/setroubleshoot.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/selinux/setroubleshoot.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/index.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/index.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/index.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/index.js.gz differ diff -Nru cockpit-283/dist/shell/Makefile.deps cockpit-284/dist/shell/Makefile.deps --- cockpit-283/dist/shell/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/shell/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for shell shell_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-empty-state.css \ @@ -78,6 +79,8 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) shell_OUTPUTS = \ @@ -115,7 +118,7 @@ dist/shell/po.uk.js.gz \ dist/shell/po.zh_CN.js.gz \ dist/shell/po.zh_TW.js.gz \ - dist/shell/shell.html.gz \ + dist/shell/shell.html \ $(NULL) shell_INSTALL = \ @@ -150,7 +153,7 @@ dist/shell/po.uk.js.gz \ dist/shell/po.zh_CN.js.gz \ dist/shell/po.zh_TW.js.gz \ - dist/shell/shell.html.gz \ + dist/shell/shell.html \ $(NULL) shell_TESTS = \ @@ -227,10 +230,12 @@ dist/shell/po.zh_TW.js.gz: $(srcdir)/dist/shell/manifest.json -dist/shell/shell.html.gz: $(srcdir)/dist/shell/manifest.json +dist/shell/shell.html: $(srcdir)/dist/shell/manifest.json .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -385,6 +390,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(shell_INPUTS) WEBPACK_OUTPUTS += $(shell_OUTPUTS) WEBPACK_INSTALL += $(shell_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/po.zh_TW.js.gz differ diff -Nru cockpit-283/dist/shell/shell.html cockpit-284/dist/shell/shell.html --- cockpit-283/dist/shell/shell.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/shell/shell.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,15 @@ + + + + Things have moved + + + + + +
                                                                                                                        +

                                                                                                                        Things have moved

                                                                                                                        +

                                                                                                                        This old version of Cockpit doesn't know where to find default pages. Use the navigation menus to help it find its way.

                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/shell/shell.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/shell/shell.html.gz differ diff -Nru cockpit-283/dist/sosreport/index.html cockpit-284/dist/sosreport/index.html --- cockpit-283/dist/sosreport/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/sosreport/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,33 @@ + + + + + Diagnostic reports + + + + + + + + +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/index.html.gz differ diff -Nru cockpit-283/dist/sosreport/Makefile.deps cockpit-284/dist/sosreport/Makefile.deps --- cockpit-283/dist/sosreport/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/sosreport/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for sosreport sosreport_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-empty-state.css \ @@ -51,10 +52,12 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) sosreport_OUTPUTS = \ - dist/sosreport/index.html.gz \ + dist/sosreport/index.html \ dist/sosreport/po.cs.js.gz \ dist/sosreport/po.de.js.gz \ dist/sosreport/po.es.js.gz \ @@ -83,7 +86,7 @@ $(NULL) sosreport_INSTALL = \ - dist/sosreport/index.html.gz \ + dist/sosreport/index.html \ dist/sosreport/manifest.json \ dist/sosreport/po.cs.js.gz \ dist/sosreport/po.de.js.gz \ @@ -117,7 +120,7 @@ $(srcdir)/dist/sosreport/manifest.json: $(sosreport_INPUTS) -dist/sosreport/index.html.gz: $(srcdir)/dist/sosreport/manifest.json +dist/sosreport/index.html: $(srcdir)/dist/sosreport/manifest.json dist/sosreport/po.cs.js.gz: $(srcdir)/dist/sosreport/manifest.json @@ -171,6 +174,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -271,6 +276,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(sosreport_INPUTS) WEBPACK_OUTPUTS += $(sosreport_OUTPUTS) WEBPACK_INSTALL += $(sosreport_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/sosreport.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/sosreport.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/sosreport/sosreport.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/sosreport/sosreport.js.gz differ diff -Nru cockpit-283/dist/static/Makefile.deps cockpit-284/dist/static/Makefile.deps --- cockpit-283/dist/static/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for static static_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/static/login.css \ pkg/static/login.html \ @@ -28,6 +29,8 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) static_OUTPUTS = \ @@ -220,6 +223,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/static/login.css: @@ -274,6 +279,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(static_INPUTS) WEBPACK_OUTPUTS += $(static_OUTPUTS) WEBPACK_INSTALL += $(static_INSTALL) diff -Nru cockpit-283/dist/static/po.cs.js cockpit-284/dist/static/po.cs.js --- cockpit-283/dist/static/po.cs.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.cs.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1==e?0:e>=2&&e<=4?1:2,language:"cs","language-direction":"ltr"},"$0 error":[null,"$0 chyba"],"$0 key changed":[null,"$0 klíč změněn"],"A modern browser is required for security, reliability, and performance.":[null,"Z důvodu zabezpečení, spolehlivosti a rychlosti je zapotřebí moderního prohlížeče."],"Accept key and log in":[null,"Přijmout klíč a přihlásit se"],"Authentication failed":[null,"Ověření se nezdařilo"],"Authentication failed: Server closed connection":[null,"Ověření se nezdařilo: Server přerušil spojení"],Cancel:[null,"Storno"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Změněné klíče jsou často výsledkem přeinstalace operačního systému. Nicméně, neočekávaná změna může značit pokus třetí strany o vložení se do vaší komunikace."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit ověřování není nastaveno správně."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit je správce serveru, který usnadňuje správu Linuxových serverů prostřednictvím webového prohlížeče. Není žádným problémem přecházet mezi terminálem a webovým nástrojem. Služba spuštěná přes Cockpit může být zastavena v terminálu. Podobně, pokud dojde k chybě v terminálu, je toto vidět v rozhraní žurnálu v Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit je ideální nástroj pro nové správce serverů, neboť jim umožňuje snadno provádět jednoduché úkoly, jako je správa úložišť, kontrola žurnálu či spouštění a zastavování služeb. Můžete současně sledovat a spravovat několik serverů najednou. Stačí je přidat jedním kliknutím a vaše stroje se budou starat o své kamarády."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Připojit se k"],"Connect to:":[null,"Připojit se k:"],"Download a new browser for free":[null,"Zdarma si stáhnout nový prohlížeč"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Pokud se otisk shoduje, klikněte na „Přijmout klíč a přihlásit se“. V opačném případě se nepřipojujte a obraťte se na správce."],"Internal error: Invalid challenge header":[null,"Vnitřní chyba: neplatná hlavička výzvy"],"Log in":[null,"Přihlásit"],"Log in with your server user account.":[null,"Přihlášení pomocí uživatelského účtu na tomto serveru."],"Login again":[null,"Znovu přihlásit"],"Logout successful":[null,"Odhlášení úspěšné"],"New host":[null,"Nový hostitel"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"Jakmile bude Cockpit nainstalovaný, zapněte ho pomocí příkazu „systemctl enable --now cockpit.socket“."],"Or use a bundled browser":[null,"Nebo použijte přibalený prohlížeč"],"Other options":[null,"Ostatní volby"],Password:[null,"Heslo"],"Permission denied":[null,"Přístup zamítnut"],"Please enable JavaScript to use the Web Console.":[null,"Pokud chcete používat webovou konzoli, zapněte podporu pro JavaScript."],"Please specify the host to connect to":[null,"Zadejte stroj ke kterému se připojit"],"Refusing to connect. Host is unknown":[null,"Odmítá se připojit. Stroj není znám"],"Refusing to connect. Hostkey does not match":[null,"Odmítá se připojit. Klíč stroje neodpovídá"],"Refusing to connect. Hostkey is unknown":[null,"Odmítá se připojit. Klíč stroje není znám"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Výsledný otisk je možné sdílet veřejnými způsoby, včetně e-mailu."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Server odmítl ověřit „$0“ pomocí ověření heslem a nejsou k dispozici žádné další metody ověření."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Nastavení webového prohlížeče brání ve spuštění Cockpit (nepřístupné $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Tento webový prohlížeč je příliš starý pro spuštění Web Console (chybí $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Abyste zajistili, že do vašeho připojení není zasahováno záškodnickou třetí stranou, ověřte otisk klíče hostitele:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Pokud chcete otisk ověřit, spusťte následující na $0 když jste fyzicky u stroje nebo prostřednictvím důvěryhodné sítě:"],"Try again":[null,"Zkusit znovu"],"Unable to connect to that address":[null,"K této adrese se nedaří připojit"],"User name":[null,"Uživatelské jméno"],"User name cannot be empty":[null,"Uživatelské jméno je třeba vyplnit"],"Validating authentication token":[null,"Kontroluje se ověřovací token"],"Web Console for Linux servers":[null,"Webová konzole pro linuxové servery"],"Wrong user name or password":[null,"Chybné uživatelské jméno nebo heslo"],"You are connecting to $0 for the first time.":[null,"K $0 se připojujete poprvé."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1==e?0:e>=2&&e<=4?1:2,language:"cs","language-direction":"ltr"},"$0 error":[null,"$0 chyba"],"$0 key changed":[null,"$0 klíč změněn"],"A modern browser is required for security, reliability, and performance.":[null,"Z důvodu zabezpečení, spolehlivosti a rychlosti je zapotřebí moderního prohlížeče."],"Accept key and log in":[null,"Přijmout klíč a přihlásit se"],"Authentication failed":[null,"Ověření se nezdařilo"],"Authentication failed: Server closed connection":[null,"Ověření se nezdařilo: Server přerušil spojení"],Cancel:[null,"Storno"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Změněné klíče jsou často výsledkem přeinstalace operačního systému. Nicméně, neočekávaná změna může značit pokus třetí strany o vložení se do vaší komunikace."],"Cockpit authentication is configured incorrectly.":[null,"Cockpit ověřování není nastaveno správně."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Připojit se k"],"Connect to:":[null,"Připojit se k:"],"Download a new browser for free":[null,"Zdarma si stáhnout nový prohlížeč"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Pokud se otisk shoduje, klikněte na „Přijmout klíč a přihlásit se“. V opačném případě se nepřipojujte a obraťte se na správce."],"Internal error: Invalid challenge header":[null,"Vnitřní chyba: neplatná hlavička výzvy"],"Log in":[null,"Přihlásit"],"Log in with your server user account.":[null,"Přihlášení pomocí uživatelského účtu na tomto serveru."],"Login again":[null,"Znovu přihlásit"],"Logout successful":[null,"Odhlášení úspěšné"],"New host":[null,"Nový hostitel"],"Or use a bundled browser":[null,"Nebo použijte přibalený prohlížeč"],"Other options":[null,"Ostatní volby"],Password:[null,"Heslo"],"Permission denied":[null,"Přístup zamítnut"],"Please enable JavaScript to use the Web Console.":[null,"Pokud chcete používat webovou konzoli, zapněte podporu pro JavaScript."],"Please specify the host to connect to":[null,"Zadejte stroj ke kterému se připojit"],"Refusing to connect. Host is unknown":[null,"Odmítá se připojit. Stroj není znám"],"Refusing to connect. Hostkey does not match":[null,"Odmítá se připojit. Klíč stroje neodpovídá"],"Refusing to connect. Hostkey is unknown":[null,"Odmítá se připojit. Klíč stroje není znám"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Výsledný otisk je možné sdílet veřejnými způsoby, včetně e-mailu."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Server odmítl ověřit „$0“ pomocí ověření heslem a nejsou k dispozici žádné další metody ověření."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Nastavení webového prohlížeče brání ve spuštění Cockpit (nepřístupné $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Tento webový prohlížeč je příliš starý pro spuštění Web Console (chybí $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Abyste zajistili, že do vašeho připojení není zasahováno záškodnickou třetí stranou, ověřte otisk klíče hostitele:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Pokud chcete otisk ověřit, spusťte následující na $0 když jste fyzicky u stroje nebo prostřednictvím důvěryhodné sítě:"],"Try again":[null,"Zkusit znovu"],"Unable to connect to that address":[null,"K této adrese se nedaří připojit"],"User name":[null,"Uživatelské jméno"],"User name cannot be empty":[null,"Uživatelské jméno je třeba vyplnit"],"Validating authentication token":[null,"Kontroluje se ověřovací token"],"Wrong user name or password":[null,"Chybné uživatelské jméno nebo heslo"],"You are connecting to $0 for the first time.":[null,"K $0 se připojujete poprvé."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.de.js cockpit-284/dist/static/po.de.js --- cockpit-283/dist/static/po.de.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.de.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"de","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 Error"],"$0 key changed":[null,"$0 Schlüssel geändert"],"A modern browser is required for security, reliability, and performance.":[null,"Ein moderner Browser ist für Sicherheit, Zuverlässigkeit und Leistung erforderlich."],"Accept key and log in":[null,"Schlüssel akzeptieren und anmelden"],"Authentication failed":[null,"Authentifizierung fehlgeschlagen"],"Authentication failed: Server closed connection":[null,"Authentifizierung fehlgeschlagen: Server geschlossene Verbindung"],Cancel:[null,"Abbrechen"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Geänderte Schlüssel sind oft das Ergebnis einer Neuinstallation des Betriebssystems. Allerdings kann eine unerwartete Änderung auf einen Versuch eines Dritten hinweisen, Ihre Verbindung auszuspähen."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Die Cockpit-Authentifizierung ist falsch konfiguriert."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit ist ein Server Manager zur einfachen Verwaltung Ihrer Linux Server via Web Browser. Ein Wechsel zwischen dem Terminal und der Weboberfläche ist kein Problem. Ein Service, der via Cockpit gestartet wurde, kann im Terminal beendet werden. Genauso können Fehler, welche im Terminal vorkommen, im Cockpit Journal angezeigt werden."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit ist perfekt für neue Systemadministratoren, da es ihnen auf einfache Weise ermöglicht, simple Aufgaben wie Speicherverwaltung, Journal / Logfile Analyse oder das Starten und Stoppen von Diensten durchzuführen. Sie können gleichzeitig mehrere Server überwachen und verwalten. Fügen Sie weitere Maschinen mit einem Klick hinzu und Ihre Maschinen schauen zu ihren Kumpels."],"Cockpit might not render correctly in your browser":[null,"Cockpit wird in Ihrem Browser möglicherweise nicht korrekt dargestellt"],"Connect to":[null,"Verbinden zu"],"Connect to:":[null,"Verbinden mit:"],"Download a new browser for free":[null,"Laden Sie kostenlos einen neuen Browser herunter"],"Internal error: Invalid challenge header":[null,"Interner Fehler: Ungültiger Challenge-Header"],"Log in":[null,"Anmelden"],"Log in with your server user account.":[null,"Melden Sie sich mit dem Server-Benutzerkonto an."],Login:[null,"Anmeldung"],"Login again":[null,"Nochmal anmelden"],"Logout successful":[null,"Abmeldung erfolgreich"],"New host":[null,"Neuer Host"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Wenn Cockpit installiert ist, aktivieren Sie es mit "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"Oder verwenden Sie einen gebündelten Browser"],"Other options":[null,"Andere Einstellungen"],Password:[null,"Passwort"],"Permission denied":[null,"Erlaubnis verweigert"],"Please enable JavaScript to use the Web Console.":[null,"Bitte aktivieren Sie JavaScript, um die Web-Konsole verwenden zu können."],"Please specify the host to connect to":[null,"Bitte geben Sie den Host an, zu dem eine Verbindung hergestellt werden soll"],"Recent hosts":[null,""],"Refusing to connect. Host is unknown":[null,"Verbindung ablehnen Host ist unbekannt"],"Refusing to connect. Hostkey does not match":[null,"Verbindung ablehnen Hostkey stimmt nicht überein"],"Refusing to connect. Hostkey is unknown":[null,"Verbindung ablehnen Hostkey ist unbekannt"],"Remove host":[null,"Host entfernen"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Der entstandene Fingerabdruck kann über öffentliche Methoden, einschließlich E-Mail, weitergegeben werden."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Der Server hat die Authentifizierung abgelehnt. '$0Mit der Passwort-Authentifizierung stehen keine anderen unterstützten Authentifizierungsmethoden zur Verfügung."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Die Konfiguration des Webbrowsers verhindert, dass Cockpit ausgeführt wird (nicht erreichbar) $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Dieser Webbrowser ist zu alt, um die Web-Konsole auszuführen (fehlende $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Überprüfen Sie bitte den Fingerabdruck des Host-Schlüssels, um sicherzustellen, dass Ihre Verbindung nicht von einem böswilligen Dritten ausgespäht wird:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Um einen Fingerabdruck zu überprüfen, führen Sie die folgenden Schritte auf $0 aus, während Sie physisch an der Maschine sitzen oder über ein vertrauenswürdiges Netzwerk:"],"Try again":[null,"Versuchen Sie es nochmal"],"Unable to connect to that address":[null,"Es kann keine Verbindung zu dieser Adresse hergestellt werden"],"User name":[null,"Benutzername"],"User name cannot be empty":[null,"Der Benutzername darf nicht leer sein"],"Validating authentication token":[null,"Authentifizierungstoken überprüfen"],"Web Console for Linux servers":[null,"Webkonsole für Linux-Server"],"Wrong user name or password":[null,"Benutzername oder Passwort falsch"],"You are connecting to $0 for the first time.":[null,"Sie stellen zum ersten Mal eine Verbindung zu $0 her."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"de","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 Error"],"$0 key changed":[null,"$0 Schlüssel geändert"],"A modern browser is required for security, reliability, and performance.":[null,"Ein moderner Browser ist für Sicherheit, Zuverlässigkeit und Leistung erforderlich."],"Accept key and log in":[null,"Schlüssel akzeptieren und anmelden"],"Authentication failed":[null,"Authentifizierung fehlgeschlagen"],"Authentication failed: Server closed connection":[null,"Authentifizierung fehlgeschlagen: Server geschlossene Verbindung"],Cancel:[null,"Abbrechen"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Geänderte Schlüssel sind oft das Ergebnis einer Neuinstallation des Betriebssystems. Allerdings kann eine unerwartete Änderung auf einen Versuch eines Dritten hinweisen, Ihre Verbindung auszuspähen."],"Cockpit authentication is configured incorrectly.":[null,"Die Cockpit-Authentifizierung ist falsch konfiguriert."],"Cockpit might not render correctly in your browser":[null,"Cockpit wird in Ihrem Browser möglicherweise nicht korrekt dargestellt"],"Connect to":[null,"Verbinden zu"],"Connect to:":[null,"Verbinden mit:"],"Download a new browser for free":[null,"Laden Sie kostenlos einen neuen Browser herunter"],"Internal error: Invalid challenge header":[null,"Interner Fehler: Ungültiger Challenge-Header"],"Log in":[null,"Anmelden"],"Log in with your server user account.":[null,"Melden Sie sich mit dem Server-Benutzerkonto an."],Login:[null,"Anmeldung"],"Login again":[null,"Nochmal anmelden"],"Logout successful":[null,"Abmeldung erfolgreich"],"New host":[null,"Neuer Host"],"Or use a bundled browser":[null,"Oder verwenden Sie einen gebündelten Browser"],"Other options":[null,"Andere Einstellungen"],Password:[null,"Passwort"],"Permission denied":[null,"Erlaubnis verweigert"],"Please enable JavaScript to use the Web Console.":[null,"Bitte aktivieren Sie JavaScript, um die Web-Konsole verwenden zu können."],"Please specify the host to connect to":[null,"Bitte geben Sie den Host an, zu dem eine Verbindung hergestellt werden soll"],"Recent hosts":[null,""],"Refusing to connect. Host is unknown":[null,"Verbindung ablehnen Host ist unbekannt"],"Refusing to connect. Hostkey does not match":[null,"Verbindung ablehnen Hostkey stimmt nicht überein"],"Refusing to connect. Hostkey is unknown":[null,"Verbindung ablehnen Hostkey ist unbekannt"],"Remove host":[null,"Host entfernen"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Der entstandene Fingerabdruck kann über öffentliche Methoden, einschließlich E-Mail, weitergegeben werden."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Der Server hat die Authentifizierung abgelehnt. '$0Mit der Passwort-Authentifizierung stehen keine anderen unterstützten Authentifizierungsmethoden zur Verfügung."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Die Konfiguration des Webbrowsers verhindert, dass Cockpit ausgeführt wird (nicht erreichbar) $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Dieser Webbrowser ist zu alt, um die Web-Konsole auszuführen (fehlende $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Überprüfen Sie bitte den Fingerabdruck des Host-Schlüssels, um sicherzustellen, dass Ihre Verbindung nicht von einem böswilligen Dritten ausgespäht wird:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Um einen Fingerabdruck zu überprüfen, führen Sie die folgenden Schritte auf $0 aus, während Sie physisch an der Maschine sitzen oder über ein vertrauenswürdiges Netzwerk:"],"Try again":[null,"Versuchen Sie es nochmal"],"Unable to connect to that address":[null,"Es kann keine Verbindung zu dieser Adresse hergestellt werden"],"User name":[null,"Benutzername"],"User name cannot be empty":[null,"Der Benutzername darf nicht leer sein"],"Validating authentication token":[null,"Authentifizierungstoken überprüfen"],"Wrong user name or password":[null,"Benutzername oder Passwort falsch"],"You are connecting to $0 for the first time.":[null,"Sie stellen zum ersten Mal eine Verbindung zu $0 her."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.es.js cockpit-284/dist/static/po.es.js --- cockpit-283/dist/static/po.es.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.es.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"es","language-direction":"ltr"}," Bypass browser check ":[null," Omitir comprobación del navegador "],"$0 error":[null,"Error $0"],"$0 key changed":[null,"$0 clave cambiada"],"A modern browser is required for security, reliability, and performance.":[null,"Se requiere un navegador moderno por seguridad, fiabilidad y rendimiento."],"Accept key and log in":[null,"Aceptar la clave y loguearse"],"Authentication failed":[null,"Falló la autenticación"],"Authentication failed: Server closed connection":[null,"Falló la autenticación: se ha cerrado la conexión con el servidor"],Cancel:[null,"Cancelar"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Las llaves cambiadas pueden llevar una reinstalación del sistema operativo. Sin embargo, un cambio inesperado puede indicar un intento de interceptar su conexión mediante un tercero."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"La configuración de autenticación de Cockpit está mal configurada."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit es un gestor de servidores que facilita la administración de servidores Linux a través de un navegador web. Es posible alternar entre el portal web y la consola sin problemas. Un servicio que haya empezado por Cockpit se puede parar desde la terminal. Asimismo, si se produce un error en el terminal, podrá verlo en la bitácora de Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit es ideal para administradores de sistemas nóveles, ya que permite realizar con sencillez tareas como gestionar almacenamiento, inspeccionar bitácoras e iniciar y detener servicios. Puede monitorizar y administrar varios servidores a la vez. Tan solo añádalos con solo pulsar un botón y sus máquinas se encargarán del resto."],"Cockpit might not render correctly in your browser":[null,"Puede que Cockpit no se muestre correctamente en su navegador"],"Connect to":[null,"Conectar a"],"Connect to:":[null,"Conectar a:"],"Download a new browser for free":[null,"Descargar un navegador libre"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Si la huella coincide, pulse "Aceptar la clave e iniciar sesión". En caso contrario, no inicie sesión y contacte con su administrador.'],"Internal error: Invalid challenge header":[null,"Error Interno: Encabezado del reto no valido"],"Log in":[null,"Iniciar sesión"],"Log in with your server user account.":[null,"Acceda con su cuenta de usuario del servidor."],Login:[null,"Iniciar sesión"],"Login again":[null,"Acceda de nuevo"],"Logout successful":[null,"Ha cerrado sesión de forma exitosa"],"New host":[null,"Añadir un nuevo anfitrión"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Una vez que se instale Cockpit, habilítelo con "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"O use un navegador integrado"],"Other options":[null,"Otras opciones"],Password:[null,"Contraseña"],"Permission denied":[null,"Permiso denegado"],"Please enable JavaScript to use the Web Console.":[null,"Por favor, habilite JavaScript para usar la consola Web."],"Please specify the host to connect to":[null,"Por favor especifique el anfitrión a conectarse"],"Recent hosts":[null,"Anfitriones recientes"],"Refusing to connect. Host is unknown":[null,"Rechazando la conexión. Se desconoce el anfitrión"],"Refusing to connect. Hostkey does not match":[null,"Rechazando conexión. La clave del anfitrión no coincide"],"Refusing to connect. Hostkey is unknown":[null,"Rechazando la conexión. La clave de anfitrión es desconocida"],"Remove host":[null,"Eliminar anfitrión"],Server:[null,"Servidor"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"La huella resultante es apta para compartirse en público, incluyendo correo electrónico."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"El servidor rechazó autenticar '$0' utilizando la autenticación de contraseña y no hay disponble otro método de autenticación soportado."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"La configuración del navegador evita que se ejecute Cockpit (inaccesible $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Este navegador web es demasiado viejo para ejecutar la consola Web (no soporta $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Para garantizar que su conexión no sea interceptada por un tercero malicioso, por favor verifique la clave de huella del anfitrión:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Para verificar una huella, ejecute lo siguiente en $0 mientras se sitúa físicamente frente a la máquina o a través de una red de confianza:"],"Try again":[null,"Intentar otra vez"],"Unable to connect to that address":[null,"Incapaz de conectar a esa dirección"],"User name":[null,"Nombre de usuario"],"User name cannot be empty":[null,"El nombre de usuario no puede estar vacío"],"Validating authentication token":[null,"Validando código de autenticación"],"Web Console for Linux servers":[null,"Consola web para servidores Linux"],"Wrong user name or password":[null,"Nombre de usuario o contraseña equivocada"],"You are connecting to $0 for the first time.":[null,"Te estás conectando con $0 por primera vez."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"es","language-direction":"ltr"}," Bypass browser check ":[null," Omitir comprobación del navegador "],"$0 error":[null,"Error $0"],"$0 key changed":[null,"$0 clave cambiada"],"A modern browser is required for security, reliability, and performance.":[null,"Se requiere un navegador moderno por seguridad, fiabilidad y rendimiento."],"Accept key and log in":[null,"Aceptar la clave y loguearse"],"Authentication failed":[null,"Falló la autenticación"],"Authentication failed: Server closed connection":[null,"Falló la autenticación: se ha cerrado la conexión con el servidor"],Cancel:[null,"Cancelar"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Las llaves cambiadas pueden llevar una reinstalación del sistema operativo. Sin embargo, un cambio inesperado puede indicar un intento de interceptar su conexión mediante un tercero."],"Cockpit authentication is configured incorrectly.":[null,"La configuración de autenticación de Cockpit está mal configurada."],"Cockpit might not render correctly in your browser":[null,"Puede que Cockpit no se muestre correctamente en su navegador"],"Connect to":[null,"Conectar a"],"Connect to:":[null,"Conectar a:"],"Download a new browser for free":[null,"Descargar un navegador libre"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Si la huella coincide, pulse "Aceptar la clave e iniciar sesión". En caso contrario, no inicie sesión y contacte con su administrador.'],"Internal error: Invalid challenge header":[null,"Error Interno: Encabezado del reto no valido"],"Log in":[null,"Iniciar sesión"],"Log in with your server user account.":[null,"Acceda con su cuenta de usuario del servidor."],Login:[null,"Iniciar sesión"],"Login again":[null,"Acceda de nuevo"],"Logout successful":[null,"Ha cerrado sesión de forma exitosa"],"New host":[null,"Añadir un nuevo anfitrión"],"Or use a bundled browser":[null,"O use un navegador integrado"],"Other options":[null,"Otras opciones"],Password:[null,"Contraseña"],"Permission denied":[null,"Permiso denegado"],"Please enable JavaScript to use the Web Console.":[null,"Por favor, habilite JavaScript para usar la consola Web."],"Please specify the host to connect to":[null,"Por favor especifique el anfitrión a conectarse"],"Recent hosts":[null,"Anfitriones recientes"],"Refusing to connect. Host is unknown":[null,"Rechazando la conexión. Se desconoce el anfitrión"],"Refusing to connect. Hostkey does not match":[null,"Rechazando conexión. La clave del anfitrión no coincide"],"Refusing to connect. Hostkey is unknown":[null,"Rechazando la conexión. La clave de anfitrión es desconocida"],"Remove host":[null,"Eliminar anfitrión"],Server:[null,"Servidor"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"La huella resultante es apta para compartirse en público, incluyendo correo electrónico."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"El servidor rechazó autenticar '$0' utilizando la autenticación de contraseña y no hay disponble otro método de autenticación soportado."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"La configuración del navegador evita que se ejecute Cockpit (inaccesible $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Este navegador web es demasiado viejo para ejecutar la consola Web (no soporta $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Para garantizar que su conexión no sea interceptada por un tercero malicioso, por favor verifique la clave de huella del anfitrión:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Para verificar una huella, ejecute lo siguiente en $0 mientras se sitúa físicamente frente a la máquina o a través de una red de confianza:"],"Try again":[null,"Intentar otra vez"],"Unable to connect to that address":[null,"Incapaz de conectar a esa dirección"],"User name":[null,"Nombre de usuario"],"User name cannot be empty":[null,"El nombre de usuario no puede estar vacío"],"Validating authentication token":[null,"Validando código de autenticación"],"Wrong user name or password":[null,"Nombre de usuario o contraseña equivocada"],"You are connecting to $0 for the first time.":[null,"Te estás conectando con $0 por primera vez."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.fi.js cockpit-284/dist/static/po.fi.js --- cockpit-283/dist/static/po.fi.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.fi.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"fi","language-direction":"ltr"}," Bypass browser check ":[null," Ohita selaimen tarkistus "],"$0 error":[null,"$0 virhe"],"$0 key changed":[null,"$0 avain muuttunut"],"A modern browser is required for security, reliability, and performance.":[null,"Nykyaikainen selain vaaditaan turvallisuuden, luotettavuuden ja suorituskyvyn takaamiseksi."],"Accept key and log in":[null,"Hyväksy avain ja kirjaudu sisään"],"Authentication failed":[null,"Tunnistautuminen epäonnistui"],"Authentication failed: Server closed connection":[null,"Tunnistautuminen epäonnistui: Palvelin sulki yhteyden"],Cancel:[null,"Peru"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Muutetut avaimet ovat usein seurausta käyttöjärjestelmän uudelleenasennuksesta. Odottamaton muutos voi kuitenkin tarkoittaa kolmannen osapuolen yritystä siepata yhteys."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpitin tunnistautuminen on konfiguroitu virheellisesti."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit on palvelinhallintatyökalu, joka tekee ylläpidon helpoksi selaimen kautta. Liikkuminen päätteen ja verkkokäyttöliittymän välillä ei ole ongelma. Cockpitissä aloitettu palvelu voidaan lopettaa päätteessä. Samaten päätteessä näkyvä virheilmoitus voidaan nähdä myös Cockpitin journal-näkymässä."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit on täydellinen uusille ylläpitäjille. Sen avulla voi tehdä helposti toimenpiteitä kuten tallennustilan hallintaa, lokien tarkistamista sekä palveluiden käynnistämistä ja lopettamista. Voit monitoroida ja hallita useita palvelimia samanaikaisesti. Lisää ne yhdellä napsautuksella ja koneesi katsovat kavereidensa perään."],"Cockpit might not render correctly in your browser":[null,"Cockpit ei ehkä näy oikein selaimessasi"],"Connect to":[null,"Yhdistä"],"Connect to:":[null,"Yhdistä kohteeseen:"],"Download a new browser for free":[null,"Lataa uusi selain ilmaiseksi"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Jos sormenjälki on sama, napsauta "Hyväksy avain ja kirjaudu sisään". Muussa tapauksessa älä kirjaudu sisään ja ota yhteyttä ylläpitäjään.'],"Internal error: Invalid challenge header":[null,"Sisäinen virhe: Virheellinen haasteen otsikko"],"Log in":[null,"Kirjaudu sisään"],"Log in with your server user account.":[null,"Kirjaudu sisään palvelimesi käyttäjätilillä."],Login:[null,"Sisäänkirjautuminen"],"Login again":[null,"Kirjaudu sisään uudelleen"],"Logout successful":[null,"Uloskirjautuminen onnistui"],"New host":[null,"Uusi kone"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"Kun Cockpit on asennettu, ota se käyttöön 'systemctl enable --now cockpit.socket'."],"Or use a bundled browser":[null,"Tai käytä valmiiksi asennettua selainta"],"Other options":[null,"Muut valinnat"],Password:[null,"Salasana"],"Permission denied":[null,"Käyttö estetty"],"Please enable JavaScript to use the Web Console.":[null,"Ota JavaScript käyttöön, jotta voit käyttää Verkkokonsolia."],"Please specify the host to connect to":[null,"Määritä kone, johon haluat muodostaa yhteyden"],"Recent hosts":[null,"Viimeaikaiset isännät"],"Refusing to connect. Host is unknown":[null,"Kieltäytyminen yhteyden muodostamisesta. Kone on tuntematon"],"Refusing to connect. Hostkey does not match":[null,"Kieltäytyminen yhteyden muodostamisesta. Koneen avain ei täsmää"],"Refusing to connect. Hostkey is unknown":[null,"Kieltäytyminen yhteyden muodostamisesta. Koneen avain on tuntematon"],"Remove host":[null,"Poista kone"],Server:[null,"Palvelin"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Tuloksena oleva sormenjälki sopii jakaa julkisilla menetelmillä, mukaan lukien sähköposti."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Palvelin kieltäytyi todentamasta käyttäjää '$0' salasanatodennusta käyttäen, eikä muita tuettuja todennustapoja ole käytettävissä."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Verkkoselaimen kokoonpano estää Cockpitin suorittamasta (ei käytettävissä $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Tämä verkkoselain on liian vanha Web-konsolin käyttämiseen (puuttuu $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Tarkista koneen avaimen sormenjälki varmistaaksesi, että haitallinen kolmas osapuoli ei sieppaa yhteyttä:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Vahvistaaksesi sormenjäljen, suorita seuraava koneella $0 istuessasi fyysisesti koneen ääressä tai luotettavan verkon kautta:"],"Try again":[null,"Yritä uudelleen"],"Unable to connect to that address":[null,"Siihen osoitteeseen yhdistäminen epäonnistui"],"User name":[null,"Käyttäjänimi"],"User name cannot be empty":[null,"Käyttäjätunnus ei voi olla tyhjä"],"Validating authentication token":[null,"Vahvistetaan todennustunnus"],"Web Console for Linux servers":[null,"Verkkokonsoli Linux-palvelimille"],"Wrong user name or password":[null,"Väärä käyttäjätunnus tai salasana"],"You are connecting to $0 for the first time.":[null,"Yhdistät koneeseen $0 ensimmäistä kertaa."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>1!=n,language:"fi","language-direction":"ltr"}," Bypass browser check ":[null," Ohita selaimen tarkistus "],"$0 error":[null,"$0 virhe"],"$0 key changed":[null,"$0 avain muuttunut"],"A modern browser is required for security, reliability, and performance.":[null,"Nykyaikainen selain vaaditaan turvallisuuden, luotettavuuden ja suorituskyvyn takaamiseksi."],"Accept key and log in":[null,"Hyväksy avain ja kirjaudu sisään"],"Authentication failed":[null,"Tunnistautuminen epäonnistui"],"Authentication failed: Server closed connection":[null,"Tunnistautuminen epäonnistui: Palvelin sulki yhteyden"],Cancel:[null,"Peru"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Muutetut avaimet ovat usein seurausta käyttöjärjestelmän uudelleenasennuksesta. Odottamaton muutos voi kuitenkin tarkoittaa kolmannen osapuolen yritystä siepata yhteys."],"Cockpit authentication is configured incorrectly.":[null,"Cockpitin tunnistautuminen on konfiguroitu virheellisesti."],"Cockpit might not render correctly in your browser":[null,"Cockpit ei ehkä näy oikein selaimessasi"],"Connect to":[null,"Yhdistä"],"Connect to:":[null,"Yhdistä kohteeseen:"],"Download a new browser for free":[null,"Lataa uusi selain ilmaiseksi"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Jos sormenjälki on sama, napsauta "Hyväksy avain ja kirjaudu sisään". Muussa tapauksessa älä kirjaudu sisään ja ota yhteyttä ylläpitäjään.'],"Internal error: Invalid challenge header":[null,"Sisäinen virhe: Virheellinen haasteen otsikko"],"Log in":[null,"Kirjaudu sisään"],"Log in with your server user account.":[null,"Kirjaudu sisään palvelimesi käyttäjätilillä."],Login:[null,"Sisäänkirjautuminen"],"Login again":[null,"Kirjaudu sisään uudelleen"],"Logout successful":[null,"Uloskirjautuminen onnistui"],"New host":[null,"Uusi kone"],"Or use a bundled browser":[null,"Tai käytä valmiiksi asennettua selainta"],"Other options":[null,"Muut valinnat"],Password:[null,"Salasana"],"Permission denied":[null,"Käyttö estetty"],"Please enable JavaScript to use the Web Console.":[null,"Ota JavaScript käyttöön, jotta voit käyttää Verkkokonsolia."],"Please specify the host to connect to":[null,"Määritä kone, johon haluat muodostaa yhteyden"],"Recent hosts":[null,"Viimeaikaiset isännät"],"Refusing to connect. Host is unknown":[null,"Kieltäytyminen yhteyden muodostamisesta. Kone on tuntematon"],"Refusing to connect. Hostkey does not match":[null,"Kieltäytyminen yhteyden muodostamisesta. Koneen avain ei täsmää"],"Refusing to connect. Hostkey is unknown":[null,"Kieltäytyminen yhteyden muodostamisesta. Koneen avain on tuntematon"],"Remove host":[null,"Poista kone"],Server:[null,"Palvelin"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Tuloksena oleva sormenjälki sopii jakaa julkisilla menetelmillä, mukaan lukien sähköposti."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Palvelin kieltäytyi todentamasta käyttäjää '$0' salasanatodennusta käyttäen, eikä muita tuettuja todennustapoja ole käytettävissä."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Verkkoselaimen kokoonpano estää Cockpitin suorittamasta (ei käytettävissä $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Tämä verkkoselain on liian vanha Web-konsolin käyttämiseen (puuttuu $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Tarkista koneen avaimen sormenjälki varmistaaksesi, että haitallinen kolmas osapuoli ei sieppaa yhteyttä:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Vahvistaaksesi sormenjäljen, suorita seuraava koneella $0 istuessasi fyysisesti koneen ääressä tai luotettavan verkon kautta:"],"Try again":[null,"Yritä uudelleen"],"Unable to connect to that address":[null,"Siihen osoitteeseen yhdistäminen epäonnistui"],"User name":[null,"Käyttäjänimi"],"User name cannot be empty":[null,"Käyttäjätunnus ei voi olla tyhjä"],"Validating authentication token":[null,"Vahvistetaan todennustunnus"],"Wrong user name or password":[null,"Väärä käyttäjätunnus tai salasana"],"You are connecting to $0 for the first time.":[null,"Yhdistät koneeseen $0 ensimmäistä kertaa."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.fr.js cockpit-284/dist/static/po.fr.js --- cockpit-283/dist/static/po.fr.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.fr.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>e>1,language:"fr","language-direction":"ltr"}," Bypass browser check ":[null," Ignorer la vérification du navigateur "],"$0 error":[null,"$0 erreur"],"$0 key changed":[null,"$0 clé modifiée"],"A modern browser is required for security, reliability, and performance.":[null,"Un navigateur moderne est nécessaire pour la sécurité, la fiabilité et la performance."],"Accept key and log in":[null,"Accepter la clé et se connecter"],"Authentication failed":[null,"Échec d’authentification"],"Authentication failed: Server closed connection":[null,"Échec d’authentification : connexion close par le serveur"],Cancel:[null,"Annuler"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Les changements de clés sont souvent le résultat d’une réinstallation du système d’exploitation. Cependant, un changement inattendu peut indiquer une tentative d’interception de votre connexion par un tiers."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"L’authentification de Cockpit est mal configurée."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit est un gestionnaire de serveur qui facilite l’administration de vos serveurs Linux via un navigateur Web. Sauter entre le terminal et l’outil web n’est pas un problème. Un service démarré via Cockpit peut être arrêté via le terminal. De même, si une erreur se produit dans le terminal, elle s’affiche dans l’interface du journal Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit est parfait pour les nouveaux administrateurs système, leur permettant d’effectuer facilement des tâches simples telles que l’administration du stockage, l’inspection des journaux, le démarrage et l’arrêt des services. Vous pouvez surveiller et administrer plusieurs serveurs en même temps. Il suffit de les ajouter en un seul clic et vos machines s’occuperont de leurs pairs."],"Cockpit might not render correctly in your browser":[null,"Cockpit peut ne pas s'afficher correctement dans votre navigateur"],"Connect to":[null,"Se connecter à"],"Connect to:":[null,"Se connecter à :"],"Download a new browser for free":[null,"Télécharger un nouveau navigateur gratuitement"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Si l’empreinte digitale correspond, cliquez sur « Accepter la clé et se connecter ». Sinon, ne vous connectez pas et contactez votre administrateur."],"Internal error: Invalid challenge header":[null,"Erreur interne : en-tête de la question de Challenge non valide"],"Log in":[null,"Connexion"],"Log in with your server user account.":[null,"Connectez-vous avec votre compte d’utilisateur du serveur."],Login:[null,"Nom d’utilisateur"],"Login again":[null,"Se connecter à nouveau"],"Logout successful":[null,"Déconnexion réussie"],"New host":[null,"Nouvel hôte"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"Une fois que Cockpit est installé, l’activer avec « systemctl enable --now cockpit.socket »."],"Or use a bundled browser":[null,"Ou utilisez un navigateur groupé"],"Other options":[null,"Autres options"],Password:[null,"Mot de passe"],"Permission denied":[null,"Permission refusée"],"Please enable JavaScript to use the Web Console.":[null,"Veuillez activer JavaScript pour utiliser la console Web."],"Please specify the host to connect to":[null,"Veuillez spécifier l’hôte auquel vous connecter"],"Recent hosts":[null,"Hôtes récents"],"Refusing to connect. Host is unknown":[null,"Connexion refusée. L’hôte est inconnu"],"Refusing to connect. Hostkey does not match":[null,"Connexion refusée. Hostkey ne correspond pas"],"Refusing to connect. Hostkey is unknown":[null,"Connexion refusée. Hostkey est inconnu"],"Remove host":[null,"Retirer l’hôte"],Server:[null,"Serveur"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"L’empreinte digitale qui en résulte peut être partagée via des méthodes publiques, y compris par courrier électronique."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Le serveur a refusé d’authentifier « $0 » en utilisant l’authentification par mot de passe, et aucune autre méthode d’authentification prise en charge n’est disponible."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"La configuration du navigateur Web empêche l’exécution de Cockpit (inaccessible $0 )"],"This web browser is too old to run the Web Console (missing $0)":[null,"Ce navigateur est trop vieux pour faire fonctionner la console Web (manquant $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Pour vous assurer que votre connexion n’est pas interceptée par un tiers malveillant, veuillez vérifier l’empreinte de la clé de l’hôte :"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Pour vérifier une empreinte digitale, exécutez les opérations suivantes sur $0 en étant physiquement assis devant la machine ou en passant par un réseau de confiance :"],"Try again":[null,"Réessayer"],"Unable to connect to that address":[null,"Incapable de se connecter à cette adresse"],"User name":[null,"Nom d’utilisateur"],"User name cannot be empty":[null,"Le nom d’utilisateur ne peut pas être vide"],"Validating authentication token":[null,"Validation du jeton d’authentification"],"Web Console for Linux servers":[null,"Console web pour serveurs Linux"],"Wrong user name or password":[null,"Mauvais nom d’utilisateur ou mot de passe"],"You are connecting to $0 for the first time.":[null,"Vous vous connectez à $0 pour la première fois."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>e>1,language:"fr","language-direction":"ltr"}," Bypass browser check ":[null," Ignorer la vérification du navigateur "],"$0 error":[null,"$0 erreur"],"$0 key changed":[null,"$0 clé modifiée"],"A modern browser is required for security, reliability, and performance.":[null,"Un navigateur moderne est nécessaire pour la sécurité, la fiabilité et la performance."],"Accept key and log in":[null,"Accepter la clé et se connecter"],"Authentication failed":[null,"Échec d’authentification"],"Authentication failed: Server closed connection":[null,"Échec d’authentification : connexion close par le serveur"],Cancel:[null,"Annuler"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Les changements de clés sont souvent le résultat d’une réinstallation du système d’exploitation. Cependant, un changement inattendu peut indiquer une tentative d’interception de votre connexion par un tiers."],"Cockpit authentication is configured incorrectly.":[null,"L’authentification de Cockpit est mal configurée."],"Cockpit might not render correctly in your browser":[null,"Cockpit peut ne pas s'afficher correctement dans votre navigateur"],"Connect to":[null,"Se connecter à"],"Connect to:":[null,"Se connecter à :"],"Download a new browser for free":[null,"Télécharger un nouveau navigateur gratuitement"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Si l’empreinte digitale correspond, cliquez sur « Accepter la clé et se connecter ». Sinon, ne vous connectez pas et contactez votre administrateur."],"Internal error: Invalid challenge header":[null,"Erreur interne : en-tête de la question de Challenge non valide"],"Log in":[null,"Connexion"],"Log in with your server user account.":[null,"Connectez-vous avec votre compte d’utilisateur du serveur."],Login:[null,"Nom d’utilisateur"],"Login again":[null,"Se connecter à nouveau"],"Logout successful":[null,"Déconnexion réussie"],"New host":[null,"Nouvel hôte"],"Or use a bundled browser":[null,"Ou utilisez un navigateur groupé"],"Other options":[null,"Autres options"],Password:[null,"Mot de passe"],"Permission denied":[null,"Permission refusée"],"Please enable JavaScript to use the Web Console.":[null,"Veuillez activer JavaScript pour utiliser la console Web."],"Please specify the host to connect to":[null,"Veuillez spécifier l’hôte auquel vous connecter"],"Recent hosts":[null,"Hôtes récents"],"Refusing to connect. Host is unknown":[null,"Connexion refusée. L’hôte est inconnu"],"Refusing to connect. Hostkey does not match":[null,"Connexion refusée. Hostkey ne correspond pas"],"Refusing to connect. Hostkey is unknown":[null,"Connexion refusée. Hostkey est inconnu"],"Remove host":[null,"Retirer l’hôte"],Server:[null,"Serveur"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"L’empreinte digitale qui en résulte peut être partagée via des méthodes publiques, y compris par courrier électronique."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Le serveur a refusé d’authentifier « $0 » en utilisant l’authentification par mot de passe, et aucune autre méthode d’authentification prise en charge n’est disponible."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"La configuration du navigateur Web empêche l’exécution de Cockpit (inaccessible $0 )"],"This web browser is too old to run the Web Console (missing $0)":[null,"Ce navigateur est trop vieux pour faire fonctionner la console Web (manquant $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Pour vous assurer que votre connexion n’est pas interceptée par un tiers malveillant, veuillez vérifier l’empreinte de la clé de l’hôte :"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Pour vérifier une empreinte digitale, exécutez les opérations suivantes sur $0 en étant physiquement assis devant la machine ou en passant par un réseau de confiance :"],"Try again":[null,"Réessayer"],"Unable to connect to that address":[null,"Incapable de se connecter à cette adresse"],"User name":[null,"Nom d’utilisateur"],"User name cannot be empty":[null,"Le nom d’utilisateur ne peut pas être vide"],"Validating authentication token":[null,"Validation du jeton d’authentification"],"Wrong user name or password":[null,"Mauvais nom d’utilisateur ou mot de passe"],"You are connecting to $0 for the first time.":[null,"Vous vous connectez à $0 pour la première fois."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.he.js cockpit-284/dist/static/po.he.js --- cockpit-283/dist/static/po.he.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.he.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1==e?0:2==e?1:e>10&&e%10==0?2:3,language:"he","language-direction":"rtl"}," Bypass browser check ":[null," עקיפת בדיקת דפדפן "],"$0 error":[null,"שגיאת $0"],"$0 key changed":[null,"המפתח $0 השתנה"],"A modern browser is required for security, reliability, and performance.":[null,"נדרש דפדפן עדכני לטובת אבטחה, אמינות וביצועים."],"Accept key and log in":[null,"לקבל את המפתח ולהיכנס"],"Authentication failed":[null,"האימות נכשל"],"Authentication failed: Server closed connection":[null,"האימות נכשל: השרת סגר את החיבור"],Cancel:[null,"ביטול"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"מפתחות שהוחלפו הם לעתים תוצאה של התקנת מערכת הפעלה מחדש. עם זאת, שינוי בלתי צפוי עשוי להעיד שגורם צד־שלישי מנסה ליירט את החיבור שלך."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"האימות של Cockpit לא מוגדר נכון."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit הוא מנהל שרתים שמקל על ניהול שרתי הלינוקס שלך דרך הדפדפן. מעבר חטוף בין המסוף והכלי המקוון הוא פשוט וקל. שירות שהופעל דרך Cockpit ניתן לעצור דרך המסוף. באותו האופן, אם מתרחשת שגיאה במסוף ניתן לצפות בה במנשק היומן של Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit הוא מושלם למנהלי מערכות מתחילים, מאפשר להם לבצע משימות פשוטות בקלות כגון ניהול אחסון, חקירת יומנים והפעלה ועצירה של שירותים. ניתן לנהל ולעקוב אחר מספר שרתים בו־זמנית. כל שעליך לעשות הוא להוסיף אותם בלחיצה בודדת והמכונות שלך תדאגנה לחברותיהן."],"Cockpit might not render correctly in your browser":[null,"יכול להיות ש־Cockpit לא יעובד כראוי בדפדפן שלך"],"Connect to":[null,"התחברות אל"],"Connect to:":[null,"התחברות אל:"],"Download a new browser for free":[null,"הורדת דפדפן חדש בחינם"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"אם טביעת האצבע תואמת, יש ללחוץ על „לקבל את המפתח להיכנס”. אחרת, לא להתחבר וליצור קשר עם הנהלת המערכת."],"Internal error: Invalid challenge header":[null,"שגיאה פנימית: כותרת אתגר שגויה"],"Log in":[null,"כניסה"],"Log in with your server user account.":[null,"כניסה עם חשבון המשתמש שלך בשרת."],Login:[null,"כניסה"],"Login again":[null,"נא להיכנס שוב"],"Logout successful":[null,"היציאה הצליחה"],"New host":[null,"מארח חדש"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"לאחר התקנת Cockpit, יש להפעיל את השירות בעזרת „systemctl enable --now cockpit.socket”."],"Or use a bundled browser":[null,"או להשתמש בדפדפן מובנה"],"Other options":[null,"אפשרויות אחרות"],Password:[null,"סיסמה"],"Permission denied":[null,"ההרשאה נדחתה"],"Please enable JavaScript to use the Web Console.":[null,"נא להפעיל JavaScript כדי להשתמש במסוף לדפדפן."],"Please specify the host to connect to":[null,"נא לציין את המארח לחיבור"],"Recent hosts":[null,"מארחים אחרונים"],"Refusing to connect. Host is unknown":[null,"החיבור מסורב. המארח אינו מוכר"],"Refusing to connect. Hostkey does not match":[null,"החיבור מסורב. מפתח המארח לא תואם"],"Refusing to connect. Hostkey is unknown":[null,"החיבור מסורב. מפתח המארח אינו מוכר"],"Remove host":[null,"הסרת מארח"],Server:[null,"שרת"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"זה בסדר לשתף את טביעת האצבע באופן ציבורי, לרבות בדוא״ל."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"השרת סירב לאמת את ‚$0’ עם אימות בסיסמה ואין שיטות אימות אחרות נתמכות."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"הגדרות הדפדפן מונעות מ־Cockpit לפעול ($0 בלתי נגיש)"],"This web browser is too old to run the Web Console (missing $0)":[null,"דפדפן זה מיושן מכדי להריץ את המסוף לדפדפן (חסר $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"כדי לוודא שהחיבור שלך לא מיורט על ידי גורמי צד־שלישי זדוניים, נא לאמת את טביעת האצבע של מפתח המארח:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"כדי לאמת את טביעת האצבע, יש להריץ את הפקודה הבאה על $0 במהלך ישיבה פיזית מול המכונה או דרך רשת מהימנה:"],"Try again":[null,"לנסות שוב"],"Unable to connect to that address":[null,"לא ניתן להתחבר לכתובת הזו"],"User name":[null,"שם משתמש"],"User name cannot be empty":[null,"שם המשתמש לא יכול להיות ריק"],"Validating authentication token":[null,"אסימון האימות מתוקף"],"Web Console for Linux servers":[null,"מסוף מקוון לשרתי לינוקס"],"Wrong user name or password":[null,"שם משתמש או סיסמה שגויים"],"You are connecting to $0 for the first time.":[null,"זאת ההתחברות הראשונה שלך אל $0."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>1==n?0:2==n?1:n>10&&n%10==0?2:3,language:"he","language-direction":"rtl"}," Bypass browser check ":[null," עקיפת בדיקת דפדפן "],"$0 error":[null,"שגיאת $0"],"$0 key changed":[null,"המפתח $0 השתנה"],"A modern browser is required for security, reliability, and performance.":[null,"נדרש דפדפן עדכני לטובת אבטחה, אמינות וביצועים."],"Accept key and log in":[null,"לקבל את המפתח ולהיכנס"],"Authentication failed":[null,"האימות נכשל"],"Authentication failed: Server closed connection":[null,"האימות נכשל: השרת סגר את החיבור"],Cancel:[null,"ביטול"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"מפתחות שהוחלפו הם לעתים תוצאה של התקנת מערכת הפעלה מחדש. עם זאת, שינוי בלתי צפוי עשוי להעיד שגורם צד־שלישי מנסה ליירט את החיבור שלך."],"Cockpit authentication is configured incorrectly.":[null,"האימות של Cockpit לא מוגדר נכון."],"Cockpit might not render correctly in your browser":[null,"יכול להיות ש־Cockpit לא יעובד כראוי בדפדפן שלך"],"Connect to":[null,"התחברות אל"],"Connect to:":[null,"התחברות אל:"],"Download a new browser for free":[null,"הורדת דפדפן חדש בחינם"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"אם טביעת האצבע תואמת, יש ללחוץ על „לקבל את המפתח להיכנס”. אחרת, לא להתחבר וליצור קשר עם הנהלת המערכת."],"Internal error: Invalid challenge header":[null,"שגיאה פנימית: כותרת אתגר שגויה"],"Log in":[null,"כניסה"],"Log in with your server user account.":[null,"כניסה עם חשבון המשתמש שלך בשרת."],Login:[null,"כניסה"],"Login again":[null,"נא להיכנס שוב"],"Logout successful":[null,"היציאה הצליחה"],"New host":[null,"מארח חדש"],"Or use a bundled browser":[null,"או להשתמש בדפדפן מובנה"],"Other options":[null,"אפשרויות אחרות"],Password:[null,"סיסמה"],"Permission denied":[null,"ההרשאה נדחתה"],"Please enable JavaScript to use the Web Console.":[null,"נא להפעיל JavaScript כדי להשתמש במסוף לדפדפן."],"Please specify the host to connect to":[null,"נא לציין את המארח לחיבור"],"Recent hosts":[null,"מארחים אחרונים"],"Refusing to connect. Host is unknown":[null,"החיבור מסורב. המארח אינו מוכר"],"Refusing to connect. Hostkey does not match":[null,"החיבור מסורב. מפתח המארח לא תואם"],"Refusing to connect. Hostkey is unknown":[null,"החיבור מסורב. מפתח המארח אינו מוכר"],"Remove host":[null,"הסרת מארח"],Server:[null,"שרת"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"זה בסדר לשתף את טביעת האצבע באופן ציבורי, לרבות בדוא״ל."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"השרת סירב לאמת את ‚$0’ עם אימות בסיסמה ואין שיטות אימות אחרות נתמכות."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"הגדרות הדפדפן מונעות מ־Cockpit לפעול ($0 בלתי נגיש)"],"This web browser is too old to run the Web Console (missing $0)":[null,"דפדפן זה מיושן מכדי להריץ את המסוף לדפדפן (חסר $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"כדי לוודא שהחיבור שלך לא מיורט על ידי גורמי צד־שלישי זדוניים, נא לאמת את טביעת האצבע של מפתח המארח:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"כדי לאמת את טביעת האצבע, יש להריץ את הפקודה הבאה על $0 במהלך ישיבה פיזית מול המכונה או דרך רשת מהימנה:"],"Try again":[null,"לנסות שוב"],"Unable to connect to that address":[null,"לא ניתן להתחבר לכתובת הזו"],"User name":[null,"שם משתמש"],"User name cannot be empty":[null,"שם המשתמש לא יכול להיות ריק"],"Validating authentication token":[null,"אסימון האימות מתוקף"],"Wrong user name or password":[null,"שם משתמש או סיסמה שגויים"],"You are connecting to $0 for the first time.":[null,"זאת ההתחברות הראשונה שלך אל $0."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.it.js cockpit-284/dist/static/po.it.js --- cockpit-283/dist/static/po.it.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.it.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"it","language-direction":"ltr"},"$0 error":[null,"Errore $0"],"$0 key changed":[null,"Chiave $0 modificata"],"A modern browser is required for security, reliability, and performance.":[null,"Un browser moderno è necessario per la sicurezza, l'affidabilità e le prestazioni."],"Accept key and log in":[null,"Accetta la chiave ed effettua l'accesso"],"Authentication failed":[null,"Autenticazione fallita"],"Authentication failed: Server closed connection":[null,"Autenticazione fallita: il server ha terminato la connessione"],Cancel:[null,"Annulla"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"La modifica delle chiavi sono di solito il risultato di una reinstallazione del sistema. Tuttavia, una modifica inaspettata può indicare un tentativo di intercettazione da parte di un soggetto terzo."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"L'autenticazione di Cockpit non è configurata correttamente."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit è un gestore di server che rende facile amministrare i server Linux tramite un browser web. Cambiare tra il terminale e lo strumento web non è un problema. Un servizio avviato tramite Cockpit può essere interrotto tramite il terminale. Allo stesso modo, se si verifica un errore nel terminale, può essere visto nella sezione del registro di Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit è perfetto per i nuovi amministratori di sistema, consentendo loro di eseguire facilmente semplici operazioni come la gestione dell'archiviazione, l'ispezione del registro e l'avvio e l'arresto dei servizi. È possibile monitorare e amministrare più server allo stesso tempo. Basta aggiungerli con un solo clic e se ne prenderà subito cura."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Collegati a"],"Connect to:":[null,"Collegati a:"],"Download a new browser for free":[null,"Scarica gratuitamente un nuovo browser"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Se l'impronta digitale coincide, clicca \"Accetta la chiave e autentica\". Altrimenti, non autenticare e contatta l'amministratore."],"Internal error: Invalid challenge header":[null,"Errore interno: challenge header non valido"],"Log in":[null,"Accedi"],"Log in with your server user account.":[null,"Accedi con il tuo account utente del server."],Login:[null,"Accesso"],"Login again":[null,"Effettua di nuovo il login"],"Logout successful":[null,"Logout riuscito"],"New host":[null,"Nuovo host"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Una volta installato Cockpit, abilitarlo con "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"Oppure utilizzare un browser in bundle"],"Other options":[null,"Altre opzioni"],Password:[null,"Password"],"Permission denied":[null,"Permesso negato"],"Please enable JavaScript to use the Web Console.":[null,"Abilita Javascript per usare Web Console"],"Please specify the host to connect to":[null,"Specifica l'host a cui connettersi"],"Refusing to connect. Host is unknown":[null,"Rifiuto di connessione. L'host è sconosciuto"],"Refusing to connect. Hostkey does not match":[null,"Rifiuto di connessione. Il tasto Hostkey non corrisponde"],"Refusing to connect. Hostkey is unknown":[null,"Rifiuto di connessione. La chiave host è sconosciuta"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"L'impronta digitale risultante è idonea per la condivisione pubblica, email inclusa."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Il server ha rifiutato di autenticare '$0' utilizzando l'autenticazione con password, e non sono disponibili altri metodi di autenticazione supportati."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"La configurazione del browser web impedisce l'esecuzione di Cockpit ($0 inaccessibile)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Questo browser web è troppo vecchio per eseguire Web Console ($0 mancante)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Per assicurare che la connessione non sia intercettata da un soggetto terzo malelvolo, verifica l'impronta digitale dell'host:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Per verificare un'impronta digitale, esegui su $0 mentre sei fisicamente di fronte alla macchina o attraverso una rete fidata:"],"Try again":[null,"Riprova"],"Unable to connect to that address":[null,"Impossibile connettersi a quell'indirizzo"],"User name":[null,"Nome utente"],"User name cannot be empty":[null,"Il nome utente non può essere vuoto"],"Validating authentication token":[null,"Convalida del token di autenticazione"],"Web Console for Linux servers":[null,"Web Console per server Linux"],"Wrong user name or password":[null,"Nome utente o password errata"],"You are connecting to $0 for the first time.":[null,"Collegamento a $0 per la prima volta"]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"it","language-direction":"ltr"},"$0 error":[null,"Errore $0"],"$0 key changed":[null,"Chiave $0 modificata"],"A modern browser is required for security, reliability, and performance.":[null,"Un browser moderno è necessario per la sicurezza, l'affidabilità e le prestazioni."],"Accept key and log in":[null,"Accetta la chiave ed effettua l'accesso"],"Authentication failed":[null,"Autenticazione fallita"],"Authentication failed: Server closed connection":[null,"Autenticazione fallita: il server ha terminato la connessione"],Cancel:[null,"Annulla"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"La modifica delle chiavi sono di solito il risultato di una reinstallazione del sistema. Tuttavia, una modifica inaspettata può indicare un tentativo di intercettazione da parte di un soggetto terzo."],"Cockpit authentication is configured incorrectly.":[null,"L'autenticazione di Cockpit non è configurata correttamente."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Collegati a"],"Connect to:":[null,"Collegati a:"],"Download a new browser for free":[null,"Scarica gratuitamente un nuovo browser"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Se l'impronta digitale coincide, clicca \"Accetta la chiave e autentica\". Altrimenti, non autenticare e contatta l'amministratore."],"Internal error: Invalid challenge header":[null,"Errore interno: challenge header non valido"],"Log in":[null,"Accedi"],"Log in with your server user account.":[null,"Accedi con il tuo account utente del server."],Login:[null,"Accesso"],"Login again":[null,"Effettua di nuovo il login"],"Logout successful":[null,"Logout riuscito"],"New host":[null,"Nuovo host"],"Or use a bundled browser":[null,"Oppure utilizzare un browser in bundle"],"Other options":[null,"Altre opzioni"],Password:[null,"Password"],"Permission denied":[null,"Permesso negato"],"Please enable JavaScript to use the Web Console.":[null,"Abilita Javascript per usare Web Console"],"Please specify the host to connect to":[null,"Specifica l'host a cui connettersi"],"Refusing to connect. Host is unknown":[null,"Rifiuto di connessione. L'host è sconosciuto"],"Refusing to connect. Hostkey does not match":[null,"Rifiuto di connessione. Il tasto Hostkey non corrisponde"],"Refusing to connect. Hostkey is unknown":[null,"Rifiuto di connessione. La chiave host è sconosciuta"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"L'impronta digitale risultante è idonea per la condivisione pubblica, email inclusa."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Il server ha rifiutato di autenticare '$0' utilizzando l'autenticazione con password, e non sono disponibili altri metodi di autenticazione supportati."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"La configurazione del browser web impedisce l'esecuzione di Cockpit ($0 inaccessibile)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Questo browser web è troppo vecchio per eseguire Web Console ($0 mancante)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Per assicurare che la connessione non sia intercettata da un soggetto terzo malelvolo, verifica l'impronta digitale dell'host:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Per verificare un'impronta digitale, esegui su $0 mentre sei fisicamente di fronte alla macchina o attraverso una rete fidata:"],"Try again":[null,"Riprova"],"Unable to connect to that address":[null,"Impossibile connettersi a quell'indirizzo"],"User name":[null,"Nome utente"],"User name cannot be empty":[null,"Il nome utente non può essere vuoto"],"Validating authentication token":[null,"Convalida del token di autenticazione"],"Wrong user name or password":[null,"Nome utente o password errata"],"You are connecting to $0 for the first time.":[null,"Collegamento a $0 per la prima volta"]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.ja.js cockpit-284/dist/static/po.ja.js --- cockpit-283/dist/static/po.ja.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.ja.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>0,language:"ja","language-direction":"ltr"},"$0 error":[null,"$0 エラー"],"$0 key changed":[null,"$0 キーが変更されました"],"A modern browser is required for security, reliability, and performance.":[null,"セキュリティー、信頼性、およびパフォーマンスに対して最新のブラウザーが必要です。"],"Accept key and log in":[null,"キーを受け入れてログイン"],"Authentication failed":[null,"認証に失敗しました"],"Authentication failed: Server closed connection":[null,"認証に失敗しました: サーバーの接続が切断されました"],Cancel:[null,"取り消し"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"キーを変更すると、オペレーティングシステムを再インストールすることになることが多くあります。ただし、予期しない変更により接続の傍受が試行される場合もあります。"],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit の認証が間違って設定されています。"],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit は、Web ブラウザーで Linux サーバーを簡単に管理できるサーバーマネージャーです。端末と Web ツールを区別せずに使用できます。Cockpit で起動されたサービスは端末で停止できます。同様に、端末でエラーが発生した場合は、そのエラーを Cockpit ジャーナルインターフェースで確認できます。"],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit は経験が少ないシステム管理者に最適です。これらのシステム管理者はストレージの管理、ジャーナルの検査、サービスの起動および停止などの単純なタスクを簡単に実行できるようになります。また、複数のサーバーを同時に監視および管理できます。これらのサーバーはクリックするだけで追加できます。追加後に、ご使用のマシンは他のマシンを管理するようになります。"],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"接続先"],"Connect to:":[null,"接続先:"],"Download a new browser for free":[null,"新しいブラウザーを無料でダウンロードします"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"フィンガープリントが一致する場合は、Accept key and login をクリックします。一致しない場合は、ログインせずに、管理者にお問い合わせください。"],"Internal error: Invalid challenge header":[null,"内部エラー: 無効なチャレンジヘッダー"],"Log in":[null,"ログイン"],"Log in with your server user account.":[null,"サーバーのユーザーアカウントでログインします。"],Login:[null,"ログイン"],"Login again":[null,"再ログイン"],"Logout successful":[null,"ログアウトが正常に行われました"],"New host":[null,"新規ホスト"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Cockpit がインストールされたら、"systemctl enable --now cockpit.socket" コマンドで有効にします。'],"Or use a bundled browser":[null,"あるいは、バンドルされたブラウザーを使用します"],"Other options":[null,"他のオプション"],Password:[null,"パスワード"],"Permission denied":[null,"パーミッションが拒否されました"],"Please enable JavaScript to use the Web Console.":[null,"Web コンソールを使用するには JavaScript を有効にしてください。"],"Please specify the host to connect to":[null,"接続するホストを指定してください"],"Recent hosts":[null,"直近のホスト"],"Refusing to connect. Host is unknown":[null,"接続を拒否しています。ホストが不明です"],"Refusing to connect. Hostkey does not match":[null,"接続を拒否しています。ホストキーが一致しません"],"Refusing to connect. Hostkey is unknown":[null,"接続を拒否しています。ホストキーが不明です"],"Remove host":[null,"ホストの削除"],Server:[null,"サーバー"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"作成されたフィンガープリントは、電子メールを含むパブリックメソッドを介して共有すると問題ありません。"],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"サーバーはパスワード認証を使用した '$0' の認証を拒否しました。サポートされた他の認証方法は利用できません。"],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Web ブラウザーの設定により、Cockpit の実行は防がれます (アクセスできない $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"この Web ブラウザーは古いため、Web コンソールを実行できません ($0 が不明)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"悪意のあるサードパーティーによって接続がインターセプトされないようにするには、ホストキーフィンガープリントを確認してください:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"フィンガープリントを確認するには、マシン上に物理的に置かれるか、信頼できるネットワークを介して $0 で次のコマンドを実行します:"],"Try again":[null,"再試行します"],"Unable to connect to that address":[null,"そのアドレスに接続できません"],"User name":[null,"ユーザー名"],"User name cannot be empty":[null,"ユーザー名は空にできません"],"Validating authentication token":[null,"認証トークンの検証"],"Web Console for Linux servers":[null,"Linux サーバー用 Web コンソール"],"Wrong user name or password":[null,"ユーザー名またはパスワードが間違っています"],"You are connecting to $0 for the first time.":[null,"初めて $0 に接続しています。"]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>0,language:"ja","language-direction":"ltr"},"$0 error":[null,"$0 エラー"],"$0 key changed":[null,"$0 キーが変更されました"],"A modern browser is required for security, reliability, and performance.":[null,"セキュリティー、信頼性、およびパフォーマンスに対して最新のブラウザーが必要です。"],"Accept key and log in":[null,"キーを受け入れてログイン"],"Authentication failed":[null,"認証に失敗しました"],"Authentication failed: Server closed connection":[null,"認証に失敗しました: サーバーの接続が切断されました"],Cancel:[null,"取り消し"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"キーを変更すると、オペレーティングシステムを再インストールすることになることが多くあります。ただし、予期しない変更により接続の傍受が試行される場合もあります。"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit の認証が間違って設定されています。"],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"接続先"],"Connect to:":[null,"接続先:"],"Download a new browser for free":[null,"新しいブラウザーを無料でダウンロードします"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"フィンガープリントが一致する場合は、Accept key and login をクリックします。一致しない場合は、ログインせずに、管理者にお問い合わせください。"],"Internal error: Invalid challenge header":[null,"内部エラー: 無効なチャレンジヘッダー"],"Log in":[null,"ログイン"],"Log in with your server user account.":[null,"サーバーのユーザーアカウントでログインします。"],Login:[null,"ログイン"],"Login again":[null,"再ログイン"],"Logout successful":[null,"ログアウトが正常に行われました"],"New host":[null,"新規ホスト"],"Or use a bundled browser":[null,"あるいは、バンドルされたブラウザーを使用します"],"Other options":[null,"他のオプション"],Password:[null,"パスワード"],"Permission denied":[null,"パーミッションが拒否されました"],"Please enable JavaScript to use the Web Console.":[null,"Web コンソールを使用するには JavaScript を有効にしてください。"],"Please specify the host to connect to":[null,"接続するホストを指定してください"],"Recent hosts":[null,"直近のホスト"],"Refusing to connect. Host is unknown":[null,"接続を拒否しています。ホストが不明です"],"Refusing to connect. Hostkey does not match":[null,"接続を拒否しています。ホストキーが一致しません"],"Refusing to connect. Hostkey is unknown":[null,"接続を拒否しています。ホストキーが不明です"],"Remove host":[null,"ホストの削除"],Server:[null,"サーバー"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"作成されたフィンガープリントは、電子メールを含むパブリックメソッドを介して共有すると問題ありません。"],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"サーバーはパスワード認証を使用した '$0' の認証を拒否しました。サポートされた他の認証方法は利用できません。"],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Web ブラウザーの設定により、Cockpit の実行は防がれます (アクセスできない $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"この Web ブラウザーは古いため、Web コンソールを実行できません ($0 が不明)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"悪意のあるサードパーティーによって接続がインターセプトされないようにするには、ホストキーフィンガープリントを確認してください:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"フィンガープリントを確認するには、マシン上に物理的に置かれるか、信頼できるネットワークを介して $0 で次のコマンドを実行します:"],"Try again":[null,"再試行します"],"Unable to connect to that address":[null,"そのアドレスに接続できません"],"User name":[null,"ユーザー名"],"User name cannot be empty":[null,"ユーザー名は空にできません"],"Validating authentication token":[null,"認証トークンの検証"],"Wrong user name or password":[null,"ユーザー名またはパスワードが間違っています"],"You are connecting to $0 for the first time.":[null,"初めて $0 に接続しています。"]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.ka.js cockpit-284/dist/static/po.ka.js --- cockpit-283/dist/static/po.ka.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.ka.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"ka","language-direction":"ltr"}," Bypass browser check ":[null," ბრაუზერის შემოწმების გამოტოვება "],"$0 error":[null,"$0 შეცდომა"],"$0 key changed":[null,"$0 გასაღები შეიცვალა"],"A modern browser is required for security, reliability, and performance.":[null,"უსაფრთხოებისთვის, წარმადობისთვის და საიმედოობისთვის საჭიროა ახალი ბრაუზერი."],"Accept key and log in":[null,"მიიღეთ გასაღები და შედით"],"Authentication failed":[null,"ავთენტიკაციის შეცდომა"],"Authentication failed: Server closed connection":[null,"ავთენტიკაციის შეცდომა: სერვერმა კავშირი დახურა"],Cancel:[null,"გაუქმება"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"შეცვლილი გასაღებები ხშირად ოპერაციული სისტემის გადაყენებაზე მიუთითებს. ამავე დროს მოულოდნელი ცვლილება კავშირის გადასაჭერად მესამე პირის ჩარევასაც შეიძლება ნიშნავდეს."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit-ის ავთენტიკაციის არასწორი კონფიგურაცია."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit წარმოადგენს სერვერის მმართველს, რომლითაც Linux სერვერების ადმინისტრირება ბრაუზერითაც შეგიძლიათ. ტერმინალსა და ვებ ხელსაწყოს შორის გადართვა პრობლემა არაა. Cockpit-ით გაშვებული სერვისი შეგიძლიათ გააჩეროთ ტერმინალთაც. ასევე, თუ შეცდომა დაფიქსირდება ტერმინალში, მისი ნახვა Cockpit-ის საშუალებითაც შეგიძლიათ."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit შესანიშნავია ახალი სისტემური ადმინისტრატორებისთვის. ის მათ საშუალებას აძლევს ადვილად შეასრულონ ისეთი მარტივი ამოცანები, როგორიცაა შენახვის ადმინისტრირება, ჟურნალების შემოწმება და სერვისების დაწყება და გაჩერება. შეგიძლიათ ერთდროულად რამდენიმე სერვერის მონიტორინგი და ადმინისტრირება. უბრალოდ დაამატეთ ისინი ერთი დაწკაპუნებით და თქვენი მანქანები იზრუნებს მის მეგობრებზე."],"Cockpit might not render correctly in your browser":[null,"Cockpit-ი თქვენს ბრაუზერში შეიძლება არასწორად გამოჩნდეს"],"Connect to":[null,"დაკავშირება"],"Connect to:":[null,"დაკავშირება:"],"Download a new browser for free":[null,"გადმოწერეთ ახალი ბრაუზერი უფასოდ"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'თუ ანაბეჭდი ემთხვევა, დააწექით "გასაღების მიღება და შესვლა"-ს. ან არ შეხვიდეთ და დაუკავშირდით ადმინისტრატორს.'],"Internal error: Invalid challenge header":[null,"შიდა შეცდომა: გამოწვევის არასწორი თავსართი"],"Log in":[null,"შესვლა"],"Log in with your server user account.":[null,"შედით სერვერის თქვენი ანგარიშით."],Login:[null,"შესვლა"],"Login again":[null,"თავიდან შესვლა"],"Logout successful":[null,"გასვლა წარმატებულია"],"New host":[null,"ახალი ჰოსტი"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'როცა Cockpit-ს დააყენებთ, შეგიძლიათ მისი ჩართვაც, ბრძანებით "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"ან გამოიყენეთ მოყოლილი ბრაუზერი"],"Other options":[null,"სხვა პარამეტრები"],Password:[null,"პაროლი"],"Permission denied":[null,"წვდომა აკრძალულია"],"Please enable JavaScript to use the Web Console.":[null,"ვებ კონსოლის გამოსაყენებლად საჭიროა JavaScript-ის ჩართვა."],"Please specify the host to connect to":[null,"შეიყვანეთ მისაერთებელი ჰოსტის სახელი"],"Recent hosts":[null,"ბოლო ჰოსტები"],"Refusing to connect. Host is unknown":[null,"კავშირი უარყოფილია. ჰოსტი უცნობია"],"Refusing to connect. Hostkey does not match":[null,"კავშირი უარყოფითია. ჰოსტის გასაღებები არ ემთხვევა"],"Refusing to connect. Hostkey is unknown":[null,"კავშირი უარყოფილია. ჰოსტის უცნობი გასაღები"],"Remove host":[null,"ჰოსტის წაშლა"],Server:[null,"სერვერი"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"მიღებული ანაბეჭდების გაზიარება პრობლემა არაა."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"სერვერმა უარყო $0-ის ავთენტიკაცია პაროლის საშუალებით და ავთენტიკაციის სხვა საშუალებები ხელმიუწვდომელია."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Cockpit-ის გაშვება შეუძლებელია ბრაუზერის კონფიგურაციის გამო ($0 მიუწვდომელია)"],"This web browser is too old to run the Web Console (missing $0)":[null,"ეს ბრაუზერ ძალიან ძველია ვებ კონსოლის გასაშვებად (არ გააჩნია $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"იმაში დასარწმუნებლად, რომ არ ხდება კავშირის გადაჭერა, შეამოწმეთ ჰოსტის ანაბეჭდი:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"ანაბეჭდის შესამოწმებლად გაუშვით ეს ბრძანება $0-ზე როცა ფიზიკურად ან სანდო ქსელით იქნებით შესული მანქანაზე:"],"Try again":[null,"თავიდან სცადეთ"],"Unable to connect to that address":[null,"მისამართზე დაკავშირების შეცდომა"],"User name":[null,"მომხმარებლის სახელი"],"User name cannot be empty":[null,"მომხმარებლის სახელი ცარიელი არ შეიძლება იყოს"],"Validating authentication token":[null,"ავთენტიკაციის კოდის გადამოწმება"],"Web Console for Linux servers":[null,"ვებ კონსოლი Linux სერვერებისთვის"],"Wrong user name or password":[null,"არასწორი მოხმარებელი ან პაროლი"],"You are connecting to $0 for the first time.":[null,"$0-ს პირველად უკავშირდებით."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>1!=n,language:"ka","language-direction":"ltr"}," Bypass browser check ":[null," ბრაუზერის შემოწმების გამოტოვება "],"$0 error":[null,"$0 შეცდომა"],"$0 key changed":[null,"$0 გასაღები შეიცვალა"],"A modern browser is required for security, reliability, and performance.":[null,"უსაფრთხოებისთვის, წარმადობისთვის და საიმედოობისთვის საჭიროა ახალი ბრაუზერი."],"Accept key and log in":[null,"მიიღეთ გასაღები და შედით"],"Authentication failed":[null,"ავთენტიკაციის შეცდომა"],"Authentication failed: Server closed connection":[null,"ავთენტიკაციის შეცდომა: სერვერმა კავშირი დახურა"],Cancel:[null,"გაუქმება"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"შეცვლილი გასაღებები ხშირად ოპერაციული სისტემის გადაყენებაზე მიუთითებს. ამავე დროს მოულოდნელი ცვლილება კავშირის გადასაჭერად მესამე პირის ჩარევასაც შეიძლება ნიშნავდეს."],"Cockpit authentication is configured incorrectly.":[null,"Cockpit-ის ავთენტიკაციის არასწორი კონფიგურაცია."],"Cockpit might not render correctly in your browser":[null,"Cockpit-ი თქვენს ბრაუზერში შეიძლება არასწორად გამოჩნდეს"],"Connect to":[null,"დაკავშირება"],"Connect to:":[null,"დაკავშირება:"],"Download a new browser for free":[null,"გადმოწერეთ ახალი ბრაუზერი უფასოდ"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'თუ ანაბეჭდი ემთხვევა, დააწექით "გასაღების მიღება და შესვლა"-ს. ან არ შეხვიდეთ და დაუკავშირდით ადმინისტრატორს.'],"Internal error: Invalid challenge header":[null,"შიდა შეცდომა: გამოწვევის არასწორი თავსართი"],"Log in":[null,"შესვლა"],"Log in with your server user account.":[null,"შედით სერვერის თქვენი ანგარიშით."],Login:[null,"შესვლა"],"Login again":[null,"თავიდან შესვლა"],"Logout successful":[null,"გასვლა წარმატებულია"],"New host":[null,"ახალი ჰოსტი"],"Or use a bundled browser":[null,"ან გამოიყენეთ მოყოლილი ბრაუზერი"],"Other options":[null,"სხვა პარამეტრები"],Password:[null,"პაროლი"],"Permission denied":[null,"წვდომა აკრძალულია"],"Please enable JavaScript to use the Web Console.":[null,"ვებ კონსოლის გამოსაყენებლად საჭიროა JavaScript-ის ჩართვა."],"Please specify the host to connect to":[null,"შეიყვანეთ მისაერთებელი ჰოსტის სახელი"],"Recent hosts":[null,"ბოლო ჰოსტები"],"Refusing to connect. Host is unknown":[null,"კავშირი უარყოფილია. ჰოსტი უცნობია"],"Refusing to connect. Hostkey does not match":[null,"კავშირი უარყოფითია. ჰოსტის გასაღებები არ ემთხვევა"],"Refusing to connect. Hostkey is unknown":[null,"კავშირი უარყოფილია. ჰოსტის უცნობი გასაღები"],"Remove host":[null,"ჰოსტის წაშლა"],Server:[null,"სერვერი"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"მიღებული ანაბეჭდების გაზიარება პრობლემა არაა."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"სერვერმა უარყო $0-ის ავთენტიკაცია პაროლის საშუალებით და ავთენტიკაციის სხვა საშუალებები ხელმიუწვდომელია."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Cockpit-ის გაშვება შეუძლებელია ბრაუზერის კონფიგურაციის გამო ($0 მიუწვდომელია)"],"This web browser is too old to run the Web Console (missing $0)":[null,"ეს ბრაუზერ ძალიან ძველია ვებ კონსოლის გასაშვებად (არ გააჩნია $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"იმაში დასარწმუნებლად, რომ არ ხდება კავშირის გადაჭერა, შეამოწმეთ ჰოსტის ანაბეჭდი:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"ანაბეჭდის შესამოწმებლად გაუშვით ეს ბრძანება $0-ზე როცა ფიზიკურად ან სანდო ქსელით იქნებით შესული მანქანაზე:"],"Try again":[null,"თავიდან სცადეთ"],"Unable to connect to that address":[null,"მისამართზე დაკავშირების შეცდომა"],"User name":[null,"მომხმარებლის სახელი"],"User name cannot be empty":[null,"მომხმარებლის სახელი ცარიელი არ შეიძლება იყოს"],"Validating authentication token":[null,"ავთენტიკაციის კოდის გადამოწმება"],"Wrong user name or password":[null,"არასწორი მოხმარებელი ან პაროლი"],"You are connecting to $0 for the first time.":[null,"$0-ს პირველად უკავშირდებით."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.ko.js cockpit-284/dist/static/po.ko.js --- cockpit-283/dist/static/po.ko.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.ko.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>0,language:"ko","language-direction":"ltr"}," Bypass browser check ":[null," 웹 탐색기 점검을 우회합니다 "],"$0 error":[null,"$0 오류"],"$0 key changed":[null,"$0 키 변경됩니다"],"A modern browser is required for security, reliability, and performance.":[null,"보안, 안정성, 성능을 위해 최신 브라우저가 필요합니다."],"Accept key and log in":[null,"키 수락 및 로그인"],"Authentication failed":[null,"인증 실패"],"Authentication failed: Server closed connection":[null,"인증 실패: 서버 연결 끊김"],Cancel:[null,"취소"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"때때로 운영 체제 재설치로 인해 키가 변경될 수 있습니다. 그러나 예기치 않은 변경은 연결을 가로채는 타사의 시도를 나타낼 수도 있습니다."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit 인증이 잘못 설정되어 있습니다."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit은 웹 브라우저에서 리눅스 서버를 쉽게 관리 할 수 있는 서버 관리자입니다. 터미널과 웹 도구을 구분하지 않고 사용할 수 있습니다. Cockpit에서 시작된 서비스는 터미널을 통해 중지할 수 있습니다. 마찬가지로 터미널에서 오류가 발생한 경우 해당 오류를 Cockpit 저널 연결장치에서 확인 할 수 있습니다."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit은 경험이 적은 시스템 관리자에게 적합합니다. 시스템 관리자는 저장장치 관리, 저널 검사, 서비스 시작 및 중지 등의 간단한 작업을 쉽게 수행할 수 있으며 여러 서버를 동시에 모니터링 및 관리 할 수 있습니다. 간단하게 장비를 추가하여 서버를 추가할 수 있으며 추가 후 다른 기기를 관리할 수 있습니다."],"Cockpit might not render correctly in your browser":[null,"Cockpit은 자신의 웹 탐색기에서 정확하게 렌더링 되지 않을 수 있습니다"],"Connect to":[null,"연결 대상"],"Connect to:":[null,"연결 대상:"],"Download a new browser for free":[null,"신규 브라우저 내려받기 (무료)"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'지문이 일치하면 "키 수락 및 로그인"을 눌러주세요. 일치 하지 않을 경우 로그인하지 않고 관리자에게 문의하십시오.'],"Internal error: Invalid challenge header":[null,"내부 오류: 잘못된 챌린지 헤더"],"Log in":[null,"로그인"],"Log in with your server user account.":[null,"서버 사용자 계정으로 로그인합니다."],Login:[null,"로그인"],"Login again":[null,"다시 로그인"],"Logout successful":[null,"성공적으로 로그아웃되었습니다"],"New host":[null,"신규 호스트"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Cockpit이 설치되면 "systemctl enable --now cockpit.socket"을 사용하여 이를 활성화합니다.'],"Or use a bundled browser":[null,"번들된 브라우저 사용"],"Other options":[null,"기타 옵션"],Password:[null,"비밀번호"],"Permission denied":[null,"권한이 거부되었습니다"],"Please enable JavaScript to use the Web Console.":[null,"웹 콘솔을 사용하려면 JavaScript를 활성화하십시오."],"Please specify the host to connect to":[null,"연결할 호스트를 지정해 주십시오"],"Recent hosts":[null,"최근 호스트"],"Refusing to connect. Host is unknown":[null,"연결을 거부하고 있습니다. 알 수 없는 호스트입니다"],"Refusing to connect. Hostkey does not match":[null,"연결을 거부하고 있습니다. 호스트 키가 일치하지 않습니다"],"Refusing to connect. Hostkey is unknown":[null,"연결을 거부하고 있습니다. 알 수 없는 호스트 키입니다"],"Remove host":[null,"호스트 제거"],Server:[null,"서버"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"최종 지문을 전자우편을 포함한 공개적인 방법을 통해 공유 할 수 있습니다."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"서버가 비밀번호 인증을 사용하여 '$0' 인증을 거부했습니다. 지원되는 다른 인증 방법을 사용 할 수 없습니다."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"웹 브라우저의 설정에 따라 Cockpit이 실행되지 않습니다 (액세스 불가능 $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"이 웹 브라우저는 오래되어 웹 콘솔을 실행할 수 없습니다($0 누락)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"악성의 제3자가 귀하의 연결을 가로채지 않도록 하려면 호스트 키 지문을 확인하십시오:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"지문을 확인하려면 물리적인 장치 또는 신뢰할 수 있는 네트워크를 통해 $0에서 다음을 실행합니다:"],"Try again":[null,"다시 시도"],"Unable to connect to that address":[null,"해당 주소에 연결 할 수 없음"],"User name":[null,"사용자 이름"],"User name cannot be empty":[null,"사용자 이름을 입력하셔야 합니다"],"Validating authentication token":[null,"인증 토큰 확인"],"Web Console for Linux servers":[null,"리눅스 서버를 위한 웹콘솔"],"Wrong user name or password":[null,"잘못된 사용자 이름 또는 비밀번호"],"You are connecting to $0 for the first time.":[null,"처음으로 $0에 연결됩니다."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>0,language:"ko","language-direction":"ltr"}," Bypass browser check ":[null," 웹 탐색기 점검을 우회합니다 "],"$0 error":[null,"$0 오류"],"$0 key changed":[null,"$0 키 변경됩니다"],"A modern browser is required for security, reliability, and performance.":[null,"보안, 안정성, 성능을 위해 최신 브라우저가 필요합니다."],"Accept key and log in":[null,"키 수락 및 로그인"],"Authentication failed":[null,"인증 실패"],"Authentication failed: Server closed connection":[null,"인증 실패: 서버 연결 끊김"],Cancel:[null,"취소"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"때때로 운영 체제 재설치로 인해 키가 변경될 수 있습니다. 그러나 예기치 않은 변경은 연결을 가로채는 타사의 시도를 나타낼 수도 있습니다."],"Cockpit authentication is configured incorrectly.":[null,"Cockpit 인증이 잘못 설정되어 있습니다."],"Cockpit might not render correctly in your browser":[null,"Cockpit은 자신의 웹 탐색기에서 정확하게 렌더링 되지 않을 수 있습니다"],"Connect to":[null,"연결 대상"],"Connect to:":[null,"연결 대상:"],"Download a new browser for free":[null,"신규 브라우저 내려받기 (무료)"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'지문이 일치하면 "키 수락 및 로그인"을 눌러주세요. 일치 하지 않을 경우 로그인하지 않고 관리자에게 문의하십시오.'],"Internal error: Invalid challenge header":[null,"내부 오류: 잘못된 챌린지 헤더"],"Log in":[null,"로그인"],"Log in with your server user account.":[null,"서버 사용자 계정으로 로그인합니다."],Login:[null,"로그인"],"Login again":[null,"다시 로그인"],"Logout successful":[null,"성공적으로 로그아웃되었습니다"],"New host":[null,"신규 호스트"],"Or use a bundled browser":[null,"번들된 브라우저 사용"],"Other options":[null,"기타 옵션"],Password:[null,"비밀번호"],"Permission denied":[null,"권한이 거부되었습니다"],"Please enable JavaScript to use the Web Console.":[null,"웹 콘솔을 사용하려면 JavaScript를 활성화하십시오."],"Please specify the host to connect to":[null,"연결할 호스트를 지정해 주십시오"],"Recent hosts":[null,"최근 호스트"],"Refusing to connect. Host is unknown":[null,"연결을 거부하고 있습니다. 알 수 없는 호스트입니다"],"Refusing to connect. Hostkey does not match":[null,"연결을 거부하고 있습니다. 호스트 키가 일치하지 않습니다"],"Refusing to connect. Hostkey is unknown":[null,"연결을 거부하고 있습니다. 알 수 없는 호스트 키입니다"],"Remove host":[null,"호스트 제거"],Server:[null,"서버"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"최종 지문을 전자우편을 포함한 공개적인 방법을 통해 공유 할 수 있습니다."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"서버가 비밀번호 인증을 사용하여 '$0' 인증을 거부했습니다. 지원되는 다른 인증 방법을 사용 할 수 없습니다."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"웹 브라우저의 설정에 따라 Cockpit이 실행되지 않습니다 (액세스 불가능 $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"이 웹 브라우저는 오래되어 웹 콘솔을 실행할 수 없습니다($0 누락)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"악성의 제3자가 귀하의 연결을 가로채지 않도록 하려면 호스트 키 지문을 확인하십시오:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"지문을 확인하려면 물리적인 장치 또는 신뢰할 수 있는 네트워크를 통해 $0에서 다음을 실행합니다:"],"Try again":[null,"다시 시도"],"Unable to connect to that address":[null,"해당 주소에 연결 할 수 없음"],"User name":[null,"사용자 이름"],"User name cannot be empty":[null,"사용자 이름을 입력하셔야 합니다"],"Validating authentication token":[null,"인증 토큰 확인"],"Wrong user name or password":[null,"잘못된 사용자 이름 또는 비밀번호"],"You are connecting to $0 for the first time.":[null,"처음으로 $0에 연결됩니다."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.nb_NO.js cockpit-284/dist/static/po.nb_NO.js --- cockpit-283/dist/static/po.nb_NO.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.nb_NO.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"nb_NO","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 feil"],"$0 key changed":[null,"$0 nøkkel endret"],"A modern browser is required for security, reliability, and performance.":[null,"Det kreves en moderne nettleser for sikkerhet, pålitelighet og ytelse."],"Accept key and log in":[null,"Godta nøkkel og logg inn"],"Authentication failed":[null,"Autentisering feilet"],"Authentication failed: Server closed connection":[null,"Autentisering feilet: Serveren lukket tilkoblingen"],Cancel:[null,"Avbryt"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Endrede nøkler er ofte resultatet av reinstallering av operativsystemet. Imidlertid kan en uventet endring indikere et tredjepartsforsøk på å fange opp forbindelsen din."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit autentisering er konfigurert feil."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit er en serveradministrator som gjør det enkelt å administrere Linux-serverne dine via en nettleser. Å bytte mellom terminalen og nettverktøyet er ikke noe problem. En tjeneste startet via Cockpit kan stoppes via terminalen. På samme måte, hvis det oppstår en feil i terminalen, kan den sees i Cockpit journal-grensesnittet."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit er perfekt for nye sysadminer, slik at de enkelt kan utføre enkle oppgaver som lagringsadministrasjon, inspisere journaler og starte og stoppe tjenester. Du kan overvåke og administrere flere servere samtidig. Bare legg dem til med et enkelt klikk, så vil maskinene dine se etter kompisene."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Koble til"],"Download a new browser for free":[null,"Last ned en ny nettleser gratis"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Hvis fingeravtrykket stemmer overens, klikker du på "Godta nøkkel og logg inn". Ellers ikke logg inn og kontakt administratoren din.'],"Internal error: Invalid challenge header":[null,""],"Log in":[null,"Logg inn"],"Log in with your server user account.":[null,"Logg inn med server brukerkontoen din."],"Login again":[null,"Logg inn igjen"],"Logout successful":[null,""],"New host":[null,"Ny vert"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Når Cockpit er installert, kan den aktiveres med "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"Eller bruk en nettleser som følger med"],"Other options":[null,"Andre alternativer"],Password:[null,"Passord"],"Permission denied":[null,"Ingen tilgang"],"Please enable JavaScript to use the Web Console.":[null,"Aktiver JavaScript for å bruke Web konsollet."],"Please specify the host to connect to":[null,"Vennligst angi verten du vil koble til"],"Refusing to connect. Host is unknown":[null,"Nekter å koble til. Verten er ukjent"],"Refusing to connect. Hostkey does not match":[null,"Nekter å koble til. Vertsnøkkel samsvarer ikke"],"Refusing to connect. Hostkey is unknown":[null,"Nekter å koble til. Vertsnøkkel er ukjent"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Det resulterende fingeravtrykket er greit å dele via offentlige metoder, inkludert e-post."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Serveren nektet å autentisere '$0' ved hjelp av passordgodkjenning, og ingen andre støttede godkjenningsmetoder er tilgjengelige."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Nettleserkonfigurasjonen forhindrer Cockpit i å kjøre (utilgjengelig $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Denne nettleseren er for gammel til å kjøre web konsollet (mangler $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"For å sikre at forbindelsen din ikke blir fanget opp av en ondsinnet tredjepart, må du verifisere vertsnøkkelens fingeravtrykk:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"For å bekrefte et fingeravtrykk, kjør følgende på $ 0 mens du sitter fysisk ved maskinen eller gjennom et pålitelig nettverk:"],"Try again":[null,"Prøv på nytt"],"Unable to connect to that address":[null,"Kan ikke koble til den adressen"],"User name":[null,"Brukernavn"],"User name cannot be empty":[null,"Brukernavnet kan ikke være tomt"],"Validating authentication token":[null,"Validerer godkjenningstoken"],"Web Console for Linux servers":[null,"Web konsoll for Linux servere"],"Wrong user name or password":[null,"Feil brukernavn eller passord"],"You are connecting to $0 for the first time.":[null,"Du kobler til $0 for første gang."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"nb_NO","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 feil"],"$0 key changed":[null,"$0 nøkkel endret"],"A modern browser is required for security, reliability, and performance.":[null,"Det kreves en moderne nettleser for sikkerhet, pålitelighet og ytelse."],"Accept key and log in":[null,"Godta nøkkel og logg inn"],"Authentication failed":[null,"Autentisering feilet"],"Authentication failed: Server closed connection":[null,"Autentisering feilet: Serveren lukket tilkoblingen"],Cancel:[null,"Avbryt"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Endrede nøkler er ofte resultatet av reinstallering av operativsystemet. Imidlertid kan en uventet endring indikere et tredjepartsforsøk på å fange opp forbindelsen din."],"Cockpit authentication is configured incorrectly.":[null,"Cockpit autentisering er konfigurert feil."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Koble til"],"Download a new browser for free":[null,"Last ned en ny nettleser gratis"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Hvis fingeravtrykket stemmer overens, klikker du på "Godta nøkkel og logg inn". Ellers ikke logg inn og kontakt administratoren din.'],"Internal error: Invalid challenge header":[null,""],"Log in":[null,"Logg inn"],"Log in with your server user account.":[null,"Logg inn med server brukerkontoen din."],"Login again":[null,"Logg inn igjen"],"Logout successful":[null,""],"New host":[null,"Ny vert"],"Or use a bundled browser":[null,"Eller bruk en nettleser som følger med"],"Other options":[null,"Andre alternativer"],Password:[null,"Passord"],"Permission denied":[null,"Ingen tilgang"],"Please enable JavaScript to use the Web Console.":[null,"Aktiver JavaScript for å bruke Web konsollet."],"Please specify the host to connect to":[null,"Vennligst angi verten du vil koble til"],"Refusing to connect. Host is unknown":[null,"Nekter å koble til. Verten er ukjent"],"Refusing to connect. Hostkey does not match":[null,"Nekter å koble til. Vertsnøkkel samsvarer ikke"],"Refusing to connect. Hostkey is unknown":[null,"Nekter å koble til. Vertsnøkkel er ukjent"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Det resulterende fingeravtrykket er greit å dele via offentlige metoder, inkludert e-post."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Serveren nektet å autentisere '$0' ved hjelp av passordgodkjenning, og ingen andre støttede godkjenningsmetoder er tilgjengelige."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Nettleserkonfigurasjonen forhindrer Cockpit i å kjøre (utilgjengelig $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Denne nettleseren er for gammel til å kjøre web konsollet (mangler $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"For å sikre at forbindelsen din ikke blir fanget opp av en ondsinnet tredjepart, må du verifisere vertsnøkkelens fingeravtrykk:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"For å bekrefte et fingeravtrykk, kjør følgende på $ 0 mens du sitter fysisk ved maskinen eller gjennom et pålitelig nettverk:"],"Try again":[null,"Prøv på nytt"],"Unable to connect to that address":[null,"Kan ikke koble til den adressen"],"User name":[null,"Brukernavn"],"User name cannot be empty":[null,"Brukernavnet kan ikke være tomt"],"Validating authentication token":[null,"Validerer godkjenningstoken"],"Wrong user name or password":[null,"Feil brukernavn eller passord"],"You are connecting to $0 for the first time.":[null,"Du kobler til $0 for første gang."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.nl.js cockpit-284/dist/static/po.nl.js --- cockpit-283/dist/static/po.nl.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.nl.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"nl","language-direction":"ltr"}," Bypass browser check ":[null," Browsercontrole omzeilen "],"$0 error":[null,"$0 fout"],"$0 key changed":[null,"$0 sleutel gewijzigd"],"A modern browser is required for security, reliability, and performance.":[null,"Een moderne browser is vereist voor goede beveiliging, betrouwbaarheid en prestaties."],"Accept key and log in":[null,"Accepteer sleutel en log in"],"Authentication failed":[null,"Authenticatie mislukte"],"Authentication failed: Server closed connection":[null,"Authenticatie mislukte: Server verbrak verbinding"],Cancel:[null,"Annuleren"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Gewijzigde sleutels zijn vaak het resultaat van een herinstallatie van het besturingssysteem. Een onverwachte wijziging kan echter wijzen op een poging van derden om je verbinding te onderscheppen."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit authenticatie is verkeerd geconfigureerd."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit is een serverbeheerder waarmee je Linux-servers eenvoudig kunt beheren via een webbrowser. Omschakelen tussen de terminal en het webgereedschap is geen probleem. Een service gestart via Cockpit kan via de terminal worden gestopt. Evenzo, als er een fout optreedt in de terminal, kan deze worden gezien in de Cockpit-logboekinterface."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit is perfect voor nieuwe systeembeheerders, waardoor ze eenvoudig eenvoudige taken kunnen uitvoeren, zoals opslagbeheer, het inspecteren van logboeken en het starten en stoppen van services. Je kunt meerdere servers tegelijkertijd bewaken en beheren. Voeg ze gewoon toe met een enkele klik en je machines zullen voor zijn maatjes zorgen."],"Cockpit might not render correctly in your browser":[null,"Cockpit wordt mogelijk niet correct weergegeven in je browser"],"Connect to":[null,"Verbinden met"],"Connect to:":[null,"Verbinden met:"],"Download a new browser for free":[null,"Download gratis een nieuwe browser"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Als de vingerafdruk overeenkomt, klik dan op "Accepteer sleutel en log in". Log anders niet in en neem contact op met je beheerder.'],"Internal error: Invalid challenge header":[null,"Interne fout: ongeldige exceptie koptekst"],"Log in":[null,"Inloggen"],"Log in with your server user account.":[null,"Log in met je servergebruikersaccount."],Login:[null,"Log in"],"Login again":[null,"Log opnieuw in"],"Logout successful":[null,"Uitloggen succesvol"],"New host":[null,"Nieuwe host"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Nadat Cockpit geïnstalleerd is, schakel je het in met "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"Of gebruik een gebundelde browser"],"Other options":[null,"Andere opties"],Password:[null,"Wachtwoord"],"Permission denied":[null,"Toestemming geweigerd"],"Please enable JavaScript to use the Web Console.":[null,"Zet JavaScript aan om de Webconsole te gebruiken."],"Please specify the host to connect to":[null,"Geef de host op waarmee je verbinding wilt maken"],"Recent hosts":[null,"Recente hosts"],"Refusing to connect. Host is unknown":[null,"Verbinding maken geweigerd. Host is onbekend"],"Refusing to connect. Hostkey does not match":[null,"Verbinding maken geweigerd. Hostsleutel komt niet overeen"],"Refusing to connect. Hostkey is unknown":[null,"Verbinding maken geweigerd. Hostsleutel is onbekend"],"Remove host":[null,"Verwijder host"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"De resulterende vingerafdruk is prima te delen via openbare methoden, inclusief e-mail."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"De server weigerde '$0' te verifiëren met wachtwoordverificatie en er zijn geen andere ondersteunde verificatiemethoden beschikbaar."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"De configuratie van de webbrowser voorkomt dat Cockpit wordt uitgevoerd (ontoegankelijk $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Deze webbrowser is te oud om de Webconsole uit te voeren ($0 ontbreekt)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Controleer de vingerafdruk van de hostsleutel om ervoor te zorgen dat je verbinding niet wordt onderschept door een kwaadwillende derde partij:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Om een vingerafdruk te verifiëren, voer je het volgende uit op $0 terwijl je fysiek achter de machine zit of via een vertrouwd netwerk:"],"Try again":[null,"Probeer opnieuw"],"Unable to connect to that address":[null,"Kan niet verbinden met dat adres"],"User name":[null,"Gebruikersnaam"],"User name cannot be empty":[null,"Gebruikersnaam mag niet leeg zijn"],"Validating authentication token":[null,"Verificatietoken valideren"],"Web Console for Linux servers":[null,"Webconsole voor Linux-servers"],"Wrong user name or password":[null,"Verkeerde gebruikersnaam of wachtwoord"],"You are connecting to $0 for the first time.":[null,"Je maakt voor de eerste keer verbinding met $0."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"nl","language-direction":"ltr"}," Bypass browser check ":[null," Browsercontrole omzeilen "],"$0 error":[null,"$0 fout"],"$0 key changed":[null,"$0 sleutel gewijzigd"],"A modern browser is required for security, reliability, and performance.":[null,"Een moderne browser is vereist voor goede beveiliging, betrouwbaarheid en prestaties."],"Accept key and log in":[null,"Accepteer sleutel en log in"],"Authentication failed":[null,"Authenticatie mislukte"],"Authentication failed: Server closed connection":[null,"Authenticatie mislukte: Server verbrak verbinding"],Cancel:[null,"Annuleren"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Gewijzigde sleutels zijn vaak het resultaat van een herinstallatie van het besturingssysteem. Een onverwachte wijziging kan echter wijzen op een poging van derden om je verbinding te onderscheppen."],"Cockpit authentication is configured incorrectly.":[null,"Cockpit authenticatie is verkeerd geconfigureerd."],"Cockpit might not render correctly in your browser":[null,"Cockpit wordt mogelijk niet correct weergegeven in je browser"],"Connect to":[null,"Verbinden met"],"Connect to:":[null,"Verbinden met:"],"Download a new browser for free":[null,"Download gratis een nieuwe browser"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Als de vingerafdruk overeenkomt, klik dan op "Accepteer sleutel en log in". Log anders niet in en neem contact op met je beheerder.'],"Internal error: Invalid challenge header":[null,"Interne fout: ongeldige exceptie koptekst"],"Log in":[null,"Inloggen"],"Log in with your server user account.":[null,"Log in met je servergebruikersaccount."],Login:[null,"Log in"],"Login again":[null,"Log opnieuw in"],"Logout successful":[null,"Uitloggen succesvol"],"New host":[null,"Nieuwe host"],"Or use a bundled browser":[null,"Of gebruik een gebundelde browser"],"Other options":[null,"Andere opties"],Password:[null,"Wachtwoord"],"Permission denied":[null,"Toestemming geweigerd"],"Please enable JavaScript to use the Web Console.":[null,"Zet JavaScript aan om de Webconsole te gebruiken."],"Please specify the host to connect to":[null,"Geef de host op waarmee je verbinding wilt maken"],"Recent hosts":[null,"Recente hosts"],"Refusing to connect. Host is unknown":[null,"Verbinding maken geweigerd. Host is onbekend"],"Refusing to connect. Hostkey does not match":[null,"Verbinding maken geweigerd. Hostsleutel komt niet overeen"],"Refusing to connect. Hostkey is unknown":[null,"Verbinding maken geweigerd. Hostsleutel is onbekend"],"Remove host":[null,"Verwijder host"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"De resulterende vingerafdruk is prima te delen via openbare methoden, inclusief e-mail."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"De server weigerde '$0' te verifiëren met wachtwoordverificatie en er zijn geen andere ondersteunde verificatiemethoden beschikbaar."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"De configuratie van de webbrowser voorkomt dat Cockpit wordt uitgevoerd (ontoegankelijk $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Deze webbrowser is te oud om de Webconsole uit te voeren ($0 ontbreekt)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Controleer de vingerafdruk van de hostsleutel om ervoor te zorgen dat je verbinding niet wordt onderschept door een kwaadwillende derde partij:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Om een vingerafdruk te verifiëren, voer je het volgende uit op $0 terwijl je fysiek achter de machine zit of via een vertrouwd netwerk:"],"Try again":[null,"Probeer opnieuw"],"Unable to connect to that address":[null,"Kan niet verbinden met dat adres"],"User name":[null,"Gebruikersnaam"],"User name cannot be empty":[null,"Gebruikersnaam mag niet leeg zijn"],"Validating authentication token":[null,"Verificatietoken valideren"],"Wrong user name or password":[null,"Verkeerde gebruikersnaam of wachtwoord"],"You are connecting to $0 for the first time.":[null,"Je maakt voor de eerste keer verbinding met $0."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.pl.js cockpit-284/dist/static/po.pl.js --- cockpit-283/dist/static/po.pl.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.pl.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,language:"pl","language-direction":"ltr"}," Bypass browser check ":[null," Obejdź sprawdzanie przeglądarki "],"$0 error":[null,"błąd $0"],"$0 key changed":[null,"Zmieniono klucz $0"],"A modern browser is required for security, reliability, and performance.":[null,"Z powodów bezpieczeństwa, niezawodności i wydajności wymagana jest nowoczesna przeglądarka."],"Accept key and log in":[null,"Przyjmij klucz i zaloguj się"],"Authentication failed":[null,"Uwierzytelnienie się nie powiodło"],"Authentication failed: Server closed connection":[null,"Uwierzytelnienie się nie powiodło: serwer zamknął połączenie"],Cancel:[null,"Anuluj"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Zmienione klucze są często wynikiem przeinstalowania systemu operacyjnego. Nieoczekiwana zmiana może jednak wskazywać na próbę przechwycenia połączenia przez stronę trzecią."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Uwierzytelnianie Cockpit jest niepoprawnie skonfigurowane."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit to menedżer serwerów ułatwiający administrowanie serwerów Linux przez przeglądarkę WWW. Można z łatwością przechodzić między terminalem a narzędziami WWW. Usługa uruchomiona za pomocą Cockpit może zostać zatrzymana za pomocą terminala. Jeśli błąd wystąpi w terminalu, to można go zobaczyć w interfejsie dziennika Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit jest idealny dla nowych administratorów, umożliwiając łatwe wykonywanie prostych zadań, takich jak administracja urządzeniami do przechowywania danych, badanie dzienników oraz uruchamianie i zatrzymywanie usług. Można monitorować i administrować wiele serwerów w tym samym czasie. Wystarczy dodać je pojedynczym kliknięciem."],"Cockpit might not render correctly in your browser":[null,"Cockpit może nie być poprawnie wyświetlany w używanej przeglądarce"],"Connect to":[null,"Połącz z"],"Connect to:":[null,"Połącz z:"],"Download a new browser for free":[null,"Pobierz nową przeglądarkę za darmo"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Jeśli odcisk się zgadza, należy kliknąć „Przyjmij klucz i zaloguj się”. W przeciwnym przypadku nie należy się logować i należy skontaktować się z administratorem."],"Internal error: Invalid challenge header":[null,"Wewnętrzny błąd: nieprawidłowy nagłówek wyzwania"],"Log in":[null,"Zaloguj"],"Log in with your server user account.":[null,"Logowanie za pomocą konta użytkownika serwera."],Login:[null,"Logowanie"],"Login again":[null,"Zaloguj ponownie"],"Logout successful":[null,"Pomyślnie wylogowano"],"New host":[null,"Nowy komputer"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"Po zainstalowaniu programu Cockpit należy go włączyć za pomocą polecenia „systemctl enable --now cockpit.socket”."],"Or use a bundled browser":[null,"Lub użyj dołączonej przeglądarki"],"Other options":[null,"Inne opcje"],Password:[null,"Hasło"],"Permission denied":[null,"Odmowa dostępu"],"Please enable JavaScript to use the Web Console.":[null,"Proszę włączyć obsługę języka JavaScript, aby używać konsoli internetowej."],"Please specify the host to connect to":[null,"Proszę podać komputer, z którym się połączyć"],"Recent hosts":[null,"Ostatnie komputery"],"Refusing to connect. Host is unknown":[null,"Odmowa połączenia. Komputer jest nieznany"],"Refusing to connect. Hostkey does not match":[null,"Odmowa połączenia. Klucze komputera się nie zgadzają"],"Refusing to connect. Hostkey is unknown":[null,"Odmowa połączenia. Klucz komputera jest nieznany"],"Remove host":[null,"Usuń komputer"],Server:[null,"Serwer"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Powstały odcisk można udostępniać publicznie, na przykład przez e-mail."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Serwer odmówił uwierzytelnienia „$0” za pomocą hasła, a żadne inne obsługiwane metody uwierzytelniania nie są dostępne."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Konfiguracja przeglądarki uniemożliwia działanie programu Cockpit ($0 jest niedostępne)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Ta przeglądarka jest za stara, aby uruchomić konsolę internetową (brak $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Aby upewnić się, że połączenie nie jest przechwytywane przez szkodliwą stronę trzecią, proszę sprawdzić poprawność odcisku klucza komputera:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Aby sprawdzić poprawność odcisku klucza, należy wykonać poniższe polecenie na $0 fizycznie siedząc przy komputerze lub przez zaufaną sieć:"],"Try again":[null,"Spróbuj ponownie"],"Unable to connect to that address":[null,"Nie można połączyć z tym adresem"],"User name":[null,"Nazwa użytkownika"],"User name cannot be empty":[null,"Nazwa użytkownika nie może być pusta"],"Validating authentication token":[null,"Sprawdzanie poprawności tokenu uwierzytelniania"],"Web Console for Linux servers":[null,"Konsola internetowa dla serwerów systemu Linux"],"Wrong user name or password":[null,"Błędna nazwa użytkownika lub hasło"],"You are connecting to $0 for the first time.":[null,"Łączenie z $0 po raz pierwszy."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,language:"pl","language-direction":"ltr"}," Bypass browser check ":[null," Obejdź sprawdzanie przeglądarki "],"$0 error":[null,"błąd $0"],"$0 key changed":[null,"Zmieniono klucz $0"],"A modern browser is required for security, reliability, and performance.":[null,"Z powodów bezpieczeństwa, niezawodności i wydajności wymagana jest nowoczesna przeglądarka."],"Accept key and log in":[null,"Przyjmij klucz i zaloguj się"],"Authentication failed":[null,"Uwierzytelnienie się nie powiodło"],"Authentication failed: Server closed connection":[null,"Uwierzytelnienie się nie powiodło: serwer zamknął połączenie"],Cancel:[null,"Anuluj"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Zmienione klucze są często wynikiem przeinstalowania systemu operacyjnego. Nieoczekiwana zmiana może jednak wskazywać na próbę przechwycenia połączenia przez stronę trzecią."],"Cockpit authentication is configured incorrectly.":[null,"Uwierzytelnianie Cockpit jest niepoprawnie skonfigurowane."],"Cockpit might not render correctly in your browser":[null,"Cockpit może nie być poprawnie wyświetlany w używanej przeglądarce"],"Connect to":[null,"Połącz z"],"Connect to:":[null,"Połącz z:"],"Download a new browser for free":[null,"Pobierz nową przeglądarkę za darmo"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Jeśli odcisk się zgadza, należy kliknąć „Przyjmij klucz i zaloguj się”. W przeciwnym przypadku nie należy się logować i należy skontaktować się z administratorem."],"Internal error: Invalid challenge header":[null,"Wewnętrzny błąd: nieprawidłowy nagłówek wyzwania"],"Log in":[null,"Zaloguj"],"Log in with your server user account.":[null,"Logowanie za pomocą konta użytkownika serwera."],Login:[null,"Logowanie"],"Login again":[null,"Zaloguj ponownie"],"Logout successful":[null,"Pomyślnie wylogowano"],"New host":[null,"Nowy komputer"],"Or use a bundled browser":[null,"Lub użyj dołączonej przeglądarki"],"Other options":[null,"Inne opcje"],Password:[null,"Hasło"],"Permission denied":[null,"Odmowa dostępu"],"Please enable JavaScript to use the Web Console.":[null,"Proszę włączyć obsługę języka JavaScript, aby używać konsoli internetowej."],"Please specify the host to connect to":[null,"Proszę podać komputer, z którym się połączyć"],"Recent hosts":[null,"Ostatnie komputery"],"Refusing to connect. Host is unknown":[null,"Odmowa połączenia. Komputer jest nieznany"],"Refusing to connect. Hostkey does not match":[null,"Odmowa połączenia. Klucze komputera się nie zgadzają"],"Refusing to connect. Hostkey is unknown":[null,"Odmowa połączenia. Klucz komputera jest nieznany"],"Remove host":[null,"Usuń komputer"],Server:[null,"Serwer"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Powstały odcisk można udostępniać publicznie, na przykład przez e-mail."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Serwer odmówił uwierzytelnienia „$0” za pomocą hasła, a żadne inne obsługiwane metody uwierzytelniania nie są dostępne."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Konfiguracja przeglądarki uniemożliwia działanie programu Cockpit ($0 jest niedostępne)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Ta przeglądarka jest za stara, aby uruchomić konsolę internetową (brak $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Aby upewnić się, że połączenie nie jest przechwytywane przez szkodliwą stronę trzecią, proszę sprawdzić poprawność odcisku klucza komputera:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Aby sprawdzić poprawność odcisku klucza, należy wykonać poniższe polecenie na $0 fizycznie siedząc przy komputerze lub przez zaufaną sieć:"],"Try again":[null,"Spróbuj ponownie"],"Unable to connect to that address":[null,"Nie można połączyć z tym adresem"],"User name":[null,"Nazwa użytkownika"],"User name cannot be empty":[null,"Nazwa użytkownika nie może być pusta"],"Validating authentication token":[null,"Sprawdzanie poprawności tokenu uwierzytelniania"],"Wrong user name or password":[null,"Błędna nazwa użytkownika lub hasło"],"You are connecting to $0 for the first time.":[null,"Łączenie z $0 po raz pierwszy."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.pt_BR.js cockpit-284/dist/static/po.pt_BR.js --- cockpit-283/dist/static/po.pt_BR.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.pt_BR.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"pt_BR","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 erro"],"$0 key changed":[null,"$0 chave alterada"],"A modern browser is required for security, reliability, and performance.":[null,"Um navegador moderno é necessário para segurança, confiabilidade e desempenho."],"Accept key and log in":[null,"Aceitar a chave e entrar"],"Authentication failed":[null,"Falha na Autenticação"],"Authentication failed: Server closed connection":[null,"Falha na Autenticação: Conexão encerrada com servidor"],Cancel:[null,"Cancelar"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,""],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"A autenticação do Cockpit está configurada incorretamente."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit é um gerenciador de Servidores que facilita a tarefa de administrar seu servidor Linux via navegador web. Alternar entre o terminal e a ferramenta web, não é dif[icil. Um serviço pode ser iniciado pelo Cockpit e finalizado pelo Terminal. Da mesma forma, se um erro ocorrer no terminal, este pode ser detectado via interface do Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit é perfeito para novos administradores de sistemas, permitindo-lhes facilmente realizar tarefas simples, como a administração de armazenamento, inspecionando logs e iniciar/parar serviços. É possível monitorar e administrar vários servidores ao mesmo tempo. Basta adicioná-los com um único clique e suas máquinas vão cuidar de seus companheiros."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Conectar à"],"Download a new browser for free":[null,"Baixe um novo navegador gratuitamente"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,""],"Internal error: Invalid challenge header":[null,"Erro interno: Cabeçalho de desafio inválido"],"Log in":[null,"Entrar"],"Log in with your server user account.":[null,"Faça o login com sua conta de usuário do servidor."],"Login again":[null,"Logar Novamente"],"Logout successful":[null,"Login Bem Sucedido"],"New host":[null,"Novo host"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Uma vez instalado o Cockpit, habilite-o com "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"Ou use um navegador incluído"],"Other options":[null,"Outras Opções"],Password:[null,"Senha"],"Permission denied":[null,"Permissão negada"],"Please enable JavaScript to use the Web Console.":[null,""],"Please specify the host to connect to":[null,"Por favor, especifique o host para se conectar"],"Refusing to connect. Host is unknown":[null,"Recusando-se a se conectar. O host é desconhecido"],"Refusing to connect. Hostkey does not match":[null,"Recusando-se a se conectar. A chave não coincide"],"Refusing to connect. Hostkey is unknown":[null,"Recusando-se a se conectar. A chave é desconhecida"],Server:[null,"Servidor"],"The resulting fingerprint is fine to share via public methods, including email.":[null,""],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"O servidor se recusou a autenticar '$0' usando a autenticação de senha e nenhum outro método de autenticação suportado está disponível."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"A configuração do navegador da Web impede que o Cockpit seja executado (inacessível $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,""],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,""],"Try again":[null,"Tentar novamente"],"Unable to connect to that address":[null,"Não é possível conectar a esse endereço"],"User name":[null,"Nome do usuário"],"User name cannot be empty":[null,"O nome de usuário não pode estar vazio"],"Validating authentication token":[null,"Validando token de autenticação"],"Web Console for Linux servers":[null,"Console da Web para servidores Linux"],"Wrong user name or password":[null,"Nome de usuário ou senha incorretos"],"You are connecting to $0 for the first time.":[null,""]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"pt_BR","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 erro"],"$0 key changed":[null,"$0 chave alterada"],"A modern browser is required for security, reliability, and performance.":[null,"Um navegador moderno é necessário para segurança, confiabilidade e desempenho."],"Accept key and log in":[null,"Aceitar a chave e entrar"],"Authentication failed":[null,"Falha na Autenticação"],"Authentication failed: Server closed connection":[null,"Falha na Autenticação: Conexão encerrada com servidor"],Cancel:[null,"Cancelar"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,""],"Cockpit authentication is configured incorrectly.":[null,"A autenticação do Cockpit está configurada incorretamente."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Conectar à"],"Download a new browser for free":[null,"Baixe um novo navegador gratuitamente"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,""],"Internal error: Invalid challenge header":[null,"Erro interno: Cabeçalho de desafio inválido"],"Log in":[null,"Entrar"],"Log in with your server user account.":[null,"Faça o login com sua conta de usuário do servidor."],"Login again":[null,"Logar Novamente"],"Logout successful":[null,"Login Bem Sucedido"],"New host":[null,"Novo host"],"Or use a bundled browser":[null,"Ou use um navegador incluído"],"Other options":[null,"Outras Opções"],Password:[null,"Senha"],"Permission denied":[null,"Permissão negada"],"Please enable JavaScript to use the Web Console.":[null,""],"Please specify the host to connect to":[null,"Por favor, especifique o host para se conectar"],"Refusing to connect. Host is unknown":[null,"Recusando-se a se conectar. O host é desconhecido"],"Refusing to connect. Hostkey does not match":[null,"Recusando-se a se conectar. A chave não coincide"],"Refusing to connect. Hostkey is unknown":[null,"Recusando-se a se conectar. A chave é desconhecida"],Server:[null,"Servidor"],"The resulting fingerprint is fine to share via public methods, including email.":[null,""],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"O servidor se recusou a autenticar '$0' usando a autenticação de senha e nenhum outro método de autenticação suportado está disponível."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"A configuração do navegador da Web impede que o Cockpit seja executado (inacessível $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,""],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,""],"Try again":[null,"Tentar novamente"],"Unable to connect to that address":[null,"Não é possível conectar a esse endereço"],"User name":[null,"Nome do usuário"],"User name cannot be empty":[null,"O nome de usuário não pode estar vazio"],"Validating authentication token":[null,"Validando token de autenticação"],"Wrong user name or password":[null,"Nome de usuário ou senha incorretos"],"You are connecting to $0 for the first time.":[null,""]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.ru.js cockpit-284/dist/static/po.ru.js --- cockpit-283/dist/static/po.ru.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.ru.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,language:"ru","language-direction":"ltr"}," Bypass browser check ":[null," Обойти проверку браузера "],"$0 error":[null,"Ошибка $0"],"$0 key changed":[null,"Изменен $0 ключ"],"A modern browser is required for security, reliability, and performance.":[null,"Для обеспечения безопасности, надёжности и производительности необходим современный браузер."],"Accept key and log in":[null,"Принять ключ и войти в систему"],"Authentication failed":[null,"Ошибка проверки подлинности"],"Authentication failed: Server closed connection":[null,"Не удалось выполнить проверку подлинности: сервер закрыл соединение"],Cancel:[null,"Отмена"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Изменение ключей часто происходит в результате переустановки операционной системы. Однако неожиданное изменение может указывать на попытку третьей стороны перехватить ваше соединение."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Проверка подлинности Cockpit настроена неправильно."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit представляет собой диспетчер серверов, упрощающий администрирование серверов Linux через веб-браузер. Переключение между терминалом и веб-инструментом не представляет сложности. Служба, запущенная с помощью Cockpit, может быть остановлена через терминал. Аналогично, если в терминале возникает ошибка, её можно увидеть в интерфейсе журнала Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit идеально подходит для новых системных администраторов, позволяя им легко выполнять простые задачи, такие как администрирование хранилищ, проверка журналов и запуск и остановка служб. С помощью Cockpit вы можете контролировать и администрировать несколько серверов одновременно. Просто добавьте их одним щелчком мыши, и ваш компьютер позаботится о своих приятелях."],"Cockpit might not render correctly in your browser":[null,"Cockpit может отображаться некорректно в вашем браузере"],"Connect to":[null,"Подключиться к"],"Connect to:":[null,"Подключиться к:"],"Download a new browser for free":[null,"Загрузите новый браузер бесплатно"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"При совпадении отпечатка нажмите кнопку «Принять ключ и войти в систему». В противном случае, не входите в систему и свяжитесь с администратором."],"Internal error: Invalid challenge header":[null,"Внутренняя ошибка: недопустимый заголовок запроса"],"Log in":[null,"Войти"],"Log in with your server user account.":[null,"Войдите в систему с помощью своей учётной записи пользователя сервера."],Login:[null,"Вход"],"Login again":[null,"Войти снова"],"Logout successful":[null,"Выход из системы успешно выполнен"],"New host":[null,"Новый узел"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"После установки Cockpit включите его при помощи команды «systemctl enable --now cockpit.socket»."],"Or use a bundled browser":[null,"Или используйте встроенный браузер"],"Other options":[null,"Другие параметры"],Password:[null,"Пароль"],"Permission denied":[null,"В разрешении отказано"],"Please enable JavaScript to use the Web Console.":[null,"Включите JavaScript для использования веб-консоли."],"Please specify the host to connect to":[null,"Укажите узел для подключения"],"Recent hosts":[null,"Недавние узлы"],"Refusing to connect. Host is unknown":[null,"Отказано в подключении. Неизвестный узел"],"Refusing to connect. Hostkey does not match":[null,"Отказано в подключении. Неверный ключ узла"],"Refusing to connect. Hostkey is unknown":[null,"Отказано в подключении. Неизвестный ключ узла"],"Remove host":[null,"Удалить узел"],Server:[null,"Сервер"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Полученный отпечаток можно распространять по общедоступным каналам связи, включая электронную почту."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Сервер отклонил проверку подлинности «$0» с помощью пароля, а другие доступные методы проверки подлинности отсутствуют."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Конфигурация веб-браузера препятствует запуску Cockpit (недоступен $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Этот веб-браузер слишком устарел для запуска Веб-консоли (отсутствует $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Чтобы убедиться в том, что данные вашего соединения не были перехвачены злоумышленниками, проверьте отпечаток ключа данного узла:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Для проверки отпечатка запустите следующую команду на $0, физически работая на этом компьютере или по доверенной сети:"],"Try again":[null,"Повторить попытку"],"Unable to connect to that address":[null,"Не удалось подключиться к адресу"],"User name":[null,"Имя пользователя"],"User name cannot be empty":[null,"Имя пользователя не может быть пустым"],"Validating authentication token":[null,"Проверка маркера аутентификации"],"Web Console for Linux servers":[null,"Веб-консоль для серверов Linux"],"Wrong user name or password":[null,"Неверное имя пользователя или пароль"],"You are connecting to $0 for the first time.":[null,"Подключение к $0 выполняется в первый раз."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2,language:"ru","language-direction":"ltr"}," Bypass browser check ":[null," Обойти проверку браузера "],"$0 error":[null,"Ошибка $0"],"$0 key changed":[null,"Изменен $0 ключ"],"A modern browser is required for security, reliability, and performance.":[null,"Для обеспечения безопасности, надёжности и производительности необходим современный браузер."],"Accept key and log in":[null,"Принять ключ и войти в систему"],"Authentication failed":[null,"Ошибка проверки подлинности"],"Authentication failed: Server closed connection":[null,"Не удалось выполнить проверку подлинности: сервер закрыл соединение"],Cancel:[null,"Отмена"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Изменение ключей часто происходит в результате переустановки операционной системы. Однако неожиданное изменение может указывать на попытку третьей стороны перехватить ваше соединение."],"Cockpit authentication is configured incorrectly.":[null,"Проверка подлинности Cockpit настроена неправильно."],"Cockpit might not render correctly in your browser":[null,"Cockpit может отображаться некорректно в вашем браузере"],"Connect to":[null,"Подключиться к"],"Connect to:":[null,"Подключиться к:"],"Download a new browser for free":[null,"Загрузите новый браузер бесплатно"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"При совпадении отпечатка нажмите кнопку «Принять ключ и войти в систему». В противном случае, не входите в систему и свяжитесь с администратором."],"Internal error: Invalid challenge header":[null,"Внутренняя ошибка: недопустимый заголовок запроса"],"Log in":[null,"Войти"],"Log in with your server user account.":[null,"Войдите в систему с помощью своей учётной записи пользователя сервера."],Login:[null,"Вход"],"Login again":[null,"Войти снова"],"Logout successful":[null,"Выход из системы успешно выполнен"],"New host":[null,"Новый узел"],"Or use a bundled browser":[null,"Или используйте встроенный браузер"],"Other options":[null,"Другие параметры"],Password:[null,"Пароль"],"Permission denied":[null,"В разрешении отказано"],"Please enable JavaScript to use the Web Console.":[null,"Включите JavaScript для использования веб-консоли."],"Please specify the host to connect to":[null,"Укажите узел для подключения"],"Recent hosts":[null,"Недавние узлы"],"Refusing to connect. Host is unknown":[null,"Отказано в подключении. Неизвестный узел"],"Refusing to connect. Hostkey does not match":[null,"Отказано в подключении. Неверный ключ узла"],"Refusing to connect. Hostkey is unknown":[null,"Отказано в подключении. Неизвестный ключ узла"],"Remove host":[null,"Удалить узел"],Server:[null,"Сервер"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Полученный отпечаток можно распространять по общедоступным каналам связи, включая электронную почту."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Сервер отклонил проверку подлинности «$0» с помощью пароля, а другие доступные методы проверки подлинности отсутствуют."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Конфигурация веб-браузера препятствует запуску Cockpit (недоступен $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Этот веб-браузер слишком устарел для запуска Веб-консоли (отсутствует $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Чтобы убедиться в том, что данные вашего соединения не были перехвачены злоумышленниками, проверьте отпечаток ключа данного узла:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Для проверки отпечатка запустите следующую команду на $0, физически работая на этом компьютере или по доверенной сети:"],"Try again":[null,"Повторить попытку"],"Unable to connect to that address":[null,"Не удалось подключиться к адресу"],"User name":[null,"Имя пользователя"],"User name cannot be empty":[null,"Имя пользователя не может быть пустым"],"Validating authentication token":[null,"Проверка маркера аутентификации"],"Wrong user name or password":[null,"Неверное имя пользователя или пароль"],"You are connecting to $0 for the first time.":[null,"Подключение к $0 выполняется в первый раз."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.sk.js cockpit-284/dist/static/po.sk.js --- cockpit-283/dist/static/po.sk.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.sk.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1==e?0:e>=2&&e<=4?1:2,language:"sk","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 chyba"],"$0 key changed":[null,"$0 kľúč sa zmenil"],"A modern browser is required for security, reliability, and performance.":[null,"Z dôvodu zabezpečenia, spoľahlivosti a rýchlosti je potrebný moderný prehliadač."],"Accept key and log in":[null,"Prijať kľúč a prihlásiť sa"],"Authentication failed":[null,"Overenie sa nepodarilo"],"Authentication failed: Server closed connection":[null,""],Cancel:[null,"Zrušiť"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Zmenené kľúče sú často výsledkom preinštalovania operačného systému. Avšak neočakávaná zmena môže znamenať, že sa tretia strana snaží odpočúvať vaše spojenie."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,""],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit je správca serveru, který uľahčuje správu Linuxových serverov cez webový prehliadač. Nie je žiadným problémom prechádzať medzi terminálom a webovým nástrojom. Služba spustená cez Cockpit môže byť zastavená v termináli. Podobne, pokiaľ dôjde k chybe v termináli, je toto vidieť v rozhraní žurnálu v Cockpite."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit je skvelý nástroj pre nových správcov serverov, ktorým jednoducho umožňuje vykonávať úlohy ako správa úložiska, kontrola žurnálu a spúšťanie či zastavovanie služieb. Môžte monitorovať a spravovať viacero serverov naraz. Stačí ich pridať jedným kliknutím a vaše stroje sa budú starať o svojích kamarátov."],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Pripojiť k"],"Download a new browser for free":[null,"Stiahnite si zdarma nový prehliadač"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,""],"Internal error: Invalid challenge header":[null,""],"Log in":[null,"Prihlásiť"],"Log in with your server user account.":[null,""],"Login again":[null,"Znovu prihlásiť"],"Logout successful":[null,"Odhlásenie bolo úspešné"],"New host":[null,"Nový hostiteľ"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Keď bude Cockpit nainštalovaný, povoľte ho pomocou "systemctl enable --now cockpit.socket".'],"Or use a bundled browser":[null,"Alebo použite pribalený prehliadač"],"Other options":[null,"Iné voľby"],Password:[null,"Heslo"],"Permission denied":[null,"Prístup odmietnutý"],"Please enable JavaScript to use the Web Console.":[null,""],"Please specify the host to connect to":[null,"Zadajte stroj, ku ktorému sa chcete pripojiť"],"Refusing to connect. Host is unknown":[null,"Odmieta sa pripojenie. Stroj nie je známy"],"Refusing to connect. Hostkey does not match":[null,"Odmieta sa pripojenie. Kľúč stroja sa líši"],"Refusing to connect. Hostkey is unknown":[null,"Odmieta sa pripojenie. Kľúč stroja nie je známy"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,""],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Server odmietol overiť „$0“ pomocou overenia heslom a nie sú k dispozícií žiadne ďalšie metódy overenia."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,""],"This web browser is too old to run the Web Console (missing $0)":[null,""],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,""],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,""],"Try again":[null,"Skúsiť znova"],"Unable to connect to that address":[null,""],"User name":[null,"Užívateľské meno"],"User name cannot be empty":[null,"Užívateľské meno nemôže byť prázdne"],"Validating authentication token":[null,"Kontroluje sa overovací žetón"],"Web Console for Linux servers":[null,"Webová konzola pre linuxové servery"],"Wrong user name or password":[null,"Chybné užívateľské meno alebo heslo"],"You are connecting to $0 for the first time.":[null,""]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":e=>1==e?0:e>=2&&e<=4?1:2,language:"sk","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 chyba"],"$0 key changed":[null,"$0 kľúč sa zmenil"],"A modern browser is required for security, reliability, and performance.":[null,"Z dôvodu zabezpečenia, spoľahlivosti a rýchlosti je potrebný moderný prehliadač."],"Accept key and log in":[null,"Prijať kľúč a prihlásiť sa"],"Authentication failed":[null,"Overenie sa nepodarilo"],"Authentication failed: Server closed connection":[null,""],Cancel:[null,"Zrušiť"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Zmenené kľúče sú často výsledkom preinštalovania operačného systému. Avšak neočakávaná zmena môže znamenať, že sa tretia strana snaží odpočúvať vaše spojenie."],"Cockpit authentication is configured incorrectly.":[null,""],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"Pripojiť k"],"Download a new browser for free":[null,"Stiahnite si zdarma nový prehliadač"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,""],"Internal error: Invalid challenge header":[null,""],"Log in":[null,"Prihlásiť"],"Log in with your server user account.":[null,""],"Login again":[null,"Znovu prihlásiť"],"Logout successful":[null,"Odhlásenie bolo úspešné"],"New host":[null,"Nový hostiteľ"],"Or use a bundled browser":[null,"Alebo použite pribalený prehliadač"],"Other options":[null,"Iné voľby"],Password:[null,"Heslo"],"Permission denied":[null,"Prístup odmietnutý"],"Please enable JavaScript to use the Web Console.":[null,""],"Please specify the host to connect to":[null,"Zadajte stroj, ku ktorému sa chcete pripojiť"],"Refusing to connect. Host is unknown":[null,"Odmieta sa pripojenie. Stroj nie je známy"],"Refusing to connect. Hostkey does not match":[null,"Odmieta sa pripojenie. Kľúč stroja sa líši"],"Refusing to connect. Hostkey is unknown":[null,"Odmieta sa pripojenie. Kľúč stroja nie je známy"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,""],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Server odmietol overiť „$0“ pomocou overenia heslom a nie sú k dispozícií žiadne ďalšie metódy overenia."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,""],"This web browser is too old to run the Web Console (missing $0)":[null,""],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,""],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,""],"Try again":[null,"Skúsiť znova"],"Unable to connect to that address":[null,""],"User name":[null,"Užívateľské meno"],"User name cannot be empty":[null,"Užívateľské meno nemôže byť prázdne"],"Validating authentication token":[null,"Kontroluje sa overovací žetón"],"Wrong user name or password":[null,"Chybné užívateľské meno alebo heslo"],"You are connecting to $0 for the first time.":[null,""]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.sv.js cockpit-284/dist/static/po.sv.js --- cockpit-283/dist/static/po.sv.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.sv.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>1!=e,language:"sv","language-direction":"ltr"}," Bypass browser check ":[null," Förbigå webbläsarkontrollen "],"$0 error":[null,"$0 fel"],"$0 key changed":[null,"$0 nyckel ändrad"],"A modern browser is required for security, reliability, and performance.":[null,"En modern webbläsare krävs för säkerhet, pålitlighet och prestanda."],"Accept key and log in":[null,"Acceptera nyckel och logga in"],"Authentication failed":[null,"Autentisering misslyckades"],"Authentication failed: Server closed connection":[null,"Autentiseringen misslyckades: servern stängde ner förbindelsen"],Cancel:[null,"Avbryt"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Ändrade nycklar är ofta resultatet av en ominstallation av operativsystemet. En oväntad förändring kan dock indikera ett försök från tredje part att avlyssna din anslutning."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit-autentisering är felaktigt konfigurerad."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit är en serverhanterare som gör det lätt att administrera dina Linuxservrar via en webbläsare. Att hoppa mellan terminalen och webbverktyget är inget problem. En tjänst som startas via Cockpit kan stoppas via terminalen. Likaledes, om ett fel uppstår i terminalen kan det ses i Cockpits journalgränssnitt."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit är perfekt för nya systemadministratörer, låter dem lätt utföra enkla uppgifter såsom lagringsadministration, inspektion av journaler och att starta och stoppa tjänster. Du kan övervaka och administrera flera servrar på samma gång. Lägg bara till dem med ett enda klick och dina maskiner kommer se efter sina kompisar."],"Cockpit might not render correctly in your browser":[null,"Cockpit kanske inte återges korrekt i din webbläsare"],"Connect to":[null,"Anslut till"],"Connect to:":[null,"Anslut till:"],"Download a new browser for free":[null,"Hämta en ny webbläsare gratis"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Om fingeravtrycket stämmer, klicka på "Acceptera nyckel och logga in". Annars, logga inte in och kontakta din administratör.'],"Internal error: Invalid challenge header":[null,"Internt fel: felaktig utmaningshuvud"],"Log in":[null,"Logga in"],"Log in with your server user account.":[null,"Logga in med ditt serveranvändarkonto."],Login:[null,"Inloggning"],"Login again":[null,"Logga in igen"],"Logout successful":[null,"Utloggningen lyckades"],"New host":[null,"Ny värd"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"När Cockpit är installerat, aktivera det med ”systemctl enable --now cockpit.socket”."],"Or use a bundled browser":[null,"Eller använd en medpackad bläddrare"],"Other options":[null,"Andra alternativ"],Password:[null,"Lösenord"],"Permission denied":[null,"Åtkomst nekas"],"Please enable JavaScript to use the Web Console.":[null,"Aktivera JavaScript för att använda webbkonsolen."],"Please specify the host to connect to":[null,"Ange värden att ansluta till"],"Recent hosts":[null,"Senaste värdar"],"Refusing to connect. Host is unknown":[null,"Vägrar att ansluta. Värden är okänd"],"Refusing to connect. Hostkey does not match":[null,"Vägrar att ansluta. Värdnyckeln stämmer inte"],"Refusing to connect. Hostkey is unknown":[null,"Vägrar att ansluta. Värdnyckeln är okänd"],"Remove host":[null,"Ta bort värd"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Det resulterande fingeravtrycket går bra att dela via offentliga metoder, inklusive e-post."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Servern vägrade att autentisera ”$0” med lösenordsautentisering, och inga andra stödda autentiseringsmetoder är tillgängliga."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Webbläsarens konfiguration förhindrar Cockpit från att köra (oåtkomlig $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Den här webbläsaren är för gammal för att köra webbkonsolen ($0 saknas)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"För att säkerställa att din anslutning inte fångas upp av en skadlig tredje part, vänligen verifiera värdnyckelns fingeravtryck:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"För att verifiera ett fingeravtryck, kör följande på $0 medan du fysiskt sitter vid maskinen eller genom ett pålitligt nätverk:"],"Try again":[null,"Försök igen"],"Unable to connect to that address":[null,"Kan inte ansluta till den adressen"],"User name":[null,"Användarnamn"],"User name cannot be empty":[null,"Användarnamnet får inte vara tomt"],"Validating authentication token":[null,"Validerar autentiseringselementet"],"Web Console for Linux servers":[null,"Webbkonsol för Linuxservrar"],"Wrong user name or password":[null,"Fel användarnamn eller lösenord"],"You are connecting to $0 for the first time.":[null,"Du ansluter till $0 för första gången."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>1!=n,language:"sv","language-direction":"ltr"}," Bypass browser check ":[null," Förbigå webbläsarkontrollen "],"$0 error":[null,"$0 fel"],"$0 key changed":[null,"$0 nyckel ändrad"],"A modern browser is required for security, reliability, and performance.":[null,"En modern webbläsare krävs för säkerhet, pålitlighet och prestanda."],"Accept key and log in":[null,"Acceptera nyckel och logga in"],"Authentication failed":[null,"Autentisering misslyckades"],"Authentication failed: Server closed connection":[null,"Autentiseringen misslyckades: servern stängde ner förbindelsen"],Cancel:[null,"Avbryt"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Ändrade nycklar är ofta resultatet av en ominstallation av operativsystemet. En oväntad förändring kan dock indikera ett försök från tredje part att avlyssna din anslutning."],"Cockpit authentication is configured incorrectly.":[null,"Cockpit-autentisering är felaktigt konfigurerad."],"Cockpit might not render correctly in your browser":[null,"Cockpit kanske inte återges korrekt i din webbläsare"],"Connect to":[null,"Anslut till"],"Connect to:":[null,"Anslut till:"],"Download a new browser for free":[null,"Hämta en ny webbläsare gratis"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Om fingeravtrycket stämmer, klicka på "Acceptera nyckel och logga in". Annars, logga inte in och kontakta din administratör.'],"Internal error: Invalid challenge header":[null,"Internt fel: felaktig utmaningshuvud"],"Log in":[null,"Logga in"],"Log in with your server user account.":[null,"Logga in med ditt serveranvändarkonto."],Login:[null,"Inloggning"],"Login again":[null,"Logga in igen"],"Logout successful":[null,"Utloggningen lyckades"],"New host":[null,"Ny värd"],"Or use a bundled browser":[null,"Eller använd en medpackad bläddrare"],"Other options":[null,"Andra alternativ"],Password:[null,"Lösenord"],"Permission denied":[null,"Åtkomst nekas"],"Please enable JavaScript to use the Web Console.":[null,"Aktivera JavaScript för att använda webbkonsolen."],"Please specify the host to connect to":[null,"Ange värden att ansluta till"],"Recent hosts":[null,"Senaste värdar"],"Refusing to connect. Host is unknown":[null,"Vägrar att ansluta. Värden är okänd"],"Refusing to connect. Hostkey does not match":[null,"Vägrar att ansluta. Värdnyckeln stämmer inte"],"Refusing to connect. Hostkey is unknown":[null,"Vägrar att ansluta. Värdnyckeln är okänd"],"Remove host":[null,"Ta bort värd"],Server:[null,"Server"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Det resulterande fingeravtrycket går bra att dela via offentliga metoder, inklusive e-post."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Servern vägrade att autentisera ”$0” med lösenordsautentisering, och inga andra stödda autentiseringsmetoder är tillgängliga."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Webbläsarens konfiguration förhindrar Cockpit från att köra (oåtkomlig $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Den här webbläsaren är för gammal för att köra webbkonsolen ($0 saknas)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"För att säkerställa att din anslutning inte fångas upp av en skadlig tredje part, vänligen verifiera värdnyckelns fingeravtryck:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"För att verifiera ett fingeravtryck, kör följande på $0 medan du fysiskt sitter vid maskinen eller genom ett pålitligt nätverk:"],"Try again":[null,"Försök igen"],"Unable to connect to that address":[null,"Kan inte ansluta till den adressen"],"User name":[null,"Användarnamn"],"User name cannot be empty":[null,"Användarnamnet får inte vara tomt"],"Validating authentication token":[null,"Validerar autentiseringselementet"],"Wrong user name or password":[null,"Fel användarnamn eller lösenord"],"You are connecting to $0 for the first time.":[null,"Du ansluter till $0 för första gången."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.tr.js cockpit-284/dist/static/po.tr.js --- cockpit-283/dist/static/po.tr.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.tr.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>e>1,language:"tr","language-direction":"ltr"}," Bypass browser check ":[null," Tarayıcı denetimini atla "],"$0 error":[null,"$0 hatası"],"$0 key changed":[null,"$0 anahtarı değişti"],"A modern browser is required for security, reliability, and performance.":[null,"Güvenlik, güvenilirlik ve performans için modern bir tarayıcı gereklidir."],"Accept key and log in":[null,"Anahtarı kabul et ve oturum aç"],"Authentication failed":[null,"Kimlik doğrulama başarısız oldu"],"Authentication failed: Server closed connection":[null,"Kimlik doğrulama başarısız oldu: Sunucu bağlantıyı kapattı"],Cancel:[null,"İptal"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Değiştirilen anahtarlar genellikle bir işletim sisteminin yeniden yüklenmesinin sonucudur. Ancak, beklenmeyen bir değişiklik, üçüncü tarafın bağlantınıza müdahale etme girişimini gösterebilir."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit kimlik doğrulaması yanlış yapılandırılmış."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit, Linux sunucularınızı bir web tarayıcısı aracılığıyla yönetmenizi kolaylaştıran bir sunucu yöneticisidir. Terminal ve web aracı arasında geçiş yapmak sorun değildir. Cockpit aracılığıyla başlatılan bir hizmet terminal aracılığıyla durdurulabilir. Aynı şekilde, terminalde bir hata meydana gelirse, Cockpit günlüğü arayüzünde görülebilir."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit yeni sistem yöneticileri için mükemmeldir; depolama yönetimi, günlükleri inceleme, hizmetleri başlatma ve durdurma gibi basit görevleri kolayca gerçekleştirmelerine olanak tanır. Aynı anda birkaç sunucuyu izleyebilir ve yönetebilirsiniz. Bunları tek bir tıklama ile ekleyin ve makineleriniz arkadaşlarıyla ilgilensin."],"Cockpit might not render correctly in your browser":[null,"Cockpit tarayıcınızda düzgün görüntülenmeyebilir"],"Connect to":[null,"Şuna bağlan"],"Connect to:":[null,"Şuna bağlan:"],"Download a new browser for free":[null,"Ücretsiz olarak yeni bir tarayıcı indir"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Eğer parmak izi eşleşirse, "Anahtarı kabul et ve oturum aç"a tıklayın. Aksi takdirde, oturum açmayın ve yöneticinize başvurun.'],"Internal error: Invalid challenge header":[null,"İç hata: Geçersiz sınama üstbilgisi"],"Log in":[null,"Oturum aç"],"Log in with your server user account.":[null,"Sunucu kullanıcı hesabınızla oturum açın."],Login:[null,"Oturum aç"],"Login again":[null,"Tekrar oturum aç"],"Logout successful":[null,"Oturumu kapatma başarılı oldu"],"New host":[null,"Yeni anamakine"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'Cockpit yüklendikten sonra, "systemctl enable --now cockpit.socket" komutuyla etkinleştirin.'],"Or use a bundled browser":[null,"Veya paketlenmiş bir tarayıcı kullanın"],"Other options":[null,"Diğer seçenekler"],Password:[null,"Parola"],"Permission denied":[null,"İzin reddedildi"],"Please enable JavaScript to use the Web Console.":[null,"Web Konsolunu kullanmak için lütfen JavaScript'i etkinleştirin."],"Please specify the host to connect to":[null,"Lütfen bağlanılacak anamakineyi belirtin"],"Recent hosts":[null,"En son anamakineler"],"Refusing to connect. Host is unknown":[null,"Bağlanmayı reddediyor. Anamakine bilinmiyor"],"Refusing to connect. Hostkey does not match":[null,"Bağlanmayı reddediyor. Anamakine anahtarı eşleşmiyor"],"Refusing to connect. Hostkey is unknown":[null,"Bağlanmayı reddediyor. Anamakine anahtarı bilinmiyor"],"Remove host":[null,"Anamakineyi kaldır"],Server:[null,"Sunucu"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Ortaya çıkan parmak izinin, e-posta dahil olmak üzere herkese açık yöntemlerle paylaşılması uygundur."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Sunucu, parola kimlik doğrulamasını kullanarak '$0' kullanıcısının kimliğini doğrulamayı reddetti ve kullanılabilir başka kimlik doğrulama yöntemi yok."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Web tarayıcısı yapılandırması Cockpit'in çalışmasını engelliyor (erişilemeyen $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Bu web tarayıcısı, Web Konsolunu çalıştırmak için çok eski ($0 eksik)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Bağlantınızın kötü niyetli bir üçüncü tarafça engellenmediğinden emin olmak için lütfen anamakine anahtar parmak izini doğrulayın:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Bir parmak izini doğrulamak için makinede fiziksel olarak bulunurken veya güvenilir bir ağ aracılığıyla 0$ üzerinde aşağıdakileri çalıştırın:"],"Try again":[null,"Tekrar dene"],"Unable to connect to that address":[null,"Bu adrese bağlanılamıyor"],"User name":[null,"Kullanıcı adı"],"User name cannot be empty":[null,"Kullanıcı adı boş olamaz"],"Validating authentication token":[null,"Kimlik doğrulama belirteci doğrulanıyor"],"Web Console for Linux servers":[null,"Linux sunucuları için Web Konsolu"],"Wrong user name or password":[null,"Kullanıcı adı veya parola yanlış"],"You are connecting to $0 for the first time.":[null,"İlk kez $0 için bağlanıyorsunuz."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>n>1,language:"tr","language-direction":"ltr"}," Bypass browser check ":[null," Tarayıcı denetimini atla "],"$0 error":[null,"$0 hatası"],"$0 key changed":[null,"$0 anahtarı değişti"],"A modern browser is required for security, reliability, and performance.":[null,"Güvenlik, güvenilirlik ve performans için modern bir tarayıcı gereklidir."],"Accept key and log in":[null,"Anahtarı kabul et ve oturum aç"],"Authentication failed":[null,"Kimlik doğrulama başarısız oldu"],"Authentication failed: Server closed connection":[null,"Kimlik doğrulama başarısız oldu: Sunucu bağlantıyı kapattı"],Cancel:[null,"İptal"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Değiştirilen anahtarlar genellikle bir işletim sisteminin yeniden yüklenmesinin sonucudur. Ancak, beklenmeyen bir değişiklik, üçüncü tarafın bağlantınıza müdahale etme girişimini gösterebilir."],"Cockpit authentication is configured incorrectly.":[null,"Cockpit kimlik doğrulaması yanlış yapılandırılmış."],"Cockpit might not render correctly in your browser":[null,"Cockpit tarayıcınızda düzgün görüntülenmeyebilir"],"Connect to":[null,"Şuna bağlan"],"Connect to:":[null,"Şuna bağlan:"],"Download a new browser for free":[null,"Ücretsiz olarak yeni bir tarayıcı indir"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'Eğer parmak izi eşleşirse, "Anahtarı kabul et ve oturum aç"a tıklayın. Aksi takdirde, oturum açmayın ve yöneticinize başvurun.'],"Internal error: Invalid challenge header":[null,"İç hata: Geçersiz sınama üstbilgisi"],"Log in":[null,"Oturum aç"],"Log in with your server user account.":[null,"Sunucu kullanıcı hesabınızla oturum açın."],Login:[null,"Oturum aç"],"Login again":[null,"Tekrar oturum aç"],"Logout successful":[null,"Oturumu kapatma başarılı oldu"],"New host":[null,"Yeni anamakine"],"Or use a bundled browser":[null,"Veya paketlenmiş bir tarayıcı kullanın"],"Other options":[null,"Diğer seçenekler"],Password:[null,"Parola"],"Permission denied":[null,"İzin reddedildi"],"Please enable JavaScript to use the Web Console.":[null,"Web Konsolunu kullanmak için lütfen JavaScript'i etkinleştirin."],"Please specify the host to connect to":[null,"Lütfen bağlanılacak anamakineyi belirtin"],"Recent hosts":[null,"En son anamakineler"],"Refusing to connect. Host is unknown":[null,"Bağlanmayı reddediyor. Anamakine bilinmiyor"],"Refusing to connect. Hostkey does not match":[null,"Bağlanmayı reddediyor. Anamakine anahtarı eşleşmiyor"],"Refusing to connect. Hostkey is unknown":[null,"Bağlanmayı reddediyor. Anamakine anahtarı bilinmiyor"],"Remove host":[null,"Anamakineyi kaldır"],Server:[null,"Sunucu"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Ortaya çıkan parmak izinin, e-posta dahil olmak üzere herkese açık yöntemlerle paylaşılması uygundur."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Sunucu, parola kimlik doğrulamasını kullanarak '$0' kullanıcısının kimliğini doğrulamayı reddetti ve kullanılabilir başka kimlik doğrulama yöntemi yok."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Web tarayıcısı yapılandırması Cockpit'in çalışmasını engelliyor (erişilemeyen $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Bu web tarayıcısı, Web Konsolunu çalıştırmak için çok eski ($0 eksik)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Bağlantınızın kötü niyetli bir üçüncü tarafça engellenmediğinden emin olmak için lütfen anamakine anahtar parmak izini doğrulayın:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Bir parmak izini doğrulamak için makinede fiziksel olarak bulunurken veya güvenilir bir ağ aracılığıyla 0$ üzerinde aşağıdakileri çalıştırın:"],"Try again":[null,"Tekrar dene"],"Unable to connect to that address":[null,"Bu adrese bağlanılamıyor"],"User name":[null,"Kullanıcı adı"],"User name cannot be empty":[null,"Kullanıcı adı boş olamaz"],"Validating authentication token":[null,"Kimlik doğrulama belirteci doğrulanıyor"],"Wrong user name or password":[null,"Kullanıcı adı veya parola yanlış"],"You are connecting to $0 for the first time.":[null,"İlk kez $0 için bağlanıyorsunuz."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.uk.js cockpit-284/dist/static/po.uk.js --- cockpit-283/dist/static/po.uk.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.uk.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,language:"uk","language-direction":"ltr"}," Bypass browser check ":[null," Обійти перевірку браузера "],"$0 error":[null,"Помилка $0"],"$0 key changed":[null,"Змінено ключ $0"],"A modern browser is required for security, reliability, and performance.":[null,"Для забезпечення безпеки, надійної роботи та швидкодії слід встановити сучасну програму для перегляду інтернету."],"Accept key and log in":[null,"Прийняти ключ і увійти"],"Authentication failed":[null,"Не вдалось пройти розпізнавання"],"Authentication failed: Server closed connection":[null,"Не вдалося пройти розпізнавання: з’єднання розірвано сервером"],Cancel:[null,"Скасувати"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Зміна ключів часто є результатом перевстановлення операційної системи. Втім, неочікувана зміна може вказувати на сторонню спробу перехопити дані вашого з'єднання."],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Розпізнавання у Cockpit налаштовано з помилками."],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit — програма для керування сервером, яка полегшує адміністрування ваших серверів під керуванням Linux за допомогою програми для перегляду сторінок інтернету. Ви зможете одночасно використовувати термінал і вебінструмент. Службу, яку було запущено за допомогою Cockpit, можна зупинити за допомогою термінала. І навпаки, якщо трапиться помилка у терміналі, ви побачите її у інтерфейсі журналу Cockpit."],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit — чудовий інструмент для системних адміністраторів-початківців. За його допомогою вони без проблем впораються із простими завданнями, зокрема адмініструванням сховищ даних, інспектуванням журналів та запуском і зупиненням служб. Ви зможете одночасно стежити за роботою декількох серверів і адмініструвати ці сервери. Просто додайте їх одним клацанням кнопкою миші і ваш комп’ютер сам нагляне за своїми приятелями."],"Cockpit might not render correctly in your browser":[null,"Можливо, Cockpit не буде показано належним чином у вашому браузері"],"Connect to":[null,"З’єднатися з"],"Connect to:":[null,"З’єднатися з:"],"Download a new browser for free":[null,"Отримайте новий браузер безкоштовно"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Якщо відбиток є відповідним, натисніть «Прийняти ключ і увійти». Якщо ж це не так, не входьте і повідомте про подію адміністратору."],"Internal error: Invalid challenge header":[null,"Внутрішня помилка: некоректний заголовок виклику"],"Log in":[null,"Увійти"],"Log in with your server user account.":[null,"Увійти на основі даних вашого облікового запису користувача сервера."],Login:[null,"Вхід"],"Login again":[null,"Користувач ще раз"],"Logout successful":[null,"Успішний вихід"],"New host":[null,"Новий вузол"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"Після встановлення Cockpit його можна увімкнути за допомогою команди «systemctl enable --now cockpit.socket»."],"Or use a bundled browser":[null,"Або скористайтеся комплектним браузером"],"Other options":[null,"Інші параметри"],Password:[null,"Пароль"],"Permission denied":[null,"Доступ заборонено"],"Please enable JavaScript to use the Web Console.":[null,"Щоб мати змогу користуватися вебконсоллю, будь ласка, увімкніть JavaScript."],"Please specify the host to connect to":[null,"Будь ласка, вкажіть вузол, з яким слід встановити з'єднання"],"Recent hosts":[null,"Нещодавні вузли"],"Refusing to connect. Host is unknown":[null,"Відмовляємо у з’єднанні. Невідомий вузол."],"Refusing to connect. Hostkey does not match":[null,"Відмовляємо у з’єднанні. Ключі вузла не збігаються."],"Refusing to connect. Hostkey is unknown":[null,"Відмовляємо у з’єднанні. Невідомий ключ вузла."],"Remove host":[null,"Вилучити вузол"],Server:[null,"Сервер"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Відбиток-результат можна поширювати у спосіб із загальним доступом, зокрема електронною поштою."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Сервером відмовлено у розпізнаванні «$0» за допомогою пароля. Інших підтримуваних способів розпізнавання не передбачено."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Налаштування програми для перегляду інтернету забороняють запуск Cockpit (недоступна можливість $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Ця програма для перегляду інтернету є надто старою для роботи з вебконсоллю (не вистачає можливості $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Щоб переконатися, що дані вашого з'єднання не буде перехоплено зловмисниками, будь ласка, підтвердьте відбиток ключа вузла:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Щоб перевірити відбиток, віддайте вказану нижче команду для $0 під час безпосередньої роботи на комп'ютері або з використанням надійної мережі:"],"Try again":[null,"Спробувати ще раз"],"Unable to connect to that address":[null,"Не вдалося встановити з’єднання із цією адресою"],"User name":[null,"Ім'я користувача"],"User name cannot be empty":[null,"Ім’я користувача не може бути порожнім"],"Validating authentication token":[null,"Перевіряємо ключ розпізнавання"],"Web Console for Linux servers":[null,"Вебконсоль для серверів під керуванням Linux"],"Wrong user name or password":[null,"Помилкове ім’я користувача чи пароль"],"You are connecting to $0 for the first time.":[null,"Ви вперше встановлюєте з'єднання із $0."]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2,language:"uk","language-direction":"ltr"}," Bypass browser check ":[null," Обійти перевірку браузера "],"$0 error":[null,"Помилка $0"],"$0 key changed":[null,"Змінено ключ $0"],"A modern browser is required for security, reliability, and performance.":[null,"Для забезпечення безпеки, надійної роботи та швидкодії слід встановити сучасну програму для перегляду інтернету."],"Accept key and log in":[null,"Прийняти ключ і увійти"],"Authentication failed":[null,"Не вдалось пройти розпізнавання"],"Authentication failed: Server closed connection":[null,"Не вдалося пройти розпізнавання: з’єднання розірвано сервером"],Cancel:[null,"Скасувати"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"Зміна ключів часто є результатом перевстановлення операційної системи. Втім, неочікувана зміна може вказувати на сторонню спробу перехопити дані вашого з'єднання."],"Cockpit authentication is configured incorrectly.":[null,"Розпізнавання у Cockpit налаштовано з помилками."],"Cockpit might not render correctly in your browser":[null,"Можливо, Cockpit не буде показано належним чином у вашому браузері"],"Connect to":[null,"З’єднатися з"],"Connect to:":[null,"З’єднатися з:"],"Download a new browser for free":[null,"Отримайте новий браузер безкоштовно"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,"Якщо відбиток є відповідним, натисніть «Прийняти ключ і увійти». Якщо ж це не так, не входьте і повідомте про подію адміністратору."],"Internal error: Invalid challenge header":[null,"Внутрішня помилка: некоректний заголовок виклику"],"Log in":[null,"Увійти"],"Log in with your server user account.":[null,"Увійти на основі даних вашого облікового запису користувача сервера."],Login:[null,"Вхід"],"Login again":[null,"Користувач ще раз"],"Logout successful":[null,"Успішний вихід"],"New host":[null,"Новий вузол"],"Or use a bundled browser":[null,"Або скористайтеся комплектним браузером"],"Other options":[null,"Інші параметри"],Password:[null,"Пароль"],"Permission denied":[null,"Доступ заборонено"],"Please enable JavaScript to use the Web Console.":[null,"Щоб мати змогу користуватися вебконсоллю, будь ласка, увімкніть JavaScript."],"Please specify the host to connect to":[null,"Будь ласка, вкажіть вузол, з яким слід встановити з'єднання"],"Recent hosts":[null,"Нещодавні вузли"],"Refusing to connect. Host is unknown":[null,"Відмовляємо у з’єднанні. Невідомий вузол."],"Refusing to connect. Hostkey does not match":[null,"Відмовляємо у з’єднанні. Ключі вузла не збігаються."],"Refusing to connect. Hostkey is unknown":[null,"Відмовляємо у з’єднанні. Невідомий ключ вузла."],"Remove host":[null,"Вилучити вузол"],Server:[null,"Сервер"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"Відбиток-результат можна поширювати у спосіб із загальним доступом, зокрема електронною поштою."],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"Сервером відмовлено у розпізнаванні «$0» за допомогою пароля. Інших підтримуваних способів розпізнавання не передбачено."],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Налаштування програми для перегляду інтернету забороняють запуск Cockpit (недоступна можливість $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"Ця програма для перегляду інтернету є надто старою для роботи з вебконсоллю (не вистачає можливості $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"Щоб переконатися, що дані вашого з'єднання не буде перехоплено зловмисниками, будь ласка, підтвердьте відбиток ключа вузла:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"Щоб перевірити відбиток, віддайте вказану нижче команду для $0 під час безпосередньої роботи на комп'ютері або з використанням надійної мережі:"],"Try again":[null,"Спробувати ще раз"],"Unable to connect to that address":[null,"Не вдалося встановити з’єднання із цією адресою"],"User name":[null,"Ім'я користувача"],"User name cannot be empty":[null,"Ім’я користувача не може бути порожнім"],"Validating authentication token":[null,"Перевіряємо ключ розпізнавання"],"Wrong user name or password":[null,"Помилкове ім’я користувача чи пароль"],"You are connecting to $0 for the first time.":[null,"Ви вперше встановлюєте з'єднання із $0."]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.zh_CN.js cockpit-284/dist/static/po.zh_CN.js --- cockpit-283/dist/static/po.zh_CN.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.zh_CN.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>0,language:"zh_CN","language-direction":"ltr"}," Bypass browser check ":[null," 禁用浏览器检查 "],"$0 error":[null,"$0 个错误"],"$0 key changed":[null,"已更改 $0 个密钥"],"A modern browser is required for security, reliability, and performance.":[null,"请更新浏览器以确保安全性、可靠性和性能。"],"Accept key and log in":[null,"接受密钥并登录"],"Authentication failed":[null,"认证失败"],"Authentication failed: Server closed connection":[null,"认证失败:服务端已关闭连接"],Cancel:[null,"取消"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"密钥的变化通常是操作系统重新安装的结果。但是,意料外的变化可能代表有第三方尝试截获您的连接。"],Cockpit:[null,"Cockpit"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit 验证的配置不正确。"],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit 是一个服务器管理工具,可以方便地通过浏览器来管理您的 Linux 服务器。在终端和 web 工具间自由切换将不是问题。通过 Cockpit 启动的服务可以通过终端停止。同样,如果在终端中发生错误, 也可以在 Cockpit 的日志接口中看到。"],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"Cockpit 是完美的系统管理员工具,它可以轻松完成简单的任务, 如存储管理, 检查日志信息,以及启动/停止服务。 您可以同时监控和管理多个服务器。点一键就可以添加服务器,并开始进行管理。"],"Cockpit might not render correctly in your browser":[null,"Cockpit 可能无法在您的浏览器中正确呈现"],"Connect to":[null,"连接到"],"Connect to:":[null,"连接到:"],"Download a new browser for free":[null,"免费下载新的浏览器"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'如果指纹匹配,点"Accept key and log in"。否则,请不要登录并联系您的管理员。'],"Internal error: Invalid challenge header":[null,"内部错误:无效的挑战字头部"],"Log in":[null,"登录"],"Log in with your server user account.":[null,"使用您的服务器用户帐户登录。"],Login:[null,"登录"],"Login again":[null,"再次登录"],"Logout successful":[null,"注销成功"],"New host":[null,"新主机"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,'在安装 Cockpit 后,使用 "systemctl enable --now cockpit.socket" 启用它。'],"Or use a bundled browser":[null,"或者使用捆绑的浏览器"],"Other options":[null,"其他选项"],Password:[null,"密码"],"Permission denied":[null,"权限被拒绝"],"Please enable JavaScript to use the Web Console.":[null,"请启用 JavaScript 来使用 Web 控制台。"],"Please specify the host to connect to":[null,"请指定要连接的主机"],"Recent hosts":[null,"最近的主机"],"Refusing to connect. Host is unknown":[null,"拒绝连接。主机未知"],"Refusing to connect. Hostkey does not match":[null,"拒绝连接。主机密钥不匹配"],"Refusing to connect. Hostkey is unknown":[null,"拒绝连接。未知主机密钥"],"Remove host":[null,"删除主机"],Server:[null,"服务器"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"结果指纹可以通过公共方法(包括电子邮件)共享。"],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"服务器拒绝使用密码验证的方法来验证 '$0',并且没有其他支持的验证途径可以使用。"],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"浏览器配置阻止 Cockpit 运行 (无法访问 $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"这个浏览器太老,无法运行 Web 控制台(缺少 $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"要确保您的连接没有被恶意第三方截取,请验证主机密钥指纹:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"要验证指纹,在 $0 上运行以下内容(在实际的物理机器上本地进行,或通过一个可信任的网络进行):"],"Try again":[null,"重试"],"Unable to connect to that address":[null,"无法连接至该地址"],"User name":[null,"用户名"],"User name cannot be empty":[null,"用户名不能为空"],"Validating authentication token":[null,"正在校验验证口令"],"Web Console for Linux servers":[null,"Linux 服务器的 Web 控制台"],"Wrong user name or password":[null,"错误的用户名或密码"],"You are connecting to $0 for the first time.":[null,"您第一次连接到 $0。"]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>0,language:"zh_CN","language-direction":"ltr"}," Bypass browser check ":[null," 禁用浏览器检查 "],"$0 error":[null,"$0 个错误"],"$0 key changed":[null,"已更改 $0 个密钥"],"A modern browser is required for security, reliability, and performance.":[null,"请更新浏览器以确保安全性、可靠性和性能。"],"Accept key and log in":[null,"接受密钥并登录"],"Authentication failed":[null,"认证失败"],"Authentication failed: Server closed connection":[null,"认证失败:服务端已关闭连接"],Cancel:[null,"取消"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,"密钥的变化通常是操作系统重新安装的结果。但是,意料外的变化可能代表有第三方尝试截获您的连接。"],"Cockpit authentication is configured incorrectly.":[null,"Cockpit 验证的配置不正确。"],"Cockpit might not render correctly in your browser":[null,"Cockpit 可能无法在您的浏览器中正确呈现"],"Connect to":[null,"连接到"],"Connect to:":[null,"连接到:"],"Download a new browser for free":[null,"免费下载新的浏览器"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,'如果指纹匹配,点"Accept key and log in"。否则,请不要登录并联系您的管理员。'],"Internal error: Invalid challenge header":[null,"内部错误:无效的挑战字头部"],"Log in":[null,"登录"],"Log in with your server user account.":[null,"使用您的服务器用户帐户登录。"],Login:[null,"登录"],"Login again":[null,"再次登录"],"Logout successful":[null,"注销成功"],"New host":[null,"新主机"],"Or use a bundled browser":[null,"或者使用捆绑的浏览器"],"Other options":[null,"其他选项"],Password:[null,"密码"],"Permission denied":[null,"权限被拒绝"],"Please enable JavaScript to use the Web Console.":[null,"请启用 JavaScript 来使用 Web 控制台。"],"Please specify the host to connect to":[null,"请指定要连接的主机"],"Recent hosts":[null,"最近的主机"],"Refusing to connect. Host is unknown":[null,"拒绝连接。主机未知"],"Refusing to connect. Hostkey does not match":[null,"拒绝连接。主机密钥不匹配"],"Refusing to connect. Hostkey is unknown":[null,"拒绝连接。未知主机密钥"],"Remove host":[null,"删除主机"],Server:[null,"服务器"],"The resulting fingerprint is fine to share via public methods, including email.":[null,"结果指纹可以通过公共方法(包括电子邮件)共享。"],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"服务器拒绝使用密码验证的方法来验证 '$0',并且没有其他支持的验证途径可以使用。"],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"浏览器配置阻止 Cockpit 运行 (无法访问 $0)"],"This web browser is too old to run the Web Console (missing $0)":[null,"这个浏览器太老,无法运行 Web 控制台(缺少 $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,"要确保您的连接没有被恶意第三方截取,请验证主机密钥指纹:"],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,"要验证指纹,在 $0 上运行以下内容(在实际的物理机器上本地进行,或通过一个可信任的网络进行):"],"Try again":[null,"重试"],"Unable to connect to that address":[null,"无法连接至该地址"],"User name":[null,"用户名"],"User name cannot be empty":[null,"用户名不能为空"],"Validating authentication token":[null,"正在校验验证口令"],"Wrong user name or password":[null,"错误的用户名或密码"],"You are connecting to $0 for the first time.":[null,"您第一次连接到 $0。"]}; \ No newline at end of file diff -Nru cockpit-283/dist/static/po.zh_TW.js cockpit-284/dist/static/po.zh_TW.js --- cockpit-283/dist/static/po.zh_TW.js 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/static/po.zh_TW.js 2023-01-25 05:21:41.000000000 +0000 @@ -1 +1 @@ -window.cockpit_po={"":{"plural-forms":e=>0,language:"zh_TW","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 錯誤"],"A modern browser is required for security, reliability, and performance.":[null,"安全性,可靠性和性能需要現代瀏覽器。"],"Accept key and log in":[null,""],"Authentication failed: Server closed connection":[null,"身份驗證失敗:伺服器已中斷連接"],Cancel:[null,"取消"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,""],Cockpit:[null,""],"Cockpit authentication is configured incorrectly.":[null,"駕駛艙身份驗證配置不正確。"],"Cockpit is a server manager that makes it easy to administer your Linux servers via a web browser. Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.":[null,"Cockpit是一個伺服器管理器,可以通過Web瀏覽器輕鬆管理Linux伺服器。在終端和Web工具之間跳轉是沒有問題的。可以通過終端停止通過Cockpit啟動的服務。同樣,如果終端中發生錯誤,可以在駕駛艙日誌界面中看到。"],"Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services. You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.":[null,"駕駛艙非常適合新的系統管理員,使他們能夠輕鬆執行簡單的任務,如存儲管理,檢查期刊以及啟動和停止服務。您可以同時監視和管理多個伺服器。只需點擊一下即可新增它們,您的機器將照顧好友。"],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"連接至"],"Download a new browser for free":[null,"免費下載新的瀏覽器"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,""],"Internal error: Invalid challenge header":[null,"內部錯誤:無效的質詢標頭"],"Log in":[null,"登入"],"Log in with your server user account.":[null,"使用您的伺服器用戶帳號登錄。"],"Login again":[null,"再次登錄"],"Logout successful":[null,"註銷成功"],'Once Cockpit is installed, enable it with "systemctl enable --now cockpit.socket".':[null,"安裝Cockpit後,使用“systemctl enable --now cockpit.socket”啟用它。"],"Or use a bundled browser":[null,"或者使用捆綁的瀏覽器"],"Other options":[null,"其他選擇"],Password:[null,"密碼"],"Permission denied":[null,"使用權限被拒"],"Please enable JavaScript to use the Web Console.":[null,""],"Please specify the host to connect to":[null,"請指定要連接的主機"],"Refusing to connect. Host is unknown":[null,"拒絕連接。主持人不明"],"Refusing to connect. Hostkey does not match":[null,"拒絕連接。 Hostkey不匹配"],"Refusing to connect. Hostkey is unknown":[null,"拒絕連接。 Hostkey未知"],Server:[null,"伺服器"],"The resulting fingerprint is fine to share via public methods, including email.":[null,""],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"伺服器拒絕驗證'$0'使用密碼驗證,並且沒有其他支持的驗證方法可用。"],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Web瀏覽器配置可防止Cockpit運行(無法訪問) $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,""],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,""],"Try again":[null,"再試一次"],"Unable to connect to that address":[null,"無法連接到該地址"],"User name":[null,"使用者名稱"],"User name cannot be empty":[null,"用戶名不能為空"],"Validating authentication token":[null,"驗證身份驗證令牌"],"Web Console for Linux servers":[null,"Linux伺服器的Web控制台"],"Wrong user name or password":[null,"錯誤的用戶名或密碼"],"You are connecting to $0 for the first time.":[null,""]}; \ No newline at end of file +window.cockpit_po={"":{"plural-forms":n=>0,language:"zh_TW","language-direction":"ltr"}," Bypass browser check ":[null,""],"$0 error":[null,"$0 錯誤"],"A modern browser is required for security, reliability, and performance.":[null,"安全性,可靠性和性能需要現代瀏覽器。"],"Accept key and log in":[null,""],"Authentication failed: Server closed connection":[null,"身份驗證失敗:伺服器已中斷連接"],Cancel:[null,"取消"],"Changed keys are often the result of an operating system reinstallation. However, an unexpected change may indicate a third-party attempt to intercept your connection.":[null,""],"Cockpit authentication is configured incorrectly.":[null,"駕駛艙身份驗證配置不正確。"],"Cockpit might not render correctly in your browser":[null,""],"Connect to":[null,"連接至"],"Download a new browser for free":[null,"免費下載新的瀏覽器"],'If the fingerprint matches, click "Accept key and log in". Otherwise, do not log in and contact your administrator.':[null,""],"Internal error: Invalid challenge header":[null,"內部錯誤:無效的質詢標頭"],"Log in":[null,"登入"],"Log in with your server user account.":[null,"使用您的伺服器用戶帳號登錄。"],"Login again":[null,"再次登錄"],"Logout successful":[null,"註銷成功"],"Or use a bundled browser":[null,"或者使用捆綁的瀏覽器"],"Other options":[null,"其他選擇"],Password:[null,"密碼"],"Permission denied":[null,"使用權限被拒"],"Please enable JavaScript to use the Web Console.":[null,""],"Please specify the host to connect to":[null,"請指定要連接的主機"],"Refusing to connect. Host is unknown":[null,"拒絕連接。主持人不明"],"Refusing to connect. Hostkey does not match":[null,"拒絕連接。 Hostkey不匹配"],"Refusing to connect. Hostkey is unknown":[null,"拒絕連接。 Hostkey未知"],Server:[null,"伺服器"],"The resulting fingerprint is fine to share via public methods, including email.":[null,""],"The server refused to authenticate '$0' using password authentication, and no other supported authentication methods are available.":[null,"伺服器拒絕驗證'$0'使用密碼驗證,並且沒有其他支持的驗證方法可用。"],"The web browser configuration prevents Cockpit from running (inaccessible $0)":[null,"Web瀏覽器配置可防止Cockpit運行(無法訪問) $0)"],"To ensure that your connection is not intercepted by a malicious third-party, please verify the host key fingerprint:":[null,""],"To verify a fingerprint, run the following on $0 while physically sitting at the machine or through a trusted network:":[null,""],"Try again":[null,"再試一次"],"Unable to connect to that address":[null,"無法連接到該地址"],"User name":[null,"使用者名稱"],"User name cannot be empty":[null,"用戶名不能為空"],"Validating authentication token":[null,"驗證身份驗證令牌"],"Wrong user name or password":[null,"錯誤的用戶名或密碼"],"You are connecting to $0 for the first time.":[null,""]}; \ No newline at end of file diff -Nru cockpit-283/dist/storaged/index.html cockpit-284/dist/storaged/index.html --- cockpit-283/dist/storaged/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/storaged/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,37 @@ + + + + + + Storage + + + + + + + + + + +
                                                                                                                        +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/index.html.gz differ diff -Nru cockpit-283/dist/storaged/Makefile.deps cockpit-284/dist/storaged/Makefile.deps --- cockpit-283/dist/storaged/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/storaged/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for storaged storaged_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-dialog.jsx \ @@ -116,12 +117,14 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) storaged_OUTPUTS = \ dist/storaged/images/storage-array.png \ dist/storaged/images/storage-disk.png \ - dist/storaged/index.html.gz \ + dist/storaged/index.html \ dist/storaged/po.cs.js.gz \ dist/storaged/po.de.js.gz \ dist/storaged/po.es.js.gz \ @@ -155,7 +158,7 @@ storaged_INSTALL = \ dist/storaged/images/storage-array.png \ dist/storaged/images/storage-disk.png \ - dist/storaged/index.html.gz \ + dist/storaged/index.html \ dist/storaged/manifest.json \ dist/storaged/po.cs.js.gz \ dist/storaged/po.de.js.gz \ @@ -193,7 +196,7 @@ dist/storaged/images/storage-disk.png: $(srcdir)/dist/storaged/manifest.json -dist/storaged/index.html.gz: $(srcdir)/dist/storaged/manifest.json +dist/storaged/index.html: $(srcdir)/dist/storaged/manifest.json dist/storaged/po.cs.js.gz: $(srcdir)/dist/storaged/manifest.json @@ -253,6 +256,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -483,6 +488,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(storaged_INPUTS) WEBPACK_OUTPUTS += $(storaged_OUTPUTS) WEBPACK_INSTALL += $(storaged_INSTALL) diff -Nru cockpit-283/dist/storaged/manifest.json cockpit-284/dist/storaged/manifest.json --- cockpit-283/dist/storaged/manifest.json 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/storaged/manifest.json 2023-01-25 05:21:41.000000000 +0000 @@ -61,7 +61,11 @@ "stratis_package": { "fedora": "stratisd", "centos": "stratisd", "arch": "stratisd" - } + }, + "nbde_root_help": { "fedora": true, + "centos": true, + "rhel": true + } }, "content-security-policy": "img-src 'self' data:" } Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/storage.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/storage.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/storaged/storage.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/storaged/storage.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/hwinfo.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/hwinfo.css.gz differ diff -Nru cockpit-283/dist/systemd/hwinfo.html cockpit-284/dist/systemd/hwinfo.html --- cockpit-283/dist/systemd/hwinfo.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/systemd/hwinfo.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,15 @@ + + + + Hardware information + + + + + + + +
                                                                                                                        + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/hwinfo.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/hwinfo.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/hwinfo.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/hwinfo.js.gz differ diff -Nru cockpit-283/dist/systemd/index.html cockpit-284/dist/systemd/index.html --- cockpit-283/dist/systemd/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/systemd/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,19 @@ + + + + + Overview + + + + + + + + + + +
                                                                                                                        + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/index.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/logs.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/logs.css.gz differ diff -Nru cockpit-283/dist/systemd/logs.html cockpit-284/dist/systemd/logs.html --- cockpit-283/dist/systemd/logs.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/systemd/logs.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,38 @@ + + + + + + Journal + + + + + + + + +
                                                                                                                        +
                                                                                                                        + + + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/logs.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/logs.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/logs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/logs.js.gz differ diff -Nru cockpit-283/dist/systemd/Makefile.deps cockpit-284/dist/systemd/Makefile.deps --- cockpit-283/dist/systemd/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/systemd/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for systemd systemd_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-context-menu.jsx \ @@ -128,16 +129,18 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) systemd_OUTPUTS = \ dist/systemd/hwinfo.css.gz \ - dist/systemd/hwinfo.html.gz \ + dist/systemd/hwinfo.html \ dist/systemd/hwinfo.js.LICENSE.txt.gz \ dist/systemd/hwinfo.js.gz \ - dist/systemd/index.html.gz \ + dist/systemd/index.html \ dist/systemd/logs.css.gz \ - dist/systemd/logs.html.gz \ + dist/systemd/logs.html \ dist/systemd/logs.js.LICENSE.txt.gz \ dist/systemd/logs.js.gz \ dist/systemd/overview.css.gz \ @@ -165,23 +168,23 @@ dist/systemd/po.zh_CN.js.gz \ dist/systemd/po.zh_TW.js.gz \ dist/systemd/services.css.gz \ - dist/systemd/services.html.gz \ + dist/systemd/services.html \ dist/systemd/services.js.LICENSE.txt.gz \ dist/systemd/services.js.gz \ dist/systemd/terminal.css.gz \ - dist/systemd/terminal.html.gz \ + dist/systemd/terminal.html \ dist/systemd/terminal.js.LICENSE.txt.gz \ dist/systemd/terminal.js.gz \ $(NULL) systemd_INSTALL = \ dist/systemd/hwinfo.css.gz \ - dist/systemd/hwinfo.html.gz \ + dist/systemd/hwinfo.html \ dist/systemd/hwinfo.js.LICENSE.txt.gz \ dist/systemd/hwinfo.js.gz \ - dist/systemd/index.html.gz \ + dist/systemd/index.html \ dist/systemd/logs.css.gz \ - dist/systemd/logs.html.gz \ + dist/systemd/logs.html \ dist/systemd/logs.js.LICENSE.txt.gz \ dist/systemd/logs.js.gz \ dist/systemd/manifest.json \ @@ -210,11 +213,11 @@ dist/systemd/po.zh_CN.js.gz \ dist/systemd/po.zh_TW.js.gz \ dist/systemd/services.css.gz \ - dist/systemd/services.html.gz \ + dist/systemd/services.html \ dist/systemd/services.js.LICENSE.txt.gz \ dist/systemd/services.js.gz \ dist/systemd/terminal.css.gz \ - dist/systemd/terminal.html.gz \ + dist/systemd/terminal.html \ dist/systemd/terminal.js.LICENSE.txt.gz \ dist/systemd/terminal.js.gz \ $(NULL) @@ -226,17 +229,17 @@ dist/systemd/hwinfo.css.gz: $(srcdir)/dist/systemd/manifest.json -dist/systemd/hwinfo.html.gz: $(srcdir)/dist/systemd/manifest.json +dist/systemd/hwinfo.html: $(srcdir)/dist/systemd/manifest.json dist/systemd/hwinfo.js.LICENSE.txt.gz: $(srcdir)/dist/systemd/manifest.json dist/systemd/hwinfo.js.gz: $(srcdir)/dist/systemd/manifest.json -dist/systemd/index.html.gz: $(srcdir)/dist/systemd/manifest.json +dist/systemd/index.html: $(srcdir)/dist/systemd/manifest.json dist/systemd/logs.css.gz: $(srcdir)/dist/systemd/manifest.json -dist/systemd/logs.html.gz: $(srcdir)/dist/systemd/manifest.json +dist/systemd/logs.html: $(srcdir)/dist/systemd/manifest.json dist/systemd/logs.js.LICENSE.txt.gz: $(srcdir)/dist/systemd/manifest.json @@ -292,7 +295,7 @@ dist/systemd/services.css.gz: $(srcdir)/dist/systemd/manifest.json -dist/systemd/services.html.gz: $(srcdir)/dist/systemd/manifest.json +dist/systemd/services.html: $(srcdir)/dist/systemd/manifest.json dist/systemd/services.js.LICENSE.txt.gz: $(srcdir)/dist/systemd/manifest.json @@ -300,7 +303,7 @@ dist/systemd/terminal.css.gz: $(srcdir)/dist/systemd/manifest.json -dist/systemd/terminal.html.gz: $(srcdir)/dist/systemd/manifest.json +dist/systemd/terminal.html: $(srcdir)/dist/systemd/manifest.json dist/systemd/terminal.js.LICENSE.txt.gz: $(srcdir)/dist/systemd/manifest.json @@ -308,6 +311,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -562,6 +567,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(systemd_INPUTS) WEBPACK_OUTPUTS += $(systemd_OUTPUTS) WEBPACK_INSTALL += $(systemd_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/overview.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/overview.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/overview.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/overview.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/services.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/services.css.gz differ diff -Nru cockpit-283/dist/systemd/services.html cockpit-284/dist/systemd/services.html --- cockpit-283/dist/systemd/services.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/systemd/services.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,17 @@ + + + + Services + + + + + + + + + + +
                                                                                                                        + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/services.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/services.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/services.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/services.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/terminal.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/terminal.css.gz differ diff -Nru cockpit-283/dist/systemd/terminal.html cockpit-284/dist/systemd/terminal.html --- cockpit-283/dist/systemd/terminal.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/systemd/terminal.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,16 @@ + + + + Terminal + + + + + + + + +
                                                                                                                        + + + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/terminal.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/terminal.html.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/systemd/terminal.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/systemd/terminal.js.gz differ diff -Nru cockpit-283/dist/tuned/Makefile.deps cockpit-284/dist/tuned/Makefile.deps --- cockpit-283/dist/tuned/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/tuned/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for tuned tuned_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/cockpit-components-empty-state.css \ pkg/lib/cockpit-components-empty-state.jsx \ @@ -36,6 +37,8 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) tuned_OUTPUTS = \ @@ -148,6 +151,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/cockpit-components-empty-state.css: @@ -218,6 +223,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(tuned_INPUTS) WEBPACK_OUTPUTS += $(tuned_OUTPUTS) WEBPACK_INSTALL += $(tuned_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/performance.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/performance.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/tuned/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/tuned/po.zh_TW.js.gz differ diff -Nru cockpit-283/dist/users/index.html cockpit-284/dist/users/index.html --- cockpit-283/dist/users/index.html 1970-01-01 00:00:00.000000000 +0000 +++ cockpit-284/dist/users/index.html 2023-01-25 05:21:41.000000000 +0000 @@ -0,0 +1,35 @@ + + + + + + Local accounts + + + + + + + + + +
                                                                                                                        +
                                                                                                                        + Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/index.html.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/index.html.gz differ diff -Nru cockpit-283/dist/users/Makefile.deps cockpit-284/dist/users/Makefile.deps --- cockpit-283/dist/users/Makefile.deps 2023-01-11 17:25:48.000000000 +0000 +++ cockpit-284/dist/users/Makefile.deps 2023-01-25 05:21:41.000000000 +0000 @@ -1,6 +1,7 @@ # Generated Makefile data for users users_INPUTS = \ .babelrc.json \ + package-lock.json \ package.json \ pkg/lib/_global-variables.scss \ pkg/lib/cockpit-components-dialog.jsx \ @@ -63,10 +64,12 @@ po/uk.po \ po/zh_CN.po \ po/zh_TW.po \ + tools/webpack-make \ + webpack.config.js \ $(NULL) users_OUTPUTS = \ - dist/users/index.html.gz \ + dist/users/index.html \ dist/users/po.cs.js.gz \ dist/users/po.de.js.gz \ dist/users/po.es.js.gz \ @@ -94,7 +97,7 @@ $(NULL) users_INSTALL = \ - dist/users/index.html.gz \ + dist/users/index.html \ dist/users/manifest.json \ dist/users/po.cs.js.gz \ dist/users/po.de.js.gz \ @@ -127,7 +130,7 @@ $(srcdir)/dist/users/manifest.json: $(users_INPUTS) -dist/users/index.html.gz: $(srcdir)/dist/users/manifest.json +dist/users/index.html: $(srcdir)/dist/users/manifest.json dist/users/po.cs.js.gz: $(srcdir)/dist/users/manifest.json @@ -179,6 +182,8 @@ .babelrc.json: +package-lock.json: + package.json: pkg/lib/_global-variables.scss: @@ -303,6 +308,10 @@ po/zh_TW.po: +tools/webpack-make: + +webpack.config.js: + WEBPACK_INPUTS += $(users_INPUTS) WEBPACK_OUTPUTS += $(users_OUTPUTS) WEBPACK_INSTALL += $(users_INSTALL) Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.cs.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.cs.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.de.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.de.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.es.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.es.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.fi.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.fi.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.fr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.fr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.he.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.he.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.it.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.it.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.ja.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.ja.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.ka.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.ka.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.ko.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.ko.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.nb_NO.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.nb_NO.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.nl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.nl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.pl.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.pl.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.pt_BR.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.pt_BR.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.ru.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.ru.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.sk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.sk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.sv.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.sv.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.tr.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.tr.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.uk.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.uk.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.zh_CN.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.zh_CN.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/po.zh_TW.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/po.zh_TW.js.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/users.css.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/users.css.gz differ Binary files /tmp/tmp3lffvx7m/MftnCYriM3/cockpit-283/dist/users/users.js.gz and /tmp/tmp3lffvx7m/H1qoFHs6Ox/cockpit-284/dist/users/users.js.gz differ diff -Nru cockpit-283/.extra_dist cockpit-284/.extra_dist --- cockpit-283/.extra_dist 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/.extra_dist 2023-01-25 05:21:37.000000000 +0000 @@ -50,6 +50,7 @@ test/pytest/pseudo.py test/pytest/test_bridge.py test/pytest/test_browser.py +test/pytest/test_packages.py test/pytest/test_samples.py test/pytest/test_transport.py test/reference diff -Nru cockpit-283/Makefile.in cockpit-284/Makefile.in --- cockpit-283/Makefile.in 2023-01-11 17:25:46.000000000 +0000 +++ cockpit-284/Makefile.in 2023-01-25 05:21:39.000000000 +0000 @@ -2060,12 +2060,17 @@ $(NULL) AM_CFLAGS = \ + -std=gnu18 \ -pthread \ -Wall \ -Werror=strict-prototypes \ -Werror=missing-prototypes \ -Werror=implicit-function-declaration \ - -Werror=pointer-arith -Werror=init-self \ + -Werror=implicit-int \ + -Werror=int-conversion \ + -Werror=old-style-definition \ + -Werror=pointer-arith \ + -Werror=init-self \ -Werror=format=2 \ -Werror=return-type \ -Werror=missing-include-dirs \ @@ -8901,7 +8906,7 @@ $(srcdir)/dist/%/Makefile.deps: @true -$(srcdir)/dist/%/manifest.json: $(srcdir)/tools/webpack-make $(srcdir)/package-lock.json $(srcdir)/webpack.config.js +$(srcdir)/dist/%/manifest.json: $(srcdir)/package-lock.json $(V_WEBPACK) cd $(srcdir) && NODE_ENV='$(NODE_ENV)' tools/termschutz tools/webpack-make $* -include $(WEBPACK_DEPS) diff -Nru cockpit-283/package.json cockpit-284/package.json --- cockpit-283/package.json 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/package.json 2023-01-25 05:21:37.000000000 +0000 @@ -3,11 +3,11 @@ "description": "Cockpit isn't a Node package, these are devel time deps, not needed to build tarball either", "private": true, "dependencies": { - "@patternfly/patternfly": "4.222.4", - "@patternfly/react-core": "4.267.14", - "@patternfly/react-icons": "4.93.3", - "@patternfly/react-styles": "4.92.3", - "@patternfly/react-table": "4.112.15", + "@patternfly/patternfly": "4.224.2", + "@patternfly/react-core": "4.276.2", + "@patternfly/react-icons": "4.93.5", + "@patternfly/react-styles": "4.92.5", + "@patternfly/react-table": "4.112.35", "deep-equal": "2.0.5", "js-sha1": "0.6.0", "js-sha256": "0.9.0", @@ -20,7 +20,8 @@ "remarkable": "2.0.1", "throttle-debounce": "2.3.0", "uuid": "7.0.3", - "xterm": "4.18.0" + "xterm": "5.1.0", + "xterm-addon-canvas": "^0.3.0" }, "devDependencies": { "@babel/core": "^7.9.0", diff -Nru cockpit-283/package-lock.json cockpit-284/package-lock.json --- cockpit-283/package-lock.json 2023-01-11 17:25:47.000000000 +0000 +++ cockpit-284/package-lock.json 2023-01-25 05:21:40.000000000 +0000 @@ -436,13 +436,13 @@ } }, "node_modules/@babel/helpers": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.7.tgz", - "integrity": "sha512-PBPjs5BppzsGaxHQCDKnZ6Gd9s6xl8bBCluz3vEInLGRJmnZan4F6BYCeqtyXqkk4W5IlPmjK4JlOuZkpJ3xZA==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.13.tgz", + "integrity": "sha512-nzJ0DWCL3gB5RCXbUO3KIMMsBY2Eqbx8mBpKGE/02PgyRQFcPQLbkQ1vyy596mZLaP+dAfD+R4ckASzNVmW3jg==", "dev": true, "dependencies": { "@babel/template": "^7.20.7", - "@babel/traverse": "^7.20.7", + "@babel/traverse": "^7.20.13", "@babel/types": "^7.20.7" }, "engines": { @@ -464,9 +464,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.7.tgz", - "integrity": "sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.13.tgz", + "integrity": "sha512-gFDLKMfpiXCsjt4za2JA9oTMn70CeseCehb11kRZgvd7+F67Hih3OHOK24cRrWECJ/ljfPGac6ygXAs/C8kIvw==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -1348,9 +1348,9 @@ } }, "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.20.7.tgz", - "integrity": "sha512-Tfq7qqD+tRj3EoDhY00nn2uP2hsRxgYGi5mLQ5TimKav0a9Lrpd4deE+fcLXU8zFYRjlKPHZhpCvfEA6qnBxqQ==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.20.13.tgz", + "integrity": "sha512-MmTZx/bkUrfJhhYAYt3Urjm+h8DQGrPrnKQ94jLo7NLuOU+T89a7IByhKmrb8SKhrIYIQ0FN0CHMbnFRen4qNw==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.18.6", @@ -1661,9 +1661,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.7.tgz", - "integrity": "sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.13.tgz", + "integrity": "sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA==", "dev": true, "dependencies": { "regenerator-runtime": "^0.13.11" @@ -1672,19 +1672,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/runtime-corejs3": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.20.7.tgz", - "integrity": "sha512-jr9lCZ4RbRQmCR28Q8U8Fu49zvFqLxTY9AMOUz+iyMohMoAgpEcVxY+wJNay99oXOpOcCTODkk70NDN2aaJEeg==", - "dev": true, - "dependencies": { - "core-js-pure": "^3.25.1", - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/template": { "version": "7.20.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", @@ -1700,9 +1687,9 @@ } }, "node_modules/@babel/traverse": { - "version": "7.20.12", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz", - "integrity": "sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.13.tgz", + "integrity": "sha512-kMJXfF0T6DIS9E8cgdLCSAL+cuCK+YEZHWiLK0SXpTo8YRj5lpJu3CDNKiIBCne4m9hhTIqUg6SYTAI39tAiVQ==", "dev": true, "dependencies": { "@babel/code-frame": "^7.18.6", @@ -1711,7 +1698,7 @@ "@babel/helper-function-name": "^7.19.0", "@babel/helper-hoist-variables": "^7.18.6", "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.7", + "@babel/parser": "^7.20.13", "@babel/types": "^7.20.7", "debug": "^4.1.0", "globals": "^11.1.0" @@ -1735,19 +1722,19 @@ } }, "node_modules/@csstools/selector-specificity": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.0.2.tgz", - "integrity": "sha512-IkpVW/ehM1hWKln4fCA3NzJU8KwD+kIOvPZA4cqxoJHtE21CCzjyp+Kxbu0i5I4tBNOlXPL9mjwnWlL0VEG4Fg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.1.0.tgz", + "integrity": "sha512-zJ6hb3FDgBbO8d2e83vg6zq7tNvDqSq9RwdwfzJ8tdm9JHNvANq2fqwyRn6mlpUb7CwTs5ILdUrGwi9Gk4vY5w==", "dev": true, "engines": { - "node": "^12 || ^14 || >=16" + "node": "^14 || ^16 || >=18" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/csstools" }, "peerDependencies": { - "postcss": "^8.2", + "postcss": "^8.4", "postcss-selector-parser": "^6.0.10" } }, @@ -2006,18 +1993,18 @@ } }, "node_modules/@patternfly/patternfly": { - "version": "4.222.4", - "resolved": "https://registry.npmjs.org/@patternfly/patternfly/-/patternfly-4.222.4.tgz", - "integrity": "sha512-+0fk4dzxEbWn+hgaOnR0BjfeUdEeVVrqfH7+GFeFc+RKjEMjIR/BZbWWN8YQDezmDv6A32gHmEKaY3Uwbt06Lw==" + "version": "4.224.2", + "resolved": "https://registry.npmjs.org/@patternfly/patternfly/-/patternfly-4.224.2.tgz", + "integrity": "sha512-HGNV26uyHSIECuhjPg/WGn0mXbAotcs6ODfhAOkfYjIgGylddgiwElxUe1rpEHV5mQJJ2rMn4OdeJIIpzRX61g==" }, "node_modules/@patternfly/react-core": { - "version": "4.267.14", - "resolved": "https://registry.npmjs.org/@patternfly/react-core/-/react-core-4.267.14.tgz", - "integrity": "sha512-a43F6GApAZSh+YF2vWUExFeB1nttAHw3Lc/ZMkaHxim3Sh5eClgLB50NkPggd+npdzkFKUe1XdCYkvgv+TfkLA==", - "dependencies": { - "@patternfly/react-icons": "^4.93.3", - "@patternfly/react-styles": "^4.92.3", - "@patternfly/react-tokens": "^4.94.3", + "version": "4.276.2", + "resolved": "https://registry.npmjs.org/@patternfly/react-core/-/react-core-4.276.2.tgz", + "integrity": "sha512-5xaUHsNKw+C/qM8dIupF0jP8dUELr/co5aBlRitJJ8npaFHCwYptsgKqZxE1ti/QULVAF31/6AoTTPOrfBCr9Q==", + "dependencies": { + "@patternfly/react-icons": "^4.93.5", + "@patternfly/react-styles": "^4.92.5", + "@patternfly/react-tokens": "^4.94.5", "focus-trap": "6.9.2", "react-dropzone": "9.0.0", "tippy.js": "5.1.2", @@ -2029,28 +2016,28 @@ } }, "node_modules/@patternfly/react-icons": { - "version": "4.93.3", - "resolved": "https://registry.npmjs.org/@patternfly/react-icons/-/react-icons-4.93.3.tgz", - "integrity": "sha512-OIEeTc4Noi9XOIRF3OB3sz9dRnxr1h4eNIzIeZwRd8xXWCQxYcrllxPV98F3+RpL4ZCH2QWb/2gG4mHrVyX+0A==", + "version": "4.93.5", + "resolved": "https://registry.npmjs.org/@patternfly/react-icons/-/react-icons-4.93.5.tgz", + "integrity": "sha512-0TRgONPr0C0/wzOjwlOI9WB068m/8VG9sW3Y+4PBDyimVRUg2blSzeQbeAjWu/O1mNMwpGtqSqk9XHjGmAxwJQ==", "peerDependencies": { "react": "^16.8 || ^17 || ^18", "react-dom": "^16.8 || ^17 || ^18" } }, "node_modules/@patternfly/react-styles": { - "version": "4.92.3", - "resolved": "https://registry.npmjs.org/@patternfly/react-styles/-/react-styles-4.92.3.tgz", - "integrity": "sha512-jC8F71trFWVYM7YVTP/3MBLwLZDCY3tgHeAmSKdcw6R607LK4rtCzfw5lt2IHNmAjQ0ggqDlJGWsJAfGMe4iPA==" + "version": "4.92.5", + "resolved": "https://registry.npmjs.org/@patternfly/react-styles/-/react-styles-4.92.5.tgz", + "integrity": "sha512-oV7grkjEw/68Q5+CReaDddgz89He5QkdToIklvcTOCqzI1GmpAACmsfCb3wusqcwROj0hOHBAzf2cRZcRkdqAg==" }, "node_modules/@patternfly/react-table": { - "version": "4.112.15", - "resolved": "https://registry.npmjs.org/@patternfly/react-table/-/react-table-4.112.15.tgz", - "integrity": "sha512-BRT+U8Dm3laSsTH0Ho4VCzgwCy/ku6bAQA/KTOpW9aLkS6kMNKt17jKZAODliiX7yg3mhP+v3/rY+jIOjcMx2w==", - "dependencies": { - "@patternfly/react-core": "^4.267.14", - "@patternfly/react-icons": "^4.93.3", - "@patternfly/react-styles": "^4.92.3", - "@patternfly/react-tokens": "^4.94.3", + "version": "4.112.35", + "resolved": "https://registry.npmjs.org/@patternfly/react-table/-/react-table-4.112.35.tgz", + "integrity": "sha512-H9Vm/y80mBQo9jFXsMcS/u/+OaHmFnDXRPaAk/nUNRNn53f3bQmHW1Lqbu75wEHCefa3ANcihmhoVPg70xfv/Q==", + "dependencies": { + "@patternfly/react-core": "^4.276.2", + "@patternfly/react-icons": "^4.93.5", + "@patternfly/react-styles": "^4.92.5", + "@patternfly/react-tokens": "^4.94.5", "lodash": "^4.17.19", "tslib": "^2.0.0" }, @@ -2060,9 +2047,9 @@ } }, "node_modules/@patternfly/react-tokens": { - "version": "4.94.3", - "resolved": "https://registry.npmjs.org/@patternfly/react-tokens/-/react-tokens-4.94.3.tgz", - "integrity": "sha512-Rq8RMJ/iu/nTDidEb/xQWUMXFW+W4MuoLBonTAFv/Bx8G3gFMHU2JGtv9R5SvAYU6Eux9EkjCG7h3xiLqwH3jg==" + "version": "4.94.6", + "resolved": "https://registry.npmjs.org/@patternfly/react-tokens/-/react-tokens-4.94.6.tgz", + "integrity": "sha512-tm7C6nat+uKMr1hrapis7hS3rN9cr41tpcCKhx6cod6FLU8KwF2Yt5KUxakhIOCEcE/M/EhXhAw/qejp8w0r7Q==" }, "node_modules/@trysound/sax": { "version": "0.2.0", @@ -2483,16 +2470,12 @@ "dev": true }, "node_modules/aria-query": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", "dev": true, "dependencies": { - "@babel/runtime": "^7.10.2", - "@babel/runtime-corejs3": "^7.10.2" - }, - "engines": { - "node": ">=6.0" + "deep-equal": "^2.0.5" } }, "node_modules/array-includes": { @@ -2636,10 +2619,13 @@ } }, "node_modules/axobject-query": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", - "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", - "dev": true + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", + "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "dev": true, + "dependencies": { + "deep-equal": "^2.0.5" + } }, "node_modules/babel-loader": { "version": "8.3.0", @@ -2902,9 +2888,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001442", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001442.tgz", - "integrity": "sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow==", + "version": "1.0.30001447", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001447.tgz", + "integrity": "sha512-bdKU1BQDPeEXe9A39xJnGtY0uRq/z5osrnXUw0TcK+EYno45Y+U7QU9HhHEyzvMDffpYadFXi3idnSNkcwLkTw==", "dev": true, "funding": [ { @@ -2990,9 +2976,9 @@ } }, "node_modules/clean-css": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.1.tgz", - "integrity": "sha512-lCr8OHhiWCTw4v8POJovCoh4T7I9U11yVsPjMWWnnMmp9ZowCxyad1Pathle/9HjaDp+fdQKjO9fQydE6RHTZg==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", "dev": true, "dependencies": { "source-map": "~0.6.0" @@ -3224,9 +3210,9 @@ "hasInstallScript": true }, "node_modules/core-js-compat": { - "version": "3.27.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.27.1.tgz", - "integrity": "sha512-Dg91JFeCDA17FKnneN7oCMz4BkQ4TcffkgHP4OWwp9yx3pi7ubqMDXXSacfNak1PQqjc95skyt+YBLHQJnkJwA==", + "version": "3.27.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.27.2.tgz", + "integrity": "sha512-welaYuF7ZtbYKGrIy7y3eb40d37rG1FvzEOfe7hSLd2iD6duMDqUhRfSvCGyC46HhR6Y8JXXdZ2lnRUMkPBpvg==", "dev": true, "dependencies": { "browserslist": "^4.21.4" @@ -3236,17 +3222,6 @@ "url": "https://opencollective.com/core-js" } }, - "node_modules/core-js-pure": { - "version": "3.27.1", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.27.1.tgz", - "integrity": "sha512-BS2NHgwwUppfeoqOXqi08mUqS5FiZpuRuJJpKsaME7kJz0xxuk0xkhDdfMIlP/zLa80krBqss1LtD7f889heAw==", - "dev": true, - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", @@ -3933,13 +3908,14 @@ } }, "node_modules/es-abstract": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.0.tgz", - "integrity": "sha512-GUGtW7eXQay0c+PRq0sGIKSdaBorfVqsCMhGHo4elP7YVqZu9nCZS4UkK4gv71gOWNMra/PaSKD3ao1oWExO0g==", + "version": "1.21.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", + "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", "dev": true, "dependencies": { + "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.0", + "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", @@ -3952,7 +3928,7 @@ "has-proto": "^1.0.1", "has-symbols": "^1.0.3", "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.0", + "is-array-buffer": "^3.0.1", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", @@ -3979,18 +3955,19 @@ } }, "node_modules/es-get-iterator": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.2.tgz", - "integrity": "sha512-+DTO8GYwbMCwbywjimwZMHp8AuYXOS2JZFWoi2AlPOS3ebnII9w/NLpNZtA7A0YLaVDw+O7KFCeoIV7OPvM7hQ==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", "dependencies": { "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.0", - "has-symbols": "^1.0.1", - "is-arguments": "^1.1.0", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", "is-map": "^2.0.2", "is-set": "^2.0.2", - "is-string": "^1.0.5", - "isarray": "^2.0.5" + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4192,13 +4169,14 @@ } }, "node_modules/eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", "dev": true, "dependencies": { "debug": "^3.2.7", - "resolve": "^1.20.0" + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" } }, "node_modules/eslint-import-resolver-node/node_modules/debug": { @@ -4272,23 +4250,25 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", "dev": true, "dependencies": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.3", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", "has": "^1.0.3", - "is-core-module": "^2.8.1", + "is-core-module": "^2.11.0", "is-glob": "^4.0.3", "minimatch": "^3.1.2", - "object.values": "^1.1.5", - "resolve": "^1.22.0", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", "tsconfig-paths": "^3.14.1" }, "engines": { @@ -4299,12 +4279,12 @@ } }, "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "dependencies": { - "ms": "2.0.0" + "ms": "^2.1.1" } }, "node_modules/eslint-plugin-import/node_modules/doctrine": { @@ -4319,30 +4299,27 @@ "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", - "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", "dev": true, "dependencies": { - "@babel/runtime": "^7.18.9", - "aria-query": "^4.2.2", - "array-includes": "^3.1.5", + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", "ast-types-flow": "^0.0.7", - "axe-core": "^4.4.3", - "axobject-query": "^2.2.0", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", "damerau-levenshtein": "^1.0.8", "emoji-regex": "^9.2.2", "has": "^1.0.3", - "jsx-ast-utils": "^3.3.2", - "language-tags": "^1.0.5", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", "semver": "^6.3.0" }, "engines": { @@ -4353,9 +4330,9 @@ } }, "node_modules/eslint-plugin-jsx-a11y/node_modules/axe-core": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.2.tgz", - "integrity": "sha512-b1WlTV8+XKLj9gZy2DZXgQiyDp9xkkoe2a6U6UbYccScq2wgH/YwCeI2/Jq2mgo0HzQxqJOjWZBLeA/mqsk5Mg==", + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.3.tgz", + "integrity": "sha512-/BQzOX780JhsxDnPpH4ZiyrJAzcd8AfzFPkv+89veFSr1rcMjuq2JDCwypKaPeB6ljHp9KjXhPpjgCvQlWYuqg==", "dev": true, "engines": { "node": ">=4" @@ -4400,9 +4377,9 @@ } }, "node_modules/eslint-plugin-react": { - "version": "7.31.11", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz", - "integrity": "sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==", + "version": "7.32.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.1.tgz", + "integrity": "sha512-vOjdgyd0ZHBXNsmvU+785xY8Bfe57EFbTYYk8XrROzWpr9QBvpjITvAXt9xqcE6+8cjR/g1+mfumPToxsl1www==", "dev": true, "dependencies": { "array-includes": "^3.1.6", @@ -4417,7 +4394,7 @@ "object.hasown": "^1.1.2", "object.values": "^1.1.6", "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.3", + "resolve": "^2.0.0-next.4", "semver": "^6.3.0", "string.prototype.matchall": "^4.0.8" }, @@ -5045,9 +5022,9 @@ } }, "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -5596,7 +5573,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", - "dev": true, "dependencies": { "get-intrinsic": "^1.1.3", "has": "^1.0.3", @@ -6094,9 +6070,9 @@ } }, "node_modules/klona": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.5.tgz", - "integrity": "sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", "dev": true, "engines": { "node": ">= 8" @@ -6115,12 +6091,12 @@ "dev": true }, "node_modules/language-tags": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.7.tgz", - "integrity": "sha512-bSytju1/657hFjgUzPAPqszxH62ouE8nQFoFaVlIQfne4wO/wXC9A4+m8jYve7YBBvi59eq0SUpcshvG8h5Usw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", "dev": true, "dependencies": { - "language-subtag-registry": "^0.3.20" + "language-subtag-registry": "~0.3.2" } }, "node_modules/levn": { @@ -6727,9 +6703,9 @@ } }, "node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7679,9 +7655,9 @@ } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "dev": true, "engines": { "node": ">=6" @@ -8369,9 +8345,9 @@ } }, "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", "dev": true, "dependencies": { "randombytes": "^2.1.0" @@ -8584,6 +8560,17 @@ "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility", "dev": true }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/strict-loader": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/strict-loader/-/strict-loader-1.2.0.tgz", @@ -9340,9 +9327,9 @@ } }, "node_modules/terser/node_modules/acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -9783,9 +9770,9 @@ "dev": true }, "node_modules/webpack/node_modules/acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -9949,9 +9936,17 @@ } }, "node_modules/xterm": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/xterm/-/xterm-4.18.0.tgz", - "integrity": "sha512-JQoc1S0dti6SQfI0bK1AZvGnAxH4MVw45ZPFSO6FHTInAiau3Ix77fSxNx3mX4eh9OL4AYa8+4C8f5UvnSfppQ==" + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/xterm/-/xterm-5.1.0.tgz", + "integrity": "sha512-LovENH4WDzpwynj+OTkLyZgJPeDom9Gra4DMlGAgz6pZhIDCQ+YuO7yfwanY+gVbn/mmZIStNOnVRU/ikQuAEQ==" + }, + "node_modules/xterm-addon-canvas": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/xterm-addon-canvas/-/xterm-addon-canvas-0.3.0.tgz", + "integrity": "sha512-2deF4ev6T+NjgSM56H+jcAWz4k5viEoaBtuDEyfo5Qdh1r7HOvNzLC45HSeegdH38qmEcL9XIt0KXyOINpSFRA==", + "peerDependencies": { + "xterm": "^5.0.0" + } }, "node_modules/yallist": { "version": "3.1.1", diff -Nru cockpit-283/pkg/base1/test-dbus.js cockpit-284/pkg/base1/test-dbus.js --- cockpit-283/pkg/base1/test-dbus.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/base1/test-dbus.js 2023-01-25 05:21:37.000000000 +0000 @@ -756,69 +756,53 @@ }); }); -QUnit.test.skipWithPybridge("cockpit.Config internal D-Bus API", function (assert) { - const done = assert.async(); - assert.expect(6); - +QUnit.test("cockpit.Config internal D-Bus API", async assert => { const dbus = cockpit.dbus(null, { bus: "internal" }); - let configDir; - let proxy; // Get temp config dir to see where to place our test config - dbus.call("/environment", "org.freedesktop.DBus.Properties", "Get", ["cockpit.Environment", "Variables"]) - .then(reply => { - configDir = reply[0].v.XDG_CONFIG_DIRS; - return cockpit.file(configDir + "/cockpit/cockpit.conf").replace(` + const reply = await dbus.call("/environment", "org.freedesktop.DBus.Properties", "Get", + ["cockpit.Environment", "Variables"]); + const configDir = reply[0].v.XDG_CONFIG_DIRS; + await cockpit.file(configDir + "/cockpit/cockpit.conf").replace(` [SomeSection] SomeA = one SomethingElse = 2 +LargeNum = 12345 [Other] Flavor=chocolate Empty= `); - }) - .then(() => { - proxy = dbus.proxy("cockpit.Config", "/config"); - return proxy.wait(); - }) - // the above changes the config after bridge startup, so reload - .then(() => proxy.Reload()) - - // test GetString() - .then(() => proxy.GetString("SomeSection", "SomeA")) - .then(result => { - assert.equal(result, "one"); - return proxy.GetString("Other", "Empty"); - }) - - // test GetUInt() - .then(result => { - assert.equal(result, ""); - // this key exists, ignores default - return proxy.GetUInt("SomeSection", "SomethingElse", 10, 100, 0); - }) - .then(result => { - assert.equal(result, 2); - // this key does not exist, return default - return proxy.GetUInt("SomeSection", "NotExisting", 10, 100, 0); - }) - .then(result => { - assert.equal(result, 10); - // out of bounds, clamp to minimum - return proxy.GetUInt("SomeSection", "SomethingElse", 42, 50, 5); - }) - .catch(err => console.error("unexpected error:", JSON.stringify(err))) - - .then(result => { - assert.equal(result, 5); - - // test GetString with non-existing section/key - assert.rejects(proxy.GetString("SomeSection", "UnknownKey"), - /key.*UnknownKey.*not exist/, - "unknown key raises an error"); - }) - .finally(done); + const proxy = dbus.proxy("cockpit.Config", "/config"); + await proxy.wait(); + await proxy.Reload(); + + // test GetString() + assert.equal(await proxy.GetString("SomeSection", "SomeA"), "one"); + assert.equal(await proxy.GetString("Other", "Empty"), ""); + + // test GetUInt() + + // this key exists, ignores default + assert.equal(await proxy.GetUInt("SomeSection", "SomethingElse", 10, 100, 0), 2); + // this key does not exist, return default + assert.equal(await proxy.GetUInt("SomeSection", "NotExisting", 10, 100, 0), 10); + // out of bounds, clamp to minimum + assert.equal(await proxy.GetUInt("SomeSection", "SomethingElse", 42, 50, 5), 5); + // out of bounds, clamp to maximum + assert.equal(await proxy.GetUInt("SomeSection", "LargeNum", 42, 50, 5), 50); + // not an integer value, returns default + assert.equal(await proxy.GetUInt("SomeSection", "SomeA", 10, 100, 0), 10); + + // test GetString with non-existing section + assert.rejects(proxy.GetString("UnknownSection", "SomeKey"), + /key.*UnknownSection.*not exist/, + "unknown section raises an error"); + + // test GetString with non-existing key in existing section + assert.rejects(proxy.GetString("SomeSection", "UnknownKey"), + /key.*UnknownKey.*not exist/, + "unknown key raises an error"); }); QUnit.start(); diff -Nru cockpit-283/pkg/base1/test-file.js cockpit-284/pkg/base1/test-file.js --- cockpit-283/pkg/base1/test-file.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/base1/test-file.js 2023-01-25 05:21:37.000000000 +0000 @@ -1,245 +1,129 @@ import cockpit from "cockpit"; import QUnit from "qunit-tests"; -let dir; - -QUnit.test("simple read", function (assert) { - const done = assert.async(); - assert.expect(3); +QUnit.test("simple read", async assert => { const file = cockpit.file(dir + "/foo"); assert.equal(file.path, dir + "/foo", "file has path"); - file.read() - .done(function(resp) { - assert.equal(resp, "1234\n", "correct result"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); + assert.equal(await file.read(), "1234\n", "correct result"); }); -QUnit.test("read non-existent", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/blah").read() - .done(function(resp) { - assert.equal(resp, null, "correct result"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("read non-existent", async assert => { + assert.equal(await cockpit.file(dir + "/blah").read(), null, "correct result"); }); -QUnit.test("parse read", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/foo.json", { syntax: JSON }).read() - .done(function(resp) { - assert.deepEqual(resp, { foo: 12 }, "correct result"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("parse read", async assert => { + const resp = await cockpit.file(dir + "/foo.json", { syntax: JSON }).read(); + assert.deepEqual(resp, { foo: 12 }, "correct result"); }); -QUnit.test("parse read error", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/foo.bin", { syntax: JSON }).read() - .fail(function(error) { - assert.ok(error instanceof SyntaxError, "got SyntaxError error"); - }) - .always(function() { - assert.equal(this.state(), "rejected", "failed"); - done(); - }); +QUnit.test("parse read error", async assert => { + try { + await cockpit.file(dir + "/foo.bin", { syntax: JSON }).read(); + assert.ok(false, "should have failed"); + } catch (error) { + assert.ok(error instanceof SyntaxError, "got SyntaxError error"); + } }); -QUnit.test("binary read", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/foo.bin", { binary: true }).read() - .done(function(resp) { - assert.deepEqual(resp, new Uint8Array([0, 1, 2, 3]), "correct result"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("binary read", async assert => { + const resp = await cockpit.file(dir + "/foo.bin", { binary: true }).read(); + assert.deepEqual(resp, new Uint8Array([0, 1, 2, 3]), "correct result"); }); -QUnit.test("read non-regular", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir, { binary: true }).read() - .fail(function(error) { - assert.equal(error.problem, "internal-error", "got error"); - }) - .always(function() { - assert.equal(this.state(), "rejected", "failed"); - done(); - }); +QUnit.test("read non-regular", async assert => { + try { + await cockpit.file(dir, { binary: true }).read(); + assert.ok(false, "should have failed"); + } catch (error) { + assert.equal(error.problem, "internal-error", "got error"); + } }); -QUnit.test("read large", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/large.bin", { binary: true }).read() - .done(function(resp) { - assert.equal(resp.length, 512 * 1024, "correct result"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("read large", async assert => { + const resp = await cockpit.file(dir + "/large.bin", { binary: true }).read(); + assert.equal(resp.length, 512 * 1024, "correct result"); }); -QUnit.test("read too large", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/large.bin", { binary: true, max_read_size: 8 * 1024 }).read() - .fail(function(error) { - assert.equal(error.problem, "too-large", "got error"); - }) - .always(function() { - assert.equal(this.state(), "rejected", "failed"); - done(); - }); +QUnit.test("read too large", async assert => { + try { + await cockpit.file(dir + "/large.bin", { binary: true, max_read_size: 8 * 1024 }).read(); + assert.ok(false, "should have failed"); + } catch (error) { + assert.equal(error.problem, "too-large", "got error"); + } }); /* regression: passing 'binary: false' made cockpit-ws close the whole connection */ -QUnit.test("binary false", function (assert) { - const done = assert.async(); - assert.expect(1); - cockpit.file(dir + "/foo.bin", { binary: false }).read() - .done(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("binary false", async assert => { + await cockpit.file(dir + "/foo.bin", { binary: false }).read(); + assert.ok(true, "did not crash"); }); -QUnit.test("simple replace", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/bar").replace("4321\n") - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - cockpit.spawn(["cat", dir + "/bar"]) - .done(function (res) { - assert.equal(res, "4321\n", "correct content"); - done(); - }); - }); +QUnit.test("simple replace", async assert => { + await cockpit.file(dir + "/bar").replace("4321\n"); + const res = await cockpit.spawn(["cat", dir + "/bar"]); + assert.equal(res, "4321\n", "correct content"); }); -QUnit.test("stringify replace", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/bar", { syntax: JSON }).replace({ foo: 4321 }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - cockpit.spawn(["cat", dir + "/bar"]) - .done(function (res) { - assert.deepEqual(JSON.parse(res), { foo: 4321 }, "correct content"); - done(); - }); - }); +QUnit.test("stringify replace", async assert => { + await cockpit.file(dir + "/bar", { syntax: JSON }).replace({ foo: 4321 }); + const res = await cockpit.spawn(["cat", dir + "/bar"]); + assert.deepEqual(JSON.parse(res), { foo: 4321 }, "correct content"); }); -QUnit.test("stringify replace error", function (assert) { - const done = assert.async(); - assert.expect(2); +QUnit.test("stringify replace error", async assert => { const cycle = { }; cycle.me = cycle; - cockpit.file(dir + "/bar", { syntax: JSON }).replace(cycle) - .fail(function(error) { - assert.ok(error instanceof TypeError, "got stringify error"); - }) - .always(function() { - assert.equal(this.state(), "rejected", "failed"); - done(); - }); + try { + await cockpit.file(dir + "/bar", { syntax: JSON }).replace(cycle); + assert.ok(false, "should have failed"); + } catch (error) { + assert.ok(error instanceof TypeError, "got stringify error"); + } }); -QUnit.test("binary replace", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.file(dir + "/bar", { binary: true }).replace(new Uint8Array([3, 2, 1, 0])) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - cockpit.spawn(["cat", dir + "/bar"], { binary: true }) - .done(function (res) { - assert.deepEqual(res, new Uint8Array([3, 2, 1, 0]), "correct content"); - done(); - }); - }); +QUnit.test("binary replace", async assert => { + await cockpit.file(dir + "/bar", { binary: true }).replace(new Uint8Array([3, 2, 1, 0])); + const res = await cockpit.spawn(["cat", dir + "/bar"], { binary: true }); + assert.deepEqual(res, new Uint8Array([3, 2, 1, 0]), "correct content"); }); -QUnit.test("replace large", function (assert) { - const done = assert.async(); - assert.expect(3); +QUnit.test("replace large", async assert => { const str = new Array(23 * 1023).join('abcdef12345'); - cockpit.file(dir + "/large").replace(str) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - cockpit.spawn(["cat", dir + "/large"]) - .done(function(res) { - assert.equal(res.length, str.length, "correct large length"); - assert.ok(res == str, "correct large data"); - done(); - }); - }); + await cockpit.file(dir + "/large").replace(str); + const res = await cockpit.spawn(["cat", dir + "/large"]); + assert.equal(res.length, str.length, "correct large length"); + assert.ok(res == str, "correct large data"); }); -QUnit.test("binary replace large", function (assert) { - const done = assert.async(); - assert.expect(4); +QUnit.test("binary replace large", async assert => { const data = new Uint8Array(249 * 1023); const len = data.byteLength; for (let i = 0; i < len; i++) data[i] = i % 233; - cockpit.file(dir + "/large-binary", { binary: true }).replace(data) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - cockpit.spawn(["cat", dir + "/large-binary"], { binary: true }) - .done(function (res) { - const len = res.byteLength; - let eq = true; - assert.equal(res.byteLength, 249 * 1023, "check length"); - assert.equal(res.byteLength, data.byteLength, "correct large length"); - for (let i = 0; i < len; i++) { - if (res[i] !== data[i] || res[i] === undefined) { - eq = false; - break; - } - } - assert.ok(eq, "got back same data"); - done(); - }); - }); + await cockpit.file(dir + "/large-binary", { binary: true }).replace(data); + const res = await cockpit.spawn(["cat", dir + "/large-binary"], { binary: true }); + let eq = true; + assert.equal(res.byteLength, 249 * 1023, "check length"); + assert.equal(res.byteLength, data.byteLength, "correct large length"); + for (let i = 0; i < res.byteLength; i++) { + if (res[i] !== data[i] || res[i] === undefined) { + eq = false; + break; + } + } + assert.ok(eq, "got back same data"); }); -QUnit.test("remove", function (assert) { - const done = assert.async(); - assert.expect(3); - cockpit.spawn(["bash", "-c", "test -f " + dir + "/bar && echo exists"]) - .done(function (res) { - assert.equal(res, "exists\n", "exists"); - cockpit.file(dir + "/bar").replace(null) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - cockpit.spawn(["bash", "-c", "test -f " + dir + "/bar || echo gone"]) - .done(function (res) { - assert.equal(res, "gone\n", "gone"); - done(); - }); - }); - }); +QUnit.test("remove", async assert => { + const exists = await cockpit.spawn(["bash", "-c", "test -f " + dir + "/bar && echo exists"]); + assert.equal(exists, "exists\n", "exists"); + await cockpit.file(dir + "/bar").replace(null); + const res = await cockpit.spawn(["bash", "-c", "test -f " + dir + "/bar || echo gone"]); + assert.equal(res, "gone\n", "gone"); }); -QUnit.test("abort replace", function (assert) { +QUnit.test("abort replace", assert => { const done = assert.async(); assert.expect(2); @@ -265,128 +149,91 @@ }); }); -QUnit.test("replace with tag", function (assert) { +QUnit.test("replace with tag", async assert => { const done = assert.async(); const file = cockpit.file(dir + "/barfoo"); file.read() - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - }) - .done(function (content, tag_1) { + .then(async (content, tag_1) => { assert.equal(content, null, "file does not exist"); assert.equal(tag_1, "-", "first tag is -"); - file.replace("klmn\n", tag_1) - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - }) - .done(function (tag_2) { - assert.notEqual(tag_2, "-", "second tag is not -"); - file.replace("KLMN\n", tag_2) - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - }) - .done(function (tag_3) { - assert.notEqual(tag_3, tag_2, "third tag is different"); - file.replace("opqr\n", tag_2) - .fail(function (error) { - assert.equal(error.problem, "change-conflict", "wrong tag is rejected"); - done(); - }); - }); - }); + const tag_2 = await file.replace("klmn\n", tag_1); + assert.notEqual(tag_2, "-", "second tag is not -"); + const tag_3 = await file.replace("KLMN\n", tag_2); + assert.notEqual(tag_3, tag_2, "third tag is different"); + try { + await file.replace("opqr\n", tag_2); + assert.ok(false, "should have failed"); + } catch (error) { + assert.equal(error.problem, "change-conflict", "wrong tag is rejected"); + done(); + } }); }); -QUnit.test("modify", function (assert) { - const done = assert.async(); - assert.expect(7); - +QUnit.test("modify", async assert => { const file = cockpit.file(dir + "/quux"); let n = 0; - file - .modify(function (old) { - n += 1; - assert.equal(old, null, "no old content"); - return "ABCD\n"; - }) - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - assert.equal(n, 1, "callback called once"); - }) - .done(function () { - let n = 0; - file - .modify(function (old) { - n += 1; - assert.equal(old, "ABCD\n", "correct old content"); - return "dcba\n"; - }) - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - assert.equal(n, 1, "callback called once"); - cockpit.spawn(["cat", dir + "/quux"]) - .done(function (res) { - assert.equal(res, "dcba\n", "correct content"); - done(); - }); - }); - }); + await file.modify(old => { + n += 1; + assert.equal(old, null, "no old content"); + return "ABCD\n"; + }); + assert.equal(n, 1, "callback called once"); + + n = 0; + await file.modify(old => { + n += 1; + assert.equal(old, "ABCD\n", "correct old content"); + return "dcba\n"; + }); + assert.equal(n, 1, "callback called once"); + + assert.equal(await cockpit.spawn(["cat", dir + "/quux"]), "dcba\n", "correct content"); }); -QUnit.test("modify with conflict", function (assert) { +QUnit.test("modify with conflict", async assert => { const done = assert.async(); - assert.expect(8); + assert.expect(6); const file = cockpit.file(dir + "/baz"); let n = 0; file - .modify(function (old) { + .modify(old => { n += 1; assert.equal(old, null, "no old content"); return "ABCD\n"; }) - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - assert.equal(n, 1, "callback called once"); - }) - .done(function (content, tag) { + .finally(() => assert.equal(n, 1, "callback called once")) + + .then(async (content, tag) => { let n = 0; - cockpit.spawn(["bash", "-c", "sleep 1; echo XYZ > " + dir + "/baz"]) - .done(function () { - file - .modify(function (old) { - n += 1; - if (n == 1) - assert.equal(old, "ABCD\n", "correct old (out-of-date) content"); - else - assert.equal(old, "XYZ\n", "correct old (current) content"); - return old.toLowerCase(); - }, content, tag) - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - assert.equal(n, 2, "callback called twice"); - cockpit.spawn(["cat", dir + "/baz"]) - .done(function (res) { - assert.equal(res, "xyz\n", "correct content"); - done(); - }); - }); - }); + await cockpit.spawn(["bash", "-c", "sleep 1; echo XYZ > " + dir + "/baz"]); + await file.modify(old => { + n += 1; + if (n == 1) + assert.equal(old, "ABCD\n", "correct old (out-of-date) content"); + else + assert.equal(old, "XYZ\n", "correct old (current) content"); + return old.toLowerCase(); + }, content, tag); + + assert.equal(n, 2, "callback called twice"); + const res = await cockpit.spawn(["cat", dir + "/baz"]); + assert.equal(res, "xyz\n", "correct content"); + done(); }); }); -QUnit.test("watching", function (assert) { +QUnit.test("watching", assert => { const done = assert.async(); assert.expect(7); const file = cockpit.file(dir + "/foobar"); - const watch = file.watch(changed); - let n = 0; - function changed(content, tag) { + const watch = file.watch((content, tag) => { n += 1; if (n == 1) { assert.equal(content, null, "initially non-existent"); @@ -403,18 +250,16 @@ watch.remove(); done(); } - } + }); }); -QUnit.test("binary watching", function (assert) { +QUnit.test("binary watching", assert => { const done = assert.async(); assert.expect(3); const file = cockpit.file(dir + "/foobar", { binary: true }); - const watch = file.watch(changed); - let n = 0; - function changed(content, tag) { + const watch = file.watch((content, tag) => { n += 1; if (n == 1) { assert.equal(content, null, "initially non-existent"); @@ -427,18 +272,16 @@ watch.remove(); done(); } - } + }); }); -QUnit.test("syntax watching", function (assert) { +QUnit.test("syntax watching", assert => { const done = assert.async(); assert.expect(3); const file = cockpit.file(dir + "/foobar.json", { syntax: JSON }); - const watch = file.watch(changed); - let n = 0; - function changed(content, tag, err) { + const watch = file.watch((content, tag, err) => { n += 1; if (n == 1) { assert.equal(content, null, "initially non-existent"); @@ -452,18 +295,16 @@ done(); } else assert.ok(false, "not reached"); - } + }); }); -QUnit.test("watching without reading", function (assert) { +QUnit.test("watching without reading", assert => { const done = assert.async(); assert.expect(7); const file = cockpit.file(dir + "/foobar"); - const watch = file.watch(changed, { read: false }); - let n = 0; - function changed(content, tag) { + const watch = file.watch((content, tag) => { n += 1; if (n == 1) { assert.equal(content, null, "initially non-existent"); @@ -480,10 +321,62 @@ watch.remove(); done(); } - } + }, { read: false }); +}); + +QUnit.test("watching directory", assert => { + const done = assert.async(); + assert.expect(20); + + let n = 0; + const watch = cockpit.channel({ payload: "fswatch1", path: dir }); + watch.addEventListener("message", (event, payload) => { + const msg = JSON.parse(payload); + n += 1; + + if (n == 1) { + assert.equal(msg.event, "created", "world.txt created"); + assert.equal(msg.path, dir + "/world.txt"); + assert.equal(msg.type, "file"); + assert.notEqual(msg.tag, "-"); + } else if (n == 2) { + assert.equal(msg.event, "changed", "world.txt changed"); + assert.equal(msg.path, dir + "/world.txt"); + assert.notEqual(msg.tag, "-"); + } else if (n == 3) { + assert.equal(msg.event, "done-hint", "world.txt done-hint"); + assert.equal(msg.path, dir + "/world.txt"); + assert.notEqual(msg.tag, "-"); + + cockpit.spawn(["chmod", "001", `${dir}/world.txt`]); + } else if (n == 4) { + assert.equal(msg.event, "attribute-changed", "world.txt attribute-changed"); + assert.equal(msg.path, dir + "/world.txt"); + assert.notEqual(msg.tag, "-"); + + cockpit.spawn(["rm", `${dir}/world.txt`]); + } else if (n == 5) { + assert.equal(msg.event, "deleted", "world.txt deleted"); + assert.equal(msg.path, dir + "/world.txt"); + assert.equal(msg.tag, "-"); + + cockpit.spawn(["mkdir", `${dir}/somedir`]); + } else if (n == 6) { + assert.equal(msg.event, "created", "somedir created"); + assert.equal(msg.path, dir + "/somedir"); + assert.equal(msg.type, "directory"); + assert.notEqual(msg.tag, "-"); + + watch.close(); + done(); + } + }); + + // trigger the first event + cockpit.spawn(["sh", "-c", `echo hello > ${dir}/world.txt`]); }); -QUnit.test("closing", function (assert) { +QUnit.test("closing", assert => { const done = assert.async(); assert.expect(2); @@ -500,10 +393,10 @@ } file.read() - .done(function (content, tag) { + .then((content, tag) => { assert.ok(false, "read didn't complete"); }) - .fail(function (error) { + .catch(error => { assert.equal(error.problem, "cancelled", "read got cancelled"); start_after_two(); }); @@ -520,30 +413,16 @@ file.close(); }); -QUnit.test("channel options", function (assert) { - const done = assert.async(); - assert.expect(1); - cockpit.file(dir + "/foo", { binary: true }).read() - .done(function(data) { - assert.ok(data instanceof Uint8Array, "options applied, got binary data"); - }) - .always(function() { - done(); - }); +QUnit.test("channel options", async assert => { + const data = await cockpit.file(dir + "/foo", { binary: true }).read(); + assert.ok(data instanceof Uint8Array, "options applied, got binary data"); }); -QUnit.test("remove testdir", function (assert) { - const done = assert.async(); - assert.expect(1); - cockpit.spawn(["rm", "-rf", dir]) - .always(function () { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("remove testdir", async assert => { + await cockpit.spawn(["rm", "-rf", dir]); + assert.ok(true, "did not crash"); }); -cockpit.spawn(["bash", "-c", "d=$(mktemp -d); echo '1234' >$d/foo; echo '{ \"foo\": 12 }' >$d/foo.json; echo -en '\\x00\\x01\\x02\\x03' >$d/foo.bin; dd if=/dev/zero of=$d/large.bin bs=1k count=512; echo $d"]) - .done(function (resp) { - dir = resp.replace(/\n$/, ""); - QUnit.start(); - }); +const resp = await cockpit.spawn(["bash", "-c", "d=$(mktemp -d); echo '1234' >$d/foo; echo '{ \"foo\": 12 }' >$d/foo.json; echo -en '\\x00\\x01\\x02\\x03' >$d/foo.bin; dd if=/dev/zero of=$d/large.bin bs=1k count=512; echo $d"]); +const dir = resp.replace(/\n$/, ""); +QUnit.start(); diff -Nru cockpit-283/pkg/base1/test-spawn-proc.js cockpit-284/pkg/base1/test-spawn-proc.js --- cockpit-283/pkg/base1/test-spawn-proc.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/base1/test-spawn-proc.js 2023-01-25 05:21:37.000000000 +0000 @@ -1,69 +1,32 @@ import cockpit from "cockpit"; import QUnit from "qunit-tests"; -QUnit.test("simple process", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.spawn(["/bin/sh", "-c", "echo hi"]) - .done(function(resp) { - assert.equal(resp, "hi\n", "returned output"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("simple process", async assert => { + const resp = await cockpit.spawn(["/bin/sh", "-c", "echo hi"]); + assert.equal(resp, "hi\n", "returned output"); }); -QUnit.test("path", function (assert) { - const done = assert.async(); - assert.expect(1); - cockpit.spawn(["true"]) - .always(function() { - assert.equal(this.state(), "resolved", "found executable"); - done(); - }); +QUnit.test("path", async assert => { + const resp = await cockpit.spawn(["true"]); + assert.equal(resp, "", "found executable"); }); -QUnit.test("directory", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.spawn(["pwd"], { directory: "/tmp" }) - .done(function(resp) { - assert.equal(resp, "/tmp\n", "was right"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("directory", async assert => { + const resp = await cockpit.spawn(["pwd"], { directory: "/tmp" }); + assert.equal(resp, "/tmp\n", "was right"); }); -QUnit.test("error log", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.spawn(["/bin/sh", "-c", "echo hi; echo yo >&2"]) - .done(function(resp) { - assert.equal(resp, "hi\n", "produced no output"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("error log", async assert => { + const resp = await cockpit.spawn(["/bin/sh", "-c", "echo hi; echo yo >&2"]); + assert.equal(resp, "hi\n", "produced no output"); }); -QUnit.test("error output", function (assert) { - const done = assert.async(); - assert.expect(2); - cockpit.spawn(["/bin/sh", "-c", "echo hi; echo yo >&2"], { err: "out" }) - .done(function(resp) { - assert.equal(resp, "hi\nyo\n", "showed up"); - }) - .always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); +QUnit.test("error output", async assert => { + const resp = await cockpit.spawn(["/bin/sh", "-c", "echo hi; echo yo >&2"], { err: "out" }); + assert.equal(resp, "hi\nyo\n", "showed up"); }); -QUnit.test("error message", function (assert) { +QUnit.test("error message", assert => { const done = assert.async(); assert.expect(3); cockpit.spawn(["/bin/sh", "-c", "echo hi; echo yo >&2"], { err: "message" }) @@ -101,23 +64,11 @@ ex => ex.problem == "access-denied"); }); -QUnit.test("write eof read", function (assert) { - const done = assert.async(); - assert.expect(2); - +QUnit.test("write eof read", async assert => { const proc = cockpit.spawn(["/usr/bin/sort"]); - - proc.done(function(resp) { - assert.equal(resp, "1\n2\n3\n", "output"); - }); - - proc.always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); - proc.input("2\n", true); proc.input("3\n1\n"); + assert.equal(await proc, "1\n2\n3\n", "output"); }); QUnit.test("stream", function (assert) { @@ -243,79 +194,39 @@ proc.input("1234"); }); -QUnit.test("script with input", function (assert) { - const done = assert.async(); - assert.expect(2); - +QUnit.test("script with input", async assert => { const script = "#!/bin/sh\n\n# Test\n/usr/bin/sort\necho $2\necho $1"; - const proc = cockpit.script(script, ["5", "4"]); - - proc.done(function(resp) { - assert.equal(resp, "1\n2\n3\n4\n5\n", "output matched"); - }); - - proc.always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); - proc.input("2\n", true); proc.input("3\n1\n"); + assert.equal(await proc, "1\n2\n3\n4\n5\n", "output matched"); }); -QUnit.test("script with options", function (assert) { - const done = assert.async(); - assert.expect(2); - +QUnit.test("script with options", async assert => { const script = "#!/bin/sh\n\n# Test\n/usr/bin/sort\necho $2\necho $1 >&2"; - const proc = cockpit.script(script, ["5", "4"], { err: "out" }); - - proc.done(function(resp) { - assert.equal(resp, "1\n2\n3\n4\n5\n", "output matched"); - }); - - proc.always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); - proc.input("2\n", true); proc.input("3\n1\n"); + assert.equal(await proc, "1\n2\n3\n4\n5\n", "output matched"); }); -QUnit.test("script without args", function (assert) { - const done = assert.async(); - assert.expect(2); - +QUnit.test("script without args", async assert => { const script = "#!/bin/sh\n\n# Test\n/usr/bin/sort >&2"; - const proc = cockpit.script(script, { err: "out" }); - - proc.done(function(resp) { - assert.equal(resp, "1\n2\n3\n", "output matched"); - }); - - proc.always(function() { - assert.equal(this.state(), "resolved", "didn't fail"); - done(); - }); - proc.input("2\n", true); proc.input("3\n1\n"); + assert.equal(await proc, "1\n2\n3\n", "output matched"); }); -QUnit.test("pty", async function (assert) { +QUnit.test("pty", async assert => { const proc = cockpit.spawn(['sh', '-c', "tty; test -t 0"], { pty: true }); - const output = await proc.done(); + const output = await proc; assert.equal(output.indexOf('/dev/pts'), 0, 'TTY is a pty: ' + output); }); -QUnit.test("pty window size", async function (assert) { +QUnit.test("pty window size", async assert => { const proc = cockpit.spawn(['tput', 'lines', 'cols'], { pty: true, window: { rows: 77, cols: 88 } }); - const output = await proc.done(); - assert.equal(output, '77\r\n88\r\n', 'Correct rows and columns'); + assert.equal(await proc, '77\r\n88\r\n', 'Correct rows and columns'); }); QUnit.test("stream large output", function (assert) { @@ -339,4 +250,17 @@ }); }); +QUnit.test("cancel process", async assert => { + const proc = cockpit.spawn(["sleep", "418"]); + await cockpit.script("until pgrep -af [s]leep.*418; do sleep 0.1; done"); + proc.close("cancelled"); + await cockpit.script("timeout 5 sh -ec 'while pgrep -af [s]leep.*418; do sleep 0.1; done'"); + try { + await proc; + assert.ok(false, "proc should have failed"); + } catch (ex) { + assert.equal(ex.problem, "cancelled", "proc failed with correct problem"); + } +}); + QUnit.start(); diff -Nru cockpit-283/pkg/build cockpit-284/pkg/build --- cockpit-283/pkg/build 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/build 2023-01-25 05:21:37.000000000 +0000 @@ -55,7 +55,7 @@ $(srcdir)/dist/%/Makefile.deps: @true -$(srcdir)/dist/%/manifest.json: $(srcdir)/tools/webpack-make $(srcdir)/package-lock.json $(srcdir)/webpack.config.js +$(srcdir)/dist/%/manifest.json: $(srcdir)/package-lock.json $(V_WEBPACK) cd $(srcdir) && NODE_ENV='$(NODE_ENV)' tools/termschutz tools/webpack-make $* -include $(WEBPACK_DEPS) diff -Nru cockpit-283/pkg/lib/cockpit-components-file-autocomplete.jsx cockpit-284/pkg/lib/cockpit-components-file-autocomplete.jsx --- cockpit-283/pkg/lib/cockpit-components-file-autocomplete.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/cockpit-components-file-autocomplete.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -94,7 +94,8 @@ const channel = cockpit.channel({ payload: "fslist1", path, - superuser: this.props.superuser + superuser: this.props.superuser, + watch: false, }); const results = []; diff -Nru cockpit-283/pkg/lib/cockpit-components-shutdown.jsx cockpit-284/pkg/lib/cockpit-components-shutdown.jsx --- cockpit-283/pkg/lib/cockpit-components-shutdown.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/cockpit-components-shutdown.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -214,7 +214,7 @@ locale={timeformat.dateFormatLang()} weekStart={timeformat.firstDayOfWeek()} onBlur={this.calculate} - onChange={(d, ds) => this.updateDate(d, ds)} + onChange={(_, d, ds) => this.updateDate(d, ds)} placeholder={timeformat.dateShortFormat()} validators={[this.dateRangeValidator]} value={this.state.date} @@ -226,7 +226,7 @@ invalidFormatErrorMessage="" menuAppendTo={() => document.body} onBlur={this.calculate} - onChange={(time, h, m) => this.updateTime(time, h, m) } /> + onChange={(_, time, h, m) => this.updateTime(time, h, m) } /> } diff -Nru cockpit-283/pkg/lib/cockpit-components-table.jsx cockpit-284/pkg/lib/cockpit-components-table.jsx --- cockpit-283/pkg/lib/cockpit-components-table.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/cockpit-components-table.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -218,16 +218,16 @@ {row.columns.map((cell, cellIndex) => { const { key, ...cellProps } = cell.props || {}; const dataLabel = typeof cells[cellIndex] == 'object' ? cells[cellIndex].title : cells[cellIndex]; - + const colKey = dataLabel || cellIndex; if (cells[cellIndex] && cells[cellIndex].header) return ( - + {typeof cell == 'object' ? cell.title : cell} ); return ( - + {typeof cell == 'object' ? cell.title : cell} ); diff -Nru cockpit-283/pkg/lib/cockpit-components-terminal.jsx cockpit-284/pkg/lib/cockpit-components-terminal.jsx --- cockpit-283/pkg/lib/cockpit-components-terminal.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/cockpit-components-terminal.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -21,6 +21,7 @@ import PropTypes from "prop-types"; import { Modal, Button } from "@patternfly/react-core"; import { Terminal as Term } from "xterm"; +import { CanvasAddon } from 'xterm-addon-canvas'; import { ContextMenu } from "cockpit-components-context-menu.jsx"; import cockpit from "cockpit"; @@ -136,11 +137,17 @@ if (props.onTitleChanged) term.onTitleChange(props.onTitleChanged); - this.state = { terminal: term }; + this.terminal = term; + this.state = { + showPastingModal: false, + cols: props.cols || 80, + rows: props.rows || 25 + }; } componentDidMount() { - this.state.terminal.open(this.terminalRef.current); + this.terminal.open(this.terminalRef.current); + this.terminal.loadAddon(new CanvasAddon()); this.connectChannel(); if (!this.props.rows) { @@ -148,11 +155,11 @@ this.onWindowResize(); } this.setTerminalTheme(this.props.theme || 'black-theme'); - this.state.terminal.focus(); + this.terminal.focus(); } resizeTerminal(cols, rows) { - this.state.terminal.resize(cols, rows); + this.terminal.resize(cols, rows); this.props.channel.control({ window: { rows: rows, @@ -163,7 +170,7 @@ componentDidUpdate(prevProps, prevState) { if (prevProps.fontSize !== this.props.fontSize) { - this.state.terminal.setOption("fontSize", this.props.fontSize); + this.terminal.options.fontSize = this.props.fontSize; // After font size is changed, resize needs to be triggered const dimensions = this.calculateDimensions(); @@ -182,7 +189,7 @@ this.setTerminalTheme(this.props.theme); if (prevProps.channel !== this.props.channel) { - this.state.terminal.reset(); + this.terminal.reset(); this.disconnectChannel(prevProps.channel); this.connectChannel(); this.props.channel.control({ @@ -192,7 +199,7 @@ } }); } - this.state.terminal.focus(); + this.terminal.focus(); } render() { @@ -211,7 +218,7 @@ {_("Your browser does not allow paste from the context menu. You can use Shift+Insert.")}
                                                                                                                        this.props.channel.send(text)) .catch(e => this.setState({ showPastingModal: true })) - .finally(() => this.state.terminal.focus()); + .finally(() => this.terminal.focus()); } catch (error) { this.setState({ showPastingModal: true }); } @@ -241,20 +248,20 @@ getText() { try { - navigator.clipboard.writeText(this.state.terminal.getSelection()) + navigator.clipboard.writeText(this.terminal.getSelection()) .catch(e => console.error('Text could not be copied, use Ctrl+Insert ', e ? e.toString() : "")) - .finally(() => this.state.terminal.focus()); + .finally(() => this.terminal.focus()); } catch (error) { console.error('Text could not be copied, use Ctrl+Insert:', error.toString()); } } onChannelMessage(event, data) { - this.state.terminal.write(data); + this.terminal.write(data); } onChannelClose(event, options) { - const term = this.state.terminal; + const term = this.terminal; term.write('\x1b[31m' + (options.problem || 'disconnected') + '\x1b[m\r\n'); term.cursorHidden = true; term.refresh(term.rows, term.rows); @@ -279,19 +286,19 @@ } reset() { - this.state.terminal.reset(); + this.terminal.reset(); this.props.channel.send(String.fromCharCode(12)); // Send SIGWINCH to show prompt on attaching } focus() { - if (this.state.terminal) - this.state.terminal.focus(); + if (this.terminal) + this.terminal.focus(); } calculateDimensions() { const padding = 10; // Leave a bit of space around terminal - const realHeight = this.state.terminal._core._renderService.dimensions.actualCellHeight; - const realWidth = this.state.terminal._core._renderService.dimensions.actualCellWidth; + const realHeight = this.terminal._core._renderService.dimensions.css.cell.height; + const realWidth = this.terminal._core._renderService.dimensions.css.cell.width; if (realHeight && realWidth && realWidth !== 0 && realHeight !== 0) return { rows: Math.floor((this.terminalRef.current.parentElement.clientHeight - padding) / realHeight), @@ -306,7 +313,7 @@ } setTerminalTheme(theme) { - this.state.terminal.setOption("theme", themes[theme]); + this.terminal.options.theme = themes[theme]; } onBeforeUnload(event) { diff -Nru cockpit-283/pkg/lib/cockpit.js cockpit-284/pkg/lib/cockpit.js --- cockpit-283/pkg/lib/cockpit.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/cockpit.js 2023-01-25 05:21:37.000000000 +0000 @@ -2950,12 +2950,6 @@ data: { value: { }, enumerable: false } }); - if (typeof window.$ === "function") { - Object.defineProperty(self, window.$.expando, { - value: { }, writable: true, enumerable: false - }); - } - if (!options) options = { }; @@ -3071,12 +3065,6 @@ } }); - if (typeof window.$ === "function") { - Object.defineProperty(self, window.$.expando, { - value: { }, writable: true, enumerable: false - }); - } - /* Subscribe to signals once for all proxies */ const match = { interface: iface, path_namespace: path_namespace }; diff -Nru cockpit-283/pkg/lib/cockpit-po-plugin.js cockpit-284/pkg/lib/cockpit-po-plugin.js --- cockpit-283/pkg/lib/cockpit-po-plugin.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/cockpit-po-plugin.js 2023-01-25 05:21:37.000000000 +0000 @@ -12,7 +12,6 @@ if (!options) options = {}; this.subdir = options.subdir || ''; - this.reference_patterns = options.reference_patterns; this.wrapper = options.wrapper || 'cockpit.locale(PO_DATA);'; } @@ -64,39 +63,10 @@ return expr; } - build_patterns(compilation, extras) { - const patterns = [ - // all translations for that page, including manifest.json and *.html - `pkg/${this.subdir}.*`, - ]; - - // add translations from libraries outside of page directory - compilation.getStats().compilation.fileDependencies.forEach(path => { - if (path.startsWith(srcdir) && path.indexOf('node_modules/') < 0) - patterns.push(path.slice(srcdir.length + 1)); - }); - - Array.prototype.push.apply(patterns, extras); - - return patterns.map((p) => new RegExp(`^${p}:[0-9]+$`)); - } - - check_reference_patterns(patterns, references) { - for (const reference of references) { - for (const pattern of patterns) { - if (reference.match(pattern)) { - return true; - } - } - } - } - buildFile(po_file, compilation) { compilation.fileDependencies.add(po_file); return new Promise((resolve, reject) => { - const patterns = this.build_patterns(compilation, this.reference_patterns); - const parsed = gettext_parser.po.parse(fs.readFileSync(po_file), 'utf8'); delete parsed.translations[""][""]; // second header copy @@ -116,8 +86,9 @@ const context_prefix = msgctxt ? msgctxt + '\u0004' : ''; /* for cockpit.ngettext */ for (const [msgid, translation] of Object.entries(context)) { + /* Only include msgids which appear in this source directory */ const references = translation.comments.reference.split(/\s/); - if (!this.check_reference_patterns(patterns, references)) + if (!references.some(str => str.startsWith(`pkg/${this.subdir}`))) continue; if (translation.comments.flag && translation.comments.flag.match(/\bfuzzy\b/)) diff -Nru cockpit-283/pkg/lib/console.css cockpit-284/pkg/lib/console.css --- cockpit-283/pkg/lib/console.css 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/console.css 2023-01-25 05:21:37.000000000 +0000 @@ -1,63 +1,10 @@ @import "~xterm/css/xterm.css"; -/* Our terminal or logs */ -.console-ct { - font-family: Menlo, Monaco, Consolas, monospace; - margin-top: 0; - margin-bottom: 0; - font-size: var(--pf-global--FontSize--md); - text-align: center; - line-height: normal; -} - -@media (min-width: 568px) { - .console-ct { - font-size: var(--pf-global--FontSize--sm); - } -} - -.console-ct > pre { - text-align: left; - display: block; - font-family: inherit; - font-size: inherit; - width: 48em; - height: 310px; - overflow-y: scroll; - white-space: pre-wrap; - margin: 0 auto; -} - -.console-ct > .terminal { - display: flex; - height: 100%; - /* Vertically center the terminal to split the extra space between top and bottom */ - align-items: center; - /* Add a touch of space to the left */ - padding-left: var(--pf-global--spacer--xs); -} - -.terminal .terminal-cursor { - border: 1px solid var(--pf-global--palette--black-200); -} - .terminal:focus .terminal-cursor { border: none; animation: blink 1s step-end infinite; } -@keyframes blink { - from { - color: var(--ct-color-text); - background: var(--pf-global--palette--black-200); - } - - 50% { - color: var(--pf-global--palette--black-200); - background: var(--ct-color-text); - } -} - /* Ensure the console fits to its container (and doesn't attempt to go beyond the limits) */ .xterm-screen, .xterm-viewport { width: auto !important; diff -Nru cockpit-283/pkg/lib/credentials.js cockpit-284/pkg/lib/credentials.js --- cockpit-283/pkg/lib/credentials.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/credentials.js 2023-01-25 05:21:37.000000000 +0000 @@ -67,7 +67,7 @@ } if (watch === null) { - watch = cockpit.channel({ payload: "fslist1", path: self.path }); + watch = cockpit.channel({ payload: "fswatch1", path: self.path }); watch.addEventListener("close", on_close); watch.addEventListener("message", on_message); } diff -Nru cockpit-283/pkg/lib/packagekit.js cockpit-284/pkg/lib/packagekit.js --- cockpit-283/pkg/lib/packagekit.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/packagekit.js 2023-01-25 05:21:37.000000000 +0000 @@ -144,8 +144,9 @@ notifyReturn = client.watch(transactionPath); subscriptions.push(notifyReturn); client.addEventListener("notify", reply => { - if (transactionPath in reply.detail && transactionInterface in reply.detail[transactionPath]) - notifyHandler(reply.detail[transactionPath][transactionInterface], transactionPath); + const iface = reply?.detail?.[transactionPath]?.[transactionInterface]; + if (iface) + notifyHandler(iface, transactionPath); }); } @@ -186,30 +187,21 @@ * .catch(ex => { handle exception }); */ export function transaction(method, arglist, signalHandlers, notifyHandler) { - return new Promise((resolve, reject) => { - call("/org/freedesktop/PackageKit", "org.freedesktop.PackageKit", "CreateTransaction", []) - .done(result => { - const transactionPath = result[0]; - let watchPromise; - if (signalHandlers || notifyHandler) - watchPromise = watchTransaction(transactionPath, signalHandlers, notifyHandler); - if (!watchPromise) - watchPromise = cockpit.resolve(); + return call("/org/freedesktop/PackageKit", "org.freedesktop.PackageKit", "CreateTransaction", []) + .then(([transactionPath]) => { + if (!signalHandlers && !notifyHandler) + return transactionPath; - watchPromise - .done(() => { - if (method) { - call(transactionPath, transactionInterface, method, arglist) - .done(() => resolve(transactionPath)) - .fail(reject); - } else { - resolve(transactionPath); - } - }) - .fail(reject); - }) - .fail(reject); - }); + const watchPromise = watchTransaction(transactionPath, signalHandlers, notifyHandler) || Promise.resolve(); + return watchPromise.then(() => { + if (method) { + return call(transactionPath, transactionInterface, method, arglist) + .then(() => transactionPath); + } else { + return transactionPath; + } + }); + }); } export class TransactionError extends Error { diff -Nru cockpit-283/pkg/lib/serverTime.js cockpit-284/pkg/lib/serverTime.js --- cockpit-283/pkg/lib/serverTime.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/lib/serverTime.js 2023-01-25 05:21:37.000000000 +0000 @@ -530,7 +530,7 @@ locale={timeformat.dateFormatLang()} weekStart={timeformat.firstDayOfWeek()} placeholder={timeformat.dateShortFormat()} - onChange={d => change("manual_date", d)} + onChange={(_, d) => change("manual_date", d)} value={manual_date} appendTo={() => document.body} /> @@ -541,7 +541,7 @@ is24Hour menuAppendTo={() => document.body} invalidFormatErrorMessage="" - onChange={(time, h, m, s, valid) => change("manual_time", time, valid) } /> + onChange={(e, time, h, m, s, valid) => change("manual_time", time, valid) } /> diff -Nru cockpit-283/pkg/networkmanager/firewall.jsx cockpit-284/pkg/networkmanager/firewall.jsx --- cockpit-283/pkg/networkmanager/firewall.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/networkmanager/firewall.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -204,7 +204,7 @@ { !firewall.readonly && {addServiceAction}{deleteButton} } - {props.zone.services.length > 0 && + {(props.zone.services.length > 0 || props.zone.ports.length > 0) && document.body} id="auto-update-time" isDisabled={pending} invalidFormatErrorMessage={_("Invalid time format")} - onChange={time => setTime(time)} /> + onChange={(_, time) => setTime(time)} /> diff -Nru cockpit-283/pkg/packagekit/kpatch.jsx cockpit-284/pkg/packagekit/kpatch.jsx --- cockpit-283/pkg/packagekit/kpatch.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/packagekit/kpatch.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -73,7 +73,7 @@ this.handleInstall = this.handleInstall.bind(this); // only show a spinner during loading on RHEL (the only place where we expect this to work) - read_os_release().then(os_release => this.setState({ showLoading: os_release.ID == 'rhel' })); + read_os_release().then(os_release => this.setState({ showLoading: os_release && os_release.ID == 'rhel' })); } // Only current patches or also future ones diff -Nru cockpit-283/pkg/packagekit/updates.jsx cockpit-284/pkg/packagekit/updates.jsx --- cockpit-283/pkg/packagekit/updates.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/packagekit/updates.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -21,7 +21,7 @@ import 'cockpit-dark-theme'; // once per page import cockpit from "cockpit"; -import React, { useState, useEffect } from "react"; +import React from "react"; import { createRoot } from 'react-dom/client'; import { @@ -543,58 +543,35 @@ } } -const ApplyUpdates = ({ transaction, onCancel, allowCancel, rebootAfter, setRebootAfter }) => { - const [percentage, setPercentage] = useState(0); - const [timeRemaining, setTimeRemaining] = useState(null); - // chronological list of { status: PK_STATUS_*, package: "name version" } events that happen during applying updates - const [actions, setActions] = useState([]); - - const updateForProperties = (status, packageId) => { - // small timeout to avoid excessive overlaps from the next PackageKit progress signal - PK.call(transaction, "org.freedesktop.DBus.Properties", "GetAll", [PK.transactionInterface], { timeout: 500 }) - .then(([props]) => { - const percent = props.Percentage.v; - let remain = -1; - if ("RemainingTime" in props) - remain = props.RemainingTime.v; - - const pfields = (packageId || props.LastPackage.v).split(";"); - // status: see PK_STATUS_* at https://github.com/PackageKit/PackageKit/blob/main/lib/packagekit-glib2/pk-enum.h - setActions(prevActions => [...prevActions, { - status: status || props.Status.v, - package: pfields[0] + " " + pfields[1] + " (" + pfields[2] + ")" - }]); - - const log = document.getElementById("update-log"); - let atBottom = false; - if (log) { - if (log.scrollHeight - log.clientHeight <= log.scrollTop + 2) - atBottom = true; - } - - setPercentage(percent <= 100 ? percent : 0); - setTimeRemaining(remain > 0 ? remain : null); +const formatPackageId = packageId => { + const pfields = packageId.split(";"); + return pfields[0] + " " + pfields[1] + " (" + pfields[2] + ")"; +}; - // scroll update log to the bottom, if it already is (almost) at the bottom - if (log && atBottom) - log.scrollTop = log.scrollHeight; - }); - }; +// actions is a chronological list of { status, packageId } events that happen during applying updates +// status: see PK_STATUS_* at https://github.com/PackageKit/PackageKit/blob/main/lib/packagekit-glib2/pk-enum.h +const ApplyUpdates = ({ transactionProps, actions, onCancel, rebootAfter, setRebootAfter }) => { + const remain = transactionProps.RemainingTime + ? timeformat.distanceToNow(new Date().valueOf() + transactionProps.RemainingTime * 1000) + : null; - useEffect(() => { - // read the current package from the transaction - updateForProperties(null, null); - // keep updating it when new Package signals come in - PK.watchTransaction(transaction, { - Package: (status, packageId) => updateForProperties(status, packageId), - }); - }, []); // eslint-disable-line react-hooks/exhaustive-deps + let percentage = transactionProps.Percentage || 0; + // PackageKit sets this to 101 initially + if (percentage > 100) + percentage = 0; + + // scroll update log to the bottom, if it already is (almost) at the bottom + const log = document.getElementById("update-log"); + if (log) { + if (log.scrollHeight - log.clientHeight <= log.scrollTop + 2) + log.scrollTop = log.scrollHeight; + } - const cancelButton = allowCancel + const cancelButton = transactionProps.AllowCancel ? : null; - if (actions.length === 0) { + if (actions.length === 0 && percentage === 0) { return
                                                                                                                        - { PK_STATUS_STRINGS[lastAction.status] || PK_STATUS_STRINGS[PK.Enum.STATUS_UPDATE] } -  {lastAction.package} + { PK_STATUS_STRINGS[lastAction?.status] || PK_STATUS_STRINGS[PK.Enum.STATUS_UPDATE] } +  {formatPackageId(curPackage)}
                                                                                                                        - @@ -638,9 +616,9 @@ { actions.slice(0, -1).map((action, i) => ( - + - + )) }
                                                                                                                        {PK_STATUS_LOG_STRINGS[action.status] || PK_STATUS_LOG_STRINGS[PK.Enum.STATUS_UPDATE]}{action.package}{formatPackageId(action.packageId)}
                                                                                                                        @@ -1000,7 +978,9 @@ loadPercent: null, cockpitUpdate: false, haveOsRepo: null, - allowCancel: null, + applyTransaction: null, + applyTransactionProps: {}, + applyActions: [], history: [], unregistered: false, privileged: false, @@ -1102,7 +1082,7 @@ if (!this._mounted) return; - if (ex.problem === "not-found") + if (ex.problem === "not-found" || ex.name?.includes("DBus.Error.ServiceUnknown")) ex = _("PackageKit is not installed"); this.state.errorMessages.push(ex.detail || ex.message || ex); this.setState({ state: "loadError" }); @@ -1278,17 +1258,14 @@ } watchUpdates(transactionPath) { - this.setState({ state: "applying", applyTransaction: transactionPath, allowCancel: false }); - - PK.call(transactionPath, "DBus.Properties", "Get", [PK.transactionInterface, "AllowCancel"]) - .then(([prop]) => this.setState({ allowCancel: prop.v })); + this.setState({ state: "applying", applyTransaction: transactionPath, applyTransactionProps: {}, applyActions: [] }); return PK.watchTransaction(transactionPath, { ErrorCode: (code, details) => this.state.errorMessages.push(details), Finished: exit => { - this.setState({ applyTransaction: null, allowCancel: null }); + this.setState({ applyTransaction: null, applyTransactionProps: {}, applyActions: [] }); if (exit === PK.Enum.EXIT_SUCCESS) { if (this.state.tracerAvailable) { @@ -1314,12 +1291,16 @@ // not working/being used in at least Fedora RequireRestart: (type, packageId) => console.log("update RequireRestart", type, packageId), + + Package: (status, packageId) => this.setState(old => + ({ applyActions: [...old.applyActions, { status, packageId }] }) + ), }, - notify => { - if ("AllowCancel" in notify) - this.setState({ allowCancel: notify.AllowCancel }); - }) + notify => this.setState(old => + ({ applyTransactionProps: { ...old.applyTransactionProps, ...notify } }) + ) + ) .catch(ex => { this.state.errorMessages.push(ex); this.setState({ state: "updateError" }); @@ -1506,9 +1487,9 @@ case "applying": page_status.set_own(null); - return PK.call(this.state.applyTransaction, PK.transactionInterface, "Cancel", []) } - allowCancel={this.state.allowCancel} rebootAfter={this.state.rebootAfterSuccess} setRebootAfter={ enabled => this.setState({ rebootAfterSuccess: enabled }) } />; diff -Nru cockpit-283/pkg/selinux/setroubleshoot.js cockpit-284/pkg/selinux/setroubleshoot.js --- cockpit-283/pkg/selinux/setroubleshoot.js 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/selinux/setroubleshoot.js 2023-01-25 05:21:37.000000000 +0000 @@ -114,7 +114,7 @@ dataStore.entries[idx].details.pluginAnalysis[fixId].fix = { plugin: analysisId, running: false, - result: error, + result: error.toString(), success: false, }; dataStore.render(); @@ -140,7 +140,7 @@ dataStore.render(); }) .catch(error => { - dataStore.error = error; + dataStore.error = error.toString(); dataStore.render(); }); }; diff -Nru cockpit-283/pkg/shell/nav.jsx cockpit-284/pkg/shell/nav.jsx --- cockpit-283/pkg/shell/nav.jsx 2023-01-11 17:25:44.000000000 +0000 +++ cockpit-284/pkg/shell/nav.jsx 2023-01-25 05:21:37.000000000 +0000 @@ -17,12 +17,27 @@ const [active, setActive] = useState(false); useEffect(() => { - const handleClickOutside = () => setActive(false); + /* This is a HACK for catching lost clicks on the pages which live in iframes so as to close dropdown menus on the shell. + * Note: Clicks on an