gina 0.1.6-alpha.143 → 0.1.6-alpha.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/v0.1.6-alpha.144/VERSION +1 -0
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.map +1 -1
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/html/toolbar.html.br +0 -0
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/html/toolbar.html.gz +0 -0
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/js/gina.js +160 -8
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +671 -667
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.map +5 -5
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- package/framework/v0.1.6-alpha.144/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.map +2 -2
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/config.js +9 -1
- package/framework/v0.1.6-alpha.144/core/content.encoding +9 -0
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/dist/swig.min.js.map +2 -2
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/server.isaac.js +56 -9
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/server.js +77 -12
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/conf/settings.json +4 -1
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/restart.js +2 -2
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/start.js +5 -4
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/tail.js +3 -3
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/build.js +28 -3
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/collection/src/main.js +1 -0
- package/framework/v0.1.6-alpha.144/lib/domain/dist/public_suffix_list.dat.br +0 -0
- package/framework/v0.1.6-alpha.144/lib/domain/dist/public_suffix_list.dat.gz +0 -0
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/src/main.js +58 -7
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/routing/src/main.js +98 -0
- package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/shell.js +7 -6
- package/package.json +2 -2
- package/framework/v0.1.6-alpha.143/VERSION +0 -1
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/AUTHORS +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/html/static.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/html/toolbar.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/asset/plugin/uuid.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/controller/controller.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/controller/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/.github/workflows/ci.yml +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/.github/workflows/lint.yml +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-big.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-small.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-big.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-small.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-100pairs-small.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-900pairs-small-alt.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/lib/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/lib/types/multipart.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/lib/types/urlencoded.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/lib/utils.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/busboy-1.6.0/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/.travis.yml +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/bool.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/boolean_double.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/boolean_single.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/default_hash.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/default_singles.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/divide.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/line_count.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/line_count_options.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/line_count_wrap.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/nonopt.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/reflect.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/short.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/string.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/usage-options.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/example/xup.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/package.json.dist +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/optimist-0.6.1/readme.markdown +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/HISTORY.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/bin/swig.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/bin/swig.js.dist +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/dist/swig.min.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/dateformatter.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/filters.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/lexer.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/loaders/filesystem.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/loaders/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/loaders/memory.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/parser.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/swig.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/autoescape.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/block.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/else.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/elseif.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/extends.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/filter.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/for.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/if.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/import.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/include.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/macro.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/parent.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/raw.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/set.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/tags/spaceless.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/lib/utils.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-1.4.2/package.json.dist +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/deps/swig-client/swig.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/dev/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/gna.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/currency.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/src/make.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/src/resources/currency.csv +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/src/resources/region.csv +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/locales/src/resources/region.mapping.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/mime.types +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/model/entity.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/model/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/model/template/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/file/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/file/build.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/file/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/intl/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/intl/build.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/intl/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/intl/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/validator/src/form-validator.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/plugins/lib/validator/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/router.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/server.express.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/status.codes +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/_gitignore +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/conf/env.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/conf/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/console.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/context.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/data/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/data/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/data/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/json/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/json/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/json/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/path.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/prototypes.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/task.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/helpers/text.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/archiver/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/archiver/build.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/archiver/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/init.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/helper.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/collection/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/collection/build.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/collection/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/config.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cron/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cron/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/dist/2025-03-14_13-41-20_UTC.dat +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/dist/public_suffix_list.dat +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/exemples/backend.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/exemples/frontend.html +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/domain/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/generator/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/example/protected_inheritance.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/example/simple_inheritance.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/math/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/merge/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/merge/example/merge.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/merge/example/merge_2_literal objects.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/merge/example/merge_and_preserve_first.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/merge/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/model.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/proc.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/routing/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/routing/build.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/routing/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/session-store.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/url/README.md +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/url/index.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/url/mocks.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/url/routing.json +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/url/test.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/lib/validator.js +0 -0
- /package/framework/{v0.1.6-alpha.143 → v0.1.6-alpha.144}/package.json +0 -0
|
@@ -6,220 +6,220 @@
|
|
|
6
6
|
Released under the MIT License.
|
|
7
7
|
*/
|
|
8
8
|
var requirejs,require,define;
|
|
9
|
-
(function(A,
|
|
10
|
-
Za))break}function
|
|
11
|
-
rb;Za&&(Ja.originalError=Za);return Ja}function
|
|
12
|
-
typeof importScripts,
|
|
13
|
-
Ha;S(Ja)?(Ha=Ja,Ja=Za,Za=rb):Ha=[]}pb&&pb.context&&($a=pb.context);(rb=
|
|
14
|
-
var Ta=
|
|
15
|
-
|
|
16
|
-
{skipMap:!0})([
|
|
17
|
-
yb||
|
|
18
|
-
|
|
19
|
-
1E3*h.waitSeconds)&&
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{}},exports:
|
|
23
|
-
this.check()}},defineDep:function(
|
|
24
|
-
!this.enabling){var
|
|
25
|
-
this.exports));if(
|
|
26
|
-
this.defineEmitComplete=!0)}}},callPlugin:function(){var
|
|
27
|
-
sb;this.init([],function(){return Fb},null,{enabled:!0,ignore:!0})}));if(fa=
|
|
28
|
-
nb(Fb)});yb.fromText=
|
|
29
|
-
if('string'===typeof
|
|
30
|
-
|
|
31
|
-
typeof
|
|
32
|
-
'string'===typeof
|
|
33
|
-
|
|
34
|
-
toUrl:function(fa){var
|
|
35
|
-
1)});delete
|
|
36
|
-
|
|
37
|
-
fa):fa},load:function(
|
|
38
|
-
'"'),
|
|
9
|
+
(function(A,P){function V(Ha,Ja){return Ja||''}function ka(Ha){return'[object Function]'===Ea.call(Ha)}function S(Ha){return'[object Array]'===Ea.call(Ha)}function O(Ha,Ja){if(Ha){var Za;for(Za=0;Za<Ha.length&&(!Ha[Za]||!Ja(Ha[Za],Za,Ha));Za+=1);}}function ia(Ha,Ja){if(Ha){var Za;for(Za=Ha.length-1;-1<Za&&(!Ha[Za]||!Ja(Ha[Za],Za,Ha));--Za);}}function Q(Ha,Ja){return W.call(Ha,Ja)}function R(Ha,Ja){return Q(Ha,Ja)&&Ha[Ja]}function r(Ha,Ja){for(var Za in Ha)if(Q(Ha,Za)&&-1==Ia.indexOf(Za)&&Ja(Ha[Za],
|
|
10
|
+
Za))break}function G(Ha,Ja,Za,rb){Ja&&r(Ja,function($a,pb){if(Za||!Q(Ha,pb))!rb||'object'!==typeof $a||!$a||S($a)||ka($a)||$a instanceof RegExp?Ha[pb]=$a:(Ha[pb]||(Ha[pb]={}),G(Ha[pb],$a,Za,rb))});return Ha}function w(Ha,Ja){return function(){return Ja.apply(Ha,arguments)}}function va(Ha){throw Ha;}function Fa(Ha){if(!Ha)return Ha;var Ja=A;O(Ha.split('.'),function(Za){Ja=Ja[Za]});return Ja}function U(Ha,Ja,Za,rb){Ja=Error(Ja+'\nhttps://requirejs.org/docs/errors.html#'+Ha);Ja.requireType=Ha;Ja.requireModules=
|
|
11
|
+
rb;Za&&(Ja.originalError=Za);return Ja}function I(){if(y&&'interactive'===y.readyState)return y;ia(document.getElementsByTagName('script'),function(Ha){if('interactive'===Ha.readyState)return y=Ha});return y}var B,D,n,y,z,E,x,v=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,H=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,M=/\.js$/,T=/^\.\//;var pa=Object.prototype;var Ea=pa.toString,W=pa.hasOwnProperty,ja=!('undefined'===typeof window||'undefined'===typeof navigator||!window.document),ca=!ja&&'undefined'!==
|
|
12
|
+
typeof importScripts,wa=ja&&'PLAYSTATION 3'===navigator.platform?/^complete$/:/^(complete|loaded)$/,la='undefined'!==typeof opera&&'[object Opera]'===opera.toString(),za={},Ba={},Na=[],La=!1,Ia=['__proto__','constructor'];if('undefined'===typeof define){if('undefined'!==typeof requirejs){if(ka(requirejs))return;Ba=requirejs;requirejs=void 0}'undefined'===typeof require||ka(require)||(Ba=require,require=void 0);var Ua=requirejs=function(Ha,Ja,Za,rb){var $a='_';if(!S(Ha)&&'string'!==typeof Ha){var pb=
|
|
13
|
+
Ha;S(Ja)?(Ha=Ja,Ja=Za,Za=rb):Ha=[]}pb&&pb.context&&($a=pb.context);(rb=R(za,$a))||(rb=za[$a]=Ua.s.newContext($a));pb&&rb.configure(pb);return rb.require(Ha,Ja,Za)};Ua.config=function(Ha){return Ua(Ha)};Ua.nextTick='undefined'!==typeof P?function(Ha){P(Ha,4)}:function(Ha){Ha()};require||=Ua;Ua.version='2.3.7';Ua.jsExtRegExp=/^\/|:|\?|\.js$/;Ua.isBrowser=ja;pa=Ua.s={contexts:za,newContext:function(Ha){function Ja(J,ma,ta){var fa;ma=ma&&ma.split('/');var ua=h.map,Da=ua&&ua['*'];if(J){J=J.split('/');
|
|
14
|
+
var Ta=J.length-1;h.nodeIdCompat&&M.test(J[Ta])&&(J[Ta]=J[Ta].replace(M,''));'.'===J[0].charAt(0)&&ma&&(Ta=ma.slice(0,ma.length-1),J=Ta.concat(J));Ta=J;for(fa=0;fa<Ta.length;fa++){var ab=Ta[fa];'.'===ab?(Ta.splice(fa,1),--fa):'..'===ab&&0!==fa&&(1!==fa||'..'!==Ta[2])&&'..'!==Ta[fa-1]&&0<fa&&(Ta.splice(fa-1,2),fa-=2)}J=J.join('/')}if(ta&&ua&&(ma||Da)){Ta=J.split('/');fa=Ta.length;a:for(;0<fa;--fa){var sb=Ta.slice(0,fa).join('/');if(ma)for(ab=ma.length;0<ab;--ab)if(ta=R(ua,ma.slice(0,ab).join('/')))if(ta=
|
|
15
|
+
R(ta,sb)){var yb=ta;var Fb=fa;break a}if(!mb&&Da&&R(Da,sb)){var mb=R(Da,sb);var Ya=fa}}!yb&&mb&&(yb=mb,Fb=Ya);yb&&(Ta.splice(0,Fb,yb),J=Ta.join('/'))}return(yb=R(h.pkgs,J))?yb:J}function Za(J){ja&&O(document.getElementsByTagName('script'),function(ma){if(ma.getAttribute('data-requiremodule')===J&&ma.getAttribute('data-requirecontext')===Aa.contextName)return ma.parentNode.removeChild(ma),!0})}function rb(J){var ma=R(h.paths,J);if(ma&&S(ma)&&1<ma.length)return ma.shift(),Aa.require.undef(J),Aa.makeRequire(null,
|
|
16
|
+
{skipMap:!0})([J]),!0}function $a(J){var ma=J?J.indexOf('!'):-1;if(-1<ma){var ta=J.substring(0,ma);J=J.substring(ma+1,J.length)}return[ta,J]}function pb(J,ma,ta,fa){var ua=null,Da=ma?ma.name:null,Ta=J,ab=!0,sb='';J||(ab=!1,J='_@r'+(Z+=1));J=$a(J);ua=J[0];J=J[1];if(ua){ua=Ja(ua,Da,fa);var yb=R(k,ua)}if(J)if(ua)sb=ta?J:yb&&yb.normalize?yb.normalize(J,function(mb){return Ja(mb,Da,fa)}):-1===J.indexOf('!')?Ja(J,Da,fa):J;else{sb=Ja(J,Da,fa);J=$a(sb);ua=J[0];sb=J[1];ta=!0;var Fb=Aa.nameToUrl(sb)}ta=!ua||
|
|
17
|
+
yb||ta?'':'_unnormalized'+(xa+=1);return{prefix:ua,name:sb,parentMap:ma,unnormalized:!!ta,url:Fb,originalName:Ta,isDefine:ab,id:(ua?ua+'!'+sb:sb)+ta}}function Vb(J){var ma=J.id,ta=R(e,ma);ta||=e[ma]=new Aa.Module(J);return ta}function zb(J,ma,ta){var fa=J.id,ua=R(e,fa);if(!Q(k,fa)||ua&&!ua.defineEmitComplete)if(ua=Vb(J),ua.error&&'error'===ma)ta(ua.error);else ua.on(ma,ta);else'defined'===ma&&ta(k[fa])}function nb(J,ma){var ta=J.requireModules,fa=!1;if(ma)ma(J);else if(O(ta,function(ua){if(ua=R(e,
|
|
18
|
+
ua))ua.error=J,ua.events.error&&(fa=!0,ua.emit('error',J))}),!fa)Ua.onError(J)}function Ab(){Na.length&&(O(Na,function(J){var ma=J[0];'string'===typeof ma&&(Aa.defQueueMap[ma]=!0);u.push(J)}),Na=[])}function ub(J){delete e[J];delete b[J]}function Ka(J,ma,ta){var fa=J.map.id;J.error?J.emit('error',J.error):(ma[fa]=!0,O(J.depMaps,function(ua,Da){ua=ua.id;var Ta=R(e,ua);!Ta||J.depMatched[Da]||ta[ua]||(R(ma,ua)?(J.defineDep(Da,k[ua]),J.check()):Ka(Ta,ma,ta))}),ta[fa]=!0)}function fb(){var J,ma,ta=(J=
|
|
19
|
+
1E3*h.waitSeconds)&&Aa.startTime+J<(new Date).getTime(),fa=[],ua=[],Da=!1,Ta=!0;if(!da){da=!0;r(b,function(ab){var sb=ab.map,yb=sb.id;if(ab.enabled&&(sb.isDefine||ua.push(ab),!ab.error))if(!ab.inited&&ta)rb(yb)?Da=ma=!0:(fa.push(yb),Za(yb));else if(!ab.inited&&ab.fetched&&sb.isDefine&&(Da=!0,!sb.prefix))return Ta=!1});if(ta&&fa.length)return J=U('timeout','Load timeout for modules: '+fa,null,fa),J.contextName=Aa.contextName,nb(J);Ta&&O(ua,function(ab){Ka(ab,{},{})});ta&&!ma||!Da||!ja&&!ca||m||(m=
|
|
20
|
+
P(function(){m=0;fb()},50));da=!1}}function Hb(J){Q(k,J[0])||Vb(pb(J[0],null,!0)).init(J[1],J[2])}function Ub(J){J=J.currentTarget||J.srcElement;var ma=Aa.onScriptLoad;J.detachEvent&&!la?J.detachEvent('onreadystatechange',ma):J.removeEventListener('load',ma,!1);ma=Aa.onScriptError;J.detachEvent&&!la||J.removeEventListener('error',ma,!1);return{node:J,id:J&&J.getAttribute('data-requiremodule')}}function pc(){for(Ab();u.length;){var J=u.shift();if(null===J[0])return nb(U('mismatch','Mismatched anonymous define() module: '+
|
|
21
|
+
J[J.length-1]));Hb(J)}Aa.defQueueMap={}}var da,m,h={waitSeconds:7,baseUrl:'./',paths:{},bundles:{},pkgs:{},shim:{},config:{}},e={},b={},p={},u=[],k={},N={},F={},Z=1,xa=1;var ba={require:function(J){return J.require?J.require:J.require=Aa.makeRequire(J.map)},exports:function(J){J.usingExports=!0;if(J.map.isDefine)return J.exports?k[J.map.id]=J.exports:J.exports=k[J.map.id]={}},module:function(J){return J.module?J.module:J.module={id:J.map.id,uri:J.map.url,config:function(){return R(h.config,J.map.id)||
|
|
22
|
+
{}},exports:J.exports||(J.exports={})}}};var qa=function(J){this.events=R(p,J.id)||{};this.map=J;this.shim=R(h.shim,J.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};qa.prototype={init:function(J,ma,ta,fa){fa=fa||{};if(!this.inited){this.factory=ma;if(ta)this.on('error',ta);else this.events.error&&(ta=w(this,function(ua){this.emit('error',ua)}));this.depMaps=J&&J.slice(0);this.errback=ta;this.inited=!0;this.ignore=fa.ignore;fa.enabled||this.enabled?this.enable():
|
|
23
|
+
this.check()}},defineDep:function(J,ma){this.depMatched[J]||(this.depMatched[J]=!0,--this.depCount,this.depExports[J]=ma)},fetch:function(){if(!this.fetched){this.fetched=!0;Aa.startTime=(new Date).getTime();var J=this.map;if(this.shim)Aa.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],w(this,function(){return J.prefix?this.callPlugin():this.load()}));else return J.prefix?this.callPlugin():this.load()}},load:function(){var J=this.map.url;N[J]||(N[J]=!0,Aa.load(this.map.id,J))},check:function(){if(this.enabled&&
|
|
24
|
+
!this.enabling){var J=this.map.id;var ma=this.depExports;var ta=this.exports,fa=this.factory;if(!this.inited)Q(Aa.defQueueMap,J)||this.fetch();else if(this.error)this.emit('error',this.error);else if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(ka(fa)){if(this.events.error&&this.map.isDefine||Ua.onError!==va)try{ta=Aa.execCb(J,fa,ma,ta)}catch(Ta){var ua=Ta}else ta=Aa.execCb(J,fa,ma,ta);this.map.isDefine&&void 0===ta&&((ma=this.module)?ta=ma.exports:this.usingExports&&(ta=
|
|
25
|
+
this.exports));if(ua)return ua.requireMap=this.map,ua.requireModules=this.map.isDefine?[this.map.id]:null,ua.requireType=this.map.isDefine?'define':'require',nb(this.error=ua)}else ta=fa;this.exports=ta;if(this.map.isDefine&&!this.ignore&&(k[J]=ta,Ua.onResourceLoad)){var Da=[];O(this.depMaps,function(Ta){Da.push(Ta.normalizedMap||Ta)});Ua.onResourceLoad(Aa,this.map,Da)}ub(J);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit('defined',this.exports),
|
|
26
|
+
this.defineEmitComplete=!0)}}},callPlugin:function(){var J=this.map,ma=J.id,ta=pb(J.prefix);this.depMaps.push(ta);zb(ta,'defined',w(this,function(fa){var ua=R(F,this.map.id),Da=this.map.name,Ta=this.map.parentMap?this.map.parentMap.name:null,ab=Aa.makeRequire(J.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){fa.normalize&&(Da=fa.normalize(Da,function(Fb){return Ja(Fb,Ta,!0)})||'');var sb=pb(J.prefix+'!'+Da,this.map.parentMap,!0);zb(sb,'defined',w(this,function(Fb){this.map.normalizedMap=
|
|
27
|
+
sb;this.init([],function(){return Fb},null,{enabled:!0,ignore:!0})}));if(fa=R(e,sb.id)){this.depMaps.push(sb);if(this.events.error)fa.on('error',w(this,function(Fb){this.emit('error',Fb)}));fa.enable()}}else if(ua)this.map.url=Aa.nameToUrl(ua),this.load();else{var yb=w(this,function(Fb){this.init([],function(){return Fb},null,{enabled:!0})});yb.error=w(this,function(Fb){this.inited=!0;this.error=Fb;Fb.requireModules=[ma];r(e,function(mb){0===mb.map.id.indexOf(ma+'_unnormalized')&&ub(mb.map.id)});
|
|
28
|
+
nb(Fb)});yb.fromText=w(this,function(Fb,mb){var Ya=J.name,cb=pb(Ya),ha=La;mb&&(Fb=mb);ha&&(La=!1);Vb(cb);Q(h.config,ma)&&(h.config[Ya]=h.config[ma]);try{Ua.exec(Fb)}catch(Y){return nb(U('fromtexteval','fromText eval for '+ma+' failed: '+Y,Y,[ma]))}ha&&(La=!0);this.depMaps.push(cb);Aa.completeLoad(Ya);ab([Ya],yb)});fa.load(J.name,ab,yb,h)}}));Aa.enable(ta,this);this.pluginMaps[ta.id]=ta},enable:function(){b[this.map.id]=this;this.enabling=this.enabled=!0;O(this.depMaps,w(this,function(J,ma){var ta;
|
|
29
|
+
if('string'===typeof J){J=pb(J,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[ma]=J;if(ta=R(ba,J.id)){this.depExports[ma]=ta(this);return}this.depCount+=1;zb(J,'defined',w(this,function(ua){this.undefed||(this.defineDep(ma,ua),this.check())}));this.errback?zb(J,'error',w(this,this.errback)):this.events.error&&zb(J,'error',w(this,function(ua){this.emit('error',ua)}))}ta=J.id;var fa=e[ta];Q(ba,ta)||!fa||fa.enabled||Aa.enable(J,this)}));r(this.pluginMaps,w(this,function(J){var ma=
|
|
30
|
+
R(e,J.id);ma&&!ma.enabled&&Aa.enable(J,this)}));this.enabling=!1;this.check()},on:function(J,ma){var ta=this.events[J];ta||=this.events[J]=[];ta.push(ma)},emit:function(J,ma){O(this.events[J],function(ta){ta(ma)});'error'===J&&delete this.events[J]}};var Aa={config:h,contextName:Ha,registry:e,defined:k,urlFetched:N,defQueue:u,defQueueMap:{},Module:qa,makeModuleMap:pb,nextTick:Ua.nextTick,onError:nb,configure:function(J){J.baseUrl&&'/'!==J.baseUrl.charAt(J.baseUrl.length-1)&&(J.baseUrl+='/');if('string'===
|
|
31
|
+
typeof J.urlArgs){var ma=J.urlArgs;J.urlArgs=function(ua,Da){return(-1===Da.indexOf('?')?'?':'&')+ma}}var ta=h.shim,fa={paths:!0,bundles:!0,config:!0,map:!0};r(J,function(ua,Da){fa[Da]?(h[Da]||(h[Da]={}),G(h[Da],ua,!0,!0)):h[Da]=ua});J.bundles&&r(J.bundles,function(ua,Da){O(ua,function(Ta){Ta!==Da&&(F[Ta]=Da)})});J.shim&&(r(J.shim,function(ua,Da){S(ua)&&(ua={deps:ua});!ua.exports&&!ua.init||ua.exportsFn||(ua.exportsFn=Aa.makeShimExports(ua));ta[Da]=ua}),h.shim=ta);J.packages&&O(J.packages,function(ua){ua=
|
|
32
|
+
'string'===typeof ua?{name:ua}:ua;var Da=ua.name;ua.location&&(h.paths[Da]=ua.location);h.pkgs[Da]=ua.name+'/'+(ua.main||'main').replace(T,'').replace(M,'')});r(e,function(ua,Da){ua.inited||ua.map.unnormalized||(ua.map=pb(Da,null,!0))});(J.deps||J.callback)&&Aa.require(J.deps||[],J.callback)},makeShimExports:function(J){return function(){var ma;J.init&&(ma=J.init.apply(A,arguments));return ma||J.exports&&Fa(J.exports)}},makeRequire:function(J,ma){function ta(fa,ua,Da){var Ta;ma.enableBuildCallback&&
|
|
33
|
+
ua&&ka(ua)&&(ua.__requireJsBuild=!0);if('string'===typeof fa){if(ka(ua))return nb(U('requireargs','Invalid require call'),Da);if(J&&Q(ba,fa))return ba[fa](e[J.id]);if(Ua.get)return Ua.get(Aa,fa,J,ta);var ab=pb(fa,J,!1,!0);ab=ab.id;return Q(k,ab)?k[ab]:nb(U('notloaded','Module name "'+ab+'" has not been loaded yet for context: '+Ha+(J?'':'. Use require([])')))}pc();Aa.nextTick(function(){pc();Ta=Vb(pb(null,J));Ta.skipMap=ma.skipMap;Ta.init(fa,ua,Da,{enabled:!0});fb()});return ta}ma=ma||{};G(ta,{isBrowser:ja,
|
|
34
|
+
toUrl:function(fa){var ua=fa.lastIndexOf('.'),Da=fa.split('/')[0];if(-1!==ua&&('.'!==Da&&'..'!==Da||1<ua)){var Ta=fa.substring(ua,fa.length);fa=fa.substring(0,ua)}return Aa.nameToUrl(Ja(fa,J&&J.id,!0),Ta,!0)},defined:function(fa){return Q(k,pb(fa,J,!1,!0).id)},specified:function(fa){fa=pb(fa,J,!1,!0).id;return Q(k,fa)||Q(e,fa)}});J||(ta.undef=function(fa){Ab();var ua=pb(fa,J,!0),Da=R(e,fa);Da.undefed=!0;Za(fa);delete k[fa];delete N[ua.url];delete p[fa];ia(u,function(Ta,ab){Ta[0]===fa&&u.splice(ab,
|
|
35
|
+
1)});delete Aa.defQueueMap[fa];Da&&(Da.events.defined&&(p[fa]=Da.events),ub(fa))});return ta},enable:function(J){R(e,J.id)&&Vb(J).enable()},completeLoad:function(J){var ma=R(h.shim,J)||{},ta=ma.exports;for(Ab();u.length;){var fa=u.shift();if(null===fa[0]){fa[0]=J;if(ua)break;var ua=!0}else fa[0]===J&&(ua=!0);Hb(fa)}Aa.defQueueMap={};fa=R(e,J);if(!ua&&!Q(k,J)&&fa&&!fa.inited)if(!h.enforceDefine||ta&&Fa(ta))Hb([J,ma.deps||[],ma.exportsFn]);else return rb(J)?void 0:nb(U('nodefine','No define call for '+
|
|
36
|
+
J,null,[J]));fb()},nameToUrl:function(J,ma,ta){var fa,ua;(fa=R(h.pkgs,J))&&(J=fa);if(fa=R(F,J))return Aa.nameToUrl(fa,ma,ta);if(Ua.jsExtRegExp.test(J))fa=J+(ma||'');else{fa=h.paths;var Da=J.split('/');for(ua=Da.length;0<ua;--ua){var Ta=Da.slice(0,ua).join('/');if(Ta=R(fa,Ta)){S(Ta)&&(Ta=Ta[0]);Da.splice(0,ua,Ta);break}}fa=Da.join('/');fa+=ma||(/^data:|^blob:|\?/.test(fa)||ta?'':'.js');fa=('/'===fa.charAt(0)||fa.match(/^[\w\+\.\-]+:/)?'':h.baseUrl)+fa}return h.urlArgs&&!/^blob:/.test(fa)?fa+h.urlArgs(J,
|
|
37
|
+
fa):fa},load:function(J,ma){Ua.load(Aa,J,ma)},execCb:function(J,ma,ta,fa){return ma.apply(fa,ta)},onScriptLoad:function(J){if('load'===J.type||wa.test((J.currentTarget||J.srcElement).readyState))y=null,J=Ub(J),Aa.completeLoad(J.id)},onScriptError:function(J){var ma=Ub(J);if(!rb(ma.id)){var ta=[];r(e,function(fa,ua){0!==ua.indexOf('_@r')&&O(fa.depMaps,function(Da){if(Da.id===ma.id)return ta.push(ua),!0})});return nb(U('scripterror','Script error for "'+ma.id+(ta.length?'", needed by: '+ta.join(', '):
|
|
38
|
+
'"'),J,[ma.id]))}}};Aa.require=Aa.makeRequire();return Aa}};Ua({});O(['toUrl','undef','defined','specified'],function(Ha){Ua[Ha]=function(){var Ja=za._;return Ja.require[Ha].apply(Ja,arguments)}});if(ja){var Qa=pa.head=document.getElementsByTagName('head')[0];if(B=document.getElementsByTagName('base')[0])Qa=pa.head=B.parentNode}Ua.onError=va;Ua.createNode=function(Ha,Ja,Za){Ja=Ha.xhtml?document.createElementNS('http://www.w3.org/1999/xhtml','html:script'):document.createElement('script');Ja.type=
|
|
39
39
|
Ha.scriptType||'text/javascript';Ja.charset='utf-8';Ja.async=!0;return Ja};Ua.load=function(Ha,Ja,Za){var rb=Ha&&Ha.config||{};if(ja){var $a=Ua.createNode(rb,Ja,Za);$a.setAttribute('data-requirecontext',Ha.contextName);$a.setAttribute('data-requiremodule',Ja);!$a.attachEvent||$a.attachEvent.toString&&0>$a.attachEvent.toString().indexOf('[native code')||la?($a.addEventListener('load',Ha.onScriptLoad,!1),$a.addEventListener('error',Ha.onScriptError,!1)):(La=!0,$a.attachEvent('onreadystatechange',Ha.onScriptLoad));
|
|
40
|
-
$a.src=Za;if(rb.onNodeCreated)rb.onNodeCreated($a,rb,Ja,Za);z=$a;B?Qa.insertBefore($a,B):Qa.appendChild($a);z=null;return $a}if(ca)try{
|
|
41
|
-
'/':'./',
|
|
42
|
-
($a.defQueue.push([Ha,Ja,Za]),$a.defQueueMap[Ha]=!0):Na.push([Ha,Ja,Za])};define.amd={jQuery:!0};Ua.exec=function(Ha){return eval(Ha)};Ua(
|
|
43
|
-
!function(A,
|
|
44
|
-
z[n[y++]],z[n[y++]],z[n[y++]],z[n[y++]],z[n[y++]]].join('')}function ka(n,y,z){var
|
|
45
|
-
|
|
46
|
-
y,z,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
20,-373897302);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
M,
|
|
53
|
-
|
|
54
|
-
Math.floor(
|
|
55
|
-
8&255,255&z[3],z[4]>>24&255,z[4]>>16&255,z[4]>>8&255,255&z[4]]});A.v1=function(n,y,z){z=y&&z||0;var
|
|
56
|
-
|
|
57
|
-
return y||V(
|
|
58
|
-
function Merge(){var A=[],
|
|
59
|
-
typeof arguments[
|
|
60
|
-
|
|
61
|
-
typeof O[0]&&null!=O[0]&&'undefined'!=typeof O[0][
|
|
62
|
-
0==O.length||'undefined'==typeof O?/^true$/i.test(Q)?O:ia:O}if(0==O.length&&0<ia.length)return A=ia;if(0==ia.length&&0<O.length)for(
|
|
63
|
-
var
|
|
64
|
-
'undefined'!=typeof
|
|
65
|
-
'object'!=typeof O[
|
|
40
|
+
$a.src=Za;if(rb.onNodeCreated)rb.onNodeCreated($a,rb,Ja,Za);z=$a;B?Qa.insertBefore($a,B):Qa.appendChild($a);z=null;return $a}if(ca)try{P(function(){},0),importScripts(Za),Ha.completeLoad(Ja)}catch(pb){Ha.onError(U('importscripts','importScripts failed for '+Ja+' at '+Za,pb,[Ja]))}};ja&&!Ba.skipDataMain&&ia(document.getElementsByTagName('script'),function(Ha){Qa||(Qa=Ha.parentNode);if(D=Ha.getAttribute('data-main'))return E=D,Ba.baseUrl||-1!==E.indexOf('!')||(n=E.split('/'),E=n.pop(),x=n.length?n.join('/')+
|
|
41
|
+
'/':'./',Ba.baseUrl=x),E=E.replace(M,''),Ua.jsExtRegExp.test(E)&&(E=D),Ba.deps=Ba.deps?Ba.deps.concat(E):[E],!0});define=function(Ha,Ja,Za){var rb;'string'!==typeof Ha&&(Za=Ja,Ja=Ha,Ha=null);S(Ja)||(Za=Ja,Ja=null);!Ja&&ka(Za)&&(Ja=[],Za.length&&(Za.toString().replace(v,V).replace(H,function(pb,Vb){Ja.push(Vb)}),Ja=(1===Za.length?['require']:['require','exports','module']).concat(Ja)));if(La&&(rb=z||I())){Ha||=rb.getAttribute('data-requiremodule');var $a=za[rb.getAttribute('data-requirecontext')]}$a?
|
|
42
|
+
($a.defQueue.push([Ha,Ja,Za]),$a.defQueueMap[Ha]=!0):Na.push([Ha,Ja,Za])};define.amd={jQuery:!0};Ua.exec=function(Ha){return eval(Ha)};Ua(Ba)}})(this,'undefined'===typeof setTimeout?void 0:setTimeout);define('requireLib',function(){});
|
|
43
|
+
!function(A,P){'object'==typeof exports&&'undefined'!=typeof module?P(exports):'function'==typeof define&&define.amd?define('vendor/uuid',['exports'],P):P((A=A||self).uuid={})}(this,function(A){function P(){if(!r)throw Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return r(G)}function V(n,y){y=y||0;var z=Fa;return[z[n[y++]],z[n[y++]],z[n[y++]],z[n[y++]],'-',z[n[y++]],z[n[y++]],'-',z[n[y++]],z[n[y++]],'-',z[n[y++]],z[n[y++]],'-',z[n[y++]],
|
|
44
|
+
z[n[y++]],z[n[y++]],z[n[y++]],z[n[y++]],z[n[y++]]].join('')}function ka(n,y,z){var E=function(x,v,H,M){M=H&&M||0;if('string'==typeof x&&(x=function(T){T=unescape(encodeURIComponent(T));for(var pa=Array(T.length),Ea=0;Ea<T.length;Ea++)pa[Ea]=T.charCodeAt(Ea);return pa}(x)),'string'==typeof v&&(v=function(T){var pa=[];return T.replace(/[a-fA-F0-9]{2}/g,function(Ea){pa.push(parseInt(Ea,16))}),pa}(v)),!Array.isArray(x))throw TypeError('value must be an array of bytes');if(!Array.isArray(v)||16!==v.length)throw TypeError('namespace must be uuid string or an Array of 16 byte values');
|
|
45
|
+
x=z(v.concat(x));if(x[6]=15&x[6]|y,x[8]=63&x[8]|128,H)for(v=0;16>v;++v)H[M+v]=x[v];return H||V(x)};try{E.name=n}catch(x){}return E.DNS='6ba7b810-9dad-11d1-80b4-00c04fd430c8',E.URL='6ba7b811-9dad-11d1-80b4-00c04fd430c8',E}function S(n,y){var z=(65535&n)+(65535&y);return(n>>16)+(y>>16)+(z>>16)<<16|65535&z}function O(n,y,z,E,x,v){return S((H=S(S(y,n),S(E,v)))<<(M=x)|H>>>32-M,z);var H,M}function ia(n,y,z,E,x,v,H){return O(y&z|~y&E,n,y,x,v,H)}function Q(n,y,z,E,x,v,H){return O(y&E|z&~E,n,y,x,v,H)}function R(n,
|
|
46
|
+
y,z,E,x,v,H){return O(z^(y|~E),n,y,x,v,H)}for(var r='undefined'!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||'undefined'!=typeof msCrypto&&'function'==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),G=new Uint8Array(16),w,va,Fa=[],U=0;256>U;++U)Fa[U]=(U+256).toString(16).substr(1);var I=0,B=0;U=ka('v3',48,function(n){if('string'==typeof n){var y=unescape(encodeURIComponent(n));n=Array(y.length);for(var z=0;z<y.length;z++)n[z]=y.charCodeAt(z)}return function(E){var x,
|
|
47
|
+
v=[],H=32*E.length;for(x=0;x<H;x+=8){var M=E[x>>5]>>>x%32&255;M=parseInt('0123456789abcdef'.charAt(M>>>4&15)+'0123456789abcdef'.charAt(15&M),16);v.push(M)}return v}(function(E,x){E[x>>5]|=128<<x%32;E[14+(x+64>>>9<<4)]=x;var v=1732584193,H=-271733879,M=-1732584194,T=271733878;for(x=0;x<E.length;x+=16){var pa=v;var Ea=H;var W=M;var ja=T;v=ia(v,H,M,T,E[x],7,-680876936);T=ia(T,v,H,M,E[x+1],12,-389564586);M=ia(M,T,v,H,E[x+2],17,606105819);H=ia(H,M,T,v,E[x+3],22,-1044525330);v=ia(v,H,M,T,E[x+4],7,-176418897);
|
|
48
|
+
T=ia(T,v,H,M,E[x+5],12,1200080426);M=ia(M,T,v,H,E[x+6],17,-1473231341);H=ia(H,M,T,v,E[x+7],22,-45705983);v=ia(v,H,M,T,E[x+8],7,1770035416);T=ia(T,v,H,M,E[x+9],12,-1958414417);M=ia(M,T,v,H,E[x+10],17,-42063);H=ia(H,M,T,v,E[x+11],22,-1990404162);v=ia(v,H,M,T,E[x+12],7,1804603682);T=ia(T,v,H,M,E[x+13],12,-40341101);M=ia(M,T,v,H,E[x+14],17,-1502002290);H=ia(H,M,T,v,E[x+15],22,1236535329);v=Q(v,H,M,T,E[x+1],5,-165796510);T=Q(T,v,H,M,E[x+6],9,-1069501632);M=Q(M,T,v,H,E[x+11],14,643717713);H=Q(H,M,T,v,E[x],
|
|
49
|
+
20,-373897302);v=Q(v,H,M,T,E[x+5],5,-701558691);T=Q(T,v,H,M,E[x+10],9,38016083);M=Q(M,T,v,H,E[x+15],14,-660478335);H=Q(H,M,T,v,E[x+4],20,-405537848);v=Q(v,H,M,T,E[x+9],5,568446438);T=Q(T,v,H,M,E[x+14],9,-1019803690);M=Q(M,T,v,H,E[x+3],14,-187363961);H=Q(H,M,T,v,E[x+8],20,1163531501);v=Q(v,H,M,T,E[x+13],5,-1444681467);T=Q(T,v,H,M,E[x+2],9,-51403784);M=Q(M,T,v,H,E[x+7],14,1735328473);H=Q(H,M,T,v,E[x+12],20,-1926607734);v=O(H^M^T,v,H,E[x+5],4,-378558);T=O(v^H^M,T,v,E[x+8],11,-2022574463);M=O(T^v^H,M,
|
|
50
|
+
T,E[x+11],16,1839030562);H=O(M^T^v,H,M,E[x+14],23,-35309556);v=O(H^M^T,v,H,E[x+1],4,-1530992060);T=O(v^H^M,T,v,E[x+4],11,1272893353);M=O(T^v^H,M,T,E[x+7],16,-155497632);H=O(M^T^v,H,M,E[x+10],23,-1094730640);v=O(H^M^T,v,H,E[x+13],4,681279174);T=O(v^H^M,T,v,E[x],11,-358537222);M=O(T^v^H,M,T,E[x+3],16,-722521979);H=O(M^T^v,H,M,E[x+6],23,76029189);v=O(H^M^T,v,H,E[x+9],4,-640364487);T=O(v^H^M,T,v,E[x+12],11,-421815835);M=O(T^v^H,M,T,E[x+15],16,530742520);H=O(M^T^v,H,M,E[x+2],23,-995338651);v=R(v,H,M,T,
|
|
51
|
+
E[x],6,-198630844);T=R(T,v,H,M,E[x+7],10,1126891415);M=R(M,T,v,H,E[x+14],15,-1416354905);H=R(H,M,T,v,E[x+5],21,-57434055);v=R(v,H,M,T,E[x+12],6,1700485571);T=R(T,v,H,M,E[x+3],10,-1894986606);M=R(M,T,v,H,E[x+10],15,-1051523);H=R(H,M,T,v,E[x+1],21,-2054922799);v=R(v,H,M,T,E[x+8],6,1873313359);T=R(T,v,H,M,E[x+15],10,-30611744);M=R(M,T,v,H,E[x+6],15,-1560198380);H=R(H,M,T,v,E[x+13],21,1309151649);v=R(v,H,M,T,E[x+4],6,-145523070);T=R(T,v,H,M,E[x+11],10,-1120210379);M=R(M,T,v,H,E[x+2],15,718787259);H=R(H,
|
|
52
|
+
M,T,v,E[x+9],21,-343485551);v=S(v,pa);H=S(H,Ea);M=S(M,W);T=S(T,ja)}return[v,H,M,T]}(function(E){var x,v=[];v[(E.length>>2)-1]=void 0;for(x=0;x<v.length;x+=1)v[x]=0;var H=8*E.length;for(x=0;x<H;x+=8)v[x>>5]|=(255&E[x/8])<<x%32;return v}(n),8*n.length))});var D=ka('v5',80,function(n){var y=[1518500249,1859775393,2400959708,3395469782],z=[1732584193,4023233417,2562383102,271733878,3285377520];if('string'==typeof n){var E=unescape(encodeURIComponent(n));n=Array(E.length);for(var x=0;x<E.length;x++)n[x]=
|
|
53
|
+
E.charCodeAt(x)}n.push(128);E=Math.ceil((n.length/4+2)/16);var v=Array(E);for(x=0;x<E;x++){v[x]=Array(16);for(var H=0;16>H;H++)v[x][H]=n[64*x+4*H]<<24|n[64*x+4*H+1]<<16|n[64*x+4*H+2]<<8|n[64*x+4*H+3]}v[E-1][14]=8*(n.length-1)/Math.pow(2,32);v[E-1][14]=Math.floor(v[E-1][14]);v[E-1][15]=8*(n.length-1)&4294967295;for(x=0;x<E;x++){n=Array(80);for(H=0;16>H;H++)n[H]=v[x][H];for(H=16;80>H;H++){var M=n[H-3]^n[H-8]^n[H-14]^n[H-16];n[H]=M<<1|M>>>31}M=z[0];var T=z[1],pa=z[2],Ea=z[3],W=z[4];for(H=0;80>H;H++){var ja=
|
|
54
|
+
Math.floor(H/20),ca=M<<5|M>>>27;a:{switch(ja){case 0:var wa=T&pa^~T&Ea;break a;case 1:wa=T^pa^Ea;break a;case 2:wa=T&pa^T&Ea^pa&Ea;break a;case 3:wa=T^pa^Ea;break a}wa=void 0}ja=ca+wa+W+y[ja]+n[H]>>>0;W=Ea;Ea=pa;pa=(T<<30|T>>>2)>>>0;T=M;M=ja}z[0]=z[0]+M>>>0;z[1]=z[1]+T>>>0;z[2]=z[2]+pa>>>0;z[3]=z[3]+Ea>>>0;z[4]=z[4]+W>>>0}return[z[0]>>24&255,z[0]>>16&255,z[0]>>8&255,255&z[0],z[1]>>24&255,z[1]>>16&255,z[1]>>8&255,255&z[1],z[2]>>24&255,z[2]>>16&255,z[2]>>8&255,255&z[2],z[3]>>24&255,z[3]>>16&255,z[3]>>
|
|
55
|
+
8&255,255&z[3],z[4]>>24&255,z[4]>>16&255,z[4]>>8&255,255&z[4]]});A.v1=function(n,y,z){z=y&&z||0;var E=y||[],x=(n=n||{}).node||w,v=void 0!==n.clockseq?n.clockseq:va;if(null==x||null==v){var H=n.random||(n.rng||P)();null==x&&(x=w=[1|H[0],H[1],H[2],H[3],H[4],H[5]]);null==v&&(v=va=16383&(H[6]<<8|H[7]))}H=void 0!==n.msecs?n.msecs:(new Date).getTime();var M=void 0!==n.nsecs?n.nsecs:B+1,T=H-I+(M-B)/1E4;if(0>T&&void 0===n.clockseq&&(v=v+1&16383),(0>T||H>I)&&void 0===n.nsecs&&(M=0),1E4<=M)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
56
|
+
I=H;B=M;va=v;n=(1E4*(268435455&(H+=122192928E5))+M)%4294967296;E[z++]=n>>>24&255;E[z++]=n>>>16&255;E[z++]=n>>>8&255;E[z++]=255&n;n=H/4294967296*1E4&268435455;E[z++]=n>>>8&255;E[z++]=255&n;E[z++]=n>>>24&15|16;E[z++]=n>>>16&255;E[z++]=v>>>8|128;E[z++]=255&v;for(v=0;6>v;++v)E[z+v]=x[v];return y||V(E)};A.v3=U;A.v4=function(n,y,z){z=y&&z||0;'string'==typeof n&&(y='binary'===n?Array(16):null,n=null);var E=(n=n||{}).random||(n.rng||P)();if(E[6]=15&E[6]|64,E[8]=63&E[8]|128,y)for(n=0;16>n;++n)y[z+n]=E[n];
|
|
57
|
+
return y||V(E)};A.v5=D;Object.defineProperty(A,'__esModule',{value:!0})});
|
|
58
|
+
function Merge(){var A=[],P=!1,V=function(O,ia){var Q=O;P||('object'==typeof O&&Array.isArray(O),P=!0);'undefined'==typeof Q&&(Q='undefined'!=typeof ia&&Array.isArray(ia)?[]:{});var R=!1;'boolean'==typeof arguments[arguments.length-1]&&(R=arguments[arguments.length-1]);var r=1,G=arguments.length,w,va;if('object'!==typeof Q&&'function'!==typeof Q)Q=R?'undefined'==typeof arguments[2]?arguments[1]:arguments[2]:'undefined'==typeof arguments[0]?arguments[1]:arguments[0];else for(;r<G;++r)if('boolean'!=
|
|
59
|
+
typeof arguments[r]&&null!=(w=arguments[r])){if('object'!=typeof w){Q=w;break}if(Array.isArray(w)&&Array.isArray(Q))Q=ka(w,Q,R);else for(var Fa in w){Q||={name:null};var U=Q[Fa];var I=w[Fa];if(Q!==I)if(I&&(S(I)||(va=Array.isArray(I)))){var B=!1;if(va){va=!1;if(U&&Array.isArray(U))var D=U||[];else if(S(U)){D=U||{};Q[Fa]=D;continue}else D=[];A=D;D=ka(I,D,R);Q[Fa]=D}else{D=U&&S(U)?U:null;if(!D){B=!0;D={};for(var n in I)D[n]=I[n]}if(R){for(n in I)'undefined'!=typeof I[n]?Array.isArray(I[n])&&Array.isArray(D[n])?
|
|
60
|
+
D[n]=ka(I[n],D[n],R):D[n]=I[n]:Array.isArray(I[n])&&Array.isArray(D[n])&&(D[n]=ka(I[n],D[n],R));Q[Fa]=D}else{for(n in I)'undefined'==typeof D[n]?Array.isArray(I[n])&&Array.isArray(D[n])?D[n]=ka(I[n],D[n],R):D[n]=I[n]:Array.isArray(I[n])&&Array.isArray(D[n])&&(D[n]=ka(I[n],D[n],R));'boolean'==typeof U||B?B&&(Q[Fa]=D):Q[Fa]=V(D,I,R)}}}else void 0!==I&&(Q[Fa]='undefined'==typeof U||null==U||U===I||R?I:U)}}A=[];P=!1;return Q},ka=function(O,ia,Q){A=[];var R=[],r=V.getKeyComparison();if(/^true$/i.test(Q)){if('object'==
|
|
61
|
+
typeof O[0]&&null!=O[0]&&'undefined'!=typeof O[0][r]&&'object'==typeof ia[0]&&'undefined'!=typeof ia[0][r]){A=Array.isArray(ia)?Array.from(ia):JSON.clone(ia);var G=0;for(Q=A.length;G<Q;++G)R.push(A[G][r]);Q=JSON.clone(O);var w=0;G=0;O=Q.length;for(var va=U||0,Fa=ia.length;va<Fa;++va)a:for(G=G||0;G<O;++G)if(Q[G][r]===ia[va][r]){-1<R.indexOf(Q[G][r])?(A[w]=Q[G],++w):-1==R.indexOf(Q[G][r])&&(R.push(Q[G][r]),A[w]=Q[G],++w);break a}else-1==R.indexOf(Q[G][r])&&(R.push(Q[G][r]),A.push(Q[G]));return A}return Array.isArray(O)&&
|
|
62
|
+
0==O.length||'undefined'==typeof O?/^true$/i.test(Q)?O:ia:O}if(0==O.length&&0<ia.length)return A=ia;if(0==ia.length&&0<O.length)for(G=0;G<O.length;++G)ia.push(O[G]);if(0==A.length&&0<ia.length)for(G=0;G<ia.length;++G)'object'!=typeof ia[G]&&-1==A.indexOf(ia[G])&&A.push(ia[G]);if(0<ia.length){if('undefined'!=typeof O[0]&&'object'==typeof O[0]&&null!=O[0]&&'undefined'!=typeof O[0][r]&&'object'==typeof ia[0]&&'undefined'!=typeof ia[0][r]){A=Array.isArray(ia)?Array.from(ia):JSON.clone(ia);Q=JSON.clone(O);
|
|
63
|
+
var U=null;G=0;for(O=A.length;G<O;++G)R.push(A[G][r]);for(G=0;G<O;++G)a:for(va=U||0,Fa=Q.length;va<Fa;++va)if(null!=Q[va]&&'undefined'!=typeof Q[va][r]&&Q[va][r]!==A[G][r]){if(-1==R.indexOf(Q[va][r])){A.push(Q[va]);R.push(Q[va][r]);U=va+1;O<Fa&&++O;break a}}else if(null!=Q[va]&&'undefined'!=typeof Q[va][r]&&Q[va][r]===A[G][r])U=va+1;else break a;return A}for(G=0;G<O.length;++G)if(R=null,'undefined'==typeof O||'object'!=typeof O[G]||Array.isArray(O[G])||null==O[G]||(R=Object.getOwnPropertyNames(O[G])),
|
|
64
|
+
'undefined'!=typeof R&&null!=R&&(R=R[0]||null),-1<ia.indexOf(O[G])&&Q)ia.splice(ia.indexOf(O[G]),1,O[G]);else if('undefined'==typeof A[G]&&'object'==typeof O[G])for(w in A=ia,'undefined'==typeof A[G]&&(A[G]={}),O[G])A[G].hasOwnProperty(w)||(A[G][w]=O[G][w]);else!Q&&-1<A.indexOf(O[G])&&/number/i.test(typeof O[G])&&O[G]!==A[G]?A.push(O[G]):'undefined'==typeof ia[G]||/null/i.test(ia[G])||'undefined'==typeof ia[G][r]||'undefined'==typeof O[G]||'undefined'==typeof O[G][r]||ia[G][r]!=O[G][r]?-1==A.indexOf(O[G])&&
|
|
65
|
+
'object'!=typeof O[G]?A.push(O[G]):'undefined'==typeof ia[G]||/null/i.test(ia[G])||'undefined'==typeof ia[G][R]||'undefined'==typeof O[G]||'undefined'==typeof O[G][R]||ia[G][R]!=O[G][R]||(A[G]=Q?O[G]:ia[G]):A[G]=Q?O[G]:ia[G]}if(0<A.length&&0<ia.length||0==A.length&&0==ia.length)return A};ka.prototype.setKeyComparison=function(O){this.keyComparison=O};var S=function(O){if(!O||'[object Object]'!=={}.toString.call(O)||O.nodeType||O.setInterval)return!1;var ia={}.hasOwnProperty,Q=ia.call(O,'constructor');
|
|
66
66
|
ia='undefined'!=typeof O.constructor?ia.call(O.constructor.prototype,'isPrototypeOf'):!1;return!O.constructor||Q||ia?!0:!1};V.setKeyComparison=function(O){ka.keyComparison=O;return V};V.getKeyComparison=function(){var O=ka.keyComparison||'id';ka.keyComparison='id';return O};return V}'undefined'!==typeof module&&module.exports?('undefined'==typeof JSON.clone&&require('../../../helpers'),module.exports=Merge()):'function'===typeof define&&define.amd&&define('lib/merge',[],function(){return Merge()});
|
|
67
|
-
function registerEvents(A,
|
|
68
|
-
function addListener(A,
|
|
69
|
-
|
|
70
|
-
function triggerEvent(A,
|
|
71
|
-
O.detail=ka,O.target=
|
|
67
|
+
function registerEvents(A,P){'undefined'==typeof gina&&'undefined'!=typeof window.gina&&(gina=window.gina);gina.registeredEvents[A]=P}function mergeEventProps(A,P){for(let V in P)'undefined'==typeof A[V]&&(A[V]=P[V]);return A}
|
|
68
|
+
function addListener(A,P,V,ka){var S=function(Q,R,r,G){'undefined'!=typeof Q.event&&Q.event.isTouchSupported&&/^(click|mouseout|mouseover)/.test(r)&&-1==Q.event[r].indexOf(R)&&(Q.event[r][Q.event[r].length]=R);'undefined'!=typeof R&&null!=R?R.addEventListener?R.addEventListener(r,G,!1):R.attachEvent&&R.attachEvent('on'+r,G):Q.customEvent.addListener(r,G);gina.events[r]='undefined'!=typeof R.id&&'object'!=typeof R.id?R.id:R.getAttribute('id')},O=0,ia=null;if(Array.isArray(V))for(ia=V.length;O<ia;O++)S(A,
|
|
69
|
+
P,V[O],ka);else if(Array.isArray(P))for(O=0,ia=P.length;O<ia;O++){let Q=/\.$/.test(V)?V+P[O].id:V;S(A,P[O],Q,ka)}else V=/\.$/.test(V)?V+P.id:V,S(A,P,V,ka)}
|
|
70
|
+
function triggerEvent(A,P,V,ka,S){if('undefined'!=typeof P&&null!=P){A=!1;if(jQuery){var O=jQuery.fn.jquery.split(/\./);O=2<O.length?O.splice(0,2).join('.'):O.join('.');O='1.7'>=O?jQuery(P).data('events'):jQuery._data(jQuery(P)[0],'events');if(O='undefined'!=typeof O&&'undefined'!=typeof O[V]?!0:!1)O=jQuery.Event(V),jQuery(P).trigger(O,ka),A=O.isDefaultPrevented()}window.CustomEvent||document.createEvent?(window.CustomEvent?O=new CustomEvent(V,{detail:ka,bubbles:!0,cancelable:!0,target:P}):(O=document.createEvent('HTMLEvents'),
|
|
71
|
+
O.detail=ka,O.target=P,O.initEvent(V,!0,!0),O.eventName=V),S&&(O=mergeEventProps(O,S)),'undefined'!=typeof O.defaultPrevented&&O.defaultPrevented&&(A=O.defaultPrevented),A||P.dispatchEvent(O)):document.createEventObject&&(O=document.createEventObject(),O.srcElement.id=P.id,O.detail=ka,O.target=P,S&&(O=mergeEventProps(O,S)),P.fireEvent('on'+V,O))}else A.customEvent.fire(V,ka)}
|
|
72
72
|
function cancelEvent(A){'undefined'!=typeof A&&null!=A&&(A.cancelBubble=!0,A.preventDefault&&A.preventDefault(),A.stopPropagation&&A.stopPropagation(),A.returnValue=!1)}
|
|
73
|
-
function setupXhr(A){var
|
|
74
|
-
A.url);else if('undefined'!=typeof XDomainRequest)
|
|
75
|
-
enctype&&''!=enctype||
|
|
76
|
-
function handleXhr(A,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
null,ia=A.getResponseHeader('Content-Type'),/^2/.test(A.status)){try{if(/blob/.test(A.responseType)||O){if('undefined'==typeof ia||null==ia)ia='application/octet-stream';S=new Blob([this.response],{type:ia});var B=document.createElement('a');B.style='display: none';document.body.appendChild(B);var
|
|
73
|
+
function setupXhr(A){var P=null;if(window.XMLHttpRequest)P=new XMLHttpRequest;else if(window.ActiveXObject)try{P=new ActiveXObject('Msxml2.XMLHTTP')}catch(ka){try{P=new ActiveXObject('Microsoft.XMLHTTP')}catch(S){}}if('undefined'!=typeof A){if(!A.url||'undefined'==typeof A.url)throw Error('Missing `options.url`');'undefined'==typeof A.method&&(A.method='GET');A.method=A.method.toUpperCase();if(A.withCredentials){if('withCredentials'in P)A.isSynchrone?P.open(A.method,A.url,A.isSynchrone):P.open(A.method,
|
|
74
|
+
A.url);else if('undefined'!=typeof XDomainRequest)P=new XDomainRequest,P.open(A.method,A.url);else{result='CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ';triggerEvent(gina,$target,'error.'+id,result);return}P.responseType='undefined'!=typeof A.responseType?A.responseType:'';P.withCredentials=!0}else A.isSynchrone?P.open(A.method,A.url,A.isSynchrone):P.open(A.method,A.url);for(var V in A.headers)'Content-Type'==V&&'undefined'!=typeof enctype&&null!=
|
|
75
|
+
enctype&&''!=enctype||P.setRequestHeader(V,A.headers[V])}return P}
|
|
76
|
+
function handleXhr(A,P,V,ka){if(!A)throw Error('No `xhr` object initiated');var S=null,O=null,ia=null,Q=null,R=null,r=V.$link||null,G=V.$form||null,w=null;delete V.$link;delete V.$form;G||r?r?(r.target=document.getElementById(r.id),w=gina.link.target,R=gina.link.id):(w=G.target,R=w.getAttribute('id')):(w=P,R=w.getAttribute('id'));var va=r&&P.getAttribute('data-gina-link-event-on-success')||r&&P.getAttribute('data-gina-link-event-on-error')?!0:!1,Fa=G&&w.getAttribute('data-gina-form-event-on-submit-success')||
|
|
77
|
+
G&&w.getAttribute('data-gina-form-event-on-submit-error')?!0:!1;Fa&&G&&listenToXhrEvents(G,'form');P=P.getAttribute('enctype')||V.headers['Content-Type'];for(var U in V.headers)'Content-Type'==U&&'undefined'!=typeof P&&null!=P&&''!=P||A.setRequestHeader(U,V.headers[U]);A.withCredentials='undefined'!=typeof V.withCredentials?V.withCredentials:!1;A.onerror=function(I,B){I={status:A.status||500,error:'Transaction error: might be due to the server CORS settings.\nPlease, check the console for more details.'};
|
|
78
|
+
G&&(G.eventData.error=I);r&&(r.eventData.error=I);window.ginaToolbar.update('data-xhr',I,!0);triggerEvent(gina,w,'error.'+R,I);Fa&&triggerEvent(gina,w,'error.'+R+'.hform',I);va&&triggerEvent(gina,w,'error.'+R+'.hlink',I)};A.onreadystatechange=function(I){'undefined'==typeof merge&&(merge=ka('lib/merge'));I=/Google Inc/i.test(navigator.vendor)?50:0;2==A.readyState&&(O=/^attachment;/.test(A.getResponseHeader('Content-Disposition'))?!0:!1,!A.responseType&&O&&(A.responseType='blob'));if(4==A.readyState)if(S=
|
|
79
|
+
null,ia=A.getResponseHeader('Content-Type'),/^2/.test(A.status)){try{if(/blob/.test(A.responseType)||O){if('undefined'==typeof ia||null==ia)ia='application/octet-stream';S=new Blob([this.response],{type:ia});var B=document.createElement('a');B.style='display: none';document.body.appendChild(B);var D=window.URL.createObjectURL(S);B.href=D;var n=A.getResponseHeader('Content-Disposition');B.download=n.match('=(.*)')[0].substring(1);B.click();window.URL.revokeObjectURL(D);Q={status:A.status,statusText:A.statusText,
|
|
80
80
|
responseType:S.type,type:S.type,size:S.size}}!Q&&/\/json/.test(ia)&&(Q=JSON.parse(A.responseText),'undefined'==typeof Q.status&&(Q.status=A.status||200));if(!Q&&/\/html/.test(ia)&&(Q={contentType:ia,content:A.responseText},'undefined'==typeof Q.status&&(Q.status=A.status),'undefined'!=typeof gina.popin&&gina.hasPopinHandler)){var y=gina.popin.getActivePopin();if(y){XHRData={};try{XHRData=(new DOMParser).parseFromString(Q.content,'text/html').getElementById('gina-without-layout-xhr-data'),XHRData=
|
|
81
|
-
JSON.parse(decodeURIComponent(XHRData.value)),XHRView=(new DOMParser).parseFromString(Q.content,'text/html').getElementById('gina-without-layout-xhr-view'),XHRView=JSON.parse(decodeURIComponent(XHRView.value)),gina&&typeof window.ginaToolbar&&'undefined'!=typeof XHRData&&window.ginaToolbar.update('data-xhr',XHRData),gina&&typeof window.ginaToolbar&&'undefined'!=typeof XHRView&&window.ginaToolbar.update('view-xhr',XHRView)}catch(
|
|
82
|
-
|
|
83
|
-
XHRData)try{'undefined'!=typeof XHRData&&window.ginaToolbar.update('data-xhr',XHRData)}catch(
|
|
84
|
-
{status:A.status,message:''},/blob/.test(A.responseType)){S=new Blob([this.response],{type:'text/plain'});var z=new FileReader,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
function removeListener(A,
|
|
90
|
-
0,len=
|
|
81
|
+
JSON.parse(decodeURIComponent(XHRData.value)),XHRView=(new DOMParser).parseFromString(Q.content,'text/html').getElementById('gina-without-layout-xhr-view'),XHRView=JSON.parse(decodeURIComponent(XHRView.value)),gina&&typeof window.ginaToolbar&&'undefined'!=typeof XHRData&&window.ginaToolbar.update('data-xhr',XHRData),gina&&typeof window.ginaToolbar&&'undefined'!=typeof XHRView&&window.ginaToolbar.update('view-xhr',XHRView)}catch(v){throw v;}y.loadContent(Q.content);Q=XHRData;triggerEvent(gina,w,'success.'+
|
|
82
|
+
R,Q);return}}Q||(Q=A.responseText);G&&(G.eventData.success=Q);XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{'undefined'!=typeof XHRData&&/\/html/.test(ia)&&window.ginaToolbar.update('data-xhr',XHRData)}catch(v){throw v;}triggerEvent(gina,w,'success.'+R,Q);Fa&&triggerEvent(gina,w,'success.'+R+'.hform',Q);va&&triggerEvent(gina,w,'success.'+R+'.hlink',Q)}catch(v){Q={status:422,error:v.message,stack:v.stack};G&&(G.eventData.error=Q);XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&
|
|
83
|
+
XHRData)try{'undefined'!=typeof XHRData&&window.ginaToolbar.update('data-xhr',XHRData)}catch(H){throw H;}triggerEvent(gina,w,'error.'+R,Q);Fa&&triggerEvent(gina,w,'error.'+R+'.hform',Q);va&&triggerEvent(gina,w,'error.'+R+'.hlink',Q)}if('undefined'!=typeof Q&&'undefined'!=typeof Q.location)return window.location.hash='',Q.location=/^http/.test(Q.location)||/^\//.test(Q.location)?Q.location:location.protocol+'//'+Q.location,setTimeout(()=>{window.location.href=Q.location},I)}else if(0!=A.status)if(Q=
|
|
84
|
+
{status:A.status,message:''},/blob/.test(A.responseType)){S=new Blob([this.response],{type:'text/plain'});var z=new FileReader,E='';z.addEventListener('loadend',v=>{'undefined'==typeof merge&&(merge=ka('lib/merge'));/string/i.test(typeof v.srcElement.result)?E+=v.srcElement.result:'object'==typeof v.srcElement.result?Q=merge(Q,v.srcElement.result):Q.message+=v.srcElement.result;if(/^2/.test(z.readyState)){if(/^(\{|\[)/.test(E))try{Q=merge(Q,JSON.parse(E))}catch(T){Q=merge(Q,T)}Q.message||delete Q.message;
|
|
85
|
+
G&&(G.eventData.error=Q);if('undefined'!=typeof Q&&'undefined'!=typeof Q.error&&Q.error.fields&&'object'==typeof Q.error.fields){v={};var H=0,M;for(M in Q.error.fields)++H,v[M]={isApplicationValidationError:Q.error.fields[M]};0<H&&handleErrorsDisplay(G.target,v)}XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{window.ginaToolbar.update('data-xhr',XHRData)}catch(T){throw T;}triggerEvent(gina,w,'error.'+R,Q);Fa&&triggerEvent(gina,w,'error.'+R+'.hform',Q);va&&triggerEvent(gina,w,'error.'+
|
|
86
|
+
R+'.hlink',Q)}});z.readAsText(S)}else{try{Q=merge(Q,JSON.parse(A.responseText))}catch(v){Q=merge(Q,v)}G&&(G.eventData.error=Q);if('undefined'!=typeof Q&&'undefined'!=typeof Q.error&&Q.error.fields&&'object'==typeof Q.error.fields){B={};D=0;for(var x in Q.error.fields)++D,B[x]={isApplicationValidationError:Q.error.fields[x]};0<D&&handleErrorsDisplay(G.target,B)}XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{window.ginaToolbar.update('data-xhr',XHRData)}catch(v){throw v;}triggerEvent(gina,
|
|
87
|
+
w,'error.'+R,Q);Fa&&triggerEvent(gina,w,'error.'+R+'.hform',Q);va&&triggerEvent(gina,w,'error.'+R+'.hlink',Q)}};A.onprogress=function(I){var B='0';I.lengthComputable&&(B=I.loaded/I.total,B=parseInt(100*B));I={status:100,progress:B};G&&(G.eventData.onprogress=I);triggerEvent(gina,w,'progress.'+R,I)};A.ontimeout=function(I){Q={status:408,error:'Request Timeout'};G&&(G.eventData.ontimeout=Q);triggerEvent(gina,w,'error.'+R,Q);Fa&&triggerEvent(gina,w,'error.'+R+'.hform',Q);va&&triggerEvent(gina,w,'error.'+
|
|
88
|
+
R+'.hlink',Q)}}
|
|
89
|
+
function removeListener(A,P,V,ka){'undefined'!=typeof A.event&&A.event.isTouchSupported&&/^(click|mouseout|mouseover)/.test(V)&&-1!=A.event[V].indexOf(P)&&A.event[V].splice(A.event[V].indexOf(P),1);if('undefined'!=typeof P&&null!=P)if(P.removeEventListener)if(Array.isArray(P))for(i=0,len=P.length;i<len;i++)A=/\.$/.test(V)?V+P[i].id:V,P.removeEventListener(A,ka,!1),'undefined'!=typeof gina.events[A]&&delete gina.events[A];else V=/\.$/.test(V)?V+P.id:V,P.removeEventListener(V,ka,!1);else{if(P.attachEvent)if(Array.isArray(P))for(i=
|
|
90
|
+
0,len=P.length;i<len;i++)A=/\.$/.test(V)?V+P[i].id:V,P.detachEvent('on'+A,ka),'undefined'!=typeof gina.events[A]&&delete gina.events[A];else V=/\.$/.test(V)?V+P.id:V,P.detachEvent('on'+V,ka)}else if(Array.isArray(P))for(i=0,len=P.length;i<len;i++){let S=/\.$/.test(V)?V+P[i].id:V;A.customEvent.removeListener(S,ka);'undefined'!=typeof gina.events[S]&&delete gina.events[S]}else V=/\.$/.test(V)?V+P.id:V,A.customEvent.removeListener(V,ka);'undefined'!=typeof gina.events[V]&&delete gina.events[V];'undefined'!=
|
|
91
91
|
typeof ka&&ka()}
|
|
92
|
-
function on(A,
|
|
92
|
+
function on(A,P){if(!this.plugin)throw Error('No `plugin` reference found for this event: `'+A);if(0>gina.registeredEvents[this.plugin].indexOf(A)&&!/^init$/.test(A)&&!/\.hform$/.test(A)&&!/\.hlink$/.test(A))P(Error('Event `'+A+'` not handled by ginaEventHandler'));else{var V=null,ka=null;'undefined'!=typeof this.id&&'object'!=typeof this.id?(V=this.target||this,ka=this.id):'undefined'!=typeof this.target?((V=this.target)||(V=this),ka='undefined'!=typeof V.getAttribute?V.getAttribute('id'):this.id):
|
|
93
93
|
(V=this.target,ka=instance.id);this.eventData&&!V.eventData&&(V.eventData=this.eventData);A=/\.(hform|hlink)$/.test(A)?/\.hform$/.test(A)?A.replace(/\.hform$/,'.'+ka+'.hform'):A.replace(/\.hlink$/,'.'+ka+'.hlink'):A+('.'+ka);gina.events[A]||(addListener(gina,V,A,function(S){cancelEvent(S);var O=null;S.detail?O=S.detail:'undefined'!=typeof this.eventData.submit?O=this.eventData.submit:'undefined'!=typeof this.eventData.error?O=this.eventData.error:'undefined'!=typeof this.eventData.success&&(O=this.eventData.success);
|
|
94
|
-
|
|
95
|
-
function PrototypesHelper(A){var
|
|
96
|
-
typeof Date[S]&&Object.defineProperty(Date.prototype,S,{writable:!1,enumerable:!1,configurable:!0,value:function(){var O={0:this},ia=1,Q;for(Q in arguments)O[ia]=arguments[Q],++ia;O.length=ia;return V.dateFormat[S].apply(this,O)}});'undefined'==typeof Array.clone&&Object.defineProperty(Array.prototype,'clone',{writable:!1,enumerable:!1,configurable:!0,value:function(){return this.slice(0)}});'undefined'!=typeof JSON.clone||
|
|
97
|
-
(A||(
|
|
98
|
-
'inArray',{writable:!1,enumerable:!1,configurable:!0,value:function(S){return-1!=this.indexOf(S)}});'undefined'==typeof Array.from&&Object.defineProperty(Array.prototype,'from',{writable:!1,enumerable:!1,configurable:!0,value:function(S){for(var O={},ia=[],Q=S.length,
|
|
94
|
+
P&&P(S,O)}),this.initialized&&!this.isReady&&triggerEvent(gina,V,'init.'+ka));return this}}define('utils/events',function(){});
|
|
95
|
+
function PrototypesHelper(A){var P='undefined'!==typeof module&&module.exports?!1:!0,V=A||null;A=null;if('undefined'==typeof GINA_DIR&&!P&&'undefined'!=typeof process&&3<process.argv.length)if(/^\{/.test(process.argv[2]))A=JSON.parse(process.argv[2]).envVars;else if(/\.ctx$/.test(process.argv[2])){A=require('fs');var ka=process.argv[2].split(/\-\-argv\-filename=/)[1];A=JSON.parse(A.readFileSync(ka).toString()).envVars}if(V&&'undefined'!=typeof V&&'undefined'!=typeof V.dateFormat)for(let S in V.dateFormat)'undefined'==
|
|
96
|
+
typeof Date[S]&&Object.defineProperty(Date.prototype,S,{writable:!1,enumerable:!1,configurable:!0,value:function(){var O={0:this},ia=1,Q;for(Q in arguments)O[ia]=arguments[Q],++ia;O.length=ia;return V.dateFormat[S].apply(this,O)}});'undefined'==typeof Array.clone&&Object.defineProperty(Array.prototype,'clone',{writable:!1,enumerable:!1,configurable:!0,value:function(){return this.slice(0)}});'undefined'!=typeof JSON.clone||P||('undefined'!=typeof A&&null!=A?JSON.clone=require(A.GINA_DIR+'/utils/prototypes.json_clone'):
|
|
97
|
+
(A||(P=process.cwd().match(/.*\/gina/)[0],require(P+'/utils/helper'),setEnvVar('GINA_DIR',P,!0),A=getEnvVars()),JSON.clone=require(getEnvVar('GINA_DIR')+'/utils/prototypes.json_clone')));'undefined'==typeof JSON.escape&&(JSON.escape=function(S){try{return S.replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/\t/g,'\\t')}catch(O){throw O;}});'undefined'==typeof Array.toString&&(Array.prototype.toString=function(){return this.join()});'undefined'==typeof Array.inArray&&Object.defineProperty(Array.prototype,
|
|
98
|
+
'inArray',{writable:!1,enumerable:!1,configurable:!0,value:function(S){return-1!=this.indexOf(S)}});'undefined'==typeof Array.from&&Object.defineProperty(Array.prototype,'from',{writable:!1,enumerable:!1,configurable:!0,value:function(S){for(var O={},ia=[],Q=S.length,R=0,r=0;r<Q;r++){var G=S[r];1!==O[G]&&(O[G]=1,ia[R++]=G)}return ia}});'undefined'==typeof Object.count&&Object.defineProperty(Object.prototype,'count',{writable:!0,enumerable:!1,configurable:!0,value:function(){var S=0;try{this instanceof
|
|
99
99
|
String&&JSON.parse(this);for(var O in this)this.hasOwnProperty(O)&&++S;return S}catch(ia){return S}}});'undefined'!=typeof global&&'undefined'==typeof global.__stack&&Object.defineProperty(global,'__stack',{configurable:!0,get:function(){var S=Error.prepareStackTrace;Error.prepareStackTrace=function(ia,Q){return Q};var O=Error();Error.captureStackTrace(O,arguments.callee);O=O.stack;Error.prepareStackTrace=S;return O}})}
|
|
100
100
|
'undefined'!==typeof module&&module.exports?module.exports=PrototypesHelper:'function'===typeof define&&define.amd&&define('helpers/prototypes',[],function(){return PrototypesHelper});
|
|
101
|
-
function DateFormatHelper(){var A='undefined'!==typeof module&&module.exports?!1:!0,
|
|
101
|
+
function DateFormatHelper(){var A='undefined'!==typeof module&&module.exports?!1:!0,P=A?require('lib/merge'):require('./../lib/merge');var V='en-US';var ka='en';var S={'default':'ddd mmm dd yyyy HH:MM:ss',shortDate:'m/d/yy',shortDate2:'mm/dd/yyyy',mediumDate:'mmm d, yyyy',longDate:'mmmm d, yyyy',fullDate:'dddd, mmmm d, yyyy',cookieDate:'GMT:ddd, dd mmm yyyy HH:MM:ss',logger:'yyyy mmm dd HH:MM:ss',shortTime:'h:MM TT',shortTime2:'h:MM',mediumTime:'h:MM:ss TT',mediumTime2:'h:MM:ss',longTime:'h:MM:ss TT Z',
|
|
102
102
|
longTime2:'h:MM:ss TT',concatenatedDate:'yyyymmdd',isoDate:'yyyy-mm-dd',isoTime:'HH:MM:ss',shortIsoTime:'HH:MM',longIsoTime:'HH:MM:ss TT',isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",longIsoDateTime:"yyyy-mm-dd'T'HH:MM:ss.L",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};var O={en:{dayNames:'Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday'.split(' '),monthNames:'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December'.split(' '),
|
|
103
103
|
masks:{'default':'ddd mmm dd yyyy HH:MM:ss',shortDate:'m/d/yy',shortDate2:'mm/dd/yyyy',mediumDate:'mmm d, yyyy',longDate:'mmmm d, yyyy',fullDate:'dddd, mmmm d, yyyy'}},fr:{dayNames:'dim lun mar mer jeu ven sam dimanche lundi mardi mercredi jeudi vendredi samedi'.split(' '),monthNames:'Jan F\u00e9v Mar Avr Mai Jui Juil Ao\u00fb Sep Oct Nov D\u00e9c Janvier F\u00e9vrier Mars Avril Mai Juin Juillet Ao\u00fbt Septembre Octobre Novembre D\u00e9cembre'.split(' '),masks:{'default':'ddd mmm dd yyyy HH:MM:ss',
|
|
104
|
-
shortDate:'d/m/yy',shortDate2:'dd/mm/yyyy',mediumDate:'d mmm, yyyy',longDate:'d mmmm, yyyy',fullDate:'dddd, d mmmm, yyyy'}}};var ia=function(
|
|
105
|
-
return{setCulture:function(
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
[1,2,3,4];break;default:
|
|
111
|
-
|
|
104
|
+
shortDate:'d/m/yy',shortDate2:'dd/mm/yyyy',mediumDate:'d mmm, yyyy',longDate:'d mmmm, yyyy',fullDate:'dddd, d mmmm, yyyy'}}};var ia=function(r,G){if(G instanceof Date)return r=r.getTime(),G=G.getTime(),Math.round(Math.abs(r-G)/864E5);throw Error('dateTo is not instance of Date() !');},Q=['us','eu','corporate'],R=function(r){d=new Date(r.getFullYear(),r.getMonth(),r.getDate());r=d.getDay()||7;d.setDate(d.getDate()+4-r);r=new Date(Date.parse(d.getFullYear(),0,1));return Math.ceil(((d-r)/864E5+1)/7)};
|
|
105
|
+
return{setCulture:function(r,G){/\-/.test(G)?(V=G,ka=G.split(/\-/)[0]):ka=G;return this},format:function(r,G,w){var va=O[ka]||O.en,Fa=null;try{Fa=P(va.masks,S)}catch(T){P=(A='undefined'!==typeof module&&module.exports?!1:!0)?require('lib/merge'):require('./../lib/merge'),Fa=P(va.masks,S)}'undefined'!=typeof O[V]&&(va=O[V],'undefined'!=typeof O[V].mask&&(Fa=P(va.masks,S)));var U=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
|
|
106
|
+
I=/[^-+\dA-Z]/g,B=function(T,pa){T=String(T);for(pa=pa||2;T.length<pa;)T='0'+T;return T};1!=arguments.length||'[object String]'!=Object.prototype.toString.call(r)||/\d/.test(r)||(G=r,r=void 0);r=r?new Date(r):new Date;if(isNaN(r))throw SyntaxError('invalid date');G=String(Fa[G]||G||Fa['default']);'UTC:'==G.slice(0,4)&&(G=G.slice(4),w=!0);var D=w?'getUTC':'get';Fa=r[D+'Date']();var n=r[D+'Day'](),y=r[D+'Month'](),z=r[D+'FullYear'](),E=r[D+'Hours'](),x=r[D+'Minutes'](),v=r[D+'Seconds']();D=r[D+'Milliseconds']();
|
|
107
|
+
var H=w?0:r.getTimezoneOffset(),M={d:Fa,dd:B(Fa),ddd:va.dayNames[n],dddd:va.dayNames[n+7],m:y+1,mm:B(y+1),mmm:va.monthNames[y],mmmm:va.monthNames[y+12],yy:String(z).slice(2),yyyy:z,h:E%12||12,hh:B(E%12||12),H:E,HH:B(E),M:x,MM:B(x),s:v,ss:B(v),l:B(D,3),L:B(D),t:12>E?'a':'p',tt:12>E?'am':'pm',T:12>E?'A':'P',TT:12>E?'AM':'PM',Z:w?'UTC':(String(r).match(U)||['']).pop().replace(I,''),o:(0<H?'-':'+')+B(100*Math.floor(Math.abs(H)/60)+Math.abs(H)%60,4),S:['th','st','nd','rd'][3<Fa%10?0:(10!=Fa%100-Fa%10)*
|
|
108
|
+
Fa%10]};return G.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(T){return T in M?M[T]:T.slice(1,T.length-1)})},countDaysTo:ia,getDaysTo:function(r,G,w){if(G instanceof Date){G=ia(r,G);var va=r.getMonth(),Fa=r.getFullYear();r=r.getDate()+1;r=new Date(Fa,va,r);va=[];for(Fa=0;Fa<G;++Fa)'undefined'!=typeof w?va.push((new Date(r)).format(w)):va.push(new Date(r)),r.setDate(r.getDate()+1);return va||[]}throw Error('dateTo is not instance of Date() !');},getDaysInMonth:function(r){var G=
|
|
109
|
+
r.getMonth();r=r.getFullYear();r=new Date(r,G,1);for(var w=[];r.getMonth()===G;)w.push(new Date(r)),r.setDate(r.getDate()+1);return w},getQuarter:function(r,G){if(1==arguments.length&&'string'==typeof arguments[0]){if(0>Q.indexOf(arguments[0].toLowerCase()))throw Error('Quarter '+arguments[0]+' code not supported !');r=new Date;G=arguments[0]}'undefined'==typeof r&&(r=new Date);'undefined'==typeof G&&(G='corporate');G=G.toLowerCase();switch(G){case 'us':var w=[4,1,2,3];break;case 'corportate':case 'eu':w=
|
|
110
|
+
[1,2,3,4];break;default:w=[1,2,3,4]}return w[Math.floor(r.getMonth()/3)]},getHalfYear:function(r,G){if(1==arguments.length&&'string'==typeof arguments[0]){if(0>Q.indexOf(arguments[0].toLowerCase()))throw Error('Quarter '+arguments[0]+' code not supported !');r=new Date;G=arguments[0]}'undefined'==typeof r&&(r=new Date);'undefined'==typeof G&&(G='corporate');G=G.toLowerCase();return 2>=r.getQuarter(G)?1:2},getWeek:function(r,G){'undefined'==typeof r&&(r=new Date);'undefined'==typeof G&&(G='ISO 8601');
|
|
111
|
+
G=G.replace(/\s+/g,'').toLowerCase();switch(G){case 'corporate':case 'eu':case 'iso8601':return R(r);default:return R(r)}},addHours:function(r,G){r=new Date(r.getTime());r.setHours(r.getHours()+G);return r},addDays:function(r,G){r=new Date(r.getTime());r.setHours(r.getHours()+24*G);return r},addYears:function(r,G){r=new Date(r.getTime());r.setFullYear(r.getFullYear()+G);return r}}}
|
|
112
112
|
'undefined'!==typeof module&&module.exports?module.exports=DateFormatHelper:'function'===typeof define&&define.amd&&define('helpers/dateFormat',[],function(){return DateFormatHelper});
|
|
113
|
-
!function(A,
|
|
114
|
-
l)!==g});if(c.nodeType)return b.grep(a,function(l){return l===c!==g});if('string'==typeof c){if(
|
|
115
|
-
Q))}function Q(){(Ka.addEventListener||'load'===A.event.type||'complete'===Ka.readyState)&&(ia(),b.ready())}function
|
|
116
|
-
c,g,l){if(ab(a)){var q,C,
|
|
117
|
-
q,C=a.nodeType,
|
|
118
|
-
(b.cssNumber[c]?'':'px'),
|
|
119
|
-
a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());return a}function
|
|
120
|
-
!c||b._data(c[l],'globalEval'))}function B(a){Y.test(a.type)&&(a.defaultChecked=a.checked)}function
|
|
121
|
-
!e.tbody)for(C=(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
l;var q=b._data(a);a=b._data(c,q);var C=q.events;if(C)for(g in delete a.handle,a.events={},C)for(q=0,l=C[g].length;l>q;q++)b.event.add(c,g,C[g][q]);a.data&&(a.data=b.extend({},a.data))}}function
|
|
125
|
-
|
|
126
|
-
1!==c.nodeType||b.cleanData(
|
|
127
|
-
g),g}function ja(a,c){return{get:function(){return a()?void delete this.get:(this.get=c).apply(this,arguments)}}}function ca(a){if(a in hd)return a;for(var c=a.charAt(0).toUpperCase()+a.slice(1),g=jd.length;g--;)if(a=jd[g]+c,a in hd)return a}function
|
|
128
|
-
g||!q)&&b._data(l,'olddisplay',q?g:b.css(l,'display'))));for(
|
|
129
|
-
q))):(C+=b.css(a,'padding'+Ya[c],!0,q),'padding'!==g&&(C+=b.css(a,'border'+Ya[c]+'Width',!0,q)));return C}function
|
|
130
|
-
q)}function La(){return A.setTimeout(function(){Fc=void 0}),Fc=b.now()}function Ia(a,c){var g={height:a},l=0;for(c=c?1:0;4>l;l+=2-c){var q=Ya[l];g['margin'+q]=g['padding'+q]=a}return c&&(g.opacity=g.width=a),g}function Ua(a,c,g){for(var l,q=(Ha.tweeners[c]||[]).concat(Ha.tweeners['*']),C=0,
|
|
131
|
-
|
|
132
|
-
easing:b.easing._default},g),originalProperties:c,originalOptions:g,startTime:Fc||La(),duration:g.duration,tweens:[],createTween:function(
|
|
133
|
-
Ha.prefilters[q].call(oa,a,g,oa.opts))return b.isFunction(c.stop)&&(b._queueHooks(oa.elem,oa.opts.queue).stop=b.proxy(c.stop,c)),c;return b.map(g,Ua,oa),b.isFunction(oa.opts.start)&&oa.opts.start.call(a,oa),b.fx.timer(b.extend(X,{elem:a,anim:oa,queue:oa.opts.queue})),oa.progress(oa.opts.progress).done(oa.opts.done,oa.opts.complete).fail(oa.opts.fail).always(oa.opts.always)}function Ja(a){return b.attr(a,'class')||''}function Za(a){return function(c,g){'string'!=typeof c&&(g=c,c='*');var l=0,q=c.toLowerCase().match(
|
|
134
|
-
[];if(b.isFunction(g))for(;c=q[l++];)'+'===c.charAt(0)?(c=c.slice(1)||'*',(a[c]=a[c]||[]).unshift(g)):(a[c]=a[c]||[]).push(g)}}function rb(a,c,g,l){function q(X){var oa;return C[X]=!0,b.each(a[X]||[],function(
|
|
135
|
-
b.extend(!0,a,g),a}function pb(a){if(!b.contains(a.ownerDocument||Ka,a))return!0;for(;a&&1===a.nodeType;){if('none'===(a.style&&a.style.display||b.css(a,'display'))||'hidden'===a.type)return!0;a=a.parentNode}return!1}function Vb(a,c,g,l){var q;if(b.isArray(c))b.each(c,function(C,
|
|
136
|
-
function Ab(a){return b.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var ub=[],Ka=A.document,fb=ub.slice,Hb=ub.concat,Ub=ub.push,pc=ub.indexOf,da={},m=da.toString,h=da.hasOwnProperty,e={},b=function(a,c){return new b.fn.init(a,c)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
113
|
+
!function(A,P){'object'==typeof module&&'object'==typeof module.exports?module.exports=A.document?P(A,!0):function(V){if(!V.document)throw Error('jQuery requires a window with a document');return P(V)}:P(A)}('undefined'!=typeof window?window:this,function(A,P){function V(a){var c=!!a&&'length'in a&&a.length,g=b.type(a);return'function'===g||b.isWindow(a)?!1:'array'===g||0===c||'number'==typeof c&&0<c&&c-1 in a}function ka(a,c,g){if(b.isFunction(c))return b.grep(a,function(l,q){return!!c.call(l,q,
|
|
114
|
+
l)!==g});if(c.nodeType)return b.grep(a,function(l){return l===c!==g});if('string'==typeof c){if(Aa.test(c))return b.filter(c,a,g);c=b.filter(c,a)}return b.grep(a,function(l){return-1<b.inArray(l,c)!==g})}function S(a,c){do a=a[c];while(a&&1!==a.nodeType);return a}function O(a){var c={};return b.each(a.match(ua)||[],function(g,l){c[l]=!0}),c}function ia(){Ka.addEventListener?(Ka.removeEventListener('DOMContentLoaded',Q),A.removeEventListener('load',Q)):(Ka.detachEvent('onreadystatechange',Q),A.detachEvent('onload',
|
|
115
|
+
Q))}function Q(){(Ka.addEventListener||'load'===A.event.type||'complete'===Ka.readyState)&&(ia(),b.ready())}function R(a,c,g){if(void 0===g&&1===a.nodeType){var l='data-'+c.replace(yb,'-$1').toLowerCase();if(g=a.getAttribute(l),'string'==typeof g){try{g='true'===g?!0:'false'===g?!1:'null'===g?null:+g+''===g?+g:sb.test(g)?b.parseJSON(g):g}catch(q){}b.data(a,c,g)}else g=void 0}return g}function r(a){for(var c in a)if(('data'!==c||!b.isEmptyObject(a[c]))&&'toJSON'!==c)return!1;return!0}function G(a,
|
|
116
|
+
c,g,l){if(ab(a)){var q,C,K=b.expando,X=a.nodeType,oa=X?b.cache:a,Ca=X?a[K]:a[K]&&K;if(Ca&&oa[Ca]&&(l||oa[Ca].data)||void 0!==g||'string'!=typeof c)return Ca||=X?a[K]=ub.pop()||b.guid++:K,oa[Ca]||(oa[Ca]=X?{}:{toJSON:b.noop}),'object'!=typeof c&&'function'!=typeof c||(l?oa[Ca]=b.extend(oa[Ca],c):oa[Ca].data=b.extend(oa[Ca].data,c)),C=oa[Ca],l||(C.data||(C.data={}),C=C.data),void 0!==g&&(C[b.camelCase(c)]=g),'string'==typeof c?(q=C[c],null==q&&(q=C[b.camelCase(c)])):q=C,q}}function w(a,c,g){if(ab(a)){var l,
|
|
117
|
+
q,C=a.nodeType,K=C?b.cache:a,X=C?a[b.expando]:b.expando;if(K[X]){if(c&&(l=g?K[X]:K[X].data)){b.isArray(c)?c=c.concat(b.map(c,b.camelCase)):c in l?c=[c]:(c=b.camelCase(c),c=c in l?[c]:c.split(' '));for(q=c.length;q--;)delete l[c[q]];if(g?!r(l):!b.isEmptyObject(l))return}(g||(delete K[X].data,r(K[X])))&&(C?b.cleanData([a],!0):e.deleteExpando||K!=K.window?delete K[X]:K[X]=void 0)}}}function va(a,c,g,l){var q,C=1,K=20,X=l?function(){return l.cur()}:function(){return b.css(a,c,'')},oa=X(),Ca=g&&g[3]||
|
|
118
|
+
(b.cssNumber[c]?'':'px'),sa=(b.cssNumber[c]||'px'!==Ca&&+oa)&&mb.exec(b.css(a,c));if(sa&&sa[3]!==Ca){Ca=Ca||sa[3];g=g||[];sa=+oa||1;do C=C||'.5',sa/=C,b.style(a,c,sa+Ca);while(C!==(C=X()/oa)&&1!==C&&--K)}return g&&(sa=+sa||+oa||0,q=g[1]?sa+(g[1]+1)*g[2]:+g[2],l&&(l.unit=Ca,l.start=sa,l.end=q)),q}function Fa(a){var c='abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video'.split(' ');
|
|
119
|
+
a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());return a}function U(a,c){var g,l,q=0,C='undefined'!=typeof a.getElementsByTagName?a.getElementsByTagName(c||'*'):'undefined'!=typeof a.querySelectorAll?a.querySelectorAll(c||'*'):void 0;if(!C)for(C=[],g=a.childNodes||a;null!=(l=g[q]);q++)!c||b.nodeName(l,c)?C.push(l):b.merge(C,U(l,c));return void 0===c||c&&b.nodeName(a,c)?b.merge([a],C):C}function I(a,c){for(var g,l=0;null!=(g=a[l]);l++)b._data(g,'globalEval',
|
|
120
|
+
!c||b._data(c[l],'globalEval'))}function B(a){Y.test(a.type)&&(a.defaultChecked=a.checked)}function D(a,c,g,l,q){for(var C,K,X,oa,Ca,sa,Ra,Va=a.length,Bb=Fa(c),db=[],Jb=0;Va>Jb;Jb++)if(K=a[Jb],K||0===K)if('object'===b.type(K))b.merge(db,K.nodeType?[K]:K);else if(gb.test(K)){oa=oa||Bb.appendChild(c.createElement('div'));Ca=(aa.exec(K)||['',''])[1].toLowerCase();Ra=Wa[Ca]||Wa._default;oa.innerHTML=Ra[1]+b.htmlPrefilter(K)+Ra[2];for(C=Ra[0];C--;)oa=oa.lastChild;if(!e.leadingWhitespace&&Oa.test(K)&&db.push(c.createTextNode(Oa.exec(K)[0])),
|
|
121
|
+
!e.tbody)for(C=(K='table'!==Ca||Pa.test(K)?'<table>'!==Ra[1]||Pa.test(K)?0:oa:oa.firstChild)&&K.childNodes.length;C--;)b.nodeName(sa=K.childNodes[C],'tbody')&&!sa.childNodes.length&&K.removeChild(sa);b.merge(db,oa.childNodes);for(oa.textContent='';oa.firstChild;)oa.removeChild(oa.firstChild);oa=Bb.lastChild}else db.push(c.createTextNode(K));oa&&Bb.removeChild(oa);e.appendChecked||b.grep(U(db,'input'),B);for(Jb=0;K=db[Jb++];)if(l&&-1<b.inArray(K,l))q&&q.push(K);else if(X=b.contains(K.ownerDocument,
|
|
122
|
+
K),oa=U(Bb.appendChild(K),'script'),X&&I(oa),g)for(C=0;K=oa[C++];)ra.test(K.type||'')&&g.push(K);return Bb}function n(){return!0}function y(){return!1}function z(){try{return Ka.activeElement}catch(a){}}function E(a,c,g,l,q,C){var K,X;if('object'==typeof c){'string'!=typeof g&&(l=l||g,g=void 0);for(X in c)E(a,X,g,l,c[X],C);return a}if(null==l&&null==q?(q=g,l=g=void 0):null==q&&('string'==typeof g?(q=l,l=void 0):(q=l,l=g,g=void 0)),!1===q)q=y;else if(!q)return a;return 1===C&&(K=q,q=function(oa){return b().off(oa),
|
|
123
|
+
K.apply(this,arguments)},q.guid=K.guid||(K.guid=b.guid++)),a.each(function(){b.event.add(this,c,q,l,g)})}function x(a,c){return b.nodeName(a,'table')&&b.nodeName(11!==c.nodeType?c:c.firstChild,'tr')?a.getElementsByTagName('tbody')[0]||a.appendChild(a.ownerDocument.createElement('tbody')):a}function v(a){return a.type=(null!==b.find.attr(a,'type'))+'/'+a.type,a}function H(a){var c=Zb.exec(a.type);return c?a.type=c[1]:a.removeAttribute('type'),a}function M(a,c){if(1===c.nodeType&&b.hasData(a)){var g,
|
|
124
|
+
l;var q=b._data(a);a=b._data(c,q);var C=q.events;if(C)for(g in delete a.handle,a.events={},C)for(q=0,l=C[g].length;l>q;q++)b.event.add(c,g,C[g][q]);a.data&&(a.data=b.extend({},a.data))}}function T(a,c,g,l){c=Hb.apply([],c);var q,C,K,X=0,oa=a.length,Ca=oa-1,sa=c[0],Ra=b.isFunction(sa);if(Ra||1<oa&&'string'==typeof sa&&!e.checkClone&&Kb.test(sa))return a.each(function(Bb){var db=a.eq(Bb);Ra&&(c[0]=sa.call(this,Bb,db.html()));T(db,c,g,l)});if(oa&&(K=D(c,a[0].ownerDocument,!1,a,l),q=K.firstChild,1===
|
|
125
|
+
K.childNodes.length&&(K=q),q||l)){var Va=b.map(U(K,'script'),v);for(C=Va.length;oa>X;X++)q=K,X!==Ca&&(q=b.clone(q,!0,!0),C&&b.merge(Va,U(q,'script'))),g.call(a[X],q,X);if(C)for(K=Va[Va.length-1].ownerDocument,b.map(Va,H),X=0;C>X;X++)q=Va[X],ra.test(q.type||'')&&!b._data(q,'globalEval')&&b.contains(K,q)&&(q.src?b._evalUrl&&b._evalUrl(q.src):b.globalEval((q.text||q.textContent||q.innerHTML||'').replace(Xb,'')));K=q=null}return a}function pa(a,c,g){for(var l=c?b.filter(c,a):a,q=0;null!=(c=l[q]);q++)g||
|
|
126
|
+
1!==c.nodeType||b.cleanData(U(c)),c.parentNode&&(g&&b.contains(c.ownerDocument,c)&&I(U(c,'script')),c.parentNode.removeChild(c));return a}function Ea(a,c){a=b(c.createElement(a)).appendTo(c.body);c=b.css(a[0],'display');return a.detach(),c}function W(a){var c=Ka,g=Nb[a];return g||(g=Ea(a,c),'none'!==g&&g||(fc=(fc||b("<iframe frameborder='0' width='0' height='0'/>")).appendTo(c.documentElement),c=(fc[0].contentWindow||fc[0].contentDocument).document,c.write(),c.close(),g=Ea(a,c),fc.detach()),Nb[a]=
|
|
127
|
+
g),g}function ja(a,c){return{get:function(){return a()?void delete this.get:(this.get=c).apply(this,arguments)}}}function ca(a){if(a in hd)return a;for(var c=a.charAt(0).toUpperCase()+a.slice(1),g=jd.length;g--;)if(a=jd[g]+c,a in hd)return a}function wa(a,c){for(var g,l,q,C=[],K=0,X=a.length;X>K;K++)l=a[K],l.style&&(C[K]=b._data(l,'olddisplay'),g=l.style.display,c?(C[K]||'none'!==g||(l.style.display=''),''===l.style.display&&cb(l)&&(C[K]=b._data(l,'olddisplay',W(l.nodeName)))):(q=cb(l),(g&&'none'!==
|
|
128
|
+
g||!q)&&b._data(l,'olddisplay',q?g:b.css(l,'display'))));for(K=0;X>K;K++)l=a[K],l.style&&(c&&'none'!==l.style.display&&''!==l.style.display||(l.style.display=c?C[K]||'':'none'));return a}function la(a,c,g){return(a=vd.exec(c))?Math.max(0,a[1]-(g||0))+(a[2]||'px'):c}function za(a,c,g,l,q){c=g===(l?'border':'content')?4:'width'===c?1:0;for(var C=0;4>c;c+=2)'margin'===g&&(C+=b.css(a,g+Ya[c],!0,q)),l?('content'===g&&(C-=b.css(a,'padding'+Ya[c],!0,q)),'margin'!==g&&(C-=b.css(a,'border'+Ya[c]+'Width',!0,
|
|
129
|
+
q))):(C+=b.css(a,'padding'+Ya[c],!0,q),'padding'!==g&&(C+=b.css(a,'border'+Ya[c]+'Width',!0,q)));return C}function Ba(a,c,g){var l=!0,q='width'===c?a.offsetWidth:a.offsetHeight,C=rc(a),K=e.boxSizing&&'border-box'===b.css(a,'boxSizing',!1,C);if(0>=q||null==q){if(q=sc(a,c,C),(0>q||null==q)&&(q=a.style[c]),mc.test(q))return q;l=K&&(e.boxSizingReliable()||q===a.style[c]);q=parseFloat(q)||0}return q+za(a,c,g||(K?'border':'content'),l,C)+'px'}function Na(a,c,g,l,q){return new Na.prototype.init(a,c,g,l,
|
|
130
|
+
q)}function La(){return A.setTimeout(function(){Fc=void 0}),Fc=b.now()}function Ia(a,c){var g={height:a},l=0;for(c=c?1:0;4>l;l+=2-c){var q=Ya[l];g['margin'+q]=g['padding'+q]=a}return c&&(g.opacity=g.width=a),g}function Ua(a,c,g){for(var l,q=(Ha.tweeners[c]||[]).concat(Ha.tweeners['*']),C=0,K=q.length;K>C;C++)if(l=q[C].call(g,c,a))return l}function Qa(a,c){var g,l,q,C,K;for(g in a)if(l=b.camelCase(g),q=c[l],C=a[g],b.isArray(C)&&(q=C[1],C=a[g]=C[0]),g!==l&&(a[l]=C,delete a[g]),K=b.cssHooks[l],K&&'expand'in
|
|
131
|
+
K)for(g in C=K.expand(C),delete a[l],C)g in a||(a[g]=C[g],c[g]=q);else c[l]=q}function Ha(a,c,g){var l,q=0,C=Ha.prefilters.length,K=b.Deferred().always(function(){delete X.elem}),X=function(){if(l)return!1;var Ca=Fc||La();Ca=Math.max(0,oa.startTime+oa.duration-Ca);for(var sa=1-(Ca/oa.duration||0),Ra=0,Va=oa.tweens.length;Va>Ra;Ra++)oa.tweens[Ra].run(sa);return K.notifyWith(a,[oa,sa,Ca]),1>sa&&Va?Ca:(K.resolveWith(a,[oa]),!1)},oa=K.promise({elem:a,props:b.extend({},c),opts:b.extend(!0,{specialEasing:{},
|
|
132
|
+
easing:b.easing._default},g),originalProperties:c,originalOptions:g,startTime:Fc||La(),duration:g.duration,tweens:[],createTween:function(Ca,sa){Ca=b.Tween(a,oa.opts,Ca,sa,oa.opts.specialEasing[Ca]||oa.opts.easing);return oa.tweens.push(Ca),Ca},stop:function(Ca){var sa=0,Ra=Ca?oa.tweens.length:0;if(l)return this;for(l=!0;Ra>sa;sa++)oa.tweens[sa].run(1);return Ca?(K.notifyWith(a,[oa,1,0]),K.resolveWith(a,[oa,Ca])):K.rejectWith(a,[oa,Ca]),this}});g=oa.props;for(Qa(g,oa.opts.specialEasing);C>q;q++)if(c=
|
|
133
|
+
Ha.prefilters[q].call(oa,a,g,oa.opts))return b.isFunction(c.stop)&&(b._queueHooks(oa.elem,oa.opts.queue).stop=b.proxy(c.stop,c)),c;return b.map(g,Ua,oa),b.isFunction(oa.opts.start)&&oa.opts.start.call(a,oa),b.fx.timer(b.extend(X,{elem:a,anim:oa,queue:oa.opts.queue})),oa.progress(oa.opts.progress).done(oa.opts.done,oa.opts.complete).fail(oa.opts.fail).always(oa.opts.always)}function Ja(a){return b.attr(a,'class')||''}function Za(a){return function(c,g){'string'!=typeof c&&(g=c,c='*');var l=0,q=c.toLowerCase().match(ua)||
|
|
134
|
+
[];if(b.isFunction(g))for(;c=q[l++];)'+'===c.charAt(0)?(c=c.slice(1)||'*',(a[c]=a[c]||[]).unshift(g)):(a[c]=a[c]||[]).push(g)}}function rb(a,c,g,l){function q(X){var oa;return C[X]=!0,b.each(a[X]||[],function(Ca,sa){Ca=sa(c,g,l);return'string'!=typeof Ca||K||C[Ca]?K?!(oa=Ca):void 0:(c.dataTypes.unshift(Ca),q(Ca),!1)}),oa}var C={},K=a===Vc;return q(c.dataTypes[0])||!C['*']&&q('*')}function $a(a,c){var g,l,q=b.ajaxSettings.flatOptions||{};for(l in c)void 0!==c[l]&&((q[l]?a:g||={})[l]=c[l]);return g&&
|
|
135
|
+
b.extend(!0,a,g),a}function pb(a){if(!b.contains(a.ownerDocument||Ka,a))return!0;for(;a&&1===a.nodeType;){if('none'===(a.style&&a.style.display||b.css(a,'display'))||'hidden'===a.type)return!0;a=a.parentNode}return!1}function Vb(a,c,g,l){var q;if(b.isArray(c))b.each(c,function(C,K){g||wd.test(a)?l(a,K):Vb(a+'['+('object'==typeof K&&null!=K?C:'')+']',K,g,l)});else if(g||'object'!==b.type(c))l(a,c);else for(q in c)Vb(a+'['+q+']',c[q],g,l)}function zb(){try{return new A.XMLHttpRequest}catch(a){}}function nb(){try{return new A.ActiveXObject('Microsoft.XMLHTTP')}catch(a){}}
|
|
136
|
+
function Ab(a){return b.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var ub=[],Ka=A.document,fb=ub.slice,Hb=ub.concat,Ub=ub.push,pc=ub.indexOf,da={},m=da.toString,h=da.hasOwnProperty,e={},b=function(a,c){return new b.fn.init(a,c)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^-ms-/,k=/-([\da-z])/gi,N=function(a,c){return c.toUpperCase()};b.fn=b.prototype={jquery:'1.12.4',constructor:b,selector:'',length:0,toArray:function(){return fb.call(this)},get:function(a){return null!=a?0>a?this[a+
|
|
137
137
|
this.length]:this[a]:fb.call(this)},pushStack:function(a){a=b.merge(this.constructor(),a);return a.prevObject=this,a.context=this.context,a},each:function(a){return b.each(this,a)},map:function(a){return this.pushStack(b.map(this,function(c,g){return a.call(c,g,c)}))},slice:function(){return this.pushStack(fb.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var c=this.length;a=+a+(0>a?c:0);return this.pushStack(0<=a&&c>a?[this[a]]:[])},
|
|
138
|
-
end:function(){return this.prevObject||this.constructor()},push:Ub,sort:ub.sort,splice:ub.splice};b.extend=b.fn.extend=function(){var a,c,g,l,q=arguments[0]||{},C=1,
|
|
139
|
-
q[c]=b.extend(X,l,
|
|
138
|
+
end:function(){return this.prevObject||this.constructor()},push:Ub,sort:ub.sort,splice:ub.splice};b.extend=b.fn.extend=function(){var a,c,g,l,q=arguments[0]||{},C=1,K=arguments.length,X=!1;'boolean'==typeof q&&(X=q,q=arguments[C]||{},C++);'object'==typeof q||b.isFunction(q)||(q={});for(C===K&&(q=this,C--);K>C;C++)if(null!=(g=arguments[C]))for(c in g){var oa=q[c];var Ca=g[c];q!==Ca&&(X&&Ca&&(b.isPlainObject(Ca)||(a=b.isArray(Ca)))?(a?(a=!1,l=oa&&b.isArray(oa)?oa:[]):l=oa&&b.isPlainObject(oa)?oa:{},
|
|
139
|
+
q[c]=b.extend(X,l,Ca)):void 0!==Ca&&(q[c]=Ca))}return q};b.extend({expando:'jQuery'+('1.12.4'+Math.random()).replace(/\D/g,''),isReady:!0,error:function(a){throw Error(a);},noop:function(){},isFunction:function(a){return'function'===b.type(a)},isArray:Array.isArray||function(a){return'array'===b.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var c=a&&a.toString();return!b.isArray(a)&&0<=c-parseFloat(c)+1},isEmptyObject:function(a){for(var c in a)return!1;return!0},
|
|
140
140
|
isPlainObject:function(a){var c;if(!a||'object'!==b.type(a)||a.nodeType||b.isWindow(a))return!1;try{if(a.constructor&&!h.call(a,'constructor')&&!h.call(a.constructor.prototype,'isPrototypeOf'))return!1}catch(g){return!1}if(!e.ownFirst)for(c in a)return h.call(a,c);for(c in a);return void 0===c||h.call(a,c)},type:function(a){return null==a?a+'':'object'==typeof a||'function'==typeof a?da[m.call(a)]||'object':typeof a},globalEval:function(a){a&&b.trim(a)&&(A.execScript||function(c){A.eval.call(A,c)})(a)},
|
|
141
|
-
camelCase:function(a){return a.replace(
|
|
142
|
-
a,g);var l=c.length;for(g=g?0>g?Math.max(0,l+g):g:0;l>g;g++)if(g in c&&c[g]===a)return g}return-1},merge:function(a,c){for(var g=+c.length,l=0,q=a.length;g>l;)a[q++]=c[l++];if(g!==g)for(;void 0!==c[l];)a[q++]=c[l++];return a.length=q,a},grep:function(a,c,g){for(var l=[],q=0,C=a.length,
|
|
143
|
-
C)},guid:1,proxy:function(a,c){var g,l,q;return'string'==typeof c&&(q=a[c],c=a,a=q),b.isFunction(a)?(g=fb.call(arguments,2),l=function(){return a.apply(c||this,g.concat(fb.call(arguments)))},l.guid=a.guid=a.guid||b.guid++,l):void 0},now:function(){return+new Date},support:e});'function'==typeof Symbol&&(b.fn[Symbol.iterator]=ub[Symbol.iterator]);b.each('Boolean Number String Function Array Date RegExp Object Error Symbol'.split(' '),function(a,c){da['[object '+c+']']=c.toLowerCase()});var
|
|
144
|
-
ea,na,
|
|
145
|
-
ea.getElementsByClassName)return Ac.apply(na,ea.getElementsByClassName(Ga)),na}if(!(!Pb.qsa||ac[L+' ']||Tb&&Tb.test(L))){if(1!==kb){Xa=ea;var ob=L}else if('object'!==ea.nodeName.toLowerCase()){(Sa=ea.getAttribute('id'))?Sa=Sa.replace(yd,'\\$&'):ea.setAttribute('id',Sa=Cb);bb=Mc(L);Ga=bb.length;for(Ma=kd.test(Sa)?'#'+Sa:"[id='"+Sa+"']";Ga--;)bb[Ga]=Ma+' '+Va(bb[Ga]);ob=bb.join(',');Xa=Wc.test(L)&&
|
|
146
|
-
Cb&&ea.removeAttribute('id')}}}return gc(L.replace(Nc,'$1'),ea,na,
|
|
147
|
-
(~ea.sourceIndex||-2147483648)-(~L.sourceIndex||-2147483648);if(
|
|
148
|
-
na[Ga]))})})}function
|
|
149
|
-
Sa[Cb]||(Sa[Cb]={}),ob=ib[Sa.uniqueID]||(ib[Sa.uniqueID]={}),(kb=ob[
|
|
150
|
-
!Ga[Cb]&&(Ga=jc(Ga,Ma)),l(function(Sa,bb,Xa,kb){var ob,ib=[],Lb=[],bc=bb.length,Yb;if(!(Yb=Sa)){Yb=ea||'*';for(var wb=Xa.nodeType?[Xa]:Xa,tc=[],hc=0,qc=wb.length;qc>hc;hc++)c(Yb,wb[hc],tc);Yb=tc}Yb=!L||!Sa&&ea?Yb:Jb(Yb,ib,L,Xa,kb);wb=na?Ga||(Sa?L:bc||
|
|
151
|
-
wb.length;Xa--;)(ob=wb[Xa])&&-1<(cc=Ga?Cc(Sa,ob):ib[Xa])&&(Sa[cc]=!(bb[cc]=ob))}}else wb=Jb(wb===bb?wb.splice(bc,wb.length):wb),Ga?Ga(null,bb,wb,kb):Ac.apply(bb,wb)})}function Gc(L){var ea,na,
|
|
152
|
-
[Bb(db(kb),Ma)];else{if(Ma=Gb.filter[L[Sa].type].apply(null,L[Sa].matches),Ma[Cb]){for(na=++Sa;
|
|
153
|
-
tc?1:Math.random()||.1,cc=hc.length;for(kb&&(Db=Sa===vb||Sa||kb);bc!==cc&&null!=(ob=hc[bc]);bc++){if(
|
|
154
|
-
return na?l(Ga):Ga}var wc,xb,gc,Db,Ob,Rb,vb,ic,ec,Tb,dc,Sb,nc,Cb='sizzle'+1*new Date,$b=a.document,Wb=0,Qb=0,Hc=g(),oc=g(),ac=g(),uc=function(L,ea){return L===ea&&(Rb=!0),0},vc={}.hasOwnProperty,lc=[],Yc=lc.pop,zd=lc.push,Ac=lc.push,ld=lc.slice,Cc=function(L,ea){for(var na=0,
|
|
141
|
+
camelCase:function(a){return a.replace(u,'ms-').replace(k,N)},nodeName:function(a,c){return a.nodeName&&a.nodeName.toLowerCase()===c.toLowerCase()},each:function(a,c){var g,l=0;if(V(a))for(g=a.length;g>l&&!1!==c.call(a[l],l,a[l]);l++);else for(l in a)if(!1===c.call(a[l],l,a[l]))break;return a},trim:function(a){return null==a?'':(a+'').replace(p,'')},makeArray:function(a,c){c=c||[];return null!=a&&(V(Object(a))?b.merge(c,'string'==typeof a?[a]:a):Ub.call(c,a)),c},inArray:function(a,c,g){if(c){if(pc)return pc.call(c,
|
|
142
|
+
a,g);var l=c.length;for(g=g?0>g?Math.max(0,l+g):g:0;l>g;g++)if(g in c&&c[g]===a)return g}return-1},merge:function(a,c){for(var g=+c.length,l=0,q=a.length;g>l;)a[q++]=c[l++];if(g!==g)for(;void 0!==c[l];)a[q++]=c[l++];return a.length=q,a},grep:function(a,c,g){for(var l=[],q=0,C=a.length,K=!g;C>q;q++)g=!c(a[q],q),g!==K&&l.push(a[q]);return l},map:function(a,c,g){var l,q=0,C=[];if(V(a))for(l=a.length;l>q;q++){var K=c(a[q],q,g);null!=K&&C.push(K)}else for(q in a)K=c(a[q],q,g),null!=K&&C.push(K);return Hb.apply([],
|
|
143
|
+
C)},guid:1,proxy:function(a,c){var g,l,q;return'string'==typeof c&&(q=a[c],c=a,a=q),b.isFunction(a)?(g=fb.call(arguments,2),l=function(){return a.apply(c||this,g.concat(fb.call(arguments)))},l.guid=a.guid=a.guid||b.guid++,l):void 0},now:function(){return+new Date},support:e});'function'==typeof Symbol&&(b.fn[Symbol.iterator]=ub[Symbol.iterator]);b.each('Boolean Number String Function Array Date RegExp Object Error Symbol'.split(' '),function(a,c){da['[object '+c+']']=c.toLowerCase()});var F=function(a){function c(L,
|
|
144
|
+
ea,na,ya){var Ga,Ma,Sa,bb,Xa=ea&&ea.ownerDocument,kb=ea?ea.nodeType:9;if(na=na||[],'string'!=typeof L||!L||1!==kb&&9!==kb&&11!==kb)return na;if(!ya&&((ea?ea.ownerDocument||ea:$b)!==vb&&Bc(ea),ea=ea||vb,ec)){if(11!==kb&&(bb=xd.exec(L)))if(Ga=bb[1])if(9===kb){if(!(Ma=ea.getElementById(Ga)))return na;if(Ma.id===Ga)return na.push(Ma),na}else{if(Xa&&(Ma=Xa.getElementById(Ga))&&nc(ea,Ma)&&Ma.id===Ga)return na.push(Ma),na}else{if(bb[2])return Ac.apply(na,ea.getElementsByTagName(L)),na;if((Ga=bb[3])&&Pb.getElementsByClassName&&
|
|
145
|
+
ea.getElementsByClassName)return Ac.apply(na,ea.getElementsByClassName(Ga)),na}if(!(!Pb.qsa||ac[L+' ']||Tb&&Tb.test(L))){if(1!==kb){Xa=ea;var ob=L}else if('object'!==ea.nodeName.toLowerCase()){(Sa=ea.getAttribute('id'))?Sa=Sa.replace(yd,'\\$&'):ea.setAttribute('id',Sa=Cb);bb=Mc(L);Ga=bb.length;for(Ma=kd.test(Sa)?'#'+Sa:"[id='"+Sa+"']";Ga--;)bb[Ga]=Ma+' '+Va(bb[Ga]);ob=bb.join(',');Xa=Wc.test(L)&&sa(ea.parentNode)||ea}if(ob)try{return Ac.apply(na,Xa.querySelectorAll(ob)),na}catch(ib){}finally{Sa===
|
|
146
|
+
Cb&&ea.removeAttribute('id')}}}return gc(L.replace(Nc,'$1'),ea,na,ya)}function g(){function L(na,ya){return ea.push(na+' ')>Gb.cacheLength&&delete L[ea.shift()],L[na+' ']=ya}var ea=[];return L}function l(L){return L[Cb]=!0,L}function q(L){var ea=vb.createElement('div');try{return!!L(ea)}catch(na){return!1}finally{ea.parentNode&&ea.parentNode.removeChild(ea)}}function C(L,ea){L=L.split('|');for(var na=L.length;na--;)Gb.attrHandle[L[na]]=ea}function K(L,ea){var na=ea&&L,ya=na&&1===L.nodeType&&1===ea.nodeType&&
|
|
147
|
+
(~ea.sourceIndex||-2147483648)-(~L.sourceIndex||-2147483648);if(ya)return ya;if(na)for(;na=na.nextSibling;)if(na===ea)return-1;return L?1:-1}function X(L){return function(ea){return'input'===ea.nodeName.toLowerCase()&&ea.type===L}}function oa(L){return function(ea){var na=ea.nodeName.toLowerCase();return('input'===na||'button'===na)&&ea.type===L}}function Ca(L){return l(function(ea){return ea=+ea,l(function(na,ya){for(var Ga,Ma=L([],na.length,ea),Sa=Ma.length;Sa--;)na[Ga=Ma[Sa]]&&(na[Ga]=!(ya[Ga]=
|
|
148
|
+
na[Ga]))})})}function sa(L){return L&&'undefined'!=typeof L.getElementsByTagName&&L}function Ra(){}function Va(L){for(var ea=0,na=L.length,ya='';na>ea;ea++)ya+=L[ea].value;return ya}function Bb(L,ea,na){var ya=ea.dir,Ga=na&&'parentNode'===ya,Ma=Qb++;return ea.first?function(Sa,bb,Xa){for(;Sa=Sa[ya];)if(1===Sa.nodeType||Ga)return L(Sa,bb,Xa)}:function(Sa,bb,Xa){var kb,ob,ib,Lb=[Wb,Ma];if(Xa)for(;Sa=Sa[ya];){if((1===Sa.nodeType||Ga)&&L(Sa,bb,Xa))return!0}else for(;Sa=Sa[ya];)if(1===Sa.nodeType||Ga){if(ib=
|
|
149
|
+
Sa[Cb]||(Sa[Cb]={}),ob=ib[Sa.uniqueID]||(ib[Sa.uniqueID]={}),(kb=ob[ya])&&kb[0]===Wb&&kb[1]===Ma)return Lb[2]=kb[2];if(ob[ya]=Lb,Lb[2]=L(Sa,bb,Xa))return!0}}}function db(L){return 1<L.length?function(ea,na,ya){for(var Ga=L.length;Ga--;)if(!L[Ga](ea,na,ya))return!1;return!0}:L[0]}function Jb(L,ea,na,ya,Ga){for(var Ma,Sa=[],bb=0,Xa=L.length,kb=null!=ea;Xa>bb;bb++)(Ma=L[bb])&&(na&&!na(Ma,ya,Ga)||(Sa.push(Ma),kb&&ea.push(bb)));return Sa}function jc(L,ea,na,ya,Ga,Ma){return ya&&!ya[Cb]&&(ya=jc(ya)),Ga&&
|
|
150
|
+
!Ga[Cb]&&(Ga=jc(Ga,Ma)),l(function(Sa,bb,Xa,kb){var ob,ib=[],Lb=[],bc=bb.length,Yb;if(!(Yb=Sa)){Yb=ea||'*';for(var wb=Xa.nodeType?[Xa]:Xa,tc=[],hc=0,qc=wb.length;qc>hc;hc++)c(Yb,wb[hc],tc);Yb=tc}Yb=!L||!Sa&&ea?Yb:Jb(Yb,ib,L,Xa,kb);wb=na?Ga||(Sa?L:bc||ya)?[]:bb:Yb;if(na&&na(Yb,wb,Xa,kb),ya){var cc=Jb(wb,Lb);ya(cc,[],Xa,kb);for(Xa=cc.length;Xa--;)(ob=cc[Xa])&&(wb[Lb[Xa]]=!(Yb[Lb[Xa]]=ob))}if(Sa){if(Ga||L){if(Ga){cc=[];for(Xa=wb.length;Xa--;)(ob=wb[Xa])&&cc.push(Yb[Xa]=ob);Ga(null,wb=[],cc,kb)}for(Xa=
|
|
151
|
+
wb.length;Xa--;)(ob=wb[Xa])&&-1<(cc=Ga?Cc(Sa,ob):ib[Xa])&&(Sa[cc]=!(bb[cc]=ob))}}else wb=Jb(wb===bb?wb.splice(bc,wb.length):wb),Ga?Ga(null,bb,wb,kb):Ac.apply(bb,wb)})}function Gc(L){var ea,na,ya=L.length,Ga=Gb.relative[L[0].type];var Ma=Ga||Gb.relative[' '];for(var Sa=Ga?1:0,bb=Bb(function(ob){return ob===ea},Ma,!0),Xa=Bb(function(ob){return-1<Cc(ea,ob)},Ma,!0),kb=[function(ob,ib,Lb){ob=!Ga&&(Lb||ib!==Db)||((ea=ib).nodeType?bb(ob,ib,Lb):Xa(ob,ib,Lb));return ea=null,ob}];ya>Sa;Sa++)if(Ma=Gb.relative[L[Sa].type])kb=
|
|
152
|
+
[Bb(db(kb),Ma)];else{if(Ma=Gb.filter[L[Sa].type].apply(null,L[Sa].matches),Ma[Cb]){for(na=++Sa;ya>na&&!Gb.relative[L[na].type];na++);return jc(1<Sa&&db(kb),1<Sa&&Va(L.slice(0,Sa-1).concat({value:' '===L[Sa-2].type?'*':''})).replace(Nc,'$1'),Ma,na>Sa&&Gc(L.slice(Sa,na)),ya>na&&Gc(L=L.slice(na)),ya>na&&Va(L))}kb.push(Ma)}return db(kb)}function kc(L,ea){var na=0<ea.length,ya=0<L.length,Ga=function(Ma,Sa,bb,Xa,kb){var ob,ib,Lb=0,bc='0',Yb=Ma&&[],wb=[],tc=Db,hc=Ma||ya&&Gb.find.TAG('*',kb),qc=Wb+=null==
|
|
153
|
+
tc?1:Math.random()||.1,cc=hc.length;for(kb&&(Db=Sa===vb||Sa||kb);bc!==cc&&null!=(ob=hc[bc]);bc++){if(ya&&ob){var Xc=0;for(Sa||ob.ownerDocument===vb||(Bc(ob),bb=!ec);ib=L[Xc++];)if(ib(ob,Sa||vb,bb)){Xa.push(ob);break}kb&&(Wb=qc)}na&&((ob=!ib&&ob)&&Lb--,Ma&&Yb.push(ob))}if(Lb+=bc,na&&bc!==Lb){for(Xc=0;ib=ea[Xc++];)ib(Yb,wb,Sa,bb);if(Ma){if(0<Lb)for(;bc--;)Yb[bc]||wb[bc]||(wb[bc]=Yc.call(Xa));wb=Jb(wb)}Ac.apply(Xa,wb);kb&&!Ma&&0<wb.length&&1<Lb+ea.length&&c.uniqueSort(Xa)}return kb&&(Wb=qc,Db=tc),Yb};
|
|
154
|
+
return na?l(Ga):Ga}var wc,xb,gc,Db,Ob,Rb,vb,ic,ec,Tb,dc,Sb,nc,Cb='sizzle'+1*new Date,$b=a.document,Wb=0,Qb=0,Hc=g(),oc=g(),ac=g(),uc=function(L,ea){return L===ea&&(Rb=!0),0},vc={}.hasOwnProperty,lc=[],Yc=lc.pop,zd=lc.push,Ac=lc.push,ld=lc.slice,Cc=function(L,ea){for(var na=0,ya=L.length;ya>na;na++)if(L[na]===ea)return na;return-1},Ad=RegExp('[\\x20\\t\\r\\n\\f]+','g'),Nc=RegExp('^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$','g'),Bd=RegExp('^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*'),
|
|
155
155
|
Cd=RegExp('^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*'),Dd=RegExp('=[\\x20\\t\\r\\n\\f]*([^\\]\'"]*?)[\\x20\\t\\r\\n\\f]*\\]','g'),Ed=RegExp(':((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)'),
|
|
156
156
|
kd=RegExp('^(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+$'),Oc={ID:RegExp('^#((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)'),CLASS:RegExp('^\\.((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)'),TAG:RegExp('^((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+|[*])'),ATTR:RegExp('^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]'),PSEUDO:RegExp('^:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)'),
|
|
157
157
|
CHILD:RegExp('^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)','i'),bool:RegExp('^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$','i'),needsContext:RegExp('^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)',
|
|
158
158
|
'i')},Fd=/^(?:input|select|textarea|button)$/i,Gd=/^h\d$/i,Kc=/^[^{]+\{\s*\[native \w/,xd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Wc=/[+~]/,yd=/'|\\/g,xc=RegExp('\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)','ig'),yc=function(L,ea,na){L='0x'+ea-65536;return L!==L||na?ea:0>L?String.fromCharCode(L+65536):String.fromCharCode(L>>10|55296,1023&L|56320)},md=function(){Bc()};try{Ac.apply(lc=ld.call($b.childNodes),$b.childNodes),lc[$b.childNodes.length].nodeType}catch(L){Ac={apply:lc.length?
|
|
159
|
-
function(ea,na){zd.apply(ea,ld.call(na))}:function(ea,na){for(var
|
|
160
|
-
na.attachEvent('onunload',md)),Pb.attributes=q(function(
|
|
161
|
-
Ga.getElementById(
|
|
162
|
-
Ga){var Ma=[],Sa=0;Ga=Ga.getElementsByTagName(
|
|
163
|
-
Tb.push('[*^$]=[\\x20\\t\\r\\n\\f]*(?:\'\'|"")');
|
|
164
|
-
'hidden');
|
|
165
|
-
Tb=Tb.length&&new RegExp(Tb.join('|')),dc=dc.length&&new RegExp(dc.join('|')),ea=Kc.test(ic.compareDocumentPosition),nc=ea||Kc.test(ic.contains)?function(
|
|
166
|
-
!Ga.compareDocumentPosition;return Ma?Ma:(Ma=(
|
|
167
|
-
Ga);for(;
|
|
168
|
-
c(ea,vb,null,[L]).length};c.contains=function(L,ea){return(L.ownerDocument||L)!==vb&&Bc(L),nc(L,ea)};c.attr=function(L,ea){(L.ownerDocument||L)!==vb&&Bc(L);var na=Gb.attrHandle[ea.toLowerCase()];na=na&&vc.call(Gb.attrHandle,ea.toLowerCase())?na(L,ea,!ec):void 0;return void 0!==na?na:Pb.attributes||!ec?L.getAttribute(ea):(na=L.getAttributeNode(ea))&&na.specified?na.value:null};c.error=function(L){throw Error('Syntax error, unrecognized expression: '+L);};c.uniqueSort=function(L){var ea,na=[],
|
|
169
|
-
Ga=0;if(Rb=!Pb.detectDuplicates,Ob=!Pb.sortStable&&L.slice(0),L.sort(uc),Rb){for(;ea=L[Ga++];)ea===L[Ga]&&(
|
|
159
|
+
function(ea,na){zd.apply(ea,ld.call(na))}:function(ea,na){for(var ya=ea.length,Ga=0;ea[ya++]=na[Ga++];);ea.length=ya-1}}}var Pb=c.support={};var Hd=c.isXML=function(L){return(L=L&&(L.ownerDocument||L).documentElement)?'HTML'!==L.nodeName:!1};var Bc=c.setDocument=function(L){var ea,na;L=L?L.ownerDocument||L:$b;return L!==vb&&9===L.nodeType&&L.documentElement?(vb=L,ic=vb.documentElement,ec=!Hd(vb),(na=vb.defaultView)&&na.top!==na&&(na.addEventListener?na.addEventListener('unload',md,!1):na.attachEvent&&
|
|
160
|
+
na.attachEvent('onunload',md)),Pb.attributes=q(function(ya){return ya.className='i',!ya.getAttribute('className')}),Pb.getElementsByTagName=q(function(ya){return ya.appendChild(vb.createComment('')),!ya.getElementsByTagName('*').length}),Pb.getElementsByClassName=Kc.test(vb.getElementsByClassName),Pb.getById=q(function(ya){return ic.appendChild(ya).id=Cb,!vb.getElementsByName||!vb.getElementsByName(Cb).length}),Pb.getById?(Gb.find.ID=function(ya,Ga){if('undefined'!=typeof Ga.getElementById&&ec)return(ya=
|
|
161
|
+
Ga.getElementById(ya))?[ya]:[]},Gb.filter.ID=function(ya){var Ga=ya.replace(xc,yc);return function(Ma){return Ma.getAttribute('id')===Ga}}):(delete Gb.find.ID,Gb.filter.ID=function(ya){var Ga=ya.replace(xc,yc);return function(Ma){return(Ma='undefined'!=typeof Ma.getAttributeNode&&Ma.getAttributeNode('id'))&&Ma.value===Ga}}),Gb.find.TAG=Pb.getElementsByTagName?function(ya,Ga){return'undefined'!=typeof Ga.getElementsByTagName?Ga.getElementsByTagName(ya):Pb.qsa?Ga.querySelectorAll(ya):void 0}:function(ya,
|
|
162
|
+
Ga){var Ma=[],Sa=0;Ga=Ga.getElementsByTagName(ya);if('*'===ya){for(;ya=Ga[Sa++];)1===ya.nodeType&&Ma.push(ya);return Ma}return Ga},Gb.find.CLASS=Pb.getElementsByClassName&&function(ya,Ga){return'undefined'!=typeof Ga.getElementsByClassName&&ec?Ga.getElementsByClassName(ya):void 0},dc=[],Tb=[],(Pb.qsa=Kc.test(vb.querySelectorAll))&&(q(function(ya){ic.appendChild(ya).innerHTML="<a id='"+Cb+"'></a><select id='"+Cb+"-\r\\' msallowcapture=''><option selected=''></option></select>";ya.querySelectorAll("[msallowcapture^='']").length&&
|
|
163
|
+
Tb.push('[*^$]=[\\x20\\t\\r\\n\\f]*(?:\'\'|"")');ya.querySelectorAll('[selected]').length||Tb.push('\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)');ya.querySelectorAll('[id~='+Cb+'-]').length||Tb.push('~=');ya.querySelectorAll(':checked').length||Tb.push(':checked');ya.querySelectorAll('a#'+Cb+'+*').length||Tb.push('.#.+[+~]')}),q(function(ya){var Ga=vb.createElement('input');Ga.setAttribute('type',
|
|
164
|
+
'hidden');ya.appendChild(Ga).setAttribute('name','D');ya.querySelectorAll('[name=d]').length&&Tb.push('name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=');ya.querySelectorAll(':enabled').length||Tb.push(':enabled',':disabled');ya.querySelectorAll('*,:x');Tb.push(',.*:')})),(Pb.matchesSelector=Kc.test(Sb=ic.matches||ic.webkitMatchesSelector||ic.mozMatchesSelector||ic.oMatchesSelector||ic.msMatchesSelector))&&q(function(ya){Pb.disconnectedMatch=Sb.call(ya,'div');Sb.call(ya,"[s!='']:x");dc.push('!=',':((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)')}),
|
|
165
|
+
Tb=Tb.length&&new RegExp(Tb.join('|')),dc=dc.length&&new RegExp(dc.join('|')),ea=Kc.test(ic.compareDocumentPosition),nc=ea||Kc.test(ic.contains)?function(ya,Ga){var Ma=9===ya.nodeType?ya.documentElement:ya;Ga=Ga&&Ga.parentNode;return ya===Ga||!(!Ga||1!==Ga.nodeType||!(Ma.contains?Ma.contains(Ga):ya.compareDocumentPosition&&16&ya.compareDocumentPosition(Ga)))}:function(ya,Ga){if(Ga)for(;Ga=Ga.parentNode;)if(Ga===ya)return!0;return!1},uc=ea?function(ya,Ga){if(ya===Ga)return Rb=!0,0;var Ma=!ya.compareDocumentPosition-
|
|
166
|
+
!Ga.compareDocumentPosition;return Ma?Ma:(Ma=(ya.ownerDocument||ya)===(Ga.ownerDocument||Ga)?ya.compareDocumentPosition(Ga):1,1&Ma||!Pb.sortDetached&&Ga.compareDocumentPosition(ya)===Ma?ya===vb||ya.ownerDocument===$b&&nc($b,ya)?-1:Ga===vb||Ga.ownerDocument===$b&&nc($b,Ga)?1:Ob?Cc(Ob,ya)-Cc(Ob,Ga):0:4&Ma?-1:1)}:function(ya,Ga){if(ya===Ga)return Rb=!0,0;var Ma=0,Sa=ya.parentNode,bb=Ga.parentNode,Xa=[ya],kb=[Ga];if(!Sa||!bb)return ya===vb?-1:Ga===vb?1:Sa?-1:bb?1:Ob?Cc(Ob,ya)-Cc(Ob,Ga):0;if(Sa===bb)return K(ya,
|
|
167
|
+
Ga);for(;ya=ya.parentNode;)Xa.unshift(ya);for(ya=Ga;ya=ya.parentNode;)kb.unshift(ya);for(;Xa[Ma]===kb[Ma];)Ma++;return Ma?K(Xa[Ma],kb[Ma]):Xa[Ma]===$b?-1:kb[Ma]===$b?1:0},vb):vb};c.matches=function(L,ea){return c(L,null,null,ea)};c.matchesSelector=function(L,ea){if((L.ownerDocument||L)!==vb&&Bc(L),ea=ea.replace(Dd,"='$1']"),!(!Pb.matchesSelector||!ec||ac[ea+' ']||dc&&dc.test(ea)||Tb&&Tb.test(ea)))try{var na=Sb.call(L,ea);if(na||Pb.disconnectedMatch||L.document&&11!==L.document.nodeType)return na}catch(ya){}return 0<
|
|
168
|
+
c(ea,vb,null,[L]).length};c.contains=function(L,ea){return(L.ownerDocument||L)!==vb&&Bc(L),nc(L,ea)};c.attr=function(L,ea){(L.ownerDocument||L)!==vb&&Bc(L);var na=Gb.attrHandle[ea.toLowerCase()];na=na&&vc.call(Gb.attrHandle,ea.toLowerCase())?na(L,ea,!ec):void 0;return void 0!==na?na:Pb.attributes||!ec?L.getAttribute(ea):(na=L.getAttributeNode(ea))&&na.specified?na.value:null};c.error=function(L){throw Error('Syntax error, unrecognized expression: '+L);};c.uniqueSort=function(L){var ea,na=[],ya=0,
|
|
169
|
+
Ga=0;if(Rb=!Pb.detectDuplicates,Ob=!Pb.sortStable&&L.slice(0),L.sort(uc),Rb){for(;ea=L[Ga++];)ea===L[Ga]&&(ya=na.push(Ga));for(;ya--;)L.splice(na[ya],1)}return Ob=null,L};var Zc=c.getText=function(L){var ea,na='',ya=0;if(ea=L.nodeType)if(1===ea||9===ea||11===ea){if('string'==typeof L.textContent)return L.textContent;for(L=L.firstChild;L;L=L.nextSibling)na+=Zc(L)}else{if(3===ea||4===ea)return L.nodeValue}else for(;ea=L[ya++];)na+=Zc(ea);return na};var Gb=c.selectors={cacheLength:50,createPseudo:l,
|
|
170
170
|
match:Oc,attrHandle:{},find:{},relative:{'>':{dir:'parentNode',first:!0},' ':{dir:'parentNode'},'+':{dir:'previousSibling',first:!0},'~':{dir:'previousSibling'}},preFilter:{ATTR:function(L){return L[1]=L[1].replace(xc,yc),L[3]=(L[3]||L[4]||L[5]||'').replace(xc,yc),'~='===L[2]&&(L[3]=' '+L[3]+' '),L.slice(0,4)},CHILD:function(L){return L[1]=L[1].toLowerCase(),'nth'===L[1].slice(0,3)?(L[3]||c.error(L[0]),L[4]=+(L[4]?L[5]+(L[6]||1):2*('even'===L[3]||'odd'===L[3])),L[5]=+(L[7]+L[8]||'odd'===L[3])):L[3]&&
|
|
171
171
|
c.error(L[0]),L},PSEUDO:function(L){var ea,na=!L[6]&&L[2];return Oc.CHILD.test(L[0])?null:(L[3]?L[2]=L[4]||L[5]||'':na&&Ed.test(na)&&(ea=Mc(na,!0))&&(ea=na.indexOf(')',na.length-ea)-na.length)&&(L[0]=L[0].slice(0,ea),L[2]=na.slice(0,ea)),L.slice(0,3))}},filter:{TAG:function(L){var ea=L.replace(xc,yc).toLowerCase();return'*'===L?function(){return!0}:function(na){return na.nodeName&&na.nodeName.toLowerCase()===ea}},CLASS:function(L){var ea=Hc[L+' '];return ea||(ea=new RegExp('(^|[\\x20\\t\\r\\n\\f])'+
|
|
172
|
-
L+'([\\x20\\t\\r\\n\\f]|$)'),Hc(L,function(na){return ea.test('string'==typeof na.className&&na.className||'undefined'!=typeof na.getAttribute&&na.getAttribute('class')||'')}))},ATTR:function(L,ea,na){return function(
|
|
173
|
-
1)===na+'-':!1):!0}},CHILD:function(L,ea,na,
|
|
172
|
+
L+'([\\x20\\t\\r\\n\\f]|$)'),Hc(L,function(na){return ea.test('string'==typeof na.className&&na.className||'undefined'!=typeof na.getAttribute&&na.getAttribute('class')||'')}))},ATTR:function(L,ea,na){return function(ya){ya=c.attr(ya,L);return null==ya?'!='===ea:ea?(ya+='','='===ea?ya===na:'!='===ea?ya!==na:'^='===ea?na&&0===ya.indexOf(na):'*='===ea?na&&-1<ya.indexOf(na):'$='===ea?na&&ya.slice(-na.length)===na:'~='===ea?-1<(' '+ya.replace(Ad,' ')+' ').indexOf(na):'|='===ea?ya===na||ya.slice(0,na.length+
|
|
173
|
+
1)===na+'-':!1):!0}},CHILD:function(L,ea,na,ya,Ga){var Ma='nth'!==L.slice(0,3),Sa='last'!==L.slice(-4),bb='of-type'===ea;return 1===ya&&0===Ga?function(Xa){return!!Xa.parentNode}:function(Xa,kb,ob){var ib,Lb;kb=Ma!==Sa?'nextSibling':'previousSibling';var bc=Xa.parentNode,Yb=bb&&Xa.nodeName.toLowerCase();ob=!ob&&!bb;var wb=!1;if(bc){if(Ma){for(;kb;){for(ib=Xa;ib=ib[kb];)if(bb?ib.nodeName.toLowerCase()===Yb:1===ib.nodeType)return!1;var tc=kb='only'===L&&!tc&&'nextSibling'}return!0}if(tc=[Sa?bc.firstChild:
|
|
174
174
|
bc.lastChild],Sa&&ob){ib=bc;var hc=ib[Cb]||(ib[Cb]={});var qc=hc[ib.uniqueID]||(hc[ib.uniqueID]={});var cc=qc[L]||[];wb=(Lb=cc[0]===Wb&&cc[1])&&cc[2];for(ib=Lb&&bc.childNodes[Lb];ib=++Lb&&ib&&ib[kb]||(wb=Lb=0)||tc.pop();)if(1===ib.nodeType&&++wb&&ib===Xa){qc[L]=[Wb,Lb,wb];break}}else if(ob&&(ib=Xa,hc=ib[Cb]||(ib[Cb]={}),qc=hc[ib.uniqueID]||(hc[ib.uniqueID]={}),cc=qc[L]||[],Lb=cc[0]===Wb&&cc[1],wb=Lb),!1===wb)for(;(ib=++Lb&&ib&&ib[kb]||(wb=Lb=0)||tc.pop())&&((bb?ib.nodeName.toLowerCase()!==Yb:1!==
|
|
175
|
-
ib.nodeType)||!++wb||(ob&&(hc=ib[Cb]||(ib[Cb]={}),qc=hc[ib.uniqueID]||(hc[ib.uniqueID]={}),qc[L]=[Wb,wb]),ib!==Xa)););return wb-=Ga,wb===
|
|
176
|
-
0,na)}):
|
|
175
|
+
ib.nodeType)||!++wb||(ob&&(hc=ib[Cb]||(ib[Cb]={}),qc=hc[ib.uniqueID]||(hc[ib.uniqueID]={}),qc[L]=[Wb,wb]),ib!==Xa)););return wb-=Ga,wb===ya||0===wb%ya&&0<=wb/ya}}},PSEUDO:function(L,ea){var na,ya=Gb.pseudos[L]||Gb.setFilters[L.toLowerCase()]||c.error('unsupported pseudo: '+L);return ya[Cb]?ya(ea):1<ya.length?(na=[L,L,'',ea],Gb.setFilters.hasOwnProperty(L.toLowerCase())?l(function(Ga,Ma){for(var Sa,bb=ya(Ga,ea),Xa=bb.length;Xa--;)Sa=Cc(Ga,bb[Xa]),Ga[Sa]=!(Ma[Sa]=bb[Xa])}):function(Ga){return ya(Ga,
|
|
176
|
+
0,na)}):ya}},pseudos:{not:l(function(L){var ea=[],na=[],ya=xb(L.replace(Nc,'$1'));return ya[Cb]?l(function(Ga,Ma,Sa,bb){var Xa;Sa=ya(Ga,null,bb,[]);for(bb=Ga.length;bb--;)(Xa=Sa[bb])&&(Ga[bb]=!(Ma[bb]=Xa))}):function(Ga,Ma,Sa){return ea[0]=Ga,ya(ea,null,Sa,na),ea[0]=null,!na.pop()}}),has:l(function(L){return function(ea){return 0<c(L,ea).length}}),contains:l(function(L){return L=L.replace(xc,yc),function(ea){return-1<(ea.textContent||ea.innerText||Zc(ea)).indexOf(L)}}),lang:l(function(L){return kd.test(L||
|
|
177
177
|
'')||c.error('unsupported lang: '+L),L=L.replace(xc,yc).toLowerCase(),function(ea){var na;do if(na=ec?ea.lang:ea.getAttribute('xml:lang')||ea.getAttribute('lang'))return na=na.toLowerCase(),na===L||0===na.indexOf(L+'-');while((ea=ea.parentNode)&&1===ea.nodeType);return!1}}),target:function(L){var ea=a.location&&a.location.hash;return ea&&ea.slice(1)===L.id},root:function(L){return L===ic},focus:function(L){return L===vb.activeElement&&(!vb.hasFocus||vb.hasFocus())&&!!(L.type||L.href||~L.tabIndex)},
|
|
178
178
|
enabled:function(L){return!1===L.disabled},disabled:function(L){return!0===L.disabled},checked:function(L){var ea=L.nodeName.toLowerCase();return'input'===ea&&!!L.checked||'option'===ea&&!!L.selected},selected:function(L){return L.parentNode&&L.parentNode.selectedIndex,!0===L.selected},empty:function(L){for(L=L.firstChild;L;L=L.nextSibling)if(6>L.nodeType)return!1;return!0},parent:function(L){return!Gb.pseudos.empty(L)},header:function(L){return Gd.test(L.nodeName)},input:function(L){return Fd.test(L.nodeName)},
|
|
179
|
-
button:function(L){var ea=L.nodeName.toLowerCase();return'input'===ea&&'button'===L.type||'button'===ea},text:function(L){var ea;return'input'===L.nodeName.toLowerCase()&&'text'===L.type&&(null==(ea=L.getAttribute('type'))||'text'===ea.toLowerCase())},first:
|
|
180
|
-
lt:
|
|
181
|
-
!(na=Bd.exec(Ma))||(na&&(Ma=Ma.slice(na[0].length)||Ma),bb.push(
|
|
182
|
-
Gc(ea[na]),Ma[Cb]?
|
|
183
|
-
0:Ma.length;Ga--&&(Sa=Ma[Ga],!Gb.relative[bb=Sa.type]);)if((Xa=Gb.find[bb])&&(
|
|
179
|
+
button:function(L){var ea=L.nodeName.toLowerCase();return'input'===ea&&'button'===L.type||'button'===ea},text:function(L){var ea;return'input'===L.nodeName.toLowerCase()&&'text'===L.type&&(null==(ea=L.getAttribute('type'))||'text'===ea.toLowerCase())},first:Ca(function(){return[0]}),last:Ca(function(L,ea){return[ea-1]}),eq:Ca(function(L,ea,na){return[0>na?na+ea:na]}),even:Ca(function(L,ea){for(var na=0;ea>na;na+=2)L.push(na);return L}),odd:Ca(function(L,ea){for(var na=1;ea>na;na+=2)L.push(na);return L}),
|
|
180
|
+
lt:Ca(function(L,ea,na){for(ea=0>na?na+ea:na;0<=--ea;)L.push(ea);return L}),gt:Ca(function(L,ea,na){for(na=0>na?na+ea:na;++na<ea;)L.push(na);return L})}};Gb.pseudos.nth=Gb.pseudos.eq;for(wc in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Gb.pseudos[wc]=X(wc);for(wc in{submit:!0,reset:!0})Gb.pseudos[wc]=oa(wc);Ra.prototype=Gb.filters=Gb.pseudos;Gb.setFilters=new Ra;var Mc=c.tokenize=function(L,ea){var na,ya,Ga,Ma,Sa;if(Ma=oc[L+' '])return ea?0:Ma.slice(0);Ma=L;var bb=[];for(Sa=Gb.preFilter;Ma;){Xa&&
|
|
181
|
+
!(na=Bd.exec(Ma))||(na&&(Ma=Ma.slice(na[0].length)||Ma),bb.push(ya=[]));var Xa=!1;(na=Cd.exec(Ma))&&(Xa=na.shift(),ya.push({value:Xa,type:na[0].replace(Nc,' ')}),Ma=Ma.slice(Xa.length));for(Ga in Gb.filter)!(na=Oc[Ga].exec(Ma))||Sa[Ga]&&!(na=Sa[Ga](na))||(Xa=na.shift(),ya.push({value:Xa,type:Ga,matches:na}),Ma=Ma.slice(Xa.length));if(!Xa)break}return ea?Ma.length:Ma?c.error(L):oc(L,bb).slice(0)};return xb=c.compile=function(L,ea){var na,ya=[],Ga=[],Ma=ac[L+' '];if(!Ma){ea||=Mc(L);for(na=ea.length;na--;)Ma=
|
|
182
|
+
Gc(ea[na]),Ma[Cb]?ya.push(Ma):Ga.push(Ma);Ma=ac(L,kc(Ga,ya));Ma.selector=L}return Ma},gc=c.select=function(L,ea,na,ya){var Ga,Ma,Sa,bb,Xa,kb='function'==typeof L&&L,ob=!ya&&Mc(L=kb.selector||L);if(na=na||[],1===ob.length){if(Ma=ob[0]=ob[0].slice(0),2<Ma.length&&'ID'===(Sa=Ma[0]).type&&Pb.getById&&9===ea.nodeType&&ec&&Gb.relative[Ma[1].type]){if(ea=(Gb.find.ID(Sa.matches[0].replace(xc,yc),ea)||[])[0],!ea)return na;kb&&(ea=ea.parentNode);L=L.slice(Ma.shift().value.length)}for(Ga=Oc.needsContext.test(L)?
|
|
183
|
+
0:Ma.length;Ga--&&(Sa=Ma[Ga],!Gb.relative[bb=Sa.type]);)if((Xa=Gb.find[bb])&&(ya=Xa(Sa.matches[0].replace(xc,yc),Wc.test(Ma[0].type)&&sa(ea.parentNode)||ea))){if(Ma.splice(Ga,1),L=ya.length&&Va(Ma),!L)return Ac.apply(na,ya),na;break}}return(kb||xb(L,ob))(ya,ea,!ec,na,!ea||Wc.test(L)&&sa(ea.parentNode)||ea),na},Pb.sortStable=Cb.split('').sort(uc).join('')===Cb,Pb.detectDuplicates=!!Rb,Bc(),Pb.sortDetached=q(function(L){return 1&L.compareDocumentPosition(vb.createElement('div'))}),q(function(L){return L.innerHTML=
|
|
184
184
|
"<a href='#'></a>",'#'===L.firstChild.getAttribute('href')})||C('type|href|height|width',function(L,ea,na){return na?void 0:L.getAttribute(ea,'type'===ea.toLowerCase()?1:2)}),Pb.attributes&&q(function(L){return L.innerHTML='<input/>',L.firstChild.setAttribute('value',''),''===L.firstChild.getAttribute('value')})||C('value',function(L,ea,na){return na||'input'!==L.nodeName.toLowerCase()?void 0:L.defaultValue}),q(function(L){return null==L.getAttribute('disabled')})||C('checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',
|
|
185
|
-
function(L,ea,na){var
|
|
186
|
-
ba=b.expr.match.needsContext,qa=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,
|
|
187
|
-
q?b.unique(g):g),g.selector=this.selector?this.selector+' '+a:a,g},filter:function(a){return this.pushStack(ka(this,a||[],!1))},not:function(a){return this.pushStack(ka(this,a||[],!0))},is:function(a){return!!ka(this,'string'==typeof a&&ba.test(a)?b(a):a||[],!1).length}});var
|
|
185
|
+
function(L,ea,na){var ya;return na?void 0:!0===L[ea]?ea.toLowerCase():(ya=L.getAttributeNode(ea))&&ya.specified?ya.value:null}),c}(A);b.find=F;b.expr=F.selectors;b.expr[':']=b.expr.pseudos;b.uniqueSort=b.unique=F.uniqueSort;b.text=F.getText;b.isXMLDoc=F.isXML;b.contains=F.contains;var Z=function(a,c,g){for(var l=[],q=void 0!==g;(a=a[c])&&9!==a.nodeType;)if(1===a.nodeType){if(q&&b(a).is(g))break;l.push(a)}return l},xa=function(a,c){for(var g=[];a;a=a.nextSibling)1===a.nodeType&&a!==c&&g.push(a);return g},
|
|
186
|
+
ba=b.expr.match.needsContext,qa=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Aa=/^.[^:#\[\.,]*$/;b.filter=function(a,c,g){var l=c[0];return g&&(a=':not('+a+')'),1===c.length&&1===l.nodeType?b.find.matchesSelector(l,a)?[l]:[]:b.find.matches(a,b.grep(c,function(q){return 1===q.nodeType}))};b.fn.extend({find:function(a){var c,g=[],l=this,q=l.length;if('string'!=typeof a)return this.pushStack(b(a).filter(function(){for(c=0;q>c;c++)if(b.contains(l[c],this))return!0}));for(c=0;q>c;c++)b.find(a,l[c],g);return g=this.pushStack(1<
|
|
187
|
+
q?b.unique(g):g),g.selector=this.selector?this.selector+' '+a:a,g},filter:function(a){return this.pushStack(ka(this,a||[],!1))},not:function(a){return this.pushStack(ka(this,a||[],!0))},is:function(a){return!!ka(this,'string'==typeof a&&ba.test(a)?b(a):a||[],!1).length}});var J=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(b.fn.init=function(a,c,g){var l,q;if(!a)return this;if(g=g||ma,'string'==typeof a){if(l='<'===a.charAt(0)&&'>'===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:J.exec(a),!l||!l[1]&&c)return!c||
|
|
188
188
|
c.jquery?(c||g).find(a):this.constructor(c).find(a);if(l[1]){if(c=c instanceof b?c[0]:c,b.merge(this,b.parseHTML(l[1],c&&c.nodeType?c.ownerDocument||c:Ka,!0)),qa.test(l[1])&&b.isPlainObject(c))for(l in c)b.isFunction(this[l])?this[l](c[l]):this.attr(l,c[l]);return this}if(q=Ka.getElementById(l[2]),q&&q.parentNode){if(q.id!==l[2])return ma.find(a);this.length=1;this[0]=q}return this.context=Ka,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):b.isFunction(a)?'undefined'!=
|
|
189
|
-
typeof g.ready?g.ready(a):a(b):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),b.makeArray(a,this))}).prototype=b.fn;var ma=b(Ka);var
|
|
190
|
-
this[l];g&&g!==c;g=g.parentNode)if(11>g.nodeType&&(
|
|
191
|
-
b.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return Z(a,'parentNode')},parentsUntil:function(a,c,g){return Z(a,'parentNode',g)},next:function(a){return S(a,'nextSibling')},prev:function(a){return S(a,'previousSibling')},nextAll:function(a){return Z(a,'nextSibling')},prevAll:function(a){return Z(a,'previousSibling')},nextUntil:function(a,c,g){return Z(a,'nextSibling',g)},prevUntil:function(a,c,g){return Z(a,'previousSibling',g)},siblings:function(a){return
|
|
192
|
-
{}).firstChild,a)},children:function(a){return
|
|
193
|
-
l,q,C=[],
|
|
194
|
-
b.inArray(Ra,C,Va));)C.splice(Va,1),X>=Va&&X--}),this},has:function(
|
|
195
|
-
b.extend({Deferred:function(a){var c=[['resolve','done',b.Callbacks('once memory'),'resolved'],['reject','fail',b.Callbacks('once memory'),'rejected'],['notify','progress',b.Callbacks('memory')]],g='pending',l={state:function(){return g},always:function(){return q.done(arguments).fail(arguments),this},then:function(){var C=arguments;return b.Deferred(function(
|
|
196
|
-
|
|
197
|
-
fb.call(arguments),l=g.length,q=1!==l||a&&b.isFunction(a.promise)?l:0,C=1===q?a:b.Deferred(),
|
|
198
|
-
this};b.extend({isReady:!1,readyWait:1,holdReady:function(a){a?b.readyWait++:b.ready(!0)},ready:function(a){(!0===a?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==a&&0<--b.readyWait||(
|
|
199
|
-
Q),A.addEventListener('load',Q);else{Ka.attachEvent('onreadystatechange',Q);A.attachEvent('onload',Q);var c=!1;try{c=null==A.frameElement&&Ka.documentElement}catch(g){}c&&c.doScroll&&!function l(){if(!b.isReady){try{c.doScroll('left')}catch(q){return A.setTimeout(l,50)}ia();b.ready()}}()}return
|
|
189
|
+
typeof g.ready?g.ready(a):a(b):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),b.makeArray(a,this))}).prototype=b.fn;var ma=b(Ka);var ta=/^(?:parents|prev(?:Until|All))/,fa={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({has:function(a){var c,g=b(a,this),l=g.length;return this.filter(function(){for(c=0;l>c;c++)if(b.contains(this,g[c]))return!0})},closest:function(a,c){for(var g,l=0,q=this.length,C=[],K=ba.test(a)||'string'!=typeof a?b(a,c||this.context):0;q>l;l++)for(g=
|
|
190
|
+
this[l];g&&g!==c;g=g.parentNode)if(11>g.nodeType&&(K?-1<K.index(g):1===g.nodeType&&b.find.matchesSelector(g,a))){C.push(g);break}return this.pushStack(1<C.length?b.uniqueSort(C):C)},index:function(a){return a?'string'==typeof a?b.inArray(this[0],b(a)):b.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,c){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(a,c))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});
|
|
191
|
+
b.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return Z(a,'parentNode')},parentsUntil:function(a,c,g){return Z(a,'parentNode',g)},next:function(a){return S(a,'nextSibling')},prev:function(a){return S(a,'previousSibling')},nextAll:function(a){return Z(a,'nextSibling')},prevAll:function(a){return Z(a,'previousSibling')},nextUntil:function(a,c,g){return Z(a,'nextSibling',g)},prevUntil:function(a,c,g){return Z(a,'previousSibling',g)},siblings:function(a){return xa((a.parentNode||
|
|
192
|
+
{}).firstChild,a)},children:function(a){return xa(a.firstChild)},contents:function(a){return b.nodeName(a,'iframe')?a.contentDocument||a.contentWindow.document:b.merge([],a.childNodes)}},function(a,c){b.fn[a]=function(g,l){var q=b.map(this,c,g);return'Until'!==a.slice(-5)&&(l=g),l&&'string'==typeof l&&(q=b.filter(l,q)),1<this.length&&(fa[a]||(q=b.uniqueSort(q)),ta.test(a)&&(q=q.reverse())),this.pushStack(q)}});var ua=/\S+/g;b.Callbacks=function(a){a='string'==typeof a?O(a):b.extend({},a);var c,g,
|
|
193
|
+
l,q,C=[],K=[],X=-1,oa=function(){q=a.once;for(l=c=!0;K.length;X=-1)for(g=K.shift();++X<C.length;)!1===C[X].apply(g[0],g[1])&&a.stopOnFalse&&(X=C.length,g=!1);a.memory||(g=!1);c=!1;q&&(C=g?[]:'')},Ca={add:function(){return C&&(g&&!c&&(X=C.length-1,K.push(g)),function Va(Ra){b.each(Ra,function(Bb,db){b.isFunction(db)?a.unique&&Ca.has(db)||C.push(db):db&&db.length&&'string'!==b.type(db)&&Va(db)})}(arguments),g&&!c&&oa()),this},remove:function(){return b.each(arguments,function(sa,Ra){for(var Va;-1<(Va=
|
|
194
|
+
b.inArray(Ra,C,Va));)C.splice(Va,1),X>=Va&&X--}),this},has:function(sa){return sa?-1<b.inArray(sa,C):0<C.length},empty:function(){return C&&=[],this},disable:function(){return q=K=[],C=g='',this},disabled:function(){return!C},lock:function(){return q=!0,g||Ca.disable(),this},locked:function(){return!!q},fireWith:function(sa,Ra){return q||(Ra=Ra||[],Ra=[sa,Ra.slice?Ra.slice():Ra],K.push(Ra),c||oa()),this},fire:function(){return Ca.fireWith(this,arguments),this},fired:function(){return!!l}};return Ca};
|
|
195
|
+
b.extend({Deferred:function(a){var c=[['resolve','done',b.Callbacks('once memory'),'resolved'],['reject','fail',b.Callbacks('once memory'),'rejected'],['notify','progress',b.Callbacks('memory')]],g='pending',l={state:function(){return g},always:function(){return q.done(arguments).fail(arguments),this},then:function(){var C=arguments;return b.Deferred(function(K){b.each(c,function(X,oa){var Ca=b.isFunction(C[X])&&C[X];q[oa[1]](function(){var sa=Ca&&Ca.apply(this,arguments);sa&&b.isFunction(sa.promise)?
|
|
196
|
+
sa.promise().progress(K.notify).done(K.resolve).fail(K.reject):K[oa[0]+'With'](this===l?K.promise():this,Ca?[sa]:arguments)})});C=null}).promise()},promise:function(C){return null!=C?b.extend(C,l):l}},q={};return l.pipe=l.then,b.each(c,function(C,K){var X=K[2],oa=K[3];l[K[1]]=X.add;oa&&X.add(function(){g=oa},c[1^C][2].disable,c[2][2].lock);q[K[0]]=function(){return q[K[0]+'With'](this===q?l:this,arguments),this};q[K[0]+'With']=X.fireWith}),l.promise(q),a&&a.call(q,q),q},when:function(a){var c=0,g=
|
|
197
|
+
fb.call(arguments),l=g.length,q=1!==l||a&&b.isFunction(a.promise)?l:0,C=1===q?a:b.Deferred(),K=function(sa,Ra,Va){return function(Bb){Ra[sa]=this;Va[sa]=1<arguments.length?fb.call(arguments):Bb;Va===oa?C.notifyWith(Ra,Va):--q||C.resolveWith(Ra,Va)}},X;if(1<l){var oa=Array(l);var Ca=Array(l);for(X=Array(l);l>c;c++)g[c]&&b.isFunction(g[c].promise)?g[c].promise().progress(K(c,Ca,oa)).done(K(c,X,g)).fail(C.reject):--q}return q||C.resolveWith(X,g),C.promise()}});var Da;b.fn.ready=function(a){return b.ready.promise().done(a),
|
|
198
|
+
this};b.extend({isReady:!1,readyWait:1,holdReady:function(a){a?b.readyWait++:b.ready(!0)},ready:function(a){(!0===a?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==a&&0<--b.readyWait||(Da.resolveWith(Ka,[b]),b.fn.triggerHandler&&(b(Ka).triggerHandler('ready'),b(Ka).off('ready'))))}});b.ready.promise=function(a){if(!Da)if(Da=b.Deferred(),'complete'===Ka.readyState||'loading'!==Ka.readyState&&!Ka.documentElement.doScroll)A.setTimeout(b.ready);else if(Ka.addEventListener)Ka.addEventListener('DOMContentLoaded',
|
|
199
|
+
Q),A.addEventListener('load',Q);else{Ka.attachEvent('onreadystatechange',Q);A.attachEvent('onload',Q);var c=!1;try{c=null==A.frameElement&&Ka.documentElement}catch(g){}c&&c.doScroll&&!function l(){if(!b.isReady){try{c.doScroll('left')}catch(q){return A.setTimeout(l,50)}ia();b.ready()}}()}return Da.promise(a)};b.ready.promise();for(var Ta in b(e))break;e.ownFirst='0'===Ta;e.inlineBlockNeedsLayout=!1;b(function(){var a,c,g,l;(g=Ka.getElementsByTagName('body')[0])&&g.style&&(c=Ka.createElement('div'),
|
|
200
200
|
l=Ka.createElement('div'),l.style.cssText='position:absolute;border:0;width:0;height:0;top:0;left:-9999px',g.appendChild(l).appendChild(c),'undefined'!=typeof c.style.zoom&&(c.style.cssText='display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1',e.inlineBlockNeedsLayout=a=3===c.offsetWidth,a&&(g.style.zoom=1)),g.removeChild(l))});(function(){var a=Ka.createElement('div');e.deleteExpando=!0;try{delete a.test}catch(c){e.deleteExpando=!1}})();var ab=function(a){var c=b.noData[(a.nodeName+' ').toLowerCase()],
|
|
201
|
-
g=+a.nodeType||1;return 1!==g&&9!==g?!1:!c||!0!==c&&a.getAttribute('classid')===c},sb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,yb=/([A-Z])/g;b.extend({cache:{},noData:{'applet ':!0,'embed ':!0,'object ':'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'},hasData:function(a){return a=a.nodeType?b.cache[a[b.expando]]:a[b.expando],!!a&&!
|
|
202
|
-
c){var g,l,q,C=this[0],
|
|
203
|
-
c,g){var l;return a?(c=(c||'fx')+'queue',l=b._data(a,c),g&&(!l||b.isArray(g)?l=b._data(a,c,b.makeArray(g)):l.push(g)),l||[]):void 0},dequeue:function(a,c){c=c||'fx';var g=b.queue(a,c),l=g.length,q=g.shift(),C=b._queueHooks(a,c),
|
|
204
|
-
c+'queue');b._removeData(a,g)})})}});b.fn.extend({queue:function(a,c){var g=2;return'string'!=typeof a&&(c=a,a='fx',g--),arguments.length<g?b.queue(this[0],a):void 0===c?this:this.each(function(){var l=b.queue(this,a,c);b._queueHooks(this,a);'fx'===a&&'inprogress'!==l[0]&&b.dequeue(this,a)})},dequeue:function(a){return this.each(function(){b.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||'fx',[])},promise:function(a,c){var g,l=1,q=b.Deferred(),C=this,
|
|
205
|
-
q.resolveWith(C,[C])};'string'!=typeof a&&(c=a,a=void 0);for(a=a||'fx';
|
|
201
|
+
g=+a.nodeType||1;return 1!==g&&9!==g?!1:!c||!0!==c&&a.getAttribute('classid')===c},sb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,yb=/([A-Z])/g;b.extend({cache:{},noData:{'applet ':!0,'embed ':!0,'object ':'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'},hasData:function(a){return a=a.nodeType?b.cache[a[b.expando]]:a[b.expando],!!a&&!r(a)},data:function(a,c,g){return G(a,c,g)},removeData:function(a,c){return w(a,c)},_data:function(a,c,g){return G(a,c,g,!0)},_removeData:function(a,c){return w(a,c,!0)}});b.fn.extend({data:function(a,
|
|
202
|
+
c){var g,l,q,C=this[0],K=C&&C.attributes;if(void 0===a){if(this.length&&(q=b.data(C),1===C.nodeType&&!b._data(C,'parsedAttrs'))){for(g=K.length;g--;)K[g]&&(l=K[g].name,0===l.indexOf('data-')&&(l=b.camelCase(l.slice(5)),R(C,l,q[l])));b._data(C,'parsedAttrs',!0)}return q}return'object'==typeof a?this.each(function(){b.data(this,a)}):1<arguments.length?this.each(function(){b.data(this,a,c)}):C?R(C,a,b.data(C,a)):void 0},removeData:function(a){return this.each(function(){b.removeData(this,a)})}});b.extend({queue:function(a,
|
|
203
|
+
c,g){var l;return a?(c=(c||'fx')+'queue',l=b._data(a,c),g&&(!l||b.isArray(g)?l=b._data(a,c,b.makeArray(g)):l.push(g)),l||[]):void 0},dequeue:function(a,c){c=c||'fx';var g=b.queue(a,c),l=g.length,q=g.shift(),C=b._queueHooks(a,c),K=function(){b.dequeue(a,c)};'inprogress'===q&&(q=g.shift(),l--);q&&('fx'===c&&g.unshift('inprogress'),delete C.stop,q.call(a,K,C));!l&&C&&C.empty.fire()},_queueHooks:function(a,c){var g=c+'queueHooks';return b._data(a,g)||b._data(a,g,{empty:b.Callbacks('once memory').add(function(){b._removeData(a,
|
|
204
|
+
c+'queue');b._removeData(a,g)})})}});b.fn.extend({queue:function(a,c){var g=2;return'string'!=typeof a&&(c=a,a='fx',g--),arguments.length<g?b.queue(this[0],a):void 0===c?this:this.each(function(){var l=b.queue(this,a,c);b._queueHooks(this,a);'fx'===a&&'inprogress'!==l[0]&&b.dequeue(this,a)})},dequeue:function(a){return this.each(function(){b.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||'fx',[])},promise:function(a,c){var g,l=1,q=b.Deferred(),C=this,K=this.length,X=function(){--l||
|
|
205
|
+
q.resolveWith(C,[C])};'string'!=typeof a&&(c=a,a=void 0);for(a=a||'fx';K--;)(g=b._data(C[K],a+'queueHooks'))&&g.empty&&(l++,g.empty.add(X));return X(),q.promise(c)}});(function(){var a;e.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var c,g,l;return g=Ka.getElementsByTagName('body')[0],g&&g.style?(c=Ka.createElement('div'),l=Ka.createElement('div'),l.style.cssText='position:absolute;border:0;width:0;height:0;top:0;left:-9999px',g.appendChild(l).appendChild(c),'undefined'!=typeof c.style.zoom&&
|
|
206
206
|
(c.style.cssText='-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1',c.appendChild(Ka.createElement('div')).style.width='5px',a=3!==c.offsetWidth),g.removeChild(l),a):void 0}})();var Fb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,mb=new RegExp('^(?:([+-])=|)('+Fb+')([a-z%]*)$','i'),Ya=['Top','Right','Bottom','Left'],cb=function(a,c){return a=c||a,'none'===b.css(a,'display')||!b.contains(a.ownerDocument,a)},
|
|
207
|
-
ha=function(a,c,g,l,q,C,
|
|
207
|
+
ha=function(a,c,g,l,q,C,K){var X=0,oa=a.length,Ca=null==g;if('object'===b.type(g))for(X in q=!0,g)ha(a,c,X,g[X],!0,C,K);else if(void 0!==l&&(q=!0,b.isFunction(l)||(K=!0),Ca&&(K?(c.call(a,l),c=null):(Ca=c,c=function(sa,Ra,Va){return Ca.call(b(sa),Va)})),c))for(;oa>X;X++)c(a[X],g,K?l:l.call(a[X],X,c(a[X],g)));return q?a:Ca?c.call(a):oa?c(a[0],g):C},Y=/^(?:checkbox|radio)$/i,aa=/<([\w:-]+)/,ra=/^$|\/(?:java|ecma)script/i,Oa=/^\s+/;!function(){var a=Ka.createElement('div'),c=Ka.createDocumentFragment(),
|
|
208
208
|
g=Ka.createElement('input');a.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";e.leadingWhitespace=3===a.firstChild.nodeType;e.tbody=!a.getElementsByTagName('tbody').length;e.htmlSerialize=!!a.getElementsByTagName('link').length;e.html5Clone='<:nav></:nav>'!==Ka.createElement('nav').cloneNode(!0).outerHTML;g.type='checkbox';g.checked=!0;c.appendChild(g);e.appendChecked=g.checked;a.innerHTML='<textarea>x</textarea>';e.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue;
|
|
209
209
|
c.appendChild(a);g=Ka.createElement('input');g.setAttribute('type','radio');g.setAttribute('checked','checked');g.setAttribute('name','t');a.appendChild(g);e.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;e.noCloneEvent=!!a.addEventListener;a[b.expando]=1;e.attributes=!a.getAttribute(b.expando)}();var Wa={option:[1,"<select multiple='multiple'>",'</select>'],legend:[1,'<fieldset>','</fieldset>'],area:[1,'<map>','</map>'],param:[1,'<object>','</object>'],thead:[1,'<table>','</table>'],
|
|
210
210
|
tr:[2,'<table><tbody>','</tbody></table>'],col:[2,'<table><tbody></tbody><colgroup>','</colgroup></table>'],td:[3,'<table><tbody><tr>','</tr></tbody></table>'],_default:e.htmlSerialize?[0,'','']:[1,'X<div>','</div>']};Wa.optgroup=Wa.option;Wa.tbody=Wa.tfoot=Wa.colgroup=Wa.caption=Wa.thead;Wa.th=Wa.td;var gb=/<|&#?\w+;/,Pa=/<tbody/i;!function(){var a,c=Ka.createElement('div');for(a in{submit:!0,change:!0,focusin:!0}){var g='on'+a;(e[a]=g in A)||(c.setAttribute(g,'t'),e[a]=!1===c.attributes[g].expando)}}();
|
|
211
|
-
var tb=/^(?:input|select|textarea)$/i,jb=/^key/,eb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hb=/^(?:focusinfocus|focusoutblur)$/,qb=/^([^.]*)(?:\.(.+)|)/;b.event={global:{},add:function(a,c,g,l,q){var C,
|
|
212
|
-
a);c=(c||'').match(
|
|
213
|
-
!1):a.attachEvent&&a.attachEvent('on'+db,
|
|
214
|
-
[];
|
|
215
|
-
b._removeData(a,'events'))}},trigger:function(a,c,g,l){var q,C,
|
|
216
|
-
'(\\.|$)'):null,a.result=void 0,a.target||(a.target=g),c=null==c?[a]:b.makeArray(c,[a]),X=b.event.special[
|
|
217
|
-
c),(q=C&&
|
|
218
|
-
this,!X.preDispatch||!1!==X.preDispatch.call(this,a)){var oa=b.event.handlers.call(this,a,
|
|
219
|
-
a.result}},handlers:function(a,c){var g,l=[],q=c.delegateCount,C=a.target;if(q&&C.nodeType&&('click'!==a.type||isNaN(a.button)||1>a.button))for(;C!=this;C=C.parentNode||this)if(1===C.nodeType&&(!0!==C.disabled||'click'!==a.type)){var
|
|
211
|
+
var tb=/^(?:input|select|textarea)$/i,jb=/^key/,eb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hb=/^(?:focusinfocus|focusoutblur)$/,qb=/^([^.]*)(?:\.(.+)|)/;b.event={global:{},add:function(a,c,g,l,q){var C,K,X,oa,Ca,sa,Ra,Va;if(K=b._data(a)){g.handler&&(X=g,g=X.handler,q=X.selector);g.guid||(g.guid=b.guid++);(C=K.events)||(C=K.events={});(Ca=K.handle)||(Ca=K.handle=function(Jb){return'undefined'==typeof b||Jb&&b.event.triggered===Jb.type?void 0:b.event.dispatch.apply(Ca.elem,arguments)},Ca.elem=
|
|
212
|
+
a);c=(c||'').match(ua)||[''];for(K=c.length;K--;){var Bb=qb.exec(c[K])||[];var db=Va=Bb[1];Bb=(Bb[2]||'').split('.').sort();db&&(oa=b.event.special[db]||{},db=(q?oa.delegateType:oa.bindType)||db,oa=b.event.special[db]||{},sa=b.extend({type:db,origType:Va,data:l,handler:g,guid:g.guid,selector:q,needsContext:q&&b.expr.match.needsContext.test(q),namespace:Bb.join('.')},X),(Ra=C[db])||(Ra=C[db]=[],Ra.delegateCount=0,oa.setup&&!1!==oa.setup.call(a,l,Bb,Ca)||(a.addEventListener?a.addEventListener(db,Ca,
|
|
213
|
+
!1):a.attachEvent&&a.attachEvent('on'+db,Ca))),oa.add&&(oa.add.call(a,sa),sa.handler.guid||(sa.handler.guid=g.guid)),q?Ra.splice(Ra.delegateCount++,0,sa):Ra.push(sa),b.event.global[db]=!0)}a=null}},remove:function(a,c,g,l,q){var C,K,X,oa,Ca,sa,Ra,Va,Bb=b.hasData(a)&&b._data(a);if(Bb&&(Ca=Bb.events)){c=(c||'').match(ua)||[''];for(oa=c.length;oa--;)if(K=qb.exec(c[oa])||[],sa=Va=K[1],Ra=(K[2]||'').split('.').sort(),sa){var db=b.event.special[sa]||{};sa=(l?db.delegateType:db.bindType)||sa;var Jb=Ca[sa]||
|
|
214
|
+
[];K=K[2]&&new RegExp('(^|\\.)'+Ra.join('\\.(?:.*\\.|)')+'(\\.|$)');for(X=C=Jb.length;C--;){var jc=Jb[C];!q&&Va!==jc.origType||g&&g.guid!==jc.guid||K&&!K.test(jc.namespace)||l&&l!==jc.selector&&('**'!==l||!jc.selector)||(Jb.splice(C,1),jc.selector&&Jb.delegateCount--,db.remove&&db.remove.call(a,jc))}X&&!Jb.length&&(db.teardown&&!1!==db.teardown.call(a,Ra,Bb.handle)||b.removeEvent(a,sa,Bb.handle),delete Ca[sa])}else for(sa in Ca)b.event.remove(a,sa+c[oa],g,l,!0);b.isEmptyObject(Ca)&&(delete Bb.handle,
|
|
215
|
+
b._removeData(a,'events'))}},trigger:function(a,c,g,l){var q,C,K,X,oa=[g||Ka],Ca=h.call(a,'type')?a.type:a;var sa=h.call(a,'namespace')?a.namespace.split('.'):[];if(K=q=g=g||Ka,3!==g.nodeType&&8!==g.nodeType&&!hb.test(Ca+b.event.triggered)&&(-1<Ca.indexOf('.')&&(sa=Ca.split('.'),Ca=sa.shift(),sa.sort()),C=0>Ca.indexOf(':')&&'on'+Ca,a=a[b.expando]?a:new b.Event(Ca,'object'==typeof a&&a),a.isTrigger=l?2:3,a.namespace=sa.join('.'),a.rnamespace=a.namespace?new RegExp('(^|\\.)'+sa.join('\\.(?:.*\\.|)')+
|
|
216
|
+
'(\\.|$)'):null,a.result=void 0,a.target||(a.target=g),c=null==c?[a]:b.makeArray(c,[a]),X=b.event.special[Ca]||{},l||!X.trigger||!1!==X.trigger.apply(g,c))){if(!l&&!X.noBubble&&!b.isWindow(g)){var Ra=X.delegateType||Ca;for(hb.test(Ra+Ca)||(K=K.parentNode);K;K=K.parentNode)oa.push(K),q=K;q===(g.ownerDocument||Ka)&&oa.push(q.defaultView||q.parentWindow||A)}for(sa=0;(K=oa[sa++])&&!a.isPropagationStopped();)a.type=1<sa?Ra:X.bindType||Ca,(q=(b._data(K,'events')||{})[a.type]&&b._data(K,'handle'))&&q.apply(K,
|
|
217
|
+
c),(q=C&&K[C])&&q.apply&&ab(K)&&(a.result=q.apply(K,c),!1===a.result&&a.preventDefault());if(a.type=Ca,!(l||a.isDefaultPrevented()||X._default&&!1!==X._default.apply(oa.pop(),c))&&ab(g)&&C&&g[Ca]&&!b.isWindow(g)){(q=g[C])&&(g[C]=null);b.event.triggered=Ca;try{g[Ca]()}catch(Va){}b.event.triggered=void 0;q&&(g[C]=q)}return a.result}},dispatch:function(a){a=b.event.fix(a);var c,g,l,q,C=fb.call(arguments);var K=(b._data(this,'events')||{})[a.type]||[];var X=b.event.special[a.type]||{};if(C[0]=a,a.delegateTarget=
|
|
218
|
+
this,!X.preDispatch||!1!==X.preDispatch.call(this,a)){var oa=b.event.handlers.call(this,a,K);for(K=0;(l=oa[K++])&&!a.isPropagationStopped();)for(a.currentTarget=l.elem,c=0;(q=l.handlers[c++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(q.namespace)||(a.handleObj=q,a.data=q.data,g=((b.event.special[q.origType]||{}).handle||q.handler).apply(l.elem,C),void 0!==g&&!1===(a.result=g)&&(a.preventDefault(),a.stopPropagation()));return X.postDispatch&&X.postDispatch.call(this,a),
|
|
219
|
+
a.result}},handlers:function(a,c){var g,l=[],q=c.delegateCount,C=a.target;if(q&&C.nodeType&&('click'!==a.type||isNaN(a.button)||1>a.button))for(;C!=this;C=C.parentNode||this)if(1===C.nodeType&&(!0!==C.disabled||'click'!==a.type)){var K=[];for(g=0;q>g;g++){var X=c[g];var oa=X.selector+' ';void 0===K[oa]&&(K[oa]=X.needsContext?-1<b(oa,this).index(C):b.find(oa,this,null,[C]).length);K[oa]&&K.push(X)}K.length&&l.push({elem:C,handlers:K})}return q<c.length&&l.push({elem:this,handlers:c.slice(q)}),l},fix:function(a){if(a[b.expando])return a;
|
|
220
220
|
var c=a.type;var g=a,l=this.fixHooks[c];l||(this.fixHooks[c]=l=eb.test(c)?this.mouseHooks:jb.test(c)?this.keyHooks:{});var q=l.props?this.props.concat(l.props):this.props;a=new b.Event(g);for(c=q.length;c--;){var C=q[c];a[C]=g[C]}return a.target||(a.target=g.srcElement||Ka),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,l.filter?l.filter(a,g):a},props:'altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which'.split(' '),
|
|
221
|
-
fixHooks:{},keyHooks:{props:['char','charCode','key','keyCode'],filter:function(a,c){return null==a.which&&(a.which=null!=c.charCode?c.charCode:c.keyCode),a}},mouseHooks:{props:'button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement'.split(' '),filter:function(a,c){var g,l,q,C=c.button,
|
|
222
|
-
q.clientLeft||g&&g.clientLeft||0),a.pageY=c.clientY+(q&&q.scrollTop||g&&g.scrollTop||0)-(q&&q.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&
|
|
221
|
+
fixHooks:{},keyHooks:{props:['char','charCode','key','keyCode'],filter:function(a,c){return null==a.which&&(a.which=null!=c.charCode?c.charCode:c.keyCode),a}},mouseHooks:{props:'button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement'.split(' '),filter:function(a,c){var g,l,q,C=c.button,K=c.fromElement;return null==a.pageX&&null!=c.clientX&&(l=a.target.ownerDocument||Ka,q=l.documentElement,g=l.body,a.pageX=c.clientX+(q&&q.scrollLeft||g&&g.scrollLeft||0)-(q&&
|
|
222
|
+
q.clientLeft||g&&g.clientLeft||0),a.pageY=c.clientY+(q&&q.scrollTop||g&&g.scrollTop||0)-(q&&q.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&K&&(a.relatedTarget=K===a.target?c.toElement:K),a.which||void 0===C||(a.which=1&C?1:2&C?3:4&C?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==z()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:'focusin'},blur:{trigger:function(){return this===z()&&this.blur?(this.blur(),!1):void 0},delegateType:'focusout'},click:{trigger:function(){return b.nodeName(this,
|
|
223
223
|
'input')&&'checkbox'===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return b.nodeName(a.target,'a')}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,c,g){a=b.extend(new b.Event,g,{type:a,isSimulated:!0});b.event.trigger(a,null,c);a.isDefaultPrevented()&&g.preventDefault()}};b.removeEvent=Ka.removeEventListener?function(a,c,g){a.removeEventListener&&a.removeEventListener(c,g)}:function(a,
|
|
224
224
|
c,g){c='on'+c;a.detachEvent&&('undefined'==typeof a[c]&&(a[c]=null),a.detachEvent(c,g))};b.Event=function(a,c){return this instanceof b.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?n:y):this.type=a,c&&b.extend(this,c),this.timeStamp=a&&a.timeStamp||b.now(),void(this[b.expando]=!0)):new b.Event(a,c)};b.Event.prototype={constructor:b.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,
|
|
225
225
|
preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=n;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=n;a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=n;a&&a.stopImmediatePropagation&&a.stopImmediatePropagation();this.stopPropagation()}};b.each({mouseenter:'mouseover',
|
|
@@ -227,556 +227,560 @@ mouseleave:'mouseout',pointerenter:'pointerover',pointerleave:'pointerout'},func
|
|
|
227
227
|
'button')?b.prop(a,'form'):void 0)&&!b._data(a,'submit')&&(b.event.add(a,'submit._submit',function(c){c._submitBubble=!0}),b._data(a,'submit',!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&b.event.simulate('submit',this.parentNode,a))},teardown:function(){return b.nodeName(this,'form')?!1:void b.event.remove(this,'._submit')}});e.change||(b.event.special.change={setup:function(){return tb.test(this.nodeName)?('checkbox'!==this.type&&'radio'!==
|
|
228
228
|
this.type||(b.event.add(this,'propertychange._change',function(a){'checked'===a.originalEvent.propertyName&&(this._justChanged=!0)}),b.event.add(this,'click._change',function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1);b.event.simulate('change',this,a)})),!1):void b.event.add(this,'beforeactivate._change',function(a){a=a.target;tb.test(a.nodeName)&&!b._data(a,'change')&&(b.event.add(a,'change._change',function(c){!this.parentNode||c.isSimulated||c.isTrigger||b.event.simulate('change',
|
|
229
229
|
this.parentNode,c)}),b._data(a,'change',!0))})},handle:function(a){var c=a.target;return this!==c||a.isSimulated||a.isTrigger||'radio'!==c.type&&'checkbox'!==c.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return b.event.remove(this,'._change'),!tb.test(this.nodeName)}});e.focusin||b.each({focus:'focusin',blur:'focusout'},function(a,c){var g=function(l){b.event.simulate(c,l.target,b.event.fix(l))};b.event.special[c]={setup:function(){var l=this.ownerDocument||this,q=b._data(l,
|
|
230
|
-
c);q||l.addEventListener(a,g,!0);b._data(l,c,(q||0)+1)},teardown:function(){var l=this.ownerDocument||this,q=b._data(l,c)-1;q?b._data(l,c,q):(l.removeEventListener(a,g,!0),b._removeData(l,c))}}});b.fn.extend({on:function(a,c,g,l){return
|
|
230
|
+
c);q||l.addEventListener(a,g,!0);b._data(l,c,(q||0)+1)},teardown:function(){var l=this.ownerDocument||this,q=b._data(l,c)-1;q?b._data(l,c,q):(l.removeEventListener(a,g,!0),b._removeData(l,c))}}});b.fn.extend({on:function(a,c,g,l){return E(this,a,c,g,l)},one:function(a,c,g,l){return E(this,a,c,g,l,1)},off:function(a,c,g){var l,q;if(a&&a.preventDefault&&a.handleObj)return l=a.handleObj,b(a.delegateTarget).off(l.namespace?l.origType+'.'+l.namespace:l.origType,l.selector,l.handler),this;if('object'==
|
|
231
231
|
typeof a){for(q in a)this.off(q,c,a[q]);return this}return!1!==c&&'function'!=typeof c||(g=c,c=void 0),!1===g&&(g=y),this.each(function(){b.event.remove(this,a,g,c)})},trigger:function(a,c){return this.each(function(){b.event.trigger(a,c,this)})},triggerHandler:function(a,c){var g=this[0];return g?b.event.trigger(a,c,g,!0):void 0}});var lb=/ jQuery\d+="(?:null|\d+)"/g,Mb=RegExp('<(?:abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video)[\\s/>]',
|
|
232
|
-
'i'),Eb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ib=/<script|<style|<link/i,Kb=/checked\s*(?:[^=]|=\s*.checked.)/i,Zb=/^true\/(.*)/,Xb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Dc=
|
|
233
|
-
Dc.firstChild)),!(e.noCloneEvent&&e.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||b.isXMLDoc(a))){var X=
|
|
234
|
-
!b.trim(Va.innerHTML)&&(Va.innerHTML=Ra.innerHTML)):'input'===
|
|
235
|
-
|
|
236
|
-
Ka).createTextNode(c))},null,a,arguments.length)},append:function(){return
|
|
237
|
-
function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,c=0;null!=(a=this[c]);c++){for(1===a.nodeType&&b.cleanData(
|
|
238
|
-
g.innerHTML.replace(lb,''):void 0;if(!('string'!=typeof c||Ib.test(c)||!e.htmlSerialize&&Mb.test(c)||!e.leadingWhitespace&&Oa.test(c)||Wa[(aa.exec(c)||['',''])[1].toLowerCase()])){c=b.htmlPrefilter(c);try{for(;q>l;l++)g=this[l]||{},1===g.nodeType&&(b.cleanData(
|
|
239
|
-
this))},a)}});b.each({appendTo:'append',prependTo:'prepend',insertBefore:'before',insertAfter:'after',replaceAll:'replaceWith'},function(a,c){b.fn[a]=function(g){for(var l=0,q=[],C=b(g),
|
|
240
|
-
C[q];return g},Qc=Ka.documentElement;!function(){var a,c,g,l,q,C,
|
|
241
|
-
X.innerHTML='';
|
|
242
|
-
Ra.appendChild(
|
|
243
|
-
|
|
244
|
-
Ra.removeChild(
|
|
245
|
-
C),void 0===
|
|
232
|
+
'i'),Eb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ib=/<script|<style|<link/i,Kb=/checked\s*(?:[^=]|=\s*.checked.)/i,Zb=/^true\/(.*)/,Xb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Dc=Fa(Ka).appendChild(Ka.createElement('div'));b.extend({htmlPrefilter:function(a){return a.replace(Eb,'<$1></$2>')},clone:function(a,c,g){var l,q,C,K=b.contains(a.ownerDocument,a);if(e.html5Clone||b.isXMLDoc(a)||!Mb.test('<'+a.nodeName+'>')?q=a.cloneNode(!0):(Dc.innerHTML=a.outerHTML,Dc.removeChild(q=
|
|
233
|
+
Dc.firstChild)),!(e.noCloneEvent&&e.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||b.isXMLDoc(a))){var X=U(q);var oa=U(a);for(C=0;null!=(l=oa[C]);++C)if(X[C]){var Ca=void 0,sa,Ra=l,Va=X[C];if(1===Va.nodeType){if(sa=Va.nodeName.toLowerCase(),!e.noCloneEvent&&Va[b.expando]){l=b._data(Va);for(Ca in l.events)b.removeEvent(Va,Ca,l.handle);Va.removeAttribute(b.expando)}'script'===sa&&Va.text!==Ra.text?(v(Va).text=Ra.text,H(Va)):'object'===sa?(Va.parentNode&&(Va.outerHTML=Ra.outerHTML),e.html5Clone&&Ra.innerHTML&&
|
|
234
|
+
!b.trim(Va.innerHTML)&&(Va.innerHTML=Ra.innerHTML)):'input'===sa&&Y.test(Ra.type)?(Va.defaultChecked=Va.checked=Ra.checked,Va.value!==Ra.value&&(Va.value=Ra.value)):'option'===sa?Va.defaultSelected=Va.selected=Ra.defaultSelected:'input'!==sa&&'textarea'!==sa||(Va.defaultValue=Ra.defaultValue)}}}if(c)if(g)for(oa=oa||U(a),X=X||U(q),C=0;null!=(l=oa[C]);C++)M(l,X[C]);else M(a,q);return X=U(q,'script'),0<X.length&&I(X,!K&&U(a,'script')),q},cleanData:function(a,c){for(var g,l,q,C,K=0,X=b.expando,oa=b.cache,
|
|
235
|
+
Ca=e.attributes,sa=b.event.special;null!=(g=a[K]);K++)if((c||ab(g))&&(q=g[X],C=q&&oa[q])){if(C.events)for(l in C.events)sa[l]?b.event.remove(g,l):b.removeEvent(g,l,C.handle);oa[q]&&(delete oa[q],Ca||'undefined'==typeof g.removeAttribute?g[X]=void 0:g.removeAttribute(X),ub.push(q))}}});b.fn.extend({domManip:T,detach:function(a){return pa(this,a,!0)},remove:function(a){return pa(this,a)},text:function(a){return ha(this,function(c){return void 0===c?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||
|
|
236
|
+
Ka).createTextNode(c))},null,a,arguments.length)},append:function(){return T(this,arguments,function(a){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||x(this,a).appendChild(a)})},prepend:function(){return T(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var c=x(this,a);c.insertBefore(a,c.firstChild)}})},before:function(){return T(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return T(this,arguments,
|
|
237
|
+
function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,c=0;null!=(a=this[c]);c++){for(1===a.nodeType&&b.cleanData(U(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&b.nodeName(a,'select')&&(a.options.length=0)}return this},clone:function(a,c){return a=null==a?!1:a,c=null==c?a:c,this.map(function(){return b.clone(this,a,c)})},html:function(a){return ha(this,function(c){var g=this[0]||{},l=0,q=this.length;if(void 0===c)return 1===g.nodeType?
|
|
238
|
+
g.innerHTML.replace(lb,''):void 0;if(!('string'!=typeof c||Ib.test(c)||!e.htmlSerialize&&Mb.test(c)||!e.leadingWhitespace&&Oa.test(c)||Wa[(aa.exec(c)||['',''])[1].toLowerCase()])){c=b.htmlPrefilter(c);try{for(;q>l;l++)g=this[l]||{},1===g.nodeType&&(b.cleanData(U(g,!1)),g.innerHTML=c);g=0}catch(C){}}g&&this.empty().append(c)},null,a,arguments.length)},replaceWith:function(){var a=[];return T(this,arguments,function(c){var g=this.parentNode;0>b.inArray(this,a)&&(b.cleanData(U(this)),g&&g.replaceChild(c,
|
|
239
|
+
this))},a)}});b.each({appendTo:'append',prependTo:'prepend',insertBefore:'before',insertAfter:'after',replaceAll:'replaceWith'},function(a,c){b.fn[a]=function(g){for(var l=0,q=[],C=b(g),K=C.length-1;K>=l;l++)g=l===K?this:this.clone(!0),b(C[l])[c](g),Ub.apply(q,g.get());return this.pushStack(q)}});var fc,Nb={HTML:'block',BODY:'block'},Pc=/^margin/,mc=new RegExp('^('+Fb+')(?!px)[a-z%]+$','i'),Lc=function(a,c,g,l){var q,C={};for(q in c)C[q]=a.style[q],a.style[q]=c[q];g=g.apply(a,l||[]);for(q in c)a.style[q]=
|
|
240
|
+
C[q];return g},Qc=Ka.documentElement;!function(){var a,c,g,l,q,C,K=Ka.createElement('div'),X=Ka.createElement('div');if(X.style){X.style.cssText='float:left;opacity:.5';e.opacity='0.5'===X.style.opacity;e.cssFloat=!!X.style.cssFloat;X.style.backgroundClip='content-box';X.cloneNode(!0).style.backgroundClip='';e.clearCloneStyle='content-box'===X.style.backgroundClip;K=Ka.createElement('div');K.style.cssText='border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute';
|
|
241
|
+
X.innerHTML='';K.appendChild(X);e.boxSizing=''===X.style.boxSizing||''===X.style.MozBoxSizing||''===X.style.WebkitBoxSizing;b.extend(e,{reliableHiddenOffsets:function(){return null==a&&oa(),l},boxSizingReliable:function(){return null==a&&oa(),g},pixelMarginRight:function(){return null==a&&oa(),c},pixelPosition:function(){return null==a&&oa(),a},reliableMarginRight:function(){return null==a&&oa(),q},reliableMarginLeft:function(){return null==a&&oa(),C}});function oa(){var Ca,sa,Ra=Ka.documentElement;
|
|
242
|
+
Ra.appendChild(K);X.style.cssText='-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%';a=g=C=!1;c=q=!0;A.getComputedStyle&&(sa=A.getComputedStyle(X),a='1%'!==(sa||{}).top,C='2px'===(sa||{}).marginLeft,g='4px'===(sa||{width:'4px'}).width,X.style.marginRight='50%',c='4px'===(sa||{marginRight:'4px'}).marginRight,Ca=X.appendChild(Ka.createElement('div')),Ca.style.cssText=X.style.cssText='-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0',
|
|
243
|
+
Ca.style.marginRight=Ca.style.width='0',X.style.width='1px',q=!parseFloat((A.getComputedStyle(Ca)||{}).marginRight),X.removeChild(Ca));X.style.display='none';(l=0===X.getClientRects().length)&&(X.style.display='',X.innerHTML='<table><tr><td></td><td>t</td></tr></table>',X.childNodes[0].style.borderCollapse='separate',Ca=X.getElementsByTagName('td'),Ca[0].style.cssText='margin:0;border:0;padding:0;display:none',l=0===Ca[0].offsetHeight,l&&(Ca[0].style.display='',Ca[1].style.display='none',l=0===Ca[0].offsetHeight));
|
|
244
|
+
Ra.removeChild(K)}}}();var rc,sc,Rc=/^(top|right|bottom|left)$/;A.getComputedStyle?(rc=function(a){var c=a.ownerDocument.defaultView;return c&&c.opener||(c=A),c.getComputedStyle(a)},sc=function(a,c,g){var l,q,C,K,X=a.style;return g=g||rc(a),K=g?g.getPropertyValue(c)||g[c]:void 0,''!==K&&void 0!==K||b.contains(a.ownerDocument,a)||(K=b.style(a,c)),g&&!e.pixelMarginRight()&&mc.test(K)&&Pc.test(c)&&(l=X.width,q=X.minWidth,C=X.maxWidth,X.minWidth=X.maxWidth=X.width=K,K=g.width,X.width=l,X.minWidth=q,X.maxWidth=
|
|
245
|
+
C),void 0===K?K:K+''}):Qc.currentStyle&&(rc=function(a){return a.currentStyle},sc=function(a,c,g){var l,q,C,K,X=a.style;return g=g||rc(a),K=g?g[c]:void 0,null==K&&X&&X[c]&&(K=X[c]),mc.test(K)&&!Rc.test(c)&&(l=X.left,q=a.runtimeStyle,C=q&&q.left,C&&(q.left=a.currentStyle.left),X.left='fontSize'===c?'1em':K,K=X.pixelLeft+'px',X.left=l,C&&(q.left=C)),void 0===K?K:K+''||'auto'});var $c=/alpha\([^)]*\)/i,Id=/opacity\s*=\s*([^)]*)/i,Jd=/^(none|table(?!-c[ea]).+)/,vd=new RegExp('^('+Fb+')(.*)$','i'),Kd=
|
|
246
246
|
{position:'absolute',visibility:'hidden',display:'block'},nd={letterSpacing:'0',fontWeight:'400'},jd=['Webkit','O','Moz','ms'],hd=Ka.createElement('div').style;b.extend({cssHooks:{opacity:{get:function(a,c){if(c)return a=sc(a,'opacity'),''===a?'1':a}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{'float':e.cssFloat?'cssFloat':'styleFloat'},style:function(a,
|
|
247
|
-
c,g,l){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var q,C,
|
|
248
|
-
g}catch(
|
|
249
|
-
q&&rc(g);return la(g,l,q?
|
|
247
|
+
c,g,l){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var q,C,K,X=b.camelCase(c),oa=a.style;if(c=b.cssProps[X]||(b.cssProps[X]=ca(X)||X),K=b.cssHooks[c]||b.cssHooks[X],void 0===g)return K&&'get'in K&&void 0!==(q=K.get(a,!1,l))?q:oa[c];if(C=typeof g,'string'===C&&(q=mb.exec(g))&&q[1]&&(g=va(a,c,q),C='number'),null!=g&&g===g&&('number'===C&&(g+=q&&q[3]||(b.cssNumber[X]?'':'px')),e.clearCloneStyle||''!==g||0!==c.indexOf('background')||(oa[c]='inherit'),!(K&&'set'in K&&void 0===(g=K.set(a,g,l)))))try{oa[c]=
|
|
248
|
+
g}catch(Ca){}}},css:function(a,c,g,l){var q,C,K,X=b.camelCase(c);return c=b.cssProps[X]||(b.cssProps[X]=ca(X)||X),K=b.cssHooks[c]||b.cssHooks[X],K&&'get'in K&&(C=K.get(a,!0,g)),void 0===C&&(C=sc(a,c,l)),'normal'===C&&c in nd&&(C=nd[c]),''===g||g?(q=parseFloat(C),!0===g||isFinite(q)?q||0:C):C}});b.each(['height','width'],function(a,c){b.cssHooks[c]={get:function(g,l,q){return l?Jd.test(b.css(g,'display'))&&0===g.offsetWidth?Lc(g,Kd,function(){return Ba(g,c,q)}):Ba(g,c,q):void 0},set:function(g,l,q){var C=
|
|
249
|
+
q&&rc(g);return la(g,l,q?za(g,c,q,e.boxSizing&&'border-box'===b.css(g,'boxSizing',!1,C),C):0)}}});e.opacity||(b.cssHooks.opacity={get:function(a,c){return Id.test((c&&a.currentStyle?a.currentStyle.filter:a.style.filter)||'')?.01*parseFloat(RegExp.$1)+'':c?'1':''},set:function(a,c){var g=a.style;a=a.currentStyle;var l=b.isNumeric(c)?'alpha(opacity='+100*c+')':'',q=a&&a.filter||g.filter||'';g.zoom=1;(1<=c||''===c)&&''===b.trim(q.replace($c,''))&&g.removeAttribute&&(g.removeAttribute('filter'),''===
|
|
250
250
|
c||a&&!a.filter)||(g.filter=$c.test(q)?q.replace($c,l):q+' '+l)}});b.cssHooks.marginRight=ja(e.reliableMarginRight,function(a,c){return c?Lc(a,{display:'inline-block'},sc,[a,'marginRight']):void 0});b.cssHooks.marginLeft=ja(e.reliableMarginLeft,function(a,c){return c?(parseFloat(sc(a,'marginLeft'))||(b.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Lc(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+'px':void 0});b.each({margin:'',padding:'',border:'Width'},function(a,
|
|
251
|
-
c){b.cssHooks[a+c]={expand:function(g){var l=0,q={};for(g='string'==typeof g?g.split(' '):[g];4>l;l++)q[a+Ya[l]+c]=g[l]||g[l-2]||g[0];return q}};Pc.test(a)||(b.cssHooks[a+c].set=la)});b.fn.extend({css:function(a,c){return ha(this,function(g,l,q){var C,
|
|
251
|
+
c){b.cssHooks[a+c]={expand:function(g){var l=0,q={};for(g='string'==typeof g?g.split(' '):[g];4>l;l++)q[a+Ya[l]+c]=g[l]||g[l-2]||g[0];return q}};Pc.test(a)||(b.cssHooks[a+c].set=la)});b.fn.extend({css:function(a,c){return ha(this,function(g,l,q){var C,K={},X=0;if(b.isArray(l)){q=rc(g);for(C=l.length;C>X;X++)K[l[X]]=b.css(g,l[X],!1,q);return K}return void 0!==q?b.style(g,l,q):b.css(g,l)},a,c,1<arguments.length)},show:function(){return wa(this,!0)},hide:function(){return wa(this)},toggle:function(a){return'boolean'==
|
|
252
252
|
typeof a?a?this.show():this.hide():this.each(function(){cb(this)?b(this).show():b(this).hide()})}});b.Tween=Na;Na.prototype={constructor:Na,init:function(a,c,g,l,q,C){this.elem=a;this.prop=g;this.easing=q||b.easing._default;this.options=c;this.start=this.now=this.cur();this.end=l;this.unit=C||(b.cssNumber[g]?'':'px')},cur:function(){var a=Na.propHooks[this.prop];return a&&a.get?a.get(this):Na.propHooks._default.get(this)},run:function(a){var c,g=Na.propHooks[this.prop];return this.options.duration?
|
|
253
253
|
this.pos=c=b.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=c=a,this.now=(this.end-this.start)*c+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),g&&g.set?g.set(this):Na.propHooks._default.set(this),this}};Na.prototype.init.prototype=Na.prototype;Na.propHooks={_default:{get:function(a){var c;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(c=b.css(a.elem,a.prop,''),c&&'auto'!==c?c:0)},set:function(a){b.fx.step[a.prop]?
|
|
254
254
|
b.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[b.cssProps[a.prop]]&&!b.cssHooks[a.prop]?a.elem[a.prop]=a.now:b.style(a.elem,a.prop,a.now+a.unit)}}};Na.propHooks.scrollTop=Na.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}};b.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:'swing'};b.fx=Na.prototype.init;b.fx.step={};var Fc,ad,Ld=/^(?:toggle|show|hide)$/,Md=/queueHooks$/;b.Animation=b.extend(Ha,
|
|
255
|
-
{tweeners:{'*':[function(a,c){var g=this.createTween(a,c);return
|
|
256
|
-
|
|
257
|
-
g.overflow[0];Va.overflowX=g.overflow[1];Va.overflowY=g.overflow[2]}));for(l in c)if(q=c[l],Ld.exec(q)){if(delete c[l],C=C||'toggle'===q,q===(Bb?'hide':'show')){if('show'!==q||!db||void 0===db[l])continue;Bb=!0}Ra[l]=db&&db[l]||b.style(a,l)}else oa=void 0;if(b.isEmptyObject(Ra))'inline'===('none'===oa?W(a.nodeName):oa)&&(Va.display=oa);else for(l in db?'hidden'in db&&(Bb=db.hidden):db=b._data(a,'fxshow',{}),C&&(db.hidden=!Bb),Bb?b(a).show():
|
|
258
|
-
b._removeData(a,'fxshow');for(Jb in Ra)b.style(a,Jb,Ra[Jb])}),Ra)c=Ua(Bb?db[l]:0,l,
|
|
259
|
-
b.fx.speeds._default,null!=l.queue&&!0!==l.queue||(l.queue='fx'),l.old=l.complete,l.complete=function(){b.isFunction(l.old)&&l.old.call(this);l.queue&&b.dequeue(this,l.queue)},l};b.fn.extend({fadeTo:function(a,c,g,l){return this.filter(cb).css('opacity',0).show().end().animate({opacity:c},a,g,l)},animate:function(a,c,g,l){var q=b.isEmptyObject(a),C=b.speed(c,g,l);c=function(){var
|
|
260
|
-
c)},stop:function(a,c,g){var l=function(q){var C=q.stop;delete q.stop;C(g)};return'string'!=typeof a&&(g=c,c=a,a=void 0),c&&!1!==a&&this.queue(a||'fx',[]),this.each(function(){var q=!0,C=null!=a&&a+'queueHooks',
|
|
255
|
+
{tweeners:{'*':[function(a,c){var g=this.createTween(a,c);return va(g.elem,a,mb.exec(c),g),g}]},tweener:function(a,c){b.isFunction(a)?(c=a,a=['*']):a=a.match(ua);for(var g,l=0,q=a.length;q>l;l++)g=a[l],Ha.tweeners[g]=Ha.tweeners[g]||[],Ha.tweeners[g].unshift(c)},prefilters:[function(a,c,g){var l,q,C,K,X,oa,Ca,sa=this,Ra={},Va=a.style,Bb=a.nodeType&&cb(a),db=b._data(a,'fxshow');g.queue||(K=b._queueHooks(a,'fx'),null==K.unqueued&&(K.unqueued=0,X=K.empty.fire,K.empty.fire=function(){K.unqueued||X()}),
|
|
256
|
+
K.unqueued++,sa.always(function(){sa.always(function(){K.unqueued--;b.queue(a,'fx').length||K.empty.fire()})}));1===a.nodeType&&('height'in c||'width'in c)&&(g.overflow=[Va.overflow,Va.overflowX,Va.overflowY],oa=b.css(a,'display'),Ca='none'===oa?b._data(a,'olddisplay')||W(a.nodeName):oa,'inline'===Ca&&'none'===b.css(a,'float')&&(e.inlineBlockNeedsLayout&&'inline'!==W(a.nodeName)?Va.zoom=1:Va.display='inline-block'));g.overflow&&(Va.overflow='hidden',e.shrinkWrapBlocks()||sa.always(function(){Va.overflow=
|
|
257
|
+
g.overflow[0];Va.overflowX=g.overflow[1];Va.overflowY=g.overflow[2]}));for(l in c)if(q=c[l],Ld.exec(q)){if(delete c[l],C=C||'toggle'===q,q===(Bb?'hide':'show')){if('show'!==q||!db||void 0===db[l])continue;Bb=!0}Ra[l]=db&&db[l]||b.style(a,l)}else oa=void 0;if(b.isEmptyObject(Ra))'inline'===('none'===oa?W(a.nodeName):oa)&&(Va.display=oa);else for(l in db?'hidden'in db&&(Bb=db.hidden):db=b._data(a,'fxshow',{}),C&&(db.hidden=!Bb),Bb?b(a).show():sa.done(function(){b(a).hide()}),sa.done(function(){var Jb;
|
|
258
|
+
b._removeData(a,'fxshow');for(Jb in Ra)b.style(a,Jb,Ra[Jb])}),Ra)c=Ua(Bb?db[l]:0,l,sa),l in db||(db[l]=c.start,Bb&&(c.end=c.start,c.start='width'===l||'height'===l?1:0))}],prefilter:function(a,c){c?Ha.prefilters.unshift(a):Ha.prefilters.push(a)}});b.speed=function(a,c,g){var l=a&&'object'==typeof a?b.extend({},a):{complete:g||!g&&c||b.isFunction(a)&&a,duration:a,easing:g&&c||c&&!b.isFunction(c)&&c};return l.duration=b.fx.off?0:'number'==typeof l.duration?l.duration:l.duration in b.fx.speeds?b.fx.speeds[l.duration]:
|
|
259
|
+
b.fx.speeds._default,null!=l.queue&&!0!==l.queue||(l.queue='fx'),l.old=l.complete,l.complete=function(){b.isFunction(l.old)&&l.old.call(this);l.queue&&b.dequeue(this,l.queue)},l};b.fn.extend({fadeTo:function(a,c,g,l){return this.filter(cb).css('opacity',0).show().end().animate({opacity:c},a,g,l)},animate:function(a,c,g,l){var q=b.isEmptyObject(a),C=b.speed(c,g,l);c=function(){var K=Ha(this,b.extend({},a),C);(q||b._data(this,'finish'))&&K.stop(!0)};return c.finish=c,q||!1===C.queue?this.each(c):this.queue(C.queue,
|
|
260
|
+
c)},stop:function(a,c,g){var l=function(q){var C=q.stop;delete q.stop;C(g)};return'string'!=typeof a&&(g=c,c=a,a=void 0),c&&!1!==a&&this.queue(a||'fx',[]),this.each(function(){var q=!0,C=null!=a&&a+'queueHooks',K=b.timers,X=b._data(this);if(C)X[C]&&X[C].stop&&l(X[C]);else for(C in X)X[C]&&X[C].stop&&Md.test(C)&&l(X[C]);for(C=K.length;C--;)K[C].elem!==this||null!=a&&K[C].queue!==a||(K[C].anim.stop(g),q=!1,K.splice(C,1));!q&&g||b.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||'fx'),this.each(function(){var c=
|
|
261
261
|
b._data(this),g=c[a+'queue'];var l=c[a+'queueHooks'];var q=b.timers,C=g?g.length:0;c.finish=!0;b.queue(this,a,[]);l&&l.stop&&l.stop.call(this,!0);for(l=q.length;l--;)q[l].elem===this&&q[l].queue===a&&(q[l].anim.stop(!0),q.splice(l,1));for(l=0;C>l;l++)g[l]&&g[l].finish&&g[l].finish.call(this);delete c.finish})}});b.each(['toggle','show','hide'],function(a,c){var g=b.fn[c];b.fn[c]=function(l,q,C){return null==l||'boolean'==typeof l?g.apply(this,arguments):this.animate(Ia(c,!0),l,q,C)}});b.each({slideDown:Ia('show'),
|
|
262
262
|
slideUp:Ia('hide'),slideToggle:Ia('toggle'),fadeIn:{opacity:'show'},fadeOut:{opacity:'hide'},fadeToggle:{opacity:'toggle'}},function(a,c){b.fn[a]=function(g,l,q){return this.animate(c,g,l,q)}});b.timers=[];b.fx.tick=function(){var a=b.timers,c=0;for(Fc=b.now();c<a.length;c++){var g=a[c];g()||a[c]!==g||a.splice(c--,1)}a.length||b.fx.stop();Fc=void 0};b.fx.timer=function(a){b.timers.push(a);a()?b.fx.start():b.timers.pop()};b.fx.interval=13;b.fx.start=function(){ad||=A.setInterval(b.fx.tick,b.fx.interval)};
|
|
263
263
|
b.fx.stop=function(){A.clearInterval(ad);ad=null};b.fx.speeds={slow:600,fast:200,_default:400};b.fn.delay=function(a,c){return a=b.fx?b.fx.speeds[a]||a:a,c=c||'fx',this.queue(c,function(g,l){var q=A.setTimeout(g,a);l.stop=function(){A.clearTimeout(q)}})};(function(){var a=Ka.createElement('input');Ka.createElement('div');var c=Ka.createElement('select'),g=c.appendChild(Ka.createElement('option'));var l=Ka.createElement('div');l.setAttribute('className','t');l.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
|
|
264
264
|
l.getElementsByTagName('a');a.setAttribute('type','checkbox');l.appendChild(a);var q=l.getElementsByTagName('a')[0];q.style.cssText='top:1px';e.getSetAttribute='t'!==l.className;e.style=/top/.test(q.getAttribute('style'));e.hrefNormalized='/a'===q.getAttribute('href');e.checkOn=!!a.value;e.optSelected=g.selected;e.enctype=!!Ka.createElement('form').enctype;c.disabled=!0;e.optDisabled=!g.disabled;a=Ka.createElement('input');a.setAttribute('value','');e.input=''===a.getAttribute('value');a.value='t';
|
|
265
|
-
a.setAttribute('type','radio');e.radioValue='t'===a.value})();var Nd=/\r/g,Od=/[\x20\t\r\n\f]+/g;b.fn.extend({val:function(a){var c,g,l,q=this[0];if(arguments.length)return l=b.isFunction(a),this.each(function(C){var
|
|
266
|
-
if(q)return c=b.valHooks[q.type]||b.valHooks[q.nodeName.toLowerCase()],c&&'get'in c&&void 0!==(g=c.get(q,'value'))?g:(g=q.value,'string'==typeof g?g.replace(Nd,''):null==g?'':g)}});b.extend({valHooks:{option:{get:function(a){var c=b.find.attr(a,'value');return null!=c?c:b.trim(b.text(a)).replace(Od,' ')}},select:{get:function(a){for(var c,g=a.options,l=a.selectedIndex,q='select-one'===a.type||0>l,C=q?null:[],
|
|
267
|
-
null!==c.getAttribute('disabled'))||c.parentNode.disabled&&b.nodeName(c.parentNode,'optgroup'))){if(a=b(c).val(),q)return a;C.push(a)}return C},set:function(a,c){var g,l,q=a.options;c=b.makeArray(c);for(var C=q.length;C--;)if(l=q[C],-1<b.inArray(b.valHooks.option.get(l),c))try{l.selected=g=!0}catch(
|
|
265
|
+
a.setAttribute('type','radio');e.radioValue='t'===a.value})();var Nd=/\r/g,Od=/[\x20\t\r\n\f]+/g;b.fn.extend({val:function(a){var c,g,l,q=this[0];if(arguments.length)return l=b.isFunction(a),this.each(function(C){var K;1===this.nodeType&&(K=l?a.call(this,C,b(this).val()):a,null==K?K='':'number'==typeof K?K+='':b.isArray(K)&&(K=b.map(K,function(X){return null==X?'':X+''})),c=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],c&&'set'in c&&void 0!==c.set(this,K,'value')||(this.value=K))});
|
|
266
|
+
if(q)return c=b.valHooks[q.type]||b.valHooks[q.nodeName.toLowerCase()],c&&'get'in c&&void 0!==(g=c.get(q,'value'))?g:(g=q.value,'string'==typeof g?g.replace(Nd,''):null==g?'':g)}});b.extend({valHooks:{option:{get:function(a){var c=b.find.attr(a,'value');return null!=c?c:b.trim(b.text(a)).replace(Od,' ')}},select:{get:function(a){for(var c,g=a.options,l=a.selectedIndex,q='select-one'===a.type||0>l,C=q?null:[],K=q?l+1:g.length,X=0>l?K:q?l:0;K>X;X++)if(c=g[X],!(!c.selected&&X!==l||(e.optDisabled?c.disabled:
|
|
267
|
+
null!==c.getAttribute('disabled'))||c.parentNode.disabled&&b.nodeName(c.parentNode,'optgroup'))){if(a=b(c).val(),q)return a;C.push(a)}return C},set:function(a,c){var g,l,q=a.options;c=b.makeArray(c);for(var C=q.length;C--;)if(l=q[C],-1<b.inArray(b.valHooks.option.get(l),c))try{l.selected=g=!0}catch(K){l.scrollHeight}else l.selected=!1;return g||(a.selectedIndex=-1),q}}}});b.each(['radio','checkbox'],function(){b.valHooks[this]={set:function(a,c){return b.isArray(c)?a.checked=-1<b.inArray(b(a).val(),
|
|
268
268
|
c):void 0}};e.checkOn||(b.valHooks[this].get=function(a){return null===a.getAttribute('value')?'on':a.value})});var Ic,zc=b.expr.attrHandle,bd=/^(?:checked|selected)$/i,Ec=e.getSetAttribute,Sc=e.input;b.fn.extend({attr:function(a,c){return ha(this,b.attr,a,c,1<arguments.length)},removeAttr:function(a){return this.each(function(){b.removeAttr(this,a)})}});b.extend({attr:function(a,c,g){var l,q,C=a.nodeType;if(3!==C&&8!==C&&2!==C)return'undefined'==typeof a.getAttribute?b.prop(a,c,g):(1===C&&b.isXMLDoc(a)||
|
|
269
|
-
(c=c.toLowerCase(),q=b.attrHooks[c]||(b.expr.match.bool.test(c)?Pd:Ic)),void 0!==g?null===g?void b.removeAttr(a,c):q&&'set'in q&&void 0!==(l=q.set(a,g,c))?l:(a.setAttribute(c,g+''),g):q&&'get'in q&&null!==(l=q.get(a,c))?l:(l=b.find.attr(a,c),null==l?void 0:l))},attrHooks:{type:{set:function(a,c){if(!e.radioValue&&'radio'===c&&b.nodeName(a,'input')){var g=a.value;return a.setAttribute('type',c),g&&(a.value=g),c}}}},removeAttr:function(a,c){var g=0,l=c&&c.match(
|
|
270
|
-
b.propFix[c]||c;b.expr.match.bool.test(c)?Sc&&Ec||!bd.test(c)?a[q]=!1:a[b.camelCase('default-'+c)]=a[q]=!1:b.attr(a,c,'');a.removeAttribute(Ec?c:q)}}});var Pd={set:function(a,c,g){return!1===c?b.removeAttr(a,g):Sc&&Ec||!bd.test(g)?a.setAttribute(!Ec&&b.propFix[g]||g,g):a[b.camelCase('default-'+g)]=a[g]=!0,g}};b.each(b.expr.match.bool.source.match(/\w+/g),function(a,c){var g=zc[c]||b.find.attr;Sc&&Ec||!bd.test(c)?zc[c]=function(l,q,C){var
|
|
271
|
-
null,zc[q]=X),
|
|
269
|
+
(c=c.toLowerCase(),q=b.attrHooks[c]||(b.expr.match.bool.test(c)?Pd:Ic)),void 0!==g?null===g?void b.removeAttr(a,c):q&&'set'in q&&void 0!==(l=q.set(a,g,c))?l:(a.setAttribute(c,g+''),g):q&&'get'in q&&null!==(l=q.get(a,c))?l:(l=b.find.attr(a,c),null==l?void 0:l))},attrHooks:{type:{set:function(a,c){if(!e.radioValue&&'radio'===c&&b.nodeName(a,'input')){var g=a.value;return a.setAttribute('type',c),g&&(a.value=g),c}}}},removeAttr:function(a,c){var g=0,l=c&&c.match(ua);if(l&&1===a.nodeType)for(;c=l[g++];){var q=
|
|
270
|
+
b.propFix[c]||c;b.expr.match.bool.test(c)?Sc&&Ec||!bd.test(c)?a[q]=!1:a[b.camelCase('default-'+c)]=a[q]=!1:b.attr(a,c,'');a.removeAttribute(Ec?c:q)}}});var Pd={set:function(a,c,g){return!1===c?b.removeAttr(a,g):Sc&&Ec||!bd.test(g)?a.setAttribute(!Ec&&b.propFix[g]||g,g):a[b.camelCase('default-'+g)]=a[g]=!0,g}};b.each(b.expr.match.bool.source.match(/\w+/g),function(a,c){var g=zc[c]||b.find.attr;Sc&&Ec||!bd.test(c)?zc[c]=function(l,q,C){var K,X;return C||(X=zc[q],zc[q]=K,K=null!=g(l,q,C)?q.toLowerCase():
|
|
271
|
+
null,zc[q]=X),K}:zc[c]=function(l,q,C){return C?void 0:l[b.camelCase('default-'+q)]?q.toLowerCase():null}});Sc&&Ec||(b.attrHooks.value={set:function(a,c,g){return b.nodeName(a,'input')?void(a.defaultValue=c):Ic&&Ic.set(a,c,g)}});Ec||(Ic={set:function(a,c,g){var l=a.getAttributeNode(g);return l||a.setAttributeNode(l=a.ownerDocument.createAttribute(g)),l.value=c+='','value'===g||c===a.getAttribute(g)?c:void 0}},zc.id=zc.name=zc.coords=function(a,c,g){var l;return g?void 0:(l=a.getAttributeNode(c))&&
|
|
272
272
|
''!==l.value?l.value:null},b.valHooks.button={get:function(a,c){return(a=a.getAttributeNode(c))&&a.specified?a.value:void 0},set:Ic.set},b.attrHooks.contenteditable={set:function(a,c,g){Ic.set(a,''===c?!1:c,g)}},b.each(['width','height'],function(a,c){b.attrHooks[c]={set:function(g,l){return''===l?(g.setAttribute(c,'auto'),l):void 0}}}));e.style||(b.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,c){return a.style.cssText=c+''}});var Qd=/^(?:input|select|textarea|button|object)$/i,
|
|
273
273
|
Rd=/^(?:a|area)$/i;b.fn.extend({prop:function(a,c){return ha(this,b.prop,a,c,1<arguments.length)},removeProp:function(a){return a=b.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(c){}})}});b.extend({prop:function(a,c,g){var l,q,C=a.nodeType;if(3!==C&&8!==C&&2!==C)return 1===C&&b.isXMLDoc(a)||(c=b.propFix[c]||c,q=b.propHooks[c]),void 0!==g?q&&'set'in q&&void 0!==(l=q.set(a,g,c))?l:a[c]=g:q&&'get'in q&&null!==(l=q.get(a,c))?l:a[c]},propHooks:{tabIndex:{get:function(a){var c=
|
|
274
274
|
b.find.attr(a,'tabindex');return c?parseInt(c,10):Qd.test(a.nodeName)||Rd.test(a.nodeName)&&a.href?0:-1}}},propFix:{'for':'htmlFor','class':'className'}});e.hrefNormalized||b.each(['href','src'],function(a,c){b.propHooks[c]={get:function(g){return g.getAttribute(c,4)}}});e.optSelected||(b.propHooks.selected={get:function(a){a=a.parentNode;return a&&(a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex),null},set:function(a){a=a.parentNode;a&&(a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex)}});
|
|
275
|
-
b.each('tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable'.split(' '),function(){b.propFix[this.toLowerCase()]=this});e.enctype||(b.propFix.enctype='encoding');var cd=/[\t\r\n\f]/g;b.fn.extend({addClass:function(a){var c,g,l,q,C,
|
|
276
|
-
0;C=c[
|
|
277
|
-
b.attr(g,'class',l)}return this},toggleClass:function(a,c){var g=typeof a;return'boolean'==typeof c&&'string'===g?c?this.addClass(a):this.removeClass(a):b.isFunction(a)?this.each(function(l){b(this).toggleClass(a.call(this,l,Ja(this),c),c)}):this.each(function(){var l,q;if('string'===g){var C=0;var
|
|
275
|
+
b.each('tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable'.split(' '),function(){b.propFix[this.toLowerCase()]=this});e.enctype||(b.propFix.enctype='encoding');var cd=/[\t\r\n\f]/g;b.fn.extend({addClass:function(a){var c,g,l,q,C,K,X=0;if(b.isFunction(a))return this.each(function(oa){b(this).addClass(a.call(this,oa,Ja(this)))});if('string'==typeof a&&a)for(c=a.match(ua)||[];g=this[X++];)if(q=Ja(g),l=1===g.nodeType&&(' '+q+' ').replace(cd,' ')){for(K=
|
|
276
|
+
0;C=c[K++];)0>l.indexOf(' '+C+' ')&&(l+=C+' ');l=b.trim(l);q!==l&&b.attr(g,'class',l)}return this},removeClass:function(a){var c,g,l,q,C,K,X=0;if(b.isFunction(a))return this.each(function(oa){b(this).removeClass(a.call(this,oa,Ja(this)))});if(!arguments.length)return this.attr('class','');if('string'==typeof a&&a)for(c=a.match(ua)||[];g=this[X++];)if(q=Ja(g),l=1===g.nodeType&&(' '+q+' ').replace(cd,' ')){for(K=0;C=c[K++];)for(;-1<l.indexOf(' '+C+' ');)l=l.replace(' '+C+' ',' ');l=b.trim(l);q!==l&&
|
|
277
|
+
b.attr(g,'class',l)}return this},toggleClass:function(a,c){var g=typeof a;return'boolean'==typeof c&&'string'===g?c?this.addClass(a):this.removeClass(a):b.isFunction(a)?this.each(function(l){b(this).toggleClass(a.call(this,l,Ja(this),c),c)}):this.each(function(){var l,q;if('string'===g){var C=0;var K=b(this);for(q=a.match(ua)||[];l=q[C++];)K.hasClass(l)?K.removeClass(l):K.addClass(l)}else void 0!==a&&'boolean'!==g||(l=Ja(this),l&&b._data(this,'__className__',l),b.attr(this,'class',l||!1===a?'':b._data(this,
|
|
278
278
|
'__className__')||''))})},hasClass:function(a){var c,g=0;for(a=' '+a+' ';c=this[g++];)if(1===c.nodeType&&-1<(' '+Ja(c)+' ').replace(cd,' ').indexOf(a))return!0;return!1}});b.each('blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu'.split(' '),function(a,c){b.fn[c]=function(g,l){return 0<arguments.length?this.on(c,null,g,l):this.trigger(c)}});b.fn.extend({hover:function(a,
|
|
279
|
-
c){return this.mouseenter(a).mouseleave(c||a)}});var Sd=A.location,dd=b.now(),ed=/\?/,Td=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;b.parseJSON=function(a){if(A.JSON&&A.JSON.parse)return A.JSON.parse(a+'');var c,g=null,l=b.trim(a+'');return l&&!b.trim(l.replace(Td,function(q,C,
|
|
279
|
+
c){return this.mouseenter(a).mouseleave(c||a)}});var Sd=A.location,dd=b.now(),ed=/\?/,Td=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;b.parseJSON=function(a){if(A.JSON&&A.JSON.parse)return A.JSON.parse(a+'');var c,g=null,l=b.trim(a+'');return l&&!b.trim(l.replace(Td,function(q,C,K,X){return c&&C&&(g=0),0===g?q:(c=K||C,g+=!X-!K,'')}))?Function('return '+l)():b.error('Invalid JSON: '+a)};b.parseXML=function(a){var c,
|
|
280
280
|
g;if(!a||'string'!=typeof a)return null;try{A.DOMParser?(g=new A.DOMParser,c=g.parseFromString(a,'text/xml')):(c=new A.ActiveXObject('Microsoft.XMLDOM'),c.async='false',c.loadXML(a))}catch(l){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName('parsererror').length||b.error('Invalid XML: '+a),c};var Ud=/#.*$/,od=/([?&])_=[^&]*/,Vd=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Wd=/^(?:GET|HEAD)$/,Xd=/^\/\//,pd=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,qd={},Vc={},rd='*/'.concat('*'),
|
|
281
281
|
fd=Sd.href,Jc=pd.exec(fd.toLowerCase())||[];b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fd,type:'GET',isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Jc[1]),global:!0,processData:!0,async:!0,contentType:'application/x-www-form-urlencoded; charset=UTF-8',accepts:{'*':rd,text:'text/plain',html:'text/html',xml:'application/xml, text/xml',json:'application/json, text/javascript'},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:'responseXML',
|
|
282
|
-
text:'responseText',json:'responseJSON'},converters:{'* text':String,'text html':!0,'text json':b.parseJSON,'text xml':b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,c){return c?$a($a(a,b.ajaxSettings),c):$a(b.ajaxSettings,a)},ajaxPrefilter:Za(qd),ajaxTransport:Za(Vc),ajax:function(a,c){function g(Db,Ob,Rb,vb){var ic,ec,Tb,dc=Ob;if(2!==kc){kc=2;
|
|
283
|
-
Hc=Sb.contents,oc=Sb.dataTypes;'*'===oc[0];)oc.shift(),void 0===$b&&($b=Sb.mimeType||nc.getResponseHeader('Content-Type'));if($b)for(Qb in Hc)if(Hc[Qb]&&Hc[Qb].test($b)){oc.unshift(Qb);break}if(oc[0]in Rb)Wb=oc[0];else{for(Qb in Rb){if(!oc[0]||Sb.converters[Qb+' '+oc[0]]){Wb=Qb;break}Cb||=Qb}Wb=Wb||Cb}Sb=Wb?(Wb!==oc[0]&&oc.unshift(Wb),Rb[Wb]):void 0}a:{Rb=
|
|
282
|
+
text:'responseText',json:'responseJSON'},converters:{'* text':String,'text html':!0,'text json':b.parseJSON,'text xml':b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,c){return c?$a($a(a,b.ajaxSettings),c):$a(b.ajaxSettings,a)},ajaxPrefilter:Za(qd),ajaxTransport:Za(Vc),ajax:function(a,c){function g(Db,Ob,Rb,vb){var ic,ec,Tb,dc=Ob;if(2!==kc){kc=2;K&&A.clearTimeout(K);oa=void 0;C=vb||'';xb.readyState=0<Db?4:0;vb=200<=Db&&300>Db||304===Db;if(Rb){var Sb=sa;for(var nc=xb,Cb,$b,Wb,Qb,
|
|
283
|
+
Hc=Sb.contents,oc=Sb.dataTypes;'*'===oc[0];)oc.shift(),void 0===$b&&($b=Sb.mimeType||nc.getResponseHeader('Content-Type'));if($b)for(Qb in Hc)if(Hc[Qb]&&Hc[Qb].test($b)){oc.unshift(Qb);break}if(oc[0]in Rb)Wb=oc[0];else{for(Qb in Rb){if(!oc[0]||Sb.converters[Qb+' '+oc[0]]){Wb=Qb;break}Cb||=Qb}Wb=Wb||Cb}Sb=Wb?(Wb!==oc[0]&&oc.unshift(Wb),Rb[Wb]):void 0}a:{Rb=sa;Cb=Sb;$b=xb;Wb=vb;var ac,uc,vc;Sb={};nc=Rb.dataTypes.slice();if(nc[1])for(ac in Rb.converters)Sb[ac.toLowerCase()]=Rb.converters[ac];for(Qb=
|
|
284
284
|
nc.shift();Qb;)if(Rb.responseFields[Qb]&&($b[Rb.responseFields[Qb]]=Cb),!vc&&Wb&&Rb.dataFilter&&(Cb=Rb.dataFilter(Cb,Rb.dataType)),vc=Qb,Qb=nc.shift())if('*'===Qb)Qb=vc;else if('*'!==vc&&vc!==Qb){if(ac=Sb[vc+' '+Qb]||Sb['* '+Qb],!ac)for(lc in Sb)if(uc=lc.split(' '),uc[1]===Qb&&(ac=Sb[vc+' '+uc[0]]||Sb['* '+uc[0]])){!0===ac?ac=Sb[lc]:!0!==Sb[lc]&&(Qb=uc[0],nc.unshift(uc[1]));break}if(!0!==ac)if(ac&&Rb['throws'])Cb=ac(Cb);else try{Cb=ac(Cb)}catch(Yc){var lc={state:'parsererror',error:ac?Yc:'No conversion from '+
|
|
285
|
-
vc+' to '+Qb};break a}}lc={state:'success',data:Cb}}Sb=lc;vb?(
|
|
286
|
-
'ajaxSuccess':'ajaxError',[xb,
|
|
287
|
-
Ob[2];Ob=
|
|
288
|
-
xb.success=xb.done,xb.error=xb.fail,
|
|
289
|
-
xb),2===kc)return xb;(X=b.event&&
|
|
290
|
-
(
|
|
291
|
-
1,X&&Va.trigger('ajaxSend',[xb,
|
|
285
|
+
vc+' to '+Qb};break a}}lc={state:'success',data:Cb}}Sb=lc;vb?(sa.ifModified&&(Tb=xb.getResponseHeader('Last-Modified'),Tb&&(b.lastModified[gc]=Tb),Tb=xb.getResponseHeader('etag'),Tb&&(b.etag[gc]=Tb)),204===Db||'HEAD'===sa.type?dc='nocontent':304===Db?dc='notmodified':(dc=Sb.state,ic=Sb.data,ec=Sb.error,vb=!ec)):(ec=dc,!Db&&dc||(dc='error',0>Db&&(Db=0)));xb.status=Db;xb.statusText=(Ob||dc)+'';vb?Bb.resolveWith(Ra,[ic,dc,xb]):Bb.rejectWith(Ra,[xb,dc,ec]);xb.statusCode(Jb);Jb=void 0;X&&Va.trigger(vb?
|
|
286
|
+
'ajaxSuccess':'ajaxError',[xb,sa,vb?ic:ec]);db.fireWith(Ra,[xb,dc]);X&&(Va.trigger('ajaxComplete',[xb,sa]),--b.active||b.event.trigger('ajaxStop'))}}'object'==typeof a&&(c=a,a=void 0);c=c||{};var l,q,C,K,X,oa,Ca,sa=b.ajaxSetup({},c),Ra=sa.context||sa,Va=sa.context&&(Ra.nodeType||Ra.jquery)?b(Ra):b.event,Bb=b.Deferred(),db=b.Callbacks('once memory'),Jb=sa.statusCode||{},jc={},Gc={},kc=0,wc='canceled',xb={readyState:0,getResponseHeader:function(Db){var Ob;if(2===kc){if(!Ca)for(Ca={};Ob=Vd.exec(C);)Ca[Ob[1].toLowerCase()]=
|
|
287
|
+
Ob[2];Ob=Ca[Db.toLowerCase()]}return null==Ob?null:Ob},getAllResponseHeaders:function(){return 2===kc?C:null},setRequestHeader:function(Db,Ob){var Rb=Db.toLowerCase();return kc||(Db=Gc[Rb]=Gc[Rb]||Db,jc[Db]=Ob),this},overrideMimeType:function(Db){return kc||(sa.mimeType=Db),this},statusCode:function(Db){var Ob;if(Db)if(2>kc)for(Ob in Db)Jb[Ob]=[Jb[Ob],Db[Ob]];else xb.always(Db[xb.status]);return this},abort:function(Db){Db=Db||wc;return oa&&oa.abort(Db),g(0,Db),this}};if(Bb.promise(xb).complete=db.add,
|
|
288
|
+
xb.success=xb.done,xb.error=xb.fail,sa.url=((a||sa.url||fd)+'').replace(Ud,'').replace(Xd,Jc[1]+'//'),sa.type=c.method||c.type||sa.method||sa.type,sa.dataTypes=b.trim(sa.dataType||'*').toLowerCase().match(ua)||[''],null==sa.crossDomain&&(l=pd.exec(sa.url.toLowerCase()),sa.crossDomain=!(!l||l[1]===Jc[1]&&l[2]===Jc[2]&&(l[3]||('http:'===l[1]?'80':'443'))===(Jc[3]||('http:'===Jc[1]?'80':'443')))),sa.data&&sa.processData&&'string'!=typeof sa.data&&(sa.data=b.param(sa.data,sa.traditional)),rb(qd,sa,c,
|
|
289
|
+
xb),2===kc)return xb;(X=b.event&&sa.global)&&0===b.active++&&b.event.trigger('ajaxStart');sa.type=sa.type.toUpperCase();sa.hasContent=!Wd.test(sa.type);var gc=sa.url;sa.hasContent||(sa.data&&(gc=sa.url+=(ed.test(gc)?'&':'?')+sa.data,delete sa.data),!1===sa.cache&&(sa.url=od.test(gc)?gc.replace(od,'$1_='+dd++):gc+(ed.test(gc)?'&':'?')+'_='+dd++));sa.ifModified&&(b.lastModified[gc]&&xb.setRequestHeader('If-Modified-Since',b.lastModified[gc]),b.etag[gc]&&xb.setRequestHeader('If-None-Match',b.etag[gc]));
|
|
290
|
+
(sa.data&&sa.hasContent&&!1!==sa.contentType||c.contentType)&&xb.setRequestHeader('Content-Type',sa.contentType);xb.setRequestHeader('Accept',sa.dataTypes[0]&&sa.accepts[sa.dataTypes[0]]?sa.accepts[sa.dataTypes[0]]+('*'!==sa.dataTypes[0]?', '+rd+'; q=0.01':''):sa.accepts['*']);for(q in sa.headers)xb.setRequestHeader(q,sa.headers[q]);if(sa.beforeSend&&(!1===sa.beforeSend.call(Ra,xb,sa)||2===kc))return xb.abort();wc='abort';for(q in{success:1,error:1,complete:1})xb[q](sa[q]);if(oa=rb(Vc,sa,c,xb)){if(xb.readyState=
|
|
291
|
+
1,X&&Va.trigger('ajaxSend',[xb,sa]),2===kc)return xb;sa.async&&0<sa.timeout&&(K=A.setTimeout(function(){xb.abort('timeout')},sa.timeout));try{kc=1,oa.send(jc,g)}catch(Db){if(!(2>kc))throw Db;g(-1,Db)}}else g(-1,'No Transport');return xb},getJSON:function(a,c,g){return b.get(a,c,g,'json')},getScript:function(a,c){return b.get(a,void 0,c,'script')}});b.each(['get','post'],function(a,c){b[c]=function(g,l,q,C){return b.isFunction(l)&&(C=C||q,q=l,l=void 0),b.ajax(b.extend({url:g,type:c,dataType:C,data:l,
|
|
292
292
|
success:q},b.isPlainObject(g)&&g))}});b._evalUrl=function(a){return b.ajax({url:a,type:'GET',dataType:'script',cache:!0,async:!1,global:!1,'throws':!0})};b.fn.extend({wrapAll:function(a){if(b.isFunction(a))return this.each(function(g){b(this).wrapAll(a.call(this,g))});if(this[0]){var c=b(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var g=this;g.firstChild&&1===g.firstChild.nodeType;)g=g.firstChild;return g}).append(this)}return this},wrapInner:function(a){return b.isFunction(a)?
|
|
293
293
|
this.each(function(c){b(this).wrapInner(a.call(this,c))}):this.each(function(){var c=b(this),g=c.contents();g.length?g.wrapAll(a):c.append(a)})},wrap:function(a){var c=b.isFunction(a);return this.each(function(g){b(this).wrapAll(c?a.call(this,g):a)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,'body')||b(this).replaceWith(this.childNodes)}).end()}});b.expr.filters.hidden=function(a){return e.reliableHiddenOffsets()?0>=a.offsetWidth&&0>=a.offsetHeight&&!a.getClientRects().length:
|
|
294
|
-
pb(a)};b.expr.filters.visible=function(a){return!b.expr.filters.hidden(a)};var Yd=/%20/g,wd=/\[\]$/,sd=/\r?\n/g,Zd=/^(?:submit|button|image|reset|file)$/i,$d=/^(?:input|select|textarea|keygen)/i;b.param=function(a,c){var g,l=[],q=function(C,
|
|
294
|
+
pb(a)};b.expr.filters.visible=function(a){return!b.expr.filters.hidden(a)};var Yd=/%20/g,wd=/\[\]$/,sd=/\r?\n/g,Zd=/^(?:submit|button|image|reset|file)$/i,$d=/^(?:input|select|textarea|keygen)/i;b.param=function(a,c){var g,l=[],q=function(C,K){K=b.isFunction(K)?K():null==K?'':K;l[l.length]=encodeURIComponent(C)+'='+encodeURIComponent(K)};if(void 0===c&&(c=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(a)||a.jquery&&!b.isPlainObject(a))b.each(a,function(){q(this.name,this.value)});else for(g in a)Vb(g,
|
|
295
295
|
a[g],c,q);return l.join('&').replace(Yd,'+')};b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=b.prop(this,'elements');return a?b.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!b(this).is(':disabled')&&$d.test(this.nodeName)&&!Zd.test(a)&&(this.checked||!Y.test(a))}).map(function(a,c){a=b(this).val();return null==a?null:b.isArray(a)?b.map(a,function(g){return{name:c.name,value:g.replace(sd,
|
|
296
296
|
'\r\n')}}):{name:c.name,value:a.replace(sd,'\r\n')}}).get()}});b.ajaxSettings.xhr=void 0!==A.ActiveXObject?function(){return this.isLocal?nb():8<Ka.documentMode?zb():/^(get|post|head|put|delete|options)$/i.test(this.type)&&zb()||nb()}:zb;var ae=0,Tc={},Uc=b.ajaxSettings.xhr();A.attachEvent&&A.attachEvent('onunload',function(){for(var a in Tc)Tc[a](void 0,!0)});e.cors=!!Uc&&'withCredentials'in Uc;(Uc=e.ajax=!!Uc)&&b.ajaxTransport(function(a){if(!a.crossDomain||e.cors){var c;return{send:function(g,
|
|
297
|
-
l){var q,C=a.xhr(),
|
|
298
|
-
{};var
|
|
299
|
-
converters:{'text script':function(a){return b.globalEval(a),a}}});b.ajaxPrefilter('script',function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type='GET',a.global=!1)});b.ajaxTransport('script',function(a){if(a.crossDomain){var c,g=Ka.head||b('head')[0]||Ka.documentElement;return{send:function(l,q){c=Ka.createElement('script');c.async=!0;a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(C,
|
|
300
|
-
(c.onload=c.onreadystatechange=null,c.parentNode&&c.parentNode.removeChild(c),c=null,
|
|
301
|
-
gd.test(a.data)&&'data');return
|
|
302
|
-
q(C[0]);C=q=void 0}),'script'):void 0});b.parseHTML=function(a,c,g){if(!a||'string'!=typeof a)return null;'boolean'==typeof c&&(g=c,c=!1);c=c||Ka;var l=qa.exec(a);g=!g&&[];return l?[c.createElement(l[1])]:(l=
|
|
303
|
-
'object'==typeof c&&(q='POST'),0<
|
|
304
|
-
c.elem}).length};b.offset={setOffset:function(a,c,g){var l,q,C,
|
|
305
|
-
b.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(
|
|
297
|
+
l){var q,C=a.xhr(),K=++ae;if(C.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(q in a.xhrFields)C[q]=a.xhrFields[q];a.mimeType&&C.overrideMimeType&&C.overrideMimeType(a.mimeType);a.crossDomain||g['X-Requested-With']||(g['X-Requested-With']='XMLHttpRequest');for(q in g)void 0!==g[q]&&C.setRequestHeader(q,g[q]+'');C.send(a.hasContent&&a.data||null);c=function(X,oa){if(c&&(oa||4===C.readyState))if(delete Tc[K],c=void 0,C.onreadystatechange=b.noop,oa)4!==C.readyState&&C.abort();else{var Ca=
|
|
298
|
+
{};var sa=C.status;'string'==typeof C.responseText&&(Ca.text=C.responseText);try{var Ra=C.statusText}catch(Va){Ra=''}sa||!a.isLocal||a.crossDomain?1223===sa&&(sa=204):sa=Ca.text?200:404}Ca&&l(sa,Ra,Ca,C.getAllResponseHeaders())};a.async?4===C.readyState?A.setTimeout(c):C.onreadystatechange=Tc[K]=c:c()},abort:function(){c&&c(void 0,!0)}}}});b.ajaxSetup({accepts:{script:'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'},contents:{script:/\b(?:java|ecma)script\b/},
|
|
299
|
+
converters:{'text script':function(a){return b.globalEval(a),a}}});b.ajaxPrefilter('script',function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type='GET',a.global=!1)});b.ajaxTransport('script',function(a){if(a.crossDomain){var c,g=Ka.head||b('head')[0]||Ka.documentElement;return{send:function(l,q){c=Ka.createElement('script');c.async=!0;a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(C,K){(K||!c.readyState||/loaded|complete/.test(c.readyState))&&
|
|
300
|
+
(c.onload=c.onreadystatechange=null,c.parentNode&&c.parentNode.removeChild(c),c=null,K||q(200,'success'))};g.insertBefore(c,g.firstChild)},abort:function(){c&&c.onload(void 0,!0)}}}});var td=[],gd=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:'callback',jsonpCallback:function(){var a=td.pop()||b.expando+'_'+dd++;return this[a]=!0,a}});b.ajaxPrefilter('json jsonp',function(a,c,g){var l,q,C,K=!1!==a.jsonp&&(gd.test(a.url)?'url':'string'==typeof a.data&&0===(a.contentType||'').indexOf('application/x-www-form-urlencoded')&&
|
|
301
|
+
gd.test(a.data)&&'data');return K||'jsonp'===a.dataTypes[0]?(l=a.jsonpCallback=b.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,K?a[K]=a[K].replace(gd,'$1'+l):!1!==a.jsonp&&(a.url+=(ed.test(a.url)?'&':'?')+a.jsonp+'='+l),a.converters['script json']=function(){return C||b.error(l+' was not called'),C[0]},a.dataTypes[0]='json',q=A[l],A[l]=function(){C=arguments},g.always(function(){void 0===q?b(A).removeProp(l):A[l]=q;a[l]&&(a.jsonpCallback=c.jsonpCallback,td.push(l));C&&b.isFunction(q)&&
|
|
302
|
+
q(C[0]);C=q=void 0}),'script'):void 0});b.parseHTML=function(a,c,g){if(!a||'string'!=typeof a)return null;'boolean'==typeof c&&(g=c,c=!1);c=c||Ka;var l=qa.exec(a);g=!g&&[];return l?[c.createElement(l[1])]:(l=D([a],c,g),g&&g.length&&b(g).remove(),b.merge([],l.childNodes))};var ud=b.fn.load;b.fn.load=function(a,c,g){if('string'!=typeof a&&ud)return ud.apply(this,arguments);var l,q,C,K=this,X=a.indexOf(' ');return-1<X&&(l=b.trim(a.slice(X,a.length)),a=a.slice(0,X)),b.isFunction(c)?(g=c,c=void 0):c&&
|
|
303
|
+
'object'==typeof c&&(q='POST'),0<K.length&&b.ajax({url:a,type:q||'GET',dataType:'html',data:c}).done(function(oa){C=arguments;K.html(l?b('<div>').append(b.parseHTML(oa)).find(l):oa)}).always(g&&function(oa,Ca){K.each(function(){g.apply(this,C||[oa.responseText,Ca,oa])})}),this};b.each('ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend'.split(' '),function(a,c){b.fn[c]=function(g){return this.on(c,g)}});b.expr.filters.animated=function(a){return b.grep(b.timers,function(c){return a===
|
|
304
|
+
c.elem}).length};b.offset={setOffset:function(a,c,g){var l,q,C,K=b.css(a,'position'),X=b(a),oa={};'static'===K&&(a.style.position='relative');var Ca=X.offset();var sa=b.css(a,'top');var Ra=b.css(a,'left');('absolute'===K||'fixed'===K)&&-1<b.inArray('auto',[sa,Ra])?(l=X.position(),C=l.top,q=l.left):(C=parseFloat(sa)||0,q=parseFloat(Ra)||0);b.isFunction(c)&&(c=c.call(a,g,b.extend({},Ca)));null!=c.top&&(oa.top=c.top-Ca.top+C);null!=c.left&&(oa.left=c.left-Ca.left+q);'using'in c?c.using.call(a,oa):X.css(oa)}};
|
|
305
|
+
b.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(K){b.offset.setOffset(this,a,K)});var c,g,l={top:0,left:0},q=this[0],C=q&&q.ownerDocument;if(C)return c=C.documentElement,b.contains(c,q)?('undefined'!=typeof q.getBoundingClientRect&&(l=q.getBoundingClientRect()),g=Ab(C),{top:l.top+(g.pageYOffset||c.scrollTop)-(c.clientTop||0),left:l.left+(g.pageXOffset||c.scrollLeft)-(c.clientLeft||0)}):l},position:function(){if(this[0]){var a,c,g={top:0,left:0},l=this[0];
|
|
306
306
|
return'fixed'===b.css(l,'position')?c=l.getBoundingClientRect():(a=this.offsetParent(),c=this.offset(),b.nodeName(a[0],'html')||(g=a.offset()),g.top+=b.css(a[0],'borderTopWidth',!0),g.left+=b.css(a[0],'borderLeftWidth',!0)),{top:c.top-g.top-b.css(l,'marginTop',!0),left:c.left-g.left-b.css(l,'marginLeft',!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&!b.nodeName(a,'html')&&'static'===b.css(a,'position');)a=a.offsetParent;return a||Qc})}});b.each({scrollLeft:'pageXOffset',
|
|
307
|
-
scrollTop:'pageYOffset'},function(a,c){var g=/Y/.test(c);b.fn[a]=function(l){return ha(this,function(q,C,
|
|
308
|
-
a,content:c,'':'outer'+a},function(g,l){b.fn[l]=function(q,C){var
|
|
309
|
-
null,c,g)},unbind:function(a,c){return this.off(a,null,c)},delegate:function(a,c,g,l){return this.on(c,a,g,l)},undelegate:function(a,c,g){return 1===arguments.length?this.off(a,'**'):this.off(c,a||'**',g)}});b.fn.size=function(){return this.length};b.fn.andSelf=b.fn.addBack;'function'==typeof define&&define.amd&&define('jquery',[],function(){return b});var be=A.jQuery,ce=A.$;return b.noConflict=function(a){return A.$===b&&(A.$=ce),a&&A.jQuery===b&&(A.jQuery=be),b},
|
|
307
|
+
scrollTop:'pageYOffset'},function(a,c){var g=/Y/.test(c);b.fn[a]=function(l){return ha(this,function(q,C,K){var X=Ab(q);return void 0===K?X?c in X?X[c]:X.document.documentElement[C]:q[C]:void(X?X.scrollTo(g?b(X).scrollLeft():K,g?K:b(X).scrollTop()):q[C]=K)},a,l,arguments.length,null)}});b.each(['top','left'],function(a,c){b.cssHooks[c]=ja(e.pixelPosition,function(g,l){return l?(l=sc(g,c),mc.test(l)?b(g).position()[c]+'px':l):void 0})});b.each({Height:'height',Width:'width'},function(a,c){b.each({padding:'inner'+
|
|
308
|
+
a,content:c,'':'outer'+a},function(g,l){b.fn[l]=function(q,C){var K=arguments.length&&(g||'boolean'!=typeof q),X=g||(!0===q||!0===C?'margin':'border');return ha(this,function(oa,Ca,sa){var Ra;return b.isWindow(oa)?oa.document.documentElement['client'+a]:9===oa.nodeType?(Ra=oa.documentElement,Math.max(oa.body['scroll'+a],Ra['scroll'+a],oa.body['offset'+a],Ra['offset'+a],Ra['client'+a])):void 0===sa?b.css(oa,Ca,X):b.style(oa,Ca,sa,X)},c,K?q:void 0,K,null)}})});b.fn.extend({bind:function(a,c,g){return this.on(a,
|
|
309
|
+
null,c,g)},unbind:function(a,c){return this.off(a,null,c)},delegate:function(a,c,g,l){return this.on(c,a,g,l)},undelegate:function(a,c,g){return 1===arguments.length?this.off(a,'**'):this.off(c,a||'**',g)}});b.fn.size=function(){return this.length};b.fn.andSelf=b.fn.addBack;'function'==typeof define&&define.amd&&define('jquery',[],function(){return b});var be=A.jQuery,ce=A.$;return b.noConflict=function(a){return A.$===b&&(A.$=ce),a&&A.jQuery===b&&(A.jQuery=be),b},P||(A.jQuery=A.$=b),b});
|
|
310
310
|
if('undefined'!==typeof module&&module.exports)var lib=require('../../index');
|
|
311
|
-
function Collection(A,
|
|
312
|
-
''==A||null==A)A=[];if(!Array.isArray(A))throw Error('`new Collection([content] [, options] )`: `content` argument must be an Array !');A=A?JSON.clone(A):[];for(var
|
|
313
|
-
arguments.length){if('object'!=typeof arguments[0])throw Error('searchOption must be an object');for(var n in arguments[0])if('undefined'==typeof O[n])throw Error(arguments[1]+' is not an allowed searchOption !');
|
|
314
|
-
!0:!1:
|
|
315
|
-
|
|
316
|
-
'"'+
|
|
317
|
-
else if('undefined'!=typeof
|
|
318
|
-
|
|
319
|
-
ja=function(la,
|
|
320
|
-
'` cannot be left undefined');
|
|
321
|
-
|
|
322
|
-
arguments[0]:
|
|
323
|
-
|
|
324
|
-
var y=JSON.clone(Array.isArray(this)?this:A);if(Array.isArray(arguments[0]))var z=arguments[0];else Q=!0,z=
|
|
325
|
-
y[
|
|
326
|
-
++
|
|
327
|
-
|
|
328
|
-
if('undefined'==typeof n||!n||'object'!=typeof n)throw Error('[ Collection ][ update ] `set` argument must be defined: Object expected');var y=Array.isArray(arguments[0])?arguments[0]:
|
|
329
|
-
|
|
330
|
-
1],--arguments.length);0<arguments.length&&(
|
|
331
|
-
for(var z=0,
|
|
332
|
-
|
|
333
|
-
for(var
|
|
334
|
-
try{var
|
|
335
|
-
1:0);if('string'==typeof
|
|
336
|
-
0,pa=
|
|
337
|
-
-1:ja.length-1>
|
|
338
|
-
y.find=
|
|
339
|
-
var n=0,y=
|
|
340
|
-
function FormValidatorUtil(A,
|
|
311
|
+
function Collection(A,P){var V='undefined'!==typeof module&&module.exports?!1:!0,ka=V?require('vendor/uuid'):require('uuid'),S=V?require('lib/merge'):require('../../../lib/merge'),O={isCaseSensitive:{false:{re:'^%s$',modifiers:'i'},true:{re:'^%s$'}}},ia=!1,Q=!1,R=null;V={useLocalStorage:!1,locale:'en',searchOptionRules:O};P='object'==typeof P?S(P,V):V;var r=['not null'],G=function(B){try{return eval(B)}catch(D){throw Error('Could not evaluate condition `'+B+'`.\n'+D.stack);}};if('undefined'==typeof A||
|
|
312
|
+
''==A||null==A)A=[];if(!Array.isArray(A))throw Error('`new Collection([content] [, options] )`: `content` argument must be an Array !');A=A?JSON.clone(A):[];for(var w=[],va=V=0,Fa=A.length;va<Fa;++va)A[va]||(A[va]={}),A[va]._uuid=ka.v4(),w[V]=A[va]._uuid,++V;var U=A;U.setSearchOption=function(){if(!arguments.length)throw Error('searchOption cannot be left blank');if(3<arguments.length||3>arguments.length&&1<arguments.length)throw Error('argument length mismatch');var B=0,D=arguments.length;if(1==
|
|
313
|
+
arguments.length){if('object'!=typeof arguments[0])throw Error('searchOption must be an object');for(var n in arguments[0])if('undefined'==typeof O[n])throw Error(arguments[1]+' is not an allowed searchOption !');R=arguments[0]}else for(R||={};B<D;++B){if('undefined'==typeof O[arguments[1]])throw Error(arguments[1]+' is not an allowed searchOption !');'undefined'==typeof R[arguments[0]]&&(R[arguments[0]]={});/true|false/i.test(arguments[2])?R[arguments[0]][arguments[1]]=/true/i.test(arguments[2])?
|
|
314
|
+
!0:!1:R[arguments[0]][arguments[1]]=arguments[2]}return U};U.find=function(){ia=!1;'boolean'==typeof arguments[arguments.length-1]&&(ia=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);var B=null,D=null,n=null;try{B=JSON.stringify(arguments),D=JSON.parse(B),n=D.count()}catch(la){throw Error('filter must be an object\n'+la.stack);}if('undefined'!=typeof D&&0<n){1<n&&(ia=!0);n=B=null;var y=0,z=Array.isArray(this)?this:JSON.clone(A),E=[],x='',v=null,H=R,M=P.searchOptionRules,
|
|
315
|
+
T=null,pa=[],Ea=function(la,za,Ba,Na,La){if(null===la&&null===Ba)++Na;else if(la&&-1<r.indexOf(x)&&'not null'==x&&'undefined'!=typeof Ba&&'object'!==typeof Ba&&'null'!=Ba&&'undefined'!=Ba)0>E.indexOf(Ba)&&++Na;else if('undefined'!=typeof Ba&&'object'!==typeof Ba&&/(<|>|=)/.test(la)&&!/undefined|function/.test(typeof Ba))za=la,La=Ba+la,'string'==typeof la&&'string'==typeof Ba&&(La=la.replace(/^(<=|>=|!==|!=|===|!==)/g,''),'string'!=typeof Ba||/^"(.*)"$/.test(La)||(la=la.replace(La,'"'+La+'"')),La=
|
|
316
|
+
'"'+Ba+'"'+la,la=za),/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/.test(Ba)&&/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/.test(la)?G(Ba.replace(/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/,'new Date("$&")')+la.replace(/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/,'new Date("$&")'))&&++Na:G(La)&&++Na;else if('undefined'!=typeof Ba&&'object'!==typeof Ba&&Ba===la&&!H||'undefined'!=typeof Ba&&'object'!==typeof Ba&&Ba===la&&'undefined'==typeof H[za])++Na;
|
|
317
|
+
else if('undefined'!=typeof Ba&&'object'!==typeof Ba&&H&&'undefined'!=typeof H[za]){var Ia=0;var Ua=H[za].count();for(var Qa in H[za])La[Qa][H[za][Qa]].re=La[Qa][H[za][Qa]].re.replace(/%s/,la),v=La[Qa][H[za][Qa]].modifiers?new RegExp(La[Qa][H[za][Qa]].re,La[Qa][H[za][Qa]].modifiers):new RegExp(La[Qa][H[za][Qa]].re),v.test(Ba)&&++Ia;Ia==Ua&&++Na}return{matched:Na}},W=function(la,za,Ba,Na){var La=za.split(/\./g);La=La[La.length-1];v=new RegExp('("'+La+'":\\w+)');La=null;try{Ba&&(La=eval('_content.'+
|
|
318
|
+
za))}catch(Ia){}La&&(Array.isArray(La)?La=La[1].split(/:/)[1]:'string'==typeof La&&/:/.test(La)&&(La=La.split(/:/)[1]),/(<|>|=)/.test(la)?/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/.test(La)&&/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/.test(la)?G(La.replace(/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/,'new Date("$&")')+la.replace(/(\d{4})\-(\d{2})\-(\d{2})(\s+|T)(\d{2}):(\d{2}):(\d{2})/,'new Date("$&")'))&&++Na:G(La+la)&&++Na:La==la&&++Na);return{matched:Na}},
|
|
319
|
+
ja=function(la,za,Ba,Na,La){za=za.split(/\[\*\]/g);La=za[0].replace(/\[\*\]/,'');Ba=Ba[La];za=za[1];/^\./.test(za)&&(za=za.substring(1));La=0;if(Ba)for(var Ia=0,Ua=Ba.length;Ia<Ua&&!(pa=/\./.test(za)?W(la,za,Ba[Ia],La):Ea(la,za,Ba[Ia],La,M),La=pa.matched,0<La);++Ia);return{matched:Na+La}},ca;for(ca in z)if(z[ca]||(z[ca]={}),!/undefined|function/.test(typeof z[ca]))for(let la=0,za=D.count();la<za;++la){B=D[la];n=B.count();T=0;for(var wa in B){if('undefined'==typeof B[wa])throw Error('filter `'+wa+
|
|
320
|
+
'` cannot be left undefined');x=null===B[wa]||/(boolean|number)/.test(typeof B[wa])?B[wa]:B[wa].toLocaleLowerCase();pa=/\./.test(wa)?/\[\*\]/.test(wa)?ja(B[wa],wa,z[ca],T,0):W(B[wa],wa,z[ca],T):Ea(B[wa],wa,z[ca][wa],T,M);T=pa.matched}if(T==n)if(ia&&Q&&0>w.indexOf(z[ca]._uuid)||Q||!ia){if(!ia||ia&&0>E.indexOf(z[ca]._uuid)||Q)E[y]=z[ca],++y}else ia&&!Q&&0>E.indexOf(z[ca]._uuid)&&(E[y]=z[ca],++y)}}else E=A;R=null;E.insert=U.insert;E.notIn=U.notIn;E.find=this.find;E.update=U.update;E.replace=U.replace;
|
|
321
|
+
E.or=U.or;E.findOne=U.findOne;E.limit=U.limit;E.orderBy=U.orderBy;E.delete=U.delete;E.toRaw=U.toRaw;E.filter=U.filter;return E};U.findOne=function(){var B=null;'string'==typeof arguments[arguments.length-1]&&(delete arguments[arguments.length-1],--arguments.length);0<arguments.length&&(B=arguments);if('undefined'==typeof B||!B||'object'!=typeof B)throw Error('[ Collection ][ findOne ] `filters` argument must be defined: Array or Filter Object(s) expected');B=null;var D=Array.isArray(arguments[0])?
|
|
322
|
+
arguments[0]:U.find.apply(this,arguments)||[];0<D.length&&(B=D.limit(1).toRaw()[0]);return B};U.or=function(){arguments[arguments.length]=!0;++arguments.length;return U.find.apply(this,arguments)};U.limit=function(B){if('undefined'==typeof B||'number'!=typeof B)throw Error('[Collection::result->limit(resultLimit)] : `resultLimit` parametter must by a `number`');var D=Array.isArray(this)?this:JSON.clone(A);D=D.splice(0,B);D.insert=U.insert;D.update=U.update;D.replace=U.replace;D.notIn=U.notIn;D.findOne=
|
|
323
|
+
U.findOne;D.orderBy=U.orderBy;D.max=U.max;D.delete=U.delete;D.toRaw=U.toRaw;D.filter=U.filter;return D};U.notIn=function(){var B=null,D=null,n=!0;'string'==typeof arguments[arguments.length-1]&&(B=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);'boolean'==typeof arguments[arguments.length-1]&&(n=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);0<arguments.length&&(D=arguments);if('undefined'==typeof D||!D||'object'!=typeof D)throw Error('[ Collection ][ notIn ] `filters` argument must be defined: Array or Filter Object(s) expected');
|
|
324
|
+
var y=JSON.clone(Array.isArray(this)?this:A);if(Array.isArray(arguments[0]))var z=arguments[0];else Q=!0,z=U.find.apply(this,arguments)||[],Q=!1;if(0<z.length){if(n&&B&&'undefined'==typeof z[0]&&'undefined'==typeof z[0][B])throw Error('[ Collection ][ notIn ] `key` not valid');n&&!B&&'undefined'!=typeof z[0]._uuid?B='_uuid':'undefined'!=typeof z[0].id&&(B='id');if(!B||'undefined'==typeof z[0][B])throw Error('No comparison key defined !');var E=0,x=z.length,v=0,H,M=D.count(),T;if(n&&'undefined'!=typeof y[v]&&
|
|
325
|
+
y[v].hasOwnProperty(B))for(;E<x&&y.length;++E)for(v=0,n=y.length;v<n;++v){if('undefined'!=typeof y[v]&&'undefined'!=typeof z[E]&&y[v][B]===z[E][B]){y.splice(v,1);break}}else if('undefined'==typeof y[v])y=JSON.clone(z);else for(;E<x&&y.length;++E)for(v=0,n=y.length;v<n;++v)if('undefined'!=typeof y[v]){for(H=T=0;H<M;++H){if('undefined'==typeof D[H])throw Error('filter `'+H+'` cannot be left undefined');var pa=D[H].count();var Ea=0;for(B in D[H])y[v].hasOwnProperty(B)&&y[v][B]===z[E][B]&&++Ea;Ea==pa&&
|
|
326
|
+
++T}if(T){y.splice(v,1);break}}}B=y;B.notIn=U.notIn;B.limit=U.limit;B.find=U.find;B.findOne=U.findOne;B.insert=U.insert;B.replace=U.replace;B.update=U.update;B.orderBy=U.orderBy;B.max=U.max;B.delete=U.delete;B.toRaw=U.toRaw;B.filter=U.filter;return B};U.insert=function(B){if('object'!==typeof B)throw Error('filter must be an object');var D=Array.isArray(this)?this:A;B._uuid=ka.v4();D.push(B);D.limit=U.limit;D.find=U.find;D.findOne=U.findOne;D.update=U.update;D.replace=U.replace;D.orderBy=U.orderBy;
|
|
327
|
+
D.max=U.max;D.notIn=U.notIn;D.delete=U.delete;D.toRaw=U.toRaw;D.filter=U.filter;return D};U.update=function(){var B='_uuid',D,n=D=null;'string'==typeof arguments[arguments.length-1]&&(B=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);'object'==typeof arguments[arguments.length-1]&&(n=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);0<arguments.length&&(D=arguments);if('undefined'==typeof D||!D||'object'!=typeof D)throw Error('[ Collection ][ update ] `filters` argument must be defined: Array or Filter Object(s) expected');
|
|
328
|
+
if('undefined'==typeof n||!n||'object'!=typeof n)throw Error('[ Collection ][ update ] `set` argument must be defined: Object expected');var y=Array.isArray(arguments[0])?arguments[0]:U.find.apply(this,arguments)||[];D=Array.isArray(this)?this:JSON.clone(A);if(0<y.length){y=y.toRaw();for(var z=0,E=y.length;z<E;++z){y[z]=S(JSON.clone(n),y[z]);for(var x=0,v=D.length;x<v;++x)if('undefined'==typeof D[x][B]&&'_uuid'==B&&'undefined'!=typeof D[x].id&&(B='id'),D[x][B]==y[z][B]){D[x]=y[z];break}}}D.limit=
|
|
329
|
+
U.limit;D.find=U.find;D.findOne=U.findOne;D.insert=U.insert;D.update=U.update;D.replace=U.replace;D.orderBy=U.orderBy;D.max=U.max;D.notIn=U.notIn;D.delete=U.delete;D.toRaw=U.toRaw;D.filter=U.filter;return D};U.replace=function(){var B='_uuid',D,n=D=null;'string'==typeof arguments[arguments.length-1]&&(B=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);'object'==typeof arguments[arguments.length-1]&&(n=arguments[arguments.length-1],delete arguments[arguments.length-
|
|
330
|
+
1],--arguments.length);0<arguments.length&&(D=arguments);if('undefined'==typeof D||!D||'object'!=typeof D)throw Error('[ Collection ][ update ] `filters` argument must be defined: Array or Filter Object(s) expected');if('undefined'==typeof n||!n||'object'!=typeof n)throw Error('[ Collection ][ update ] `set` argument must be defined: Object expected');var y=Array.isArray(arguments[0])?arguments[0]:U.find.apply(this,arguments)||[];D=Array.isArray(this)?this:JSON.clone(A);if(0<y.length){y=y.toRaw();
|
|
331
|
+
for(var z=0,E=y.length;z<E;++z){y[z]=JSON.clone(n);for(var x=0,v=D.length;x<v;++x){if('undefined'==typeof D[x][B]&&'_uuid'==B&&'undefined'!=typeof D[x].id)B='id';else if('undefined'==typeof D[x][B]&&'_uuid'==B)throw Error('No comparison key defined !');if(D[x][B]==y[z][B]){D[x]=y[z];break}}}}D.limit=U.limit;D.find=U.find;D.findOne=U.findOne;D.insert=U.insert;D.update=U.update;D.replace=U.replace;D.orderBy=U.orderBy;D.max=U.max;D.notIn=U.notIn;D.delete=U.delete;D.toRaw=U.toRaw;D.filter=U.filter;return D};
|
|
332
|
+
U['delete']=function(){var B=U.notIn.apply(this,arguments);B.limit=U.limit;B.find=U.find;B.findOne=U.findOne;B.insert=U.insert;B.update=U.update;B.replace=U.replace;B.orderBy=U.orderBy;B.max=U.max;B.notIn=U.notIn;B.toRaw=U.toRaw;B.filter=U.filter;B.delete=this.delete;return B};U.orderBy=function(){if('undefined'==typeof arguments||1>arguments.length)throw Error('[ Collection->orderBy(filter) ] where `filter` must not be empty or null');if(1==arguments.length)var B=arguments[0];else{B=Array(arguments.length);
|
|
333
|
+
for(var D=0,n=B.length;D<n;++D)B[D]=arguments[D]}D=Array.isArray(this)?this:JSON.clone(A);return I(B,D.toRaw())};U.max=function(){if('undefined'==typeof arguments||1>arguments.length)throw Error('[ Collection->max(filter) ] where `filter` must not be empty or null');if(1<arguments.length||Array.isArray(arguments[0])||'object'==typeof arguments[0]&&1<arguments[0].count())throw Error('[ Collection->max(filter) ] only accept one filter length, and fileter count must be equal to 1');var B=arguments[0];
|
|
334
|
+
try{var D=Object.keys(B)[0],n={};n[D]='desc';return U.find(B).orderBy(n).limit(1)[0][D]}catch(y){throw y;}};var I=function(B,D){if('object'!=typeof B)throw Error('`filter` parametter must be an object or an array');var n={},y=null,z=null,E=y=null;y=[];if(0==B.count())return null;n.asc=function(x,v){var H=v.map(function(M,T){var pa={};pa.index=T;pa[x]=M[x];return pa});H.sort(function(M,T){var pa=function(Ea,W){/^(true|false)$/i.test(Ea)&&(Ea=/true/i.test(Ea)?1:0);/^(true|false)$/i.test(W)&&(W=/true/i.test(W)?
|
|
335
|
+
1:0);if('string'==typeof Ea&&''!=Ea||'string'==typeof W){if('undefined'==typeof Ea||null==Ea)Ea='';if('undefined'==typeof W||null==W)W='';'number'==typeof Ea&&(Ea=''+Ea);'number'==typeof W&&(W=''+W);return Ea.localeCompare(W,void 0,{sensitivity:'case',caseFirst:'upper'})}return Ea>W?1:Ea<W?-1:0};return'object'==typeof M?pa(M[x],T[x]):pa(M,T)});return H.map(function(M,T,pa){return v[M.index]})};n.desc=function(x,v){return n.asc(x,v).reverse()};y=function(x,v){var H=[],M=[];if(Array.isArray(v))for(var T=
|
|
336
|
+
0,pa=v.length;T<pa;++T)H[T]=Object.keys(v[T])[0],M[T]=v[T][H[T]];else for(pa in T=0,v)H[T]=pa,M[T]=v[pa],++T;z=function(Ea,W,ja,ca,wa){var la='desc'==ca[wa]?1:0,za,Ba=za=null;return'string'==typeof Ea[ja[wa]]&&''!=Ea[ja[wa]]?(za=Ea[ja[wa]].localeCompare(W[ja[wa]]),0==la&&0!=za?0>za?-1:1:0!=za?0>za?1:-1:ja.length-1>wa?z(Ea,W,ja,ca,wa+1):0):'number'==typeof Ea[ja[wa]]||'number'==typeof W[ja[wa]]?(za=(''+Ea[ja[wa]]).localeCompare(''+W[ja[wa]],void 0,{numeric:!0}),0==la&&0!=za?0>za?-1:1:0!=za?0>za?1:
|
|
337
|
+
-1:ja.length-1>wa?z(Ea,W,ja,ca,wa+1):0):'boolean'==typeof Ea[ja[wa]]||'boolean'==typeof W[ja[wa]]?('boolean'==typeof Ea[ja[wa]]&&(za=Ea[ja[wa]]?1:0),'boolean'==typeof W[ja[wa]]&&(Ba=W[ja[wa]]?1:0),za>Ba?0==la?1:-1:za<Ba?0==la?-1:1:ja.length-1>wa?z(Ea,W,ja,ca,wa+1):0):Ea[ja[wa]]>W[ja[wa]]?0==la?1:-1:Ea[ja[wa]]<W[ja[wa]]?0==la?-1:1:ja.length-1>wa?z(Ea,W,ja,ca,wa+1):0};return x.sort(function(Ea,W){return z(Ea,W,H,M,0)})};Array.isArray(B)||1<B.count()?y=y(D,B):(E=Object.keys(B)[0],y=B[E],y=n[y](E,D));
|
|
338
|
+
y.find=U.find;y.findOne=U.findOne;y.limit=U.limit;y.notIn=U.notIn;y.insert=U.insert;y.update=U.update;y.replace=U.replace;y.delete=U.delete;y.orderBy=U.orderBy;y.max=U.max;y.toRaw=U.toRaw;y.filter=U.filter;return y};U.toRaw=function(){for(var B=Array.isArray(this)?this.slice():A.slice(),D=0,n=B.length;D<n;++D)B[D]._uuid&&delete B[D]._uuid;return B};U.filter=function(B){if('undefined'==typeof B)throw Error('`filter` parametter must be a string or an array.');var D=Array.isArray(this)?this:A;if(!D.length)return[];
|
|
339
|
+
var n=0,y=D.length,z=[],E=0;if(Array.isArray(B))for(var x,v=B.length,H;n<y;++n){H=!1;for(x=0;x<v;++x)'undefined'!=typeof D[n][B[x]]&&('undefined'==typeof z[E]&&(z[E]={}),z[E][B[x]]=D[n][B[x]],H=!0);H&&++E}else for(;n<y;++n)'undefined'!=typeof D[n][B]&&('undefined'==typeof z[E]&&(z[E]={}),z[E][B]=D[n][B],++E);return JSON.clone(z)};return U}'undefined'!==typeof module&&module.exports?module.exports=Collection:'function'===typeof define&&define.amd&&define('lib/collection',[],function(){return Collection});
|
|
340
|
+
function FormValidatorUtil(A,P,V,ka){var S='undefined'!==typeof module&&module.exports?!1:!0,O=S?require('lib/merge'):require('../../../../../lib/merge');S||require('../../../../../helpers');S&&require('helpers/dateFormat');var ia=S?require('lib/routing'):require('../../../../../lib/routing'),Q=function(){var n=!1,y=null;S?S&&'undefined'!=typeof gina.forms&&(y=gina.forms):y=getContext('gina').forms||null;y&&'undefined'!=typeof y.validators&&(n=!0);return n},R={errors:{},keys:{'%l':'label','%n':'name',
|
|
341
341
|
'%s':'size'},data:{},excluded:[],errorLabels:{is:'Condition not satisfied',isEmail:'A valid email is required',isRequired:'Cannot be left empty',isBoolean:'Must be a valid boolean',isNumber:'Must be a number: allowed values are integers or floats',isNumberLength:'Must contain %s characters',isNumberMinLength:'Should be at least %s characters',isNumberMaxLength:'Should not be more than %s characters',isInteger:'Must be an integer',isIntegerLength:'Must have %s characters',isIntegerMinLength:'Should be at least %s characters',
|
|
342
342
|
isIntegerMaxLength:'Should not be more than %s characters',toInteger:'Could not be converted to integer',isFloat:'Must be a proper float',isFloatException:'Float exception found: %n',toFloat:'Could not be converted to float',toFloatNAN:'Value must be a valid number',isDate:'Must be a valid Date',isString:'Must be a string',isStringLength:'Must have %s characters',isStringMinLength:'Should be at least %s characters',isStringMaxLength:'Should not be more than %s characters',isJsonWebToken:'Must be a valid JSON Web Token',
|
|
343
|
-
query:'Must be a valid response',isApiError:'Condition not satisfied'}},
|
|
344
|
-
String.fromCharCode(
|
|
345
|
-
y){var z=
|
|
346
|
-
|
|
347
|
-
M=!0);z.query=
|
|
348
|
-
|
|
349
|
-
var W=null;
|
|
350
|
-
typeof y.responseType?y.responseType:'';
|
|
351
|
-
{},
|
|
352
|
-
pa.valid=la;
|
|
353
|
-
|
|
354
|
-
isOnException=!0;
|
|
355
|
-
else if(W={status:
|
|
356
|
-
getConfig(
|
|
357
|
-
|
|
358
|
-
isXMLRequest:y.isXMLRequest,isWithCredentials:y.isWithCredentials};M=
|
|
359
|
-
delete M.param;delete M.requirements;
|
|
360
|
-
ca});ja&&(console.error(ja),W.error=ja);return W},
|
|
361
|
-
typeof window._currentValidatorAlias?window._currentValidatorAlias:'is';'undefined'!=typeof window&&window._currentValidatorAlias&&delete window._currentValidatorAlias;var pa=
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
''!=this.value||(
|
|
366
|
-
{};
|
|
367
|
-
!1}(
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
function(
|
|
371
|
-
|
|
372
|
-
this.decimals=parseInt(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
0,
|
|
376
|
-
function(
|
|
377
|
-
this)),
|
|
378
|
-
M),
|
|
379
|
-
new Date(
|
|
380
|
-
|
|
381
|
-
function(){return{isGFFCtx:S,self:
|
|
382
|
-
y+')\n//# sourceURL='+
|
|
383
|
-
(
|
|
384
|
-
|
|
343
|
+
query:'Must be a valid response',isApiError:'Condition not satisfied'}},r=null;if(A)r=O(JSON.clone(A),r),R.data=O(JSON.clone(A),R.data);else throw Error('missing data param');var G=function(n,y){var z=null;for(let E in ka)if(ka[E].name===y){z=(new DOMParser).parseFromString(n.innerHTML,'text/html').getElementById(ka[E].id);break}if(z)return z;throw Error('Field `'+y+'` not found in fieldsSet');},w=function(n){var y;var z='';var E=n.length;for(y=0;y<E;){var x=n[y++];switch(x>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:z+=
|
|
344
|
+
String.fromCharCode(x);break;case 12:case 13:var v=n[y++];z+=String.fromCharCode((x&31)<<6|v&63);break;case 14:v=n[y++];var H=n[y++];z+=String.fromCharCode((x&15)<<12|(v&63)<<6|(H&63)<<0)}}return z},va=function(n,y){y=n.match(/\{\{([^{{}}]+)\}\}/g);for(let z=0,E=y.length;z<E;z++){let x=y[z].replace(/\[/g,'["').replace(/\]/g,'"]').replace(/\{|\}/g,'').trim();try{x=eval('data.'+x).replace(/^"|"$/g,''),n=n.replace(new RegExp(y[z].replace(/\{|\[|\]|\}/g,'\\$&'),'g'),x)}catch(v){}}return n},Fa=function(n,
|
|
345
|
+
y){var z=r[this.name].errors||{},E=this.target.id||this.target.getAttribute('id');if(r.isValid()){var x=this.target.dataset.ginaFormValidatorTestedValue;console.debug('[ '+this.name+' ]','TESTED VALUE -> '+this.value+' vs '+x);E='asyncCompleted.'+E;var v=this.target.form.getAttribute('id'),H='undefined'!=typeof gina.validator&&'undefined'!=typeof gina.validator.$forms[v]&&'undefined'!=typeof gina.validator.$forms[v].cachedErrors?gina.validator.$forms[v].cachedErrors:null;if(!x||'undefined'==typeof x||
|
|
346
|
+
x!==this.value)this.target.dataset.ginaFormValidatorTestedValue=this.value,H&&'undefined'!=typeof H[this.name]&&'undefined'!=typeof H[this.name].query&&(delete H[this.name].query,'undefined'!=typeof gina.validator.$forms[v]&&'undefined'!=typeof gina.validator.$forms[v].errors&&delete gina.validator.$forms[v].errors.query);else if(x===this.value){var M=!1;H&&'undefined'!=typeof H[this.name]&&'undefined'!=typeof H[this.name].query&&'undefined'!=typeof H[this.name].query[this.value]&&(this.error=y=H[this.name].query[this.value].slice(0),
|
|
347
|
+
M=!0);z.query=D(this.error||y||R.errorLabels.query,this);console.debug('[2] potential cached error detected !! ',M,H,' vs ',z.query);M&&(this.errors=z,this.valid=!1);'undefined'!=typeof gina.events[E]&&triggerEvent(gina,this.target,E,r[this.name]);return r[this.name]}var T=null,pa=this;if(window.XMLHttpRequest)T=new XMLHttpRequest;else if(window.ActiveXObject)try{T=new ActiveXObject('Msxml2.XMLHTTP')}catch(wa){try{T=new ActiveXObject('Microsoft.XMLHTTP')}catch(la){}}y={isSynchrone:!1,headers:{}};
|
|
348
|
+
x=n.data||null;z=null;E=/^true$/i.test(this.target.form.dataset.ginaFormLiveCheckEnabled)?!0:!1;z=JSON.stringify(x);if(/\$/.test(z)){x=z.match(/\$[-_\[\]a-z 0-9]+/g)||[];v=H=null;for(let wa=0,la=x.length;wa<la;wa++)v=x[wa].replace(/\$/g,''),re=new RegExp('\\'+x[wa].replace(/\[|\]/g,'\\$&'),'g'),H=R.data[v]||null,!H&&E&&(H=G(this.target.form,v).value),z=z.replace(re,H)}x=z.replace(/\\"/g,'');var Ea='undefined'==typeof n.validIf?!0:n.validIf;y=O(y,n,V);delete y.data;delete y.validIf;z=y.headers['Content-Type'];
|
|
349
|
+
var W=null;E=this.target.getAttribute('id');if(!/^http/.test(y.url)&&/@/.test(y.url))try{M=ia.getRoute(y.url),y.url=M.toUrl()}catch(wa){throw wa;}if(y.withCredentials){if('withCredentials'in T)y.isSynchrone?T.open(y.method,y.url,y.isSynchrone):T.open(y.method,y.url);else if('undefined'!=typeof XDomainRequest)T=new XDomainRequest,T.open(y.method,y.url);else throw T=null,W='CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ',Error(W);T.responseType='undefined'!=
|
|
350
|
+
typeof y.responseType?y.responseType:'';T.withCredentials=!0}else y.isSynchrone?T.open(y.method,y.url,y.isSynchrone):T.open(y.method,y.url);for(var ja in y.headers)'Content-Type'==ja&&'undefined'!=typeof z&&null!=z&&''!=z||T.setRequestHeader(ja,y.headers[ja]);'undefined'!=typeof z&&null!=z&&''!=z&&T.setRequestHeader('Content-Type',z);var ca=function(wa){pa.value=R.data[pa.name]=pa.value?pa.value.toLowerCase():pa.value;var la=wa.isValid||!1;la=Ea!=la?!1:!0;r[pa.name].valid=la;var za=r[pa.name].errors||
|
|
351
|
+
{},Ba='undefined'!=typeof wa.error&&'undefined'!=typeof wa.fields?wa.fields:{};if(0<Ba.count()&&!la||!la){if(!la){var Na=null;'undefined'!=typeof Ba[pa.name]?R.errorLabels.query=va(Ba[pa.name],n.data):'undefined'!=typeof wa.error&&/^5/.test(wa.status)&&(Na=wa.error);var La='undefined'!=typeof n.error?n.error:null;za.query=D(Na||pa.error||La||R.errorLabels.query,pa);console.debug('[1] query error detected !! ',wa,Ba,za.query)}za.query||''!=pa.value||(la=!0)}la&&'undefined'!=typeof za.query&&delete za.query;
|
|
352
|
+
pa.valid=la;wa=gina.validator.$forms[pa.target.form.getAttribute('id')].cachedErrors||{};0<za.count()?(pa.errors=za,'undefined'==typeof r[pa.name].errors&&(r[pa.name].errors={}),r[pa.name].errors=O(r[pa.name].errors,za),'undefined'!=typeof za.query&&za.query&&('undefined'==typeof wa[pa.name]&&(wa[pa.name]={}),'undefined'==typeof wa[pa.name].query&&(wa[pa.name].query={}),wa[pa.name].query[pa.value]=za.query.slice(0)),za=pa.target.getAttribute('data-gina-form-errors'),/query/.test(za)||pa.target.setAttribute('data-gina-form-errors',
|
|
353
|
+
za&&''!=za?za+' query':'query')):'undefined'!=typeof wa[pa.name]&&'undefined'!=typeof wa[pa.name].query&&'undefined'!=typeof wa[pa.name].query[pa.value]&&delete wa[pa.name].query[pa.value];za=pa.target.id||pa.target.getAttribute('id');console.debug('prematurely completed event `asyncCompleted.'+za+'`');return triggerEvent(gina,pa.target,'asyncCompleted.'+za,r[pa.name])};T&&(T.onerror=function(wa,la){console.debug('query error [2] detected !! ',la,'Transaction error: might be due to the server CORS settings.\nPlease, check the console for more details.');
|
|
354
|
+
isOnException=!0;wa=this.getResponseHeader('Content-Type');if(/\/json/.test(wa))wa=JSON.parse(this.responseText),'undefined'==typeof wa.status&&(wa.status=this.status);else if(wa={status:T.status,message:''},/^(\{|\[)/.test(T.responseText))try{wa=O(wa,JSON.parse(T.responseText))}catch(za){wa=O(wa,za)}return ca(wa)},T.onload=function(){try{W=this.responseText;var wa=this.getResponseHeader('Content-Type');if(/\/json/.test(wa))W=JSON.parse(this.responseText),'undefined'==typeof W.status&&(W.status=this.status);
|
|
355
|
+
else if(W={status:T.status,message:''},/^(\{|\[)/.test(T.responseText))try{W=O(W,JSON.parse(T.responseText))}catch(la){W=O(W,la)}return ca(W)}catch(la){throw la;}},A?T.send(x):T.send())}else console.debug('stopping on errors ...'),triggerEvent(gina,this.target,'asyncCompleted.'+E,r[this.name])},U=async function(n,y,z,E){var x=(new (require(_(GINA_FRAMEWORK_DIR+'/core/config.js',!0)))).getInstance(),v=null,H=null,M=null,T=getContext('bundle');if(/@/.test(n.url)){var pa=n.url.split(/@/);H=pa[0];M=pa[1];
|
|
356
|
+
getConfig(T,'app');try{x.bundle!==M&&(v=getConfig(T,'app').proxy[M])}catch(ca){throw Error('Could not retrieve `proxy` configuration for bundle `'+M+'`. Please check your `/config/app.json`.\n'+ca.stack);}pa=null}else throw Error('external url/domain not handled at this moment, please contact us if you need support for it.');pa=JSON.clone(ia.getRoute(n.url,n.data));var Ea=x[M][x.env];v||(x.bundle==M&&(v=getConfig(T,'settings').server.credentials,n.ca=v.ca||null,n.hostname=Ea.server.scheme+'://'+
|
|
357
|
+
Ea.host,n.port=Ea.port[Ea.server.protocol][Ea.server.scheme],n.protocol=Ea.server.protocol,n.rejectUnauthorized=!1),v={ca:n.ca,hostname:n.hostname,port:n.port,path:n.path},'undefined'!=typeof n.protocol&&(v.protocol=n.protocol),'undefined'!=typeof n.rejectUnauthorized&&(v.rejectUnauthorized=n.rejectUnauthorized));H={method:pa.method,requirements:pa.requirements,namespace:pa.namespace||void 0,url:decodeURI(pa.url),rule:H+'@'+M,param:JSON.clone(pa.param),middleware:JSON.clone(pa.middleware),bundle:pa.bundle,
|
|
358
|
+
isXMLRequest:y.isXMLRequest,isWithCredentials:y.isWithCredentials};M=H.rule.replace('@'+M,'')||'_common';M={template:'undefined'!=typeof Ea.content.templates?Ea.content.templates[M]||Ea.content.templates._common:void 0,isCacheless:Ea.isCacheless};M=O(M,H);Ea=JSON.clone(Ea);M.conf=Ea;M.conf.content.routing[M.rule].param=H.param;M.template&&'undefined'==typeof M.template.ginaLoader&&(M.template.ginaLoader=M.conf.content.templates._common.ginaLoader);M.conf.content.routing[M.rule].param=H.param;delete M.middleware;
|
|
359
|
+
delete M.param;delete M.requirements;Ea=new (require(_(GINA_FRAMEWORK_DIR+'/core/controller/controller.js'),!0))(M);Ea.name=pa.param.control;Ea.setOptions(y,z,E,M);y='object'==typeof n.data&&0<n.data.count()?n.data:{};if(/^get|delete|put$/i.test(n.method)){z=0;for(let ca in y)'object'==typeof y[ca]&&encodeRFC5987ValueChars(JSON.stringify(y[ca])),z++}v.method=n.method;v.path=pa.url;n=require('util').promisify;var W={isValid:!1},ja=!1;await n(Ea.query)(v,y).then(function(ca){W=ca}).catch(function(ca){ja=
|
|
360
|
+
ca});ja&&(console.error(ja),W.error=ja);return W},I=null;I=S?Fa:U;var B=function(n,y){var z=null,E=null;'undefined'==typeof r[n]&&'undefined'!=typeof y&&(r[n]=z=y);if('object'==typeof r[n])try{z=JSON.parse(JSON.stringify(r[n]))}catch(x){z=r[n]}else z=r[n];E='';S&&'undefined'!=typeof P&&(E=P[n].getAttribute('data-gina-form-field-label')||'');r[n]={target:S&&'undefined'!=typeof P?P[n]:null,name:n,value:z,valid:!1,label:E,exclude:!1};r[n].is=function(x,v,H){var M=!1,T='undefined'!=typeof window&&'undefined'!=
|
|
361
|
+
typeof window._currentValidatorAlias?window._currentValidatorAlias:'is';'undefined'!=typeof window&&window._currentValidatorAlias&&delete window._currentValidatorAlias;var pa=r[this.name].errors||{};R.data[this.name]=r[this.name].value;'undefined'==typeof pa.isRequired&&''==this.value&&!/^false$/i.test(this.value)&&0!=this.value||!pa.isRequired&&''==this.value&&!/^false$/i.test(this.value)&&0!=this.value?M=!0:pa.isRequired||'string'!=typeof this.value||''!=this.value||(M=!0);if(!M&&/^(true|false)$/i.test(x))M=
|
|
362
|
+
x;else if(!M){var Ea=null,W=null;if(/[!=>><a-z 0-9]+/i.test(x)){if((W=x.match(/\${0}[-_,.\[\]a-z0-9]+/ig))&&0<W.length){for(var ja=0,ca=W.length;ja<ca;++ja)'undefined'!=typeof r[W[ja]]&&W[ja]&&(Ea=new RegExp('\\$'+W[ja]+'(?!\\S+)','g'),x=''==r[W[ja]].value?x.replace(Ea,'""'):'string'==typeof r[W[ja]].value?x.replace(Ea,'"'+r[W[ja]].value+'"'):x.replace(Ea,r[W[ja]].value));try{x=x.replace(/(\(|\)|return)/g,''),M=/^\//.test(x)?eval(x+'.test("'+this.value+'")'):eval(x)}catch(wa){throw Error(wa.stack||
|
|
363
|
+
wa.message);}}}else if(x instanceof RegExp)M=x.test(this.value)?!0:!1;else if('boolean'==typeof x)M=x?!0:!1;else try{/\/(.*)\//.test(x)?(Ea=x.match(/\/(.*)\//).pop(),W=x.replace('/'+Ea+'/',''),M=(new RegExp(Ea,W)).test(this.value)):M=eval(x)}catch(wa){throw Error(wa.stack||wa.message);}}M?M&&'undefined'!=typeof pa[T]&&delete pa[T]:(pa[T]=D(this.error||v||R.errorLabels[T],this),'undefined'!=typeof H&&(pa.stack=H));this.valid=M;0<pa.count()&&(this.errors=pa);return r[this.name]};r[n].set=function(x){this.value=
|
|
364
|
+
R.data[this.name]=x;this.target.setAttribute('value',x);return r[this.name]};r[n].isEmail=function(){this.value=R.data[this.name]=this.value?this.value.toLowerCase():this.value;S&&this.target&&''!=this.target.value&&/[A-Z]+/.test(this.target.value)&&(this.target.value=this.value);var x=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this.value)?!0:!1,v=r[this.name].errors||{};v.isRequired||
|
|
365
|
+
''!=this.value||(x=!0);x?x&&'undefined'!=typeof v.isEmail&&delete v.isEmail:v.isEmail=D(this.error||R.errorLabels.isEmail,this);this.valid=x;0<v.count()&&(this.errors=v);return r[this.name]};r[n].isJsonWebToken=function(){this.value=R.data[this.name]=this.value?this.value.toLowerCase():this.value;S&&this.target&&''!=this.target.value&&/[A-Z]+/.test(this.target.value)&&(this.target.value=this.value);var x=/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(this.value)?!0:!1,v=r[this.name].errors||
|
|
366
|
+
{};v.isRequired||''!=this.value||(x=!0);x?x&&'undefined'!=typeof v.isJsonWebToken&&delete v.isJsonWebToken:v.isJsonWebToken=D(this.error||R.errorLabels.isJsonWebToken,this);this.valid=x;0<v.count()&&(this.errors=v);return r[this.name]};r[n].isBoolean=function(){var x=null,v=r[this.name].errors||{};v.isRequired&&0==this.value&&(delete v.isRequired,this.errors=v);switch(this.value){case 'true':case !0:case 1:x=this.value=R.data[this.name]=!0;break;case 'false':case !1:case 0:x=this.value=R.data[this.name]=
|
|
367
|
+
!1}(x=null!==x?!0:!1)?x&&'undefined'!=typeof v.isBoolean&&delete v.isBoolean:v.isBoolean=D(this.error||R.errorLabels.isBoolean,this);this.valid=x;0<v.count()&&(this.errors=v);return r[this.name]};r[n].isNumber=function(x,v){var H=this.value,M=!1,T=!0,pa=!0,Ea=r[this.name].errors||{};try{'string'==typeof H&&/,|\./g.test(H)?H=R.data[this.name]=this.value=parseFloat(H.replace(/,/g,'.').replace(/\s+/g,'')):'string'==typeof H&&''!=H&&(H=R.data[this.name]=this.value=parseInt(H.replace(/\s+/g,'')))}catch(ja){Ea.isNumber=
|
|
368
|
+
D(this.error||R.errorLabels.isNumber,this),this.valid=!1,0<Ea.count()&&(this.errors=Ea)}if(+H===+H&&(M=!0,!Ea.isRequired&&''!=H)){var W=H.toString().length;x&&'number'==typeof x&&W<x&&(T=!1,this.size=x);v&&'number'==typeof v&&W>v&&(pa=!1,this.size=v)}M&&T&&pa||(M||(Ea.isNumber=D(this.error||R.errorLabels.isNumber,this)),T&&pa||(T||(Ea.isNumberLength=D(this.error||R.errorLabels.isNumberMinLength,this)),pa||(Ea.isNumberLength=D(this.error||R.errorLabels.isNumberMaxLength,this)),x===v&&(Ea.isNumberLength=
|
|
369
|
+
D(this.error||R.errorLabels.isNumberLength,this))),M=!1);M&&'undefined'!=typeof Ea.isNumberLength&&delete Ea.isNumberLength;this.valid=M;this.value=R.data[this.name]=''!=H?Number(H):H;0<Ea.count()&&(this.errors=Ea);return r[this.name]};r[n].toInteger=function(){var x=this.value,v=r[this.name].errors||{};if(x)try{this.value=R.data[this.name]=Math.round(x)}catch(H){v.toInteger=D(this.error||R.errorLabels.toInteger,this),this.valid=!1,0<v.count()&&(this.errors=v)}return r[this.name]};r[n].isInteger=
|
|
370
|
+
function(x,v){var H=this.value,M=!1,T=!0,pa=!0,Ea=r[this.name].errors||{};+H===+H&&0===H%1&&(M=!0,Ea.isRequired||''==H||(x&&'number'==typeof x&&H.length<x&&(T=!1,this.size=x),v&&'number'==typeof v&&H.length>v&&(pa=!1,this.size=v)));M&&T&&pa||(M||(Ea.isInteger=D(this.error||R.errorLabels.isInteger,this)),T&&pa||(T||(Ea.isIntegerLength=D(this.error||R.errorLabels.isIntegerMinLength,this),M=!1),pa||(Ea.isIntegerLength=D(this.error||R.errorLabels.isIntegerMaxLength,this),M=!1),x===v&&(Ea.isIntegerLength=
|
|
371
|
+
D(this.error||R.errorLabels.isIntegerLength,this),M=!1)));this.valid=M;this.value=R.data[this.name]=Number(H);0<Ea.count()&&(this.errors=Ea);return r[this.name]};r[n].toFloat=function(x){var v=document.getElementById(this.target.getAttribute('id')).value||this.value;isFloatingWithCommas=!1;'string'==typeof v&&(v=v.replace(/\s+/g,''),/,/.test(v)&&/\./.test(v)?v=v.replace(/,/g,''):/,/.test(v)&&(v=v.replace(/,/g,'.'),isFloatingWithCommas=!0));R.data[this.name]=v;var H=r[this.name].errors||{},M=!0;x?
|
|
372
|
+
this.decimals=parseInt(x):'undefined'==typeof this.decimals&&(this.decimals=2);if(v)if(this.isNumber().valid)try{Number.isFinite(v)||(v=new Number(parseFloat(v.match(/[0-9.,]+/g).join('').replace(/,/,'.'))))}catch(T){M=!1,H.toFloat=D(this.error||R.errorLabels.toFloat,this),this.valid=!1,0<H.count()&&(this.errors=H)}else M=!1,H.toFloat=D(this.error||R.errorLabels.toFloatNAN,this);else return r[this.name];this.decimals&&v&&!H.toFloat&&(v=parseFloat(v.toFixed(this.decimals)));this.value=R.data[this.name]=
|
|
373
|
+
v;S&&(isFloatingWithCommas&&(v=(''+v).replace(/\./g,',')),this.target.setAttribute('value',v));this.valid=M;0<H.count()&&(this.errors=H);return r[this.name]};r[n].isFloat=function(x){'string'==typeof this.value&&(this.value=this.value.replace(/\s+/g,''));var v=R.data[this.name]=this.value;x=r[this.name].errors||{};'string'==typeof v&&/\./.test(v)&&Number.isFinite(Number(v));'string'==typeof v&&/,/g.test(v)&&(v=this.value=R.data[this.name]=Number(v.replace(/,/g,'.')));Number(v)===v&&0!==v%1?(this.value=
|
|
374
|
+
R.data[this.name]=Number(v),v=!0):v=!1;x.isRequired||''!=this.value||(v=!0);v||(x.isFloat=D(this.error||R.errorLabels.isFloat,this));this.valid=v;0<x.count()&&(this.errors=x);return r[this.name]};r[n].isRequired=function(x){if('boolean'==typeof x&&!x)return this.valid=!0,x=R.excluded.indexOf(this.name),-1<x&&R.excluded.splice(x,1),r[this.name];if(S&&this.target&&'INPUT'==this.target.tagName&&'undefined'!=typeof this.target.type&&'radio'==this.target.type){x=document.getElementsByName(this.name);for(var v=
|
|
375
|
+
0,H=x.length;v<H;++v)if(x[v].checked){/true|false/.test(x[v].value)?this.value=R.data[this.name]=/true/.test(x[v].value)?!0:!1:this.value=R.data[this.name]=x[v].value;this.valid=!0;break}}x='undefined'==typeof this.value||null==this.value||''==this.value||/^\s+/.test(this.value)?!1:!0;v=r[this.name].errors||{};x?x&&'undefined'!=typeof v.isRequired&&delete v.isRequired:v.isRequired=D(this.error||R.errorLabels.isRequired,this);this.valid=x;0<v.count()&&(this.errors=v);return r[this.name]};r[n].isString=
|
|
376
|
+
function(x,v){var H=R.data[this.name]=this.value,M=!1,T=!0,pa=!0,Ea=r[this.name].errors||{};'string'!=typeof H||Ea.isRequired||''==H||(M=!0,x&&'number'==typeof x&&H.length<x&&(T=!1,this.size=x),v&&'number'==typeof v&&H.length>v&&(pa=!1,this.size=v));M&&T&&pa||(!M&&Ea.isRequired&&''==H?(M=!1,Ea.isString=D(this.error||R.errorLabels.isString,this)):M||Ea.isRequired||(M=!0),T&&pa||(M=!1,T||(Ea.isStringLength=D(this.error||R.errorLabels.isStringMinLength,this)),pa||(Ea.isStringLength=D(this.error||R.errorLabels.isStringMaxLength,
|
|
377
|
+
this)),x===v&&(Ea.isStringLength=D(this.error||R.errorLabels.isStringLength,this))));this.valid=M;0<Ea.count()&&(this.errors=Ea);return r[this.name]};r[n].isDate=function(x){var v=this.value,H=!1,M=r[this.name].errors||{},T=null;if(!v||''==v||/NaN|Invalid Date/i.test(v))return/NaN|Invalid Date/i.test(v)&&(console.warn('[FormValidator::isDate] Provided value for field `'+this.name+'` is not allowed: `'+v+'`'),M.isDate=D(this.error||R.errorLabels.isDate,this)),this.valid=H,0<M.count()&&(this.errors=
|
|
378
|
+
M),r[this.name];if('undefined'==typeof x||'undefined'!=typeof x&&/true/i.test(x))x='yyyy-mm-dd';if(v instanceof Date)v=v.format(x);else{try{T=x.match(/[^\/\- ]+/g)}catch(ca){throw Error('[FormValidator::isDate] Provided mask not allowed: `'+x+'`');}try{v=v.match(/[^\/\- ]+/g);var pa={},Ea;var W=0;for(Ea=T.length;W<Ea;++W)pa[T[W]]=v[W];for(var ja in pa)x=x.replace(new RegExp(ja,'g'),pa[ja])}catch(ca){throw Error('[FormValidator::isDate] Provided value not allowed: `'+v+'`'+ca);}v=this.value=R.data[this.name]=
|
|
379
|
+
new Date(x);if(/Invalid Date/i.test(v)||!1===v instanceof Date)return M.isRequired||''!=this.value?M.isDate=D(this.error||R.errorLabels.isDate,this):H=!0,this.valid=H,0<M.count()&&(this.errors=M),r[this.name];H=!0}this.valid=H;return v};r[n].format=function(x,v){var H=this.value;return H?H.format(x,v):r[this.name]};r[n].setFlash=function(x,v){'undefined'!=typeof v&&''!=v&&(this.error=v);return r[this.name]};r[n].setLabel=function(x){'undefined'!=typeof x&&''!=x&&(this.label=x);return r[this.name]};
|
|
380
|
+
r[n].trim=function(x){if('boolean'==typeof x&&x)return this.value=this.value.replace(/^\s+|\s+$/,''),R.data[this.name]=R.data[this.name]=this.value,r[this.name]};r[n].exclude=function(x){if('boolean'==typeof x&&!x)return/^true|false$/i.test(this.value)&&(this.value=/^true$/i.test(this.value)?!0:!1,R.data[this.name]=this.value),r[this.name];this.isExcluded=!1;0>R.excluded.indexOf(this.name)&&(R.excluded.push(this.name),this.isExcluded=!0);return r[this.name]};r[n].query=I;r[n].getValidationContext=
|
|
381
|
+
function(){return{isGFFCtx:S,self:r,local:R,replace:D}};if(Q()){z=y=null;try{for(let x in gina.forms.validators)z='/validators/'+x+'/main.js',R.errorLabels[x]='Condition not satisfied',S?(y=w(gina.forms.validators[x].data),y=y.replace(/(\)\s+\{|\)\{){1}/,'$&\n\tvar validationContext = this.getValidationContext(),isGFFCtx = validationContext.isGFFCtx,self = validationContext.self,local = validationContext.local,replace = validationContext.replace;')):y=gina.forms.validators[x].toString(),r[n][x]=eval('('+
|
|
382
|
+
y+')\n//# sourceURL='+x+'.js')}catch(x){throw Error('[UserFormValidator] Could not evaluate: `'+z+'`\n'+x.stack);}}};for(let n in r)B(n,r[n]);r.addField=function(n,y){'undefined'==typeof r[n]&&B(n,y)};r.isValid=function(){return 0<r.getErrors().count()?!1:!0};r.setErrors=function(n){if(!n)return{};for(var y in r)if('object'==typeof r[y]){for(var z in r[y])'object'==typeof n[y]&&'undefined'!=typeof n[y][z]&&('undefined'!=typeof r[y].valid&&/^true$/i.test(r[y].valid)?delete n[y][z]:('undefined'==typeof r[y].errors&&
|
|
383
|
+
(r[y].errors={}),r[y].errors[z]=n[y][z]));('undefined'==typeof r[y].errors&&'undefined'!=typeof n[y]||'undefined'!=typeof r[y].errors&&0==r[y].errors.count()&&'undefined'!=typeof n[y])&&delete n[y]}return n};r.getErrors=function(n){var y={};if('undefined'!=typeof n)return'undefined'!=typeof r[n]&&r[n]&&'undefined'!=typeof r[n].errors&&0<r[n].errors.count()&&(y[n]=r[n].errors),y;for(var z in r)'object'==typeof r[z]&&'undefined'!=typeof r[z].errors&&0<r[z].errors.count()&&(y[z]=r[z].errors);return y};
|
|
384
|
+
r.toData=function(){if(0<R.excluded.length)for(var n=0,y=R.excluded.length;n<y;++n)'undefined'!=typeof R.data[R.excluded[n]]&&delete R.data[R.excluded[n]];return R.data};var D=function(n,y){var z=n.match(/%[a-z]+/gi);if(z)for(var E=0,x=z.length;E<x;++E)n=n.replace(new RegExp(z[E],'g'),y[R.keys[z[E]]]);return n};r.setErrorLabels=function(n){'undefined'!=typeof n&&(R.errorLabels=O(n,R.errorLabels))};return r}
|
|
385
385
|
'undefined'!==typeof module&&module.exports?module.exports=FormValidatorUtil:'function'===typeof define&&define.amd&&define('lib/form-validator',[],function(){return FormValidatorUtil});
|
|
386
|
-
function Routing(){var A='undefined'!==typeof module&&module.exports?!1:!0,
|
|
387
|
-
getContext('gina').plugins,S=V.Validator);
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
if(
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
'
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
'undefined'!=typeof
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
B.
|
|
417
|
-
'undefined'==typeof
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
(
|
|
430
|
-
function
|
|
431
|
-
|
|
432
|
-
(
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
[]
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
typeof m
|
|
445
|
-
|
|
446
|
-
typeof
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
m.
|
|
386
|
+
function Routing(){var A='undefined'!==typeof module&&module.exports?!1:!0,P={allowedMethods:['get','post','put','delete'],reservedParams:['controle','file','title','namespace','path'],notFound:{},getInstance:function(r){return Routing.instance}};if('undefined'==typeof Routing.initialized)Routing.initialized=!0,Routing.instance=P,Routing._cached=[],Routing._cachedRoutes={};else return P=P.getInstance();P.allowedMethodsString=P.allowedMethods.join(',');var V=null,ka=null,S=null;A?(ka&&'function'==
|
|
387
|
+
typeof ka||(ka=require('lib/merge')),S&&'function'==typeof S||(S=require('lib/form-validator'))):(require('fs'),require('util'),require('../../inherits'),ka=require('../../merge'),V=require(__dirname+'/../../../core/plugins')||getContext('gina').plugins,S=V.Validator);P.getUrlProps=function(r,G){var w={};if(A){var va=window.gina.config;w.hostname=va.hostname;'undefined'!=typeof r&&(r=this.getRoute('webroot@'+r),w.hostname=r.hostname,w.host=r.host,w.webroot=r.webroot)}else va=getContext('gina').config,
|
|
388
|
+
'undefined'!=typeof getContext('argvFilename')&&(va.getRouting=getContext('gina').Config.instance.getRouting),'undefined'==typeof r&&(r=va.bundle),'undefined'==typeof G&&(G=va.env),w.hostname=va.envConf[r][G].hostname,w.host=va.envConf[r][G].host,w.webroot=va.envConf[r][G].server.webroot,console.debug('[self.getUrlProps][isProxyHost = '+getContext('isProxyHost')+'] hostname ',va.envConf[r][G].hostname,vs,process.gina.PROXY_HOSTNAME);return w};P.cache=function(r,G,w,va,Fa){-1==Routing._cached.indexOf(r)&&
|
|
389
|
+
(Routing._cached.push(r),Routing._cachedRoutes[r]={name:G,routing:w,params:va,methodParams:Fa})};P.getCached=function(r,G){if(-1<Routing._cached.indexOf(r)){var w=Routing._cachedRoutes[r],va=G.method.toLowerCase();r=JSON.clone(w.routing);w={method:va,requirements:r.requirements,namespace:r.namespace||void 0,url:decodeURI(G.url),rule:r.originalRule||w.name,param:r.param,middleware:r.middleware,bundle:r.bundle,isXMLRequest:G.isXMLRequest,isWithCredentials:G.isWithCredentials};'undefined'==typeof r.rule&&
|
|
390
|
+
'undefined'!=typeof w.rule&&(r.rule=w.rule);return P.compareUrls(w,r.url,G)}return null};P.invalidateCached=function(r){-1<Routing._cached.indexOf(r)&&(Routing._cached.splice(Routing._cached.indexOf(r),1),delete Routing._cachedRoutes[r])};P.compareUrls=async function(r,G,w,va,Fa){'undefined'==typeof w&&(w={routing:{}});if(/,/.test(G)){var U=0;G=G.split(/,/g);for(var I=G.length,B={past:!1,request:w};U<I&&!B.past;)B=await O(r,G[U],w,va,Fa),++U;return B}return await O(r,G,w,va,Fa)};var O=async function(r,
|
|
391
|
+
G,w,va,Fa){var U=null;try{U=r.url.split(/\//)}catch(T){console.warn(T),U=['']}G=G.split(/\//);var I=0,B=0,D=G.length,n=0,y={},z=0,E=w.method.toLowerCase(),x='get';try{x=r.method.toLowerCase()}catch(T){}var v=!1;if('undefined'!=typeof r.requirements&&/get|delete/i.test(E)&&'undefined'!=typeof w[E]||'undefined'!=typeof r.requirements&&/get/i.test(E)&&/delete/i.test(x)){/get/i.test(E)&&/delete/i.test(x)&&(E=x);if(/^(delete)$/i.test(E)&&U.length===G.length){'undefined'==typeof w[E]&&(w[E]={});for(let T=
|
|
392
|
+
0,pa=G.length;T<pa;T++)if(U[T]===G[T])++n;else if(x=G[T].substring(1),'undefined'!=typeof r.requirements[x]){x=r.requirements[x];if(/^\//.test(x))x=x.substring(1,x.lastIndexOf('/')-1);else if(/^validator::/.test(x)&&await ia(G[T],U[T],r,w,va,Fa)){++n;continue}/^:/.test(G[T])&&'undefined'!=typeof x&&(new RegExp(x)).test(U[T])&&(++n,w[E][G[T].substring(1)]=U[T])}v=!0}for(var H in w[E])'undefined'!=typeof r.requirements[H]&&0>G.indexOf(':'+H)&&(G[B]=':'+H,++B,U[I]=w[E][H],++I,v||U.length!==G.length||
|
|
393
|
+
++D)}if(!v&&U.length===G.length)for(;z<D;++z)U[z]===G[z]?++n:n==z&&/:/.test(G[z])&&await ia(G[z],U[z],r,w,va,Fa)&&++n;if('undefined'!=typeof r.requirements&&E==r.method.toLowerCase()&&!v&&n>=D)for(H=Object.getOwnPropertyNames(r.requirements),I=0,G.join(',').match(/:[-_a-z0-9]+/g);I<H.length;){B=H[I];if('undefined'==typeof r.param[B]&&/^validator::/i.test(r.requirements[B])){if(G.length!=U.length)break;var M=G.join(',').match(/:[-_a-z0-9]+/g);let T=r.requirements[B];z={};x={};v={};try{x=JSON.parse(T.split(/::/).splice(1)[0].replace(/([^:"\s+](\w+)):/g,
|
|
394
|
+
'"$1":').replace(/([^:"\s+](\w+))\s+:/g,'"$1":'))}catch(pa){throw pa;}if('undefined'!=typeof x.query&&'undefined'!=typeof x.query.data){z=x.query.data;for(let pa in z)0>M.indexOf(z[pa])&&delete z[pa];for(let pa=0,Ea=G.length;pa<Ea;pa++)/^:/.test(G[pa])&&(M=G[pa].replace(/^:/,''),''!=M&&'undefined'!=typeof U[pa]&&(z[M]=U[pa],'undefined'==typeof w.params[M]&&(w.params[M]=U[pa])))}z=ka(z,JSON.clone(w[E])||{});'undefined'==typeof z[B]&&(z[B]=null);v[B]=x;_validator=A?new S(z):new S('routing',z,null,v);
|
|
395
|
+
if(0==x.count()){console.error('Route validation failed '+r.rule);--n;I++;continue}for(let pa in x)if('undefined'!=typeof x[pa].data&&(x[pa].data=z),v=Array.isArray(x[pa])?await _validator[B][pa].apply(_validator[B],x[pa]):await _validator[B][pa](x[pa],w,va,Fa),!v.isValid&&(--n,'undefined'!=typeof v.error))throw v.error;}I++}y.past=n===D?!0:!1;y.past&&(w.routing=R(r,w[E]),y.request=w);return y},ia=async function(r,G,w,va,Fa,U){var I=-1,B=r.match(/:\w+/g);I=new RegExp(r,'g');var D=null,n=null,y=null;
|
|
396
|
+
D=!1;var z=D=n=n=null,E=null,x=va.method.toLowerCase();if(!B.length)return!1;w.param.path&&I.test(w.param.path)&&(w.param.path=w.param.path.replace(I,G));w.param.namespace&&I.test(w.param.namespace)&&(w.param.namespace=w.param.namespace.replace(I,G));'undefined'!=typeof w.param.file&&/:/.test(w.param.file)&&(D=new RegExp('(:'+r+'/|:'+r+'$)','g'),Q.variable=G,w.param.file=w.param.file.replace(D,Q),D=null);w.param.title&&I.test(w.param.title)&&(w.param.title=w.param.title.replace(I,G));if(1==B.length){D=
|
|
397
|
+
new RegExp(B[0]);I=-1<B.indexOf(r)?B.indexOf(r):!1;!1===I&&r.match(D)&&(I=0);if(!1===I)return I;if(w.method.toLowerCase()!==x)return!1;'undefined'==typeof va[x]&&(va[x]={});y=B[I].substring(1);I=w.requirements[y];if(/^\//.test(I))D=I.match(/\/(.*)\//).pop(),n=I.replace('/'+D+'/',''),D=(new RegExp(D,n)).test(G);else if(/^validator::/.test(I)&&G){n={};D={};z={};E='';r.replace(new RegExp('[^'+y+']','g'),function(pa){E+=pa});n[y]=G.replace(new RegExp(E,'g'),'');try{D=JSON.parse(I.split(/::/).splice(1)[0].replace(/([^:"\s+](\w+)):/g,
|
|
398
|
+
'"$1":').replace(/([^:"\s+](\w+))\s+:/g,'"$1":'))}catch(pa){throw pa;}'undefined'!=typeof D.query&&'undefined'!=typeof D.query.data&&r==D.query.data[Object.keys(D.query.data)[0]]&&(D.query.data[Object.keys(D.query.data)[0]]=n[y],va.params[y]=n[y]);z[y]=D;n=new S('routing',n,null,z);if(0==D.count())return console.error('Route validation failed '+w.rule),!1;for(var v in D)Array.isArray(D[v])?await n[y][v].apply(n[y],D[v]):await n[y][v](D[v],va,Fa,U);D=n.isValid()}else D=(new RegExp(w.requirements[y])).test(G);
|
|
399
|
+
if('undefined'!=typeof w.param[y]&&'undefined'!=typeof w.requirements&&'undefined'!=typeof w.requirements[y]&&'undefined'!=typeof va.params&&D)return va.params[y]=G,'undefined'==typeof va[x][y]&&(va[x][y]=G),!0}else{Fa=w.url;U=va.url;x={};z='';var H=!1,M=0;v=0;for(var T=U.length;v<T;++v)if(U.charAt(v)!=Fa.charAt(M)||H){if(''==z)H=!0,z+=U.charAt(v);else if(v>Fa.indexOf(B[0])+B[0].length){I=w.requirements[B[0]];G=z.substring(0,z.length);if(/^\//.test(I))D=I.match(/\/(.*)\//).pop(),n=I.replace('/'+D+
|
|
400
|
+
'/',''),D=(new RegExp(D,n)).test(G);else if(/^validator::/.test(I)){n={};D={};z={};E='';r.replace(new RegExp('[^'+y[0]+']','g'),function(pa){E+=pa});n[y[0]]=G.replace(new RegExp(E,'g'),'');D=JSON.parse(I.split(/::/).splice(1)[0].replace(/([^\W+ true false])+(\w+)/g,'"$&"'));z[y[0]]=D;n=new S('routing',n,null,z);for(let pa in D)if(Array.isArray(D[pa]))n[y[0]][pa].apply(n[y[0]],D[pa]);else n[y[0]][pa](D[pa]);D=n.isValid()}else D=(new RegExp(w.requirements[y[0]])).test(G);if(D)x[B[0].substring(1)]=G;
|
|
401
|
+
else return!1;z='';H=!1;M=Fa.indexOf(B[0])+B[0].length;--v;B.splice(0,1)}else z+=U.charAt(v),++M;if(v==T-1)if(I=w.requirements[B[0]],G=z.substring(0,z.length),/^\//.test(I)?(D=I.match(/\/(.*)\//).pop(),n=I.replace('/'+D+'/',''),D=(new RegExp(D,n)).test(G)):D=(new RegExp(w.requirements[y])).test(G),D)x[B[0].substring(1)]=G;else return!1}else++M;if(x.count()==B.length){y=null;for(y in x)va.params[y]=x[y];return!0}}return!1},Q=function(r){return/\/$/.test(r)?Q.variable+'/':Q.variable},R=function(r,G){var w=
|
|
402
|
+
null,va,Fa=r.url,U=null;for(U in r.param)if(('undefined'==typeof G||'undefined'!=typeof G[U])&&/^:/.test(r.param[U])){var I=r.param[U].substring(1);if('undefined'!=typeof G&&'undefined'!=typeof G[I]){var B=new RegExp('(:'+I+'/|:'+I+'$)','g');'undefined'!=typeof r.param.path&&/:/.test(r.param.path)&&(r.param.path=r.param.path.replace(B,G[I]));'undefined'!=typeof r.param.title&&/:/.test(r.param.title)&&(r.param.title=r.param.title.replace(B,G[I]));'undefined'!=typeof r.param.namespace&&/:/.test(r.param.namespace)&&
|
|
403
|
+
(r.param.namespace=r.param.namespace.replace(B,G[I]));'undefined'!=typeof r.param.file&&/:/.test(r.param.file)&&(Q.variable=G[I],r.param.file=r.param.file.replace(B,Q));if(/,/.test(r.url)){w=r.url.split(/,/g);var D=0;for(va=w.length;D<va;++D)Q.variable=G[I],w[D]=w[D].replace(B,Q);r.url=w.join(',')}else Q.variable=G[I],r.url=r.url.replace(B,Q)}}if(w){D=0;va=w.length;Fa=Fa.split(/,/g);var n=0;for(r.urlIndex=0;D<va;++D)if(w=0,B=Fa[0].match(/:[-_a-z0-9]+/ig)){U=0;for(I=B.length;U<I;U++){var y=B[U].substring(1);
|
|
404
|
+
'undefined'!=typeof G[y]&&G[y]&&w++}w>n&&(n=w,r.urlIndex=D)}}return r};P.getRoute=function(r,G,w){var va=null,Fa=!1;A?(window.location.port||window.location.hostname!=window.gina.config.hostname.replace(/^(https|http|wss|ws):\/\//,'').replace(/:\d+$/,'')||(Fa=!0,window.gina.config.hostname=window.gina.config.hostname.replace(/^(https|http|wss|ws):\/\//,'').replace(/:\d+$/,'')),va=window.gina.config):(va=getContext('gina').config,'undefined'!=typeof getContext('argvFilename')&&(va.getRouting=getContext('gina').Config.instance.getRouting),
|
|
405
|
+
Fa=getContext('isProxyHost'));var U=va.env||GINA_ENV,I=null,B=va.bundle;/@/.test(r)||'undefined'==typeof B||null==B||(r=r.toLowerCase(),r+='@'+B);if(/@/.test(r)){var D=r.replace(/(.*):\/\//,'').split(/@/);B=D[1];/\/(.*)$/.test(r)&&(I=r.replace(/(.*):\/\//,'').split(/\/(.*)$/)[1],B=B.replace(/\/(.*)$/,''),U=I||U);r=D[0].toLowerCase()+'@'+B}B=va.getRouting(B,U);if('undefined'==typeof B[r])throw Error('[ RoutingHelper::getRouting(rule, params) ] : `'+r+'` not found !');I=JSON.clone(B[r]);D=null;I=R(I,
|
|
406
|
+
G);(I.isProxyHost=Fa)?(A?I.proxy_hostname=window.location.protocol+'//'+document.location.hostname:(I.proxy_hostname=process.gina.PROXY_HOSTNAME||va.envConf._proxyHostname,console.debug('[getRoute#1]['+Fa+'] process.gina.PROXY_HOSTNAME ('+process.gina.PROXY_HOSTNAME+') VS config.envConf._proxyHostname ('+va.envConf._proxyHostname+')')),I.proxy_host=I.proxy_hostname.replace(/^(https|http):\/\//,'')):A||'undefined'==typeof process.gina.PROXY_HOSTNAME||(I.proxy_hostname=process.gina.PROXY_HOSTNAME,I.proxy_host=
|
|
407
|
+
I.proxy_hostname.replace(/^(https|http):\/\//,''),console.debug('[getRoute#2]['+Fa+'] process.gina.PROXY_HOSTNAME ('+process.gina.PROXY_HOSTNAME+') VS config.envConf._proxyHostname ('+va.envConf._proxyHostname+')'));/,/.test(I.url)&&('undefined'!=typeof I.urlIndex&&(w=I.urlIndex,delete I.urlIndex),w='undefined'!=typeof w?w:0,I.url=I.url.split(/,/g)[w]);/\/$/.test(I.url)&&'/'!=I.url&&(I.url=I.url.substring(0,I.url.length-1));if(/GET/i.test(I.method)&&'undefined'!=typeof G){w='?';va=B[r].url;Fa=[];
|
|
408
|
+
B=0;for(let n in I.param)-1<P.reservedParams.indexOf(n)||(new RegExp(I.param[n])).test(va)||'undefined'==typeof G[n]||(w+=n+'='+encodeRFC5987ValueChars(G[n])+'&',Fa[B]=G[n],++B);for(let n in G)-1<P.reservedParams.indexOf(n)||'undefined'!=typeof I.requirements[n]||-1<Fa.indexOf(n)||(w='object'==typeof G[n]?w+(n+'='+encodeRFC5987ValueChars(JSON.stringify(G[n]))+'&'):w+(n+'='+G[n]+'&'));B=Fa=va=null;1<w.length&&(w=w.substring(0,w.length-1),I.url+=w);w=null}I.toUrl=function(n){var y=null;/^redirect$/i.test(this.param.control)&&
|
|
409
|
+
(y=P.getUrlProps(this.bundle,U||GINA_ENV));var z=this.webroot||y.webroot;y=''+this.hostname||''+y.hostname;var E=''+this.url;this.isProxyHost&&(y=''+this.proxy_hostname);this.url='undefined'!=typeof n&&/^true$/i.test(n)?E.replace(new RegExp('^'+z),'/'):E.replace(new RegExp('^('+z+'|/$)'),z);return y+this.url};I.request=function(n,y){var z=null,E=null;'function'==typeof arguments[arguments.length-1]&&(z=arguments[arguments.length-1]);'object'==typeof arguments[2]&&(E=arguments[2]);var x=this.webroot||
|
|
410
|
+
E.webroot,v=this.hostname||E.hostname;E='undefined'!=typeof n&&1==n?path.replace(x,'/'):this.url||E.url;/^\//.test(E)&&(E=v+E);v=/^https/.test(v)?'https':'http';A?window.open(E,'undefined'!=typeof y&&'undefined'!=typeof y.target?y.target:'_self'):('undefined'==typeof y.agent&&(y.agent=!1),v=require(''+v),x=function(H){var M='',T=!1;H.on('data',function(pa){M+=pa});H.on('error',function(pa){T='Failed to get mail content';pa&&'undefined'!=typeof pa.stack?T+=pa.stack:'string'==typeof pa&&(T+='\n'+pa)});
|
|
411
|
+
H.on('end',function(){if(/^\{/.test(M))try{M=JSON.parse(M),'undefined'!=typeof M.error&&(T=JSON.clone(M),M=null)}catch(pa){T=pa}T?z(T):z(!1,M)})},z?v.get(E,y,x):v.get(E,y))};!/:/.test(I.url)||/:d+\//.test(I.url)||/:\/\//.test(I.url)||(G=I.url.match(/(:(.*)\/|:(.*)$)/g).map(function(n){return n.replace(/\//g,'')}).join(', '),D='[ RoutingHelper::getRoute(rule[, bundle, method]) ] : route [ %r ] param placeholder not defined: `'+I.url+'` !\n Check your route description to compare requirements against param variables [ '+
|
|
412
|
+
G+']',D=D.replace(/%r/,r),r=Error(D),console.warn(r),D=r=G=null);return I};P.getRouteByUrl=function(r,G,w,va,Fa){2==arguments.length&&'undefined'!=typeof arguments[1]&&arguments[1]&&-1<P.allowedMethods.indexOf(arguments[1].toLowerCase())&&(w=arguments[1],G=void 0);var U=null,I=null,B=null,D=null,n=null,y=null;if(/#/.test(r)&&1<r.length){var z=r.split(/#/);r=z[0];n='#'+z[1];z=null}1==arguments.length&&'undefined'!=typeof arguments[0]&&(/^(https|http)/i.test(r)||/^\//.test(r)||(r='/'+r),U='/'+r.split(/\//g)[1],
|
|
413
|
+
A&&(D=gina.config.reverseRouting,B=gina.config.routing),'undefined'!=typeof D[U]&&(z=B[D[U]],G=z.bundle,U=z.webroot,y=z.hostname,z=null));Fa='boolean'!=typeof arguments[arguments.length-1]?!1:arguments[arguments.length-1];var E=!1,x=null,v=null,H=x=v=null;z='undefined'!=typeof w?!0:!1;A?(x=window.gina.config,G='undefined'!=typeof G?G:x.bundle,v=x.env,B=B||x.getRouting(G),D=D||x.reverseRouting,isXMLRequest='undefined'!=typeof isXMLRequest?isXMLRequest:!1,y=y||x.hostname,U=U||x.webroot,va={routing:{},
|
|
414
|
+
method:w,params:{},url:r},G&&(va.bundle=G)):(x=getContext('gina').config,G='undefined'!=typeof G?G:x.bundle,v=x.env,B=x.getRouting(G),y=x.envConf[G][v].hostname,U=x.envConf[G][v].server.webroot,va||={routing:{},isXMLRequest:!1,method:'undefined'!=typeof w?w.toLowerCase():'get',params:{},url:r},Fa&&(va.method=w),isXMLRequest=va.isXMLRequest||!1);v=r.replace(new RegExp('^('+y+'|'+y.replace(/:\d+/,'')+')'),'');'undefined'==typeof va.routing.path&&(va.routing.path=decodeURI(v));w='undefined'!=typeof w?
|
|
415
|
+
w.toLowerCase():'get';z&&(va.originalMethod=va.method,va.method=w,va.routing.path=decodeURI(v));va.method||(va.method=w);x={};U=new RegExp(w,'i');D=null;var M;for(M in B){if('undefined'==typeof B[M].param)break;if(B[M].bundle==G&&(D=B[M].method,/,/.test(D)&&U.test(D)&&(D=va.method),'undefined'==typeof B[M].method||U.test(D))){x={method:D,requirements:B[M].requirements,namespace:B[M].namespace||void 0,url:decodeURI(v),rule:B[M].originalRule||M,param:B[M].param,middleware:JSON.clone(B[M].middleware),
|
|
416
|
+
bundle:B[M].bundle,isXMLRequest};try{if(H=P.compareUrls(x,B[M].url,va),H.past){I=JSON.clone(B[M]);I.name=M;E=!0;H={};break}}catch(T){throw Error('Route [ '+M+' ] needs your attention.\n'+T.stack);}}}if(E)return/\/$/.test(r)&&'/'!=r&&(r=r.substring(0,r.length-1)),n&&(r+=n),I.url=r,I.toUrl=function(T){var pa=this.webroot,Ea=this.hostname,W=this.url;this.url='undefined'!=typeof T&&1==T?W.replace(pa,'/'):W;return Ea+this.url},I;if(A){n=!1;if('#'==r&&/GET/i.test(w)&&z||/^404:/.test(r))r=location.pathname,
|
|
417
|
+
n=!0;'undefined'==typeof P.notFound&&(P.notFound={});B=null;I='[ RoutingHelper::getRouteByUrl(rule[, bundle, method]) ] : route [ %r ] is called but not found inside your view: `'+r+'` !';if((B=(B=gina.hasPopinHandler&&gina.popinIsBinded?gina.popin.getActivePopin().target.innerHTML.match(/404:\[\w+\][a-z 0-9-_@]+/):document.body.innerHTML.match(/404:\[\w+\][a-z 0-9-_@]+/))&&0<B.length?B[0]:null)&&z&&n)return n=B.match(/\[\w+\]/)[0],B=B.replace('404:'+n,n.replace(/\[|\]/g,'')+'::'),I=I.replace(/%r/,
|
|
418
|
+
B.replace(/404:\s+/,'')),'undefined'==typeof P.notFound[B]?P.notFound[B]={count:1,message:I}:z&&'undefined'!=typeof P.notFound[B]&&++P.notFound[B].count,!1;if((n=gina.config.reverseRouting[r]||null)&&'undefined'!=typeof n&&n.split(/@(.+)$/)[1]==G)return B=n,'undefined'==typeof P.notFound[B]?(I=I.replace(/%r/,w.toUpperCase()+'::'+n),P.notFound[B]={count:1,message:I}):z&&'undefined'!=typeof P.notFound[B]&&++P.notFound[B].count,!1;B=P.compareUrls(x,r,va)||null;B.past&&z&&(B=w.toUpperCase()+'::'+B.request.routing.rule,
|
|
419
|
+
'undefined'==typeof P.notFound[B]?I=I.replace(/%r/,B):++P.notFound[B].count);return!1}console.warn(Error('[ RoutingHelper::getRouteByUrl(rule[, bundle, method, request]) ] : route not found for url: `'+r+'` !').stack);return!1};return P}'undefined'!==typeof module&&module.exports?('undefined'==typeof console.err&&(console=require('../../logger')),module.exports=Routing()):'function'===typeof define&&define.amd&&define('lib/routing',['require','lib/form-validator','lib/merge'],function(){return Routing()});
|
|
420
|
+
function StoragePlugin(A){function P(I){G=JSON.parse(R.getItem(this.bucket));'undefined'==typeof G[I]&&(G[I]=[],R.setItem(this.bucket,JSON.stringify(G)),G=JSON.parse(R.getItem(this.bucket)));r[I]={_collection:I,_bucket:this.bucket};r[I]=ka(r[I],Fa);return r[I]}function V(I){if('object'!==typeof I)throw Error('filter must be an object');var B=G[this._collection],D=I.count(),n=0,y=null;if(0==D)return null;for(var z in B)for(var E in I){var x='boolean'!=typeof I[E]?I[E].toLocaleLowerCase():I[E];I[E]&&
|
|
421
|
+
-1<w.indexOf(x)&&'not null'==x&&'undefined'!=typeof B[z][E]&&'object'!==typeof B[z][E]&&B[z][E]===I[E]&&'null'!=B[z][E]&&'undefined'!=B[z][E]?0>y.indexOf(B[z][E])&&(++n,n===D&&(y=B[z],y._index=z,y._collection=this._collection,y._bucket=this._bucket)):'undefined'!=typeof B[z][E]&&'object'!==typeof B[z][E]&&B[z][E]===I[E]&&(++n,n===D&&(y=B[z],y._index=z,y._collection=this._collection,y._bucket=this._bucket,y._filter=I))}y&&(y.save=U);return y}var ka=ka||require('lib/merge');P=P||require('lib/collection');
|
|
422
|
+
var S=S||require('vendor/uuid'),O=O||require('helpers/dateFormat'),ia={bucket:'default'},Q={},R=null,r={},G={},w=['not null'],va={bucket:void 0,drop:function(){R.removeItem(ia.bucket);Q=null;for(var I in this)delete this[I];return Q},Collection:P},Fa={insert:function(I){I._id=S.v1();I._createdAt=(new Date).format('isoDateTime');I._updatedAt=(new Date).format('isoDateTime');G[this._collection][G[this._collection].length]=I;R.setItem(this._bucket,JSON.stringify(G))},find:function(I,B){if(!I)return G[this._collection];
|
|
423
|
+
if('object'!==typeof I)throw Error('filter must be an object');B=G[this._collection];I.count();var D=0,n=[],y;for(y in B)for(var z in I){var E='boolean'!=typeof I[z]?I[z].toLocaleLowerCase():I[z];I[z]&&-1<w.indexOf(E)&&'not null'==E&&'undefined'!=typeof B[y][z]&&'object'!==typeof B[y][z]&&'null'!=B[y][z]&&'undefined'!=B[y][z]?0>n.indexOf(B[y][z])&&(n[D]=B[y][z],++D):'undefined'!=typeof B[y][z]&&'object'!==typeof B[y][z]&&B[y][z]===I[z]&&(n[D]=B[y],++D)}return n},findOne:V,update:null,'delete':function(I){if('object'!==
|
|
424
|
+
typeof I)throw Error('filter must be an object');var B=JSON.clone(G[this._collection]),D=0,n=[],y;for(y in B)for(var z in I)I[z]&&-1<w.indexOf(I[z].toLocaleLowerCase())&&'not null'==I[z].toLowerCase()&&'undefined'!=typeof B[y][z]&&'object'!==typeof B[y][z]&&'null'!=B[y][z]&&'undefined'!=B[y][z]?0>n.indexOf(B[y][z])&&(n[D]=B[y][z],delete G[this._collection][y][z],++D):'undefined'!=typeof B[y][z]&&'object'!==typeof B[y][z]&&B[y][z]===I[z]&&(n[D]=B[y],G[this._collection].splice(y,1),++D);return 0<n.length?
|
|
425
|
+
(R.setItem(this._bucket,JSON.stringify(G)),!0):!1},drop:function(I){if('undefined'==typeof G[this._collection])throw Error('Collection `'+I+'` not found');delete r[this._collection];delete G[this._collection];R.setItem(this._bucket,JSON.stringify(G))}},U=function(I){I=I||!1;try{var B=JSON.clone(G),D=this._index,n=this._collection,y=this._bucket,z=this._filter;this._updatedAt=(new Date).format('isoDateTime');B[n][D]=ka(B[n][D],this,!0);delete B[n][D]._index;delete B[n][D]._collection;delete B[n][D]._bucket;
|
|
426
|
+
delete B[n][D].save;delete B[n][D]._filter;if(I&&'object'==typeof B[n][D]){var E=function(v,H){for(var M=0,T=v.length;M<T;++M)'object'!=typeof H[M]||'undefined'==typeof v[M]||Array.isArray(v[M])?Array.isArray(v[M])?E(v[M],H[M]):'undefined'==typeof v[M]&&delete H[M]:x(v[M],H[M]);return H},x=function(v,H){for(var M in H)'object'!=typeof H[M]||'undefined'==typeof v[M]||Array.isArray(v[M])?Array.isArray(v[M])?E(v[M],H[M]):'undefined'==typeof v[M]&&delete H[M]:x(v[M],H[M]);return H};Array.isArray(B[n][D])?
|
|
427
|
+
B[n][D]=E(this,B[n][D]):'object'==typeof B[n][D]?B[n][D]=x(this,B[n][D]):'undefined'==typeof this[prop]&&delete B[n][D]}G[n][D]=B[n][D];R.setItem(y,JSON.stringify(G));return V(z)}catch(v){throw v;}};(function(I){if(!window.localStorage||window.localStorage&&'undefined'==!typeof window.localStorage.setItem)throw Error('Make sure your browser supports `window.localStorage` to use Gina Storage. See: `https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API#Browser_compatibility`');if('object'!=
|
|
428
|
+
typeof I&&'undefined'!=typeof I)throw Error('`options` must be an object');'undefined'==typeof I&&(I={});ia=ka(I,ia);R=window.localStorage;I=ia.bucket;if(!R.getItem(I)&&void 0!=I)R.setItem(I,JSON.stringify(G));else if(void 0==I)throw Error('`bucket` name cannot be undefined');Q.bucket=I;Q=ka(Q,va)})(A);return Q}
|
|
429
|
+
if('undefined'!==typeof module&&module.exports){var merge=require('lib/merge');Collection=require('lib/collection');var uuid=require('uuid');module.exports=StoragePlugin}else'function'===typeof define&&define.amd&&define('gina/storage',['helpers/dateFormat','helpers/prototypes'],function(){return StoragePlugin});function insertAfter(A,P){A.parentNode.insertBefore(P,A.nextSibling)}
|
|
430
|
+
function getElementsByAttribute(A){for(var P=[],V=0,ka=document.getElementsByTagName('*'),S=0,O=ka.length;S<O;++S)null!==ka[S].getAttribute(A)&&(P[V]=ka[S],++V);return P}
|
|
431
|
+
(function(A){var P=A.prototype,V=P.parseFromString;try{if((new A).parseFromString('','text/html'))return}catch(ka){}P.parseFromString=function(ka,S){if(/^\s*text\/html\s*(?:;|$)/i.test(S)){var O=document.implementation.createHTMLDocument('');-1<ka.toLowerCase().indexOf('<!doctype')?O.documentElement.innerHTML=ka:O.body.innerHTML=ka;return O}return V.apply(this,arguments)}})(DOMParser);define('utils/dom',function(){});
|
|
432
|
+
function fadeIn(A){var P=.1;A.style.display='block';var V=setInterval(function(){1<=P&&clearInterval(V);A.style.opacity=P;A.style.filter='alpha(opacity='+100*P+')';P+=.1*P},10)}function fadeOut(A){var P=1,V=setInterval(function(){.1>=P&&(clearInterval(V),A.style.display='none');A.style.opacity=P;A.style.filter='alpha(opacity='+100*P+')';P-=.1*P},50)}define('utils/effects',function(){});
|
|
433
|
+
function DataHelper(){encodeRFC5987ValueChars=function(V){return encodeURIComponent(V).replace(/['()]/g,escape).replace(/\*/g,'%2A').replace(/%(?:7C|60|5E)/g,unescape)};formatDataFromString=function(V){'object'==typeof V&&(V=JSON.stringify(V));try{V=decodeURIComponent(V)}catch(r){}/("false"|"true"|"on")/.test(V)&&(V=V.replace(/"false"/g,!1).replace(/"true"/g,!0).replace(/"on"/g,!0));/("null")/i.test(V)&&(V=V.replace(/"null"/ig,null));a:{var ka=V,S=V=null,O=null;if(/^(\{|\[|%7B|%5B)/.test(ka)){try{V=
|
|
434
|
+
(O=/^(\{|%7B)/.test(ka)?!1:!0)?[]:{};S=/^(%7B|%5B)/.test(ka)?JSON.parse(decodeURIComponent(ka)):JSON.parse(ka);if(Array.isArray(S)){O=0;for(var ia=S.length;O<ia;++O)V[O]=A(S[O],V);var Q=V}else Q=A(S,V);var R=Q;break a}catch(r){console.error('[365] could not parse body:\n'+ka)}R=void 0}else{V={};R=ka.split(/&/g);/("false"|"true"|"on")/.test(ka)&&ka.replace(/"false"/g,!1).replace(/"true"/g,!0).replace(/"on"/g,!0);ka={};ia=0;for(S=R.length;ia<S;++ia)if(R[ia])if(R[ia]=decodeURIComponent(R[ia]),/^\{/.test(R[ia])||
|
|
435
|
+
/=\{/.test(R[ia])||/=\[/.test(R[ia]))try{if(/^\{/.test(R[ia])){V=JSON.parse(R[ia]);break}else ka=R[ia].match(/=(.*)/),ka[0]=R[ia].split(/=/)[0],V[ka[0]]=JSON.parse(ka[1])}catch(r){console.error('[parseBody#1] could not parse body:\n'+R[ia])}else{ka=R[ia].split(/=/);if(/\{\}":/.test(ka[1]))try{ka[1]=JSON.parse(ka[1])}catch(r){console.error('[parseBody#2] could not parse body:\n'+ka[1])}'string'!=typeof ka[1]||/\[object /.test(ka[1])||(ka[0]=decodeURIComponent(ka[0]),ka[1]=decodeURIComponent(ka[1]),
|
|
436
|
+
/^(.*)\[(.*)\]/.test(ka[0])?(Q=ka[0].replace(/\]/g,'').split(/\[/g),V=P(V,Q,0,ka[1])):V[ka[0]]=ka[1])}R=V}}return R};var A=function(V,ka){var S=[];ka||={};for(let ia in V)if(S[0]=ia,S[1]=V[ia],/^(.*)\[(.*)\]/.test(S[0])){var O=S[0].replace(/\]/g,'').split(/\[/g);ka=P(ka,O,0,S[1])}else ka[S[0]]=S[1];return ka},P=function(V,ka,S,O){for(let ia=0,Q=ka.length;ia<Q;ia++){let R=ka[S];if(ia==S){if('undefined'==typeof V[ka[S]]||'string'==typeof V[ka[S]])Array.isArray(V)?(R=~~ka[S],V[R]=/^\d+$/.test(ka[S+1])?
|
|
437
|
+
[]:{}):V[ka[S]]=/^\d+$/.test(ka[S+1])?[]:{};if(S==ka.length-1){O='undefined'!=typeof O?O:'';Array.isArray(V[ka[S]])?V[ka[S]].push(O):V[ka[S]]=O;break}else/^\d+$/.test(ka[S])&&!Array.isArray(V)&&(V=[]),'undefined'==typeof V[R]&&(V[R]=null),P(V[R],ka,S+1,O)}}return V}}'undefined'!==typeof module&&module.exports?module.exports=DataHelper:'function'===typeof define&&define.amd&&define('utils/data',[],function(){return DataHelper()});
|
|
438
|
+
function ValidatorPlugin(A,P,V){this.plugin='validator';var ka='init ready registered success error progress submit reset change changed keydown keyup focusout focusin validate validated destroy asyncCompleted'.split(' '),S='undefined'!==typeof module&&module.exports?!1:!0,O=null;if(S)require('utils/events'),registerEvents(this.plugin,ka),require('utils/dom'),require('utils/effects'),require('utils/data'),O=gina.config.envIsDev;else{if(O=/^true$/i.test(process.env.NODE_ENV_IS_DEV)?!0:!1)delete require.cache[require.resolve('./form-validator')],
|
|
439
|
+
delete require.cache[require.resolve('../../../../../helpers/data')];require('../../../../../helpers/data')}var ia=S?require('vendor/uuid'):require('uuid'),Q=S?require('lib/merge'):require('../../../../../lib/merge'),R=S?require('lib/inherits'):require('../../../../../lib/inherits'),r=S?require('lib/form-validator'):require('./form-validator'),G=S?require('lib/routing'):require('../../../../../lib/routing'),w={id:'validator-'+ia.v4(),plugin:this.plugin,on:S?on:null,eventData:{},target:S?document:
|
|
440
|
+
null,errors:{},initialized:!1,isReady:!1,rules:{},$forms:{},getFormById:null,validateFormById:null,setOptions:null,resetErrorsDisplay:null,resetFields:null},va={id:null,plugin:this.plugin,on:S?on:null,eventData:{},target:S?document:null,cachedErrors:{},lastFocused:S?[]:null,binded:!1,unbinded:!1,withUserBindings:!1,rules:{},setOptions:null,send:null,isValidating:null,isSubmitting:null,submit:null,destroy:null,resetErrorsDisplay:null,resetFields:null},Fa={},U={},I=null,B={url:'',method:'GET',isSynchrone:!1,
|
|
441
|
+
withCredentials:!1,withRateLimit:!0,headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','X-Requested-With':'XMLHttpRequest'}},D=function(m,h,e){e='undefined'!=typeof e?{id:e}:null;var b={},p;for(p in h)b[p]=h[p];if('undefined'!=typeof m&&0<m.count()){try{La(m,''),Ba(m)}catch(u){throw u;}return da(e,b,null,w.rules)}return new r(b)},n=function(m){B=m=Q(m,B);return this},y=function(m){var h=null;if(!w.$forms)throw Error('`$forms` collection not found');if('undefined'==typeof m)throw Error('[ FormValidator::getFormById(formId) ] `formId` is missing');
|
|
442
|
+
m=m.replace(/#/,'');if(null!=document.getElementById(m)&&'undefined'==typeof w.$forms[m]){var e=document.getElementById(m),b,p=typeof(0<Fa.count())?Fa:w.rules;e.getAttribute?(id=e.getAttribute('id')||'form.'+ia.v4(),id!==e.getAttribute('id')&&e.setAttribute('id',id)):(id='form.'+ia.v4(),e.setAttribute('id',id));e.id=va.id=id;if('undefined'!=typeof e.id&&'null'!=e.id&&''!=e.id){va.target=e;w.$forms[e.id]=Q({},va);if(b=e.getAttribute('data-gina-form-rule')){b=b.replace(/\-|\//g,'.');if('undefined'==
|
|
443
|
+
typeof p[b])throw Error('['+e.id+'] no rule found with key: `null`');b=p[b]}'string'==typeof e.id&&'undefined'!=typeof p[e.id.replace(/\-/g,'.')]?$target=w.$forms[e.id].target:'object'==typeof e.id?(delete w.$forms[e.id],p=e.attributes.getNamedItem('id').nodeValue||'form.'+ia.v4(),e.setAttribute('id',p),e.id=p,va.target=e,w.$forms[p]=Q({},va),$target=w.$forms[p].target):$target=w.$forms[e.id].target;b?ub($target,b):ub($target)}}'undefined'!=typeof w.$forms[m]&&(w.$forms[m].withUserBindings=!0,h='undefined'!=
|
|
444
|
+
typeof this.$forms&&'undefined'==typeof this.$forms[m]?this.$forms[m]=w.$forms[m]:w.$forms[m]);if(!h)throw Error('Validator::getFormById(...) exception: could not retrieve form `'+m+'`');h.binded||(ub(h.target),h=w.$forms[m]);O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),e={id:m,rules:w.$forms[m].rules},'undefined'!=typeof w.$forms[m].errors&&(e.errors=w.$forms[m].errors),window.ginaToolbar.update('forms',e));return h},z=function(){var m=
|
|
445
|
+
!1,h=null;gina.hasPopinHandler&&gina.popinIsBinded&&(h=gina.popin.getActivePopin());h&&h.isOpen&&(m=!0);return m},E=function(m,h){var e=typeof(0<Fa.count())?Fa:w.rules;if(!w.$forms)throw Error('`$forms` collection not found');if('undefined'!=typeof m&&'undefined'!=typeof w.$forms[m])return w.$forms[m];if('undefined'==typeof m)if('undefined'!=typeof this.id&&''!=this.id&&null!=this.id)m=this.id;else throw Error('[ FormValidator::validateFormById(formId, customRule) ] `formId` is missing');if('string'==
|
|
446
|
+
typeof m)m=m.replace(/#/,'');else{if('object'!=typeof m||Array.isArray(m))throw Error('[ FormValidator::validateFormById(formId[, customRule]) ] `formId` should be a `string`');var b=m.form;m=b.getAttribute('id')||'form.'+ia.v4();b.setAttribute('id',m)}var p=document.getElementsByTagName('form');for(var u={},k=0,N=p.length;k<N;++k)b=p[k].getAttribute('id')||null,'undefined'==typeof u[b]?u[b]=!0:'undefined'==typeof w.$forms[b]||w.$forms[b].warned||(gina.popinIsBinded?console.warn('Popin/Validator::bindForm($target, customRule): `'+
|
|
447
|
+
b+'` is a duplicate form ID. If not fixed, this could lead to an undesirable behaviour.\n Check inside your popin content'):console.warn('Validator::bindForm($target, customRule): `'+b+'` is a duplicate form ID. If not fixed, this could lead to an undesirable behaviour.'),w.$forms[b].warned=!0);if('undefined'!=typeof this.$forms&&'undefined'!=typeof w.$forms[m])p=this.$forms[m]=w.$forms[m];else{b=document.getElementById(m);va.id=m;va.target=b;p=this.$forms[m]=w.$forms[m]=Q({},va);if('undefined'==
|
|
448
|
+
typeof h)if(u=m.replace(/\-/g,'.'),'undefined'!=typeof e)p.rule=Ia(u);else{if('undefined'!=typeof p.target&&null!==p.target&&p.target.getAttribute('data-gina-form-rule'))if(u=p.target.getAttribute('data-gina-form-rule').replace(/\-|\//g,'.'),'undefined'!=typeof e)p.rule=Ia(u);else throw Error('[ FormValidator::validateFormById(formId) ] using `data-gina-form-rule` on form `'+p.target+'`: no matching rule found');}else if(u=h.replace(/\-|\//g,'.'),'undefined'!=typeof e)p.rule=Ia(u);else throw Error('[ FormValidator::validateFormById(formId, customRule) ] `'+
|
|
449
|
+
h+'` is not a valid rule');b&&'undefined'!=typeof this.isPopinContext&&/true/i.test(this.isPopinContext)&&(b.isPopinContext=this.isPopinContext);b&&!p.binded&&ub(b,u)}if(!p)throw Error('[ FormValidator::validateFormById(formId, customRule) ] `'+m+'` not found');return p||null},x=function(m){var h=m.form.id||m.form.getAttribute('id'),e=m.name||m.form.getAttribute('name'),b=document.activeElement.name;if(!/^true$/i.test(w.$forms[h].isValidating)){var p=m.parentNode;m=!1;var u=p.getElementsByTagName('div');
|
|
450
|
+
/form\-item\-warning/.test(p.className)&&b!=e?p.className=p.className.replace(/form\-item\-warning/,'form-item-error'):/form\-item\-error/.test(p.className)&&b==e&&(p.className=p.className.replace(/form\-item\-error/,'form-item-warning'),m=!0);if(!/^true$/i.test(w.$forms[h].isValidating)||m)for(h=0,e=u.length;h<e;++h)if(/form\-item\-error\-message/.test(u[h].className)){u[h].className=m?u[h].className+' hidden':u[h].className.replace(/(\s+hidden|hidden)/,'');break}}},v={},H=function(m,h,e,b){if(O)var p=
|
|
451
|
+
null;var u=!1;if('undefined'!=typeof m.dataset.ginaFormIsResetting&&/^(true)$/i.test(m.dataset.ginaFormIsResetting))h={},v={},m.dataset.ginaFormIsResetting=!1;else if(/^(true)$/i.test(m.dataset.ginaFormLiveCheckEnabled)&&'undefined'!=typeof b){var k='string'!=typeof m.id?m.getAttribute('id'):m.id;'undefined'==typeof v[k]&&(v[k]={});if(h&&0<h.count()){if(v[k][b]={},v[k][b]=Q(h[b],v[k][b]),0==v[k][b].count()&&delete v[k][b],h=v[k],!w.$forms[k].sent||w.$forms[k].isValidating)if(u=!0,k=w.$forms[k].lastFocused,
|
|
452
|
+
0<k.length&&'undefined'!=typeof k[1]&&k[1].name==b||0<k.length&&!k[1]&&document.activeElement.getAttribute('name')!=k[0].name||document.activeElement.getAttribute('name')!=b)u=!1}else'undefined'!=typeof v[k][b]&&(delete v[k][b],'undefined'!=typeof window.gina.validator.$forms[k].errors&&'undefined'!=typeof window.gina.validator.$forms[k].errors[b]&&delete window.gina.validator.$forms[k].errors[b]),('undefined'!=typeof w.$forms&&'undefined'!=typeof w.$forms[k]&&'undefined'!=typeof w.$forms[k].errors&&
|
|
453
|
+
0==w.$forms[k].errors.count()||'undefined'!=typeof w.$forms&&'undefined'!=typeof w.$forms[k]&&!w.$forms[k].errors)&&Ka(m,!0),'undefined'!=typeof v[k]&&0==v[k].count()?delete v[k]:h=v[k]}var N=null;k=m.getAttribute('id');e='undefined'!=typeof e?e:{};for(var F=0,Z=m.length;F<Z;++F){var xa=m[F];if('undefined'==typeof b||b==xa.name){if(/form\-item\-wrapper$/.test(xa.parentNode.className)){var ba=xa.parentNode.parentNode;var qa=xa.parentNode}else ba=xa.parentNode,qa=xa;var Aa=xa.getAttribute('name');var J=
|
|
454
|
+
xa.getAttribute('data-gina-form-errors');if(Aa){if(h&&'undefined'!=typeof h[Aa]&&!/(form\-item\-error|form\-item\-warning)/.test(ba.className)){ba.className=u?ba.className+(''==ba.className?'form-item-warning':' form-item-warning'):ba.className+(''==ba.className?'form-item-error':' form-item-error');N=document.createElement('div');N.className=u?'form-item-error-message hidden':'form-item-error-message';for(var ma in h[Aa])'stack'!=ma&&(ba=document.createElement('p'),ba.appendChild(document.createTextNode(h[Aa][ma])),
|
|
455
|
+
N.appendChild(ba)),O&&(p||={},p[Aa]||(p[Aa]={}),p[Aa][ma]=h[Aa][ma]);'hidden'!=qa.type&&insertAfter(qa,N)}else if(h&&'undefined'==typeof h[Aa]&&/(form\-item\-error|form\-item\-warning)/.test(ba.className)||h&&'undefined'!=typeof h[Aa]&&0==h[Aa].count()&&/(form\-item\-error|form\-item\-warning)/.test(ba.className)){console.debug('[handleErrorsDisplay] Resetting when not in error');Aa=ba.getElementsByTagName('div');qa=0;for(J=Aa.length;qa<J;++qa)if(/form\-item\-error\-message/.test(Aa[qa].className)){Aa[qa].parentElement.removeChild(Aa[qa]);
|
|
456
|
+
break}ba.className=ba.className.replace(/(\s+form\-item\-error|form\-item\-error|\s+form\-item\-warning|form\-item\-warning)/,'')}else if(0<h.count()&&'undefined'!=typeof h[Aa]&&J){J=ba.getElementsByTagName('div');for(var ta=0,fa=J.length;ta<fa;++ta){let ua=J[ta].className.match('form-item-error-message');if(ua&&'undefined'!=typeof ua.length&&0<ua.length){J[ta].parentElement.removeChild(J[ta]);N=document.createElement('div');N.setAttribute('class','form-item-error-message');!u&&/(\s+form\-item\-warning|form\-item\-warning)/.test(ba.className)&&
|
|
457
|
+
(ba.className=ba.className.replace(/(\s+form\-item\-warning|form\-item\-warning)/,' form-item-error'));for(ma in h[Aa])ba=document.createElement('p'),ba.appendChild(document.createTextNode(h[Aa][ma])),N.appendChild(ba),O&&(p||={},p[Aa]||(p[Aa]={}),p[Aa][ma]=h[Aa][ma]);break}}N&&'hidden'!=qa.type&&insertAfter(qa,N)}if('undefined'!=typeof b&&b===xa.name)break}}}p?(triggerEvent(gina,m,'error.'+k,h),O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors=
|
|
458
|
+
{}),m={id:k,errors:p},window.ginaToolbar.update('forms',m))):O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),m={id:k,errors:{}},S&&window.ginaToolbar.update('forms',m));if(gina&&S&&O&&w.$forms[k].isSubmitting&&/^true$/i.test(w.$forms[k].isSubmitting)&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&e)try{window.ginaToolbar.update('data-xhr',e)}catch(ua){throw ua;}},M=function(m){var h=null;'undefined'==typeof m&&'undefined'!=
|
|
459
|
+
typeof this.id&&(m=this.id);/^string$/i.test(typeof m)?(h=m.replace(/#/,''),h=document.getElementById(h)):m instanceof HTMLFormElement?h=m:/^object$/i.test(typeof m)&&(h=m.target);if(!h)throw Error('[ FormValidator::resetErrorsDisplay([ formId | <form> ]) ] `'+m+'` not found');h.dataset.ginaFormIsResetting=!0;H(h,{});return h},T=function(m){if('undefined'==typeof m){var h='undefined'!=typeof this.target?this.target.getAttribute('id'):this.getAttribute('id');m=w.$forms[h]}else if('string'==typeof m){h=
|
|
460
|
+
m.replace(/#/,'');if('undefined'==typeof w.$forms[h])throw Error('[ FormValidator::resetErrorsDisplay([formId]) ] `'+m+'` not found');m=w.$forms[h]}if(m.fieldsSet){m.isBeingReseted=!0;for(var e in m.fieldsSet){h=document.getElementById(e);var b=h.tagName.toLowerCase();var p=h.tagName;/textarea/i.test(p)?(p=m.fieldsSet[e].defaultValue,h.value=p,triggerEvent(gina,h,'change')):'input'==b?(p=m.fieldsSet[e].defaultValue,/$(on|true|false)$/i.test(p)&&(p=/$(on|true)$/i.test(p)?!0:!1),/^(checkbox|radio)$/i.test(h.type)?
|
|
459
461
|
h.checked=m.fieldsSet[e].defaultChecked:/^(checkbox|radio)$/i.test(h.type)||(h.value=p),triggerEvent(gina,h,'change')):'select'==b&&(p=m.fieldsSet[e].selectedIndex||0,h.selectedIndex=p,h.dataset.value=h.options[h.selectedIndex].value,triggerEvent(gina,h,'change'))}delete m.isBeingReseted}return m},pa=function(){var m=null,h=null;'undefined'!=typeof this.getAttribute?(m=this.getAttribute('id'),h=this):'undefined'!=typeof this.target&&null!=this.target&&'undefined'!=typeof this.target.getAttribute&&
|
|
460
|
-
(m=this.target.getAttribute('id'),h=this.target);if('undefined'==typeof
|
|
461
|
-
'undefined'!=typeof p.isSending&&/^true$/i.test(p.isSending)||/^true$/i.test(h.withRateLimit)&&'undefined'!=typeof p.sent&&/^true$/i.test(p.sent))){
|
|
462
|
-
gina.config.bundle);z()&&($activePopin=gina.popin.getActivePopin(),$activePopin.isOpen&&('undefined'!=typeof $activePopin.id&&(h.headers['X-Gina-Popin-Id']=$activePopin.id),'undefined'!=typeof $activePopin.name&&(h.headers['X-Gina-Popin-Name']=$activePopin.name)));(Z=e.getAttribute('data-gina-form-event-on-submit-success')||e.getAttribute('data-gina-form-event-on-submit-error')?!0:!1)&&
|
|
463
|
-
ba;h.url=
|
|
464
|
-
'';
|
|
465
|
-
(p.target.setAttribute('data-gina-form-loading',!0),
|
|
466
|
-
var
|
|
467
|
-
k={status:
|
|
462
|
+
(m=this.target.getAttribute('id'),h=this.target);if('undefined'==typeof w.$forms[m])throw Error('[ FormValidator::submit() ] not `$form` binded. Use `FormValidator::getFormById(id)` or `FormValidator::validateFormById(id)` first ');triggerEvent(gina,h,'submit');return this},Ea=function(m,h){var e=this.target,b=e.getAttribute('id'),p=w.$forms[b]||this,u=document.getElementById(p.submitTrigger)||null,k=null,N=null,F=null,Z=null;h='undefined'!=typeof h?Q(h,B):B;if(!(/^true$/i.test(h.withRateLimit)&&
|
|
463
|
+
'undefined'!=typeof p.isSending&&/^true$/i.test(p.isSending)||/^true$/i.test(h.withRateLimit)&&'undefined'!=typeof p.sent&&/^true$/i.test(p.sent))){w.$forms[b].isSending=!0;'undefined'!=typeof p.id&&(h.headers['X-Gina-Form-Id']=p.id,'undefined'!=typeof gina.forms.rules&&0<p.rules.count()&&'undefined'!=typeof p.rules[p.id]&&(h.headers['X-Gina-Form-Rule']=p.id+'@'+gina.config.bundle));'undefined'!=typeof p.target.dataset.ginaFormRule&&(h.headers['X-Gina-Form-Rule']=p.target.dataset.ginaFormRule+'@'+
|
|
464
|
+
gina.config.bundle);z()&&($activePopin=gina.popin.getActivePopin(),$activePopin.isOpen&&('undefined'!=typeof $activePopin.id&&(h.headers['X-Gina-Popin-Id']=$activePopin.id),'undefined'!=typeof $activePopin.name&&(h.headers['X-Gina-Popin-Name']=$activePopin.name)));(Z=e.getAttribute('data-gina-form-event-on-submit-success')||e.getAttribute('data-gina-form-event-on-submit-error')?!0:!1)&&wa(p);var xa=e.getAttribute('action')||h.url,ba=e.getAttribute('method')||h.method;ba=ba.toUpperCase();h.method=
|
|
465
|
+
ba;h.url=xa;I||=setupXhr(h);xa=e.getAttribute('enctype')||h.headers['Content-Type'];if(h.withCredentials){if('withCredentials'in I)h.isSynchrone?I.open(h.method,h.url,h.isSynchrone):I.open(h.method,h.url);else if('undefined'!=typeof XDomainRequest)I=new XDomainRequest,I.open(h.method,h.url);else{I=null;k='CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ';triggerEvent(gina,e,'error.'+b,k);return}I.responseType='undefined'!=typeof h.responseType?h.responseType:
|
|
466
|
+
'';I.withCredentials=!0}else h.isSynchrone?I.open(h.method,h.url,h.isSynchrone):I.open(h.method,h.url);for(var qa in h.headers)'Content-Type'==qa&&'undefined'!=typeof xa&&null!=xa&&''!=xa||I.setRequestHeader(qa,h.headers[qa]);if(I){/^(1|3)$/.test(I.readyState)&&(p.target.setAttribute('data-gina-form-loading',!0),u&&(/^A$/i.test(u.tagName)?u.setAttribute('aria-disabled',!0):u.setAttribute('disabled',!0)));I.onreadystatechange=function(ua){p.isSubmitting=!1;p.isSending=!1;/^(1|3)$/.test(I.readyState)&&
|
|
467
|
+
(p.target.setAttribute('data-gina-form-loading',!0),u&&(/^A$/i.test(u.tagName)?u.setAttribute('aria-disabled',!0):u.setAttribute('disabled',!0)));ua=/Google Inc/i.test(navigator.vendor)?50:0;2==I.readyState&&(F=/^attachment;/.test(I.getResponseHeader('Content-Disposition'))?!0:!1,!I.responseType&&F&&(I.responseType='blob'));if(4==I.readyState){p.sent=!1;u&&(/^A$/i.test(u.tagName)?u.removeAttribute('aria-disabled',!0):u.removeAttribute('disabled',!0));p.target.removeAttribute('data-gina-form-loading');
|
|
468
|
+
var Da=null,Ta=null,ab=I.getResponseHeader('Content-Type');if(/^2/.test(I.status)){try{if(/blob/.test(I.responseType)||F){if('undefined'==typeof ab||null==ab)ab='application/octet-stream';Ta=new Blob([this.response],{type:ab});var sb=document.createElement('a');sb.style='display: none';document.body.appendChild(sb);var yb=window.URL.createObjectURL(Ta);sb.href=yb;var Fb=I.getResponseHeader('Content-Disposition');sb.download=Fb.match('=(.*)')[0].substring(1);sb.click();window.URL.revokeObjectURL(yb);
|
|
469
|
+
k={status:I.status,statusText:I.statusText,responseType:Ta.type,type:Ta.type,size:Ta.size}}else k=I.responseText;/\/json/.test(ab)&&(k=JSON.parse(I.responseText),'undefined'==typeof k.status&&(k.status=I.status),gina&&O&&typeof window.ginaToolbar&&'undefined'!=typeof k&&window.ginaToolbar.update('data-xhr',k));if(/\/html/.test(ab)&&(k={contentType:ab,content:I.responseText},'undefined'==typeof k.status&&(k.status=I.status),'undefined'!=typeof gina.popin&&gina.hasPopinHandler&&(Da=gina.popin.getActivePopin()))){N=
|
|
468
470
|
{};try{N=(new DOMParser).parseFromString(k.content,'text/html').getElementById('gina-without-layout-xhr-data'),N=JSON.parse(decodeURIComponent(N.value)),XHRView=(new DOMParser).parseFromString(k.content,'text/html').getElementById('gina-without-layout-xhr-view'),XHRView=JSON.parse(decodeURIComponent(XHRView.value)),gina&&O&&typeof window.ginaToolbar&&'undefined'!=typeof N&&window.ginaToolbar.update('data-xhr',N),gina&&O&&typeof window.ginaToolbar&&'undefined'!=typeof XHRView&&window.ginaToolbar.update('view-xhr',
|
|
469
|
-
XHRView)}catch(aa){throw aa;}
|
|
470
|
-
'undefined'!=typeof k.popin||'undefined'!=typeof gina.popin&&gina.hasPopinHandler&&'undefined'!=typeof k.location&&mb){
|
|
471
|
-
!1;
|
|
472
|
-
typeof k.popin&&'undefined'!=typeof k.popin.name&&mb!=k.popin.name){
|
|
471
|
+
XHRView)}catch(aa){throw aa;}Da.loadContent(k.content);k=N;triggerEvent(gina,e,'success.'+b,k);return}N=p.eventData.success=k;if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&N)try{O&&'undefined'!=typeof N&&!/\/html|\/json/.test(ab)&&window.ginaToolbar.update('data-xhr',N)}catch(aa){throw aa;}/^gina\-upload/i.test(b)&&W(gina,e,'success',b,k);var mb=!1;'undefined'!=typeof k.isXhrRedirect&&/^true$/i.test(k.isXhrRedirect)&&(mb=!0);if('undefined'!=typeof gina.popin&&gina.hasPopinHandler&&
|
|
472
|
+
'undefined'!=typeof k.popin||'undefined'!=typeof gina.popin&&gina.hasPopinHandler&&'undefined'!=typeof k.location&&mb){Da=gina.popin.getActivePopin();if(!Da&&'undefined'!=typeof k.popin){if('undefined'!=typeof k.popin&&'undefined'==typeof k.popin.name)throw Error('To get a `$popin` instance, you need at list a `popin.name`.');Da=gina.popin.getPopinByName(k.popin.name);if(!Da)throw Error('Popin with name: `'+k.popin.name+'` not found.');}if('undefined'!=typeof k.popin&&'undefined'!=typeof k.popin.close){Da.isRedirecting=
|
|
473
|
+
!1;Da.close();var Ya=k.popin.reload?k.popin.reload:!1;k.popin.location||k.popin.url||(delete k.popin,Ya&&(k.popin={reload:Ya}))}if('undefined'!=typeof k.popin&&'undefined'!=typeof k.popin.location||'undefined'!=typeof k.popin&&'undefined'!=typeof k.popin.url||'undefined'!=typeof k.location&&mb){mb=null;Da&&(mb=Da.name,Da.isRedirecting=!0);'undefined'!=typeof k.popin&&'undefined'!=typeof k.popin.target&&(k.popin.target='_'+k.popin.target);var cb=k.location||k.popin.location||k.popin.url;if('undefined'!=
|
|
474
|
+
typeof k.popin&&'undefined'!=typeof k.popin.name&&mb!=k.popin.name){Da&&Da.isOpen&&Da.close();mb=k.popin.name;Da=gina.popin.getPopinByName(mb);if(!Da)throw Error('Popin with name `'+mb+'` not found !');console.debug('Validator::Popin now redirecting [1-c]');Da.load(Da.name,cb,Da.options)}else Da&&(console.debug('Validator::Popin now redirecting [1-d]'),Da&&Da.isOpen&&Da.close(),Da.load(Da.name,cb,Da.options));if(Da&&!Da.isOpen)return setTimeout(function(aa){aa.isOpen||aa.open()},50,Da)}}triggerEvent(gina,
|
|
473
475
|
e,'success.'+b,k);Z&&triggerEvent(gina,e,'success.'+b+'.hform',k)}catch(aa){k={status:422,error:aa.message,stack:aa.stack};N=p.eventData.error=k;if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&N)try{O&&'undefined'!=typeof N&&window.ginaToolbar.update('data-xhr',N)}catch(ra){throw ra;}/^gina\-upload/i.test(b)&&W(gina,e,'error',b,k);triggerEvent(gina,e,'error.'+b,k);Z&&triggerEvent(gina,e,'error.'+b+'.hform',k)}if('undefined'!=typeof k&&'undefined'!=typeof k.location)return window.location.hash=
|
|
474
|
-
'',k.location=/^http/.test(k.location)||/^\//.test(k.location)?k.location:location.protocol+'//'+k.location,k.location.replace(/^http(.*):\d+/,'$1').replace(/^:\/\//,'').split(/\//g)[0]==gina.config.hostname&&gina.config.hostname==window.location.host&&(k.location=location.protocol+k.location.replace(/^http(.*):\d+/,'$1').replace(/^:/,'')),setTimeout(()=>{window.location.href=k.location},
|
|
476
|
+
'',k.location=/^http/.test(k.location)||/^\//.test(k.location)?k.location:location.protocol+'//'+k.location,k.location.replace(/^http(.*):\d+/,'$1').replace(/^:\/\//,'').split(/\//g)[0]==gina.config.hostname&&gina.config.hostname==window.location.host&&(k.location=location.protocol+k.location.replace(/^http(.*):\d+/,'$1').replace(/^:/,'')),setTimeout(()=>{window.location.href=k.location},ua)}else if(0!=I.status)if(k={status:I.status},/blob/.test(I.responseType)){Ta=new Blob([this.response],{type:'text/plain'});
|
|
475
477
|
var ha=new FileReader,Y='';ha.addEventListener('loadend',aa=>{/string/i.test(typeof aa.srcElement.result)?Y+=aa.srcElement.result:'object'==typeof aa.srcElement.result?k=Q(k,aa.srcElement.result):k.message+=aa.srcElement.result;if(/2/.test(ha.readyState)){if(/^(\{|\[)/.test(Y))try{k=Q(k,JSON.parse(Y))}catch(ra){k=Q(k,ra)}k.message||delete k.message;N=p.eventData.error=k;if(gina&&O&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&N)try{window.ginaToolbar.update('data-xhr',N)}catch(ra){throw ra;
|
|
476
|
-
}/^gina\-upload/i.test(b)&&W(gina,e,'error',b,k);triggerEvent(gina,e,'error.'+b,k);Z&&triggerEvent(gina,e,'error.'+b+'.hform',k)}});ha.readAsText(Ta)}else{if(/^(\{|\[)/.test(
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
event.currentTarget.getAttribute('data-gina-form-upload-group')||'untagged',ma,
|
|
480
|
-
'multipart/form-data; boundary='+fa),
|
|
481
|
-
|
|
482
|
-
(b=document.getElementById(m.previewContainer.id))&&(b.innerHTML='');m.errorField&&(k=document.getElementById(m.errorField));k&&(k.style.display='none');if(k&&'success'!=e){var N=p.message||p.error;k.innerHTML='<p>'+N+'</p>';fadeIn(k)}else if(k||'success'==e)for(e=0,p=
|
|
483
|
-
'Reset'),'undefined'==typeof k.className&&(k.className=''),
|
|
484
|
-
|
|
485
|
-
!/^image/.test(
|
|
486
|
-
|
|
487
|
-
},ja=function(m,h){console.debug(h+' input files');var e=/reset/i.test(h)?!0:!1,b=null,p=null,
|
|
488
|
-
h+'-link-id')):document.getElementById(N[ba].deleteLinkId);k.style.display='none';
|
|
489
|
-
{files:N})}catch(
|
|
490
|
-
let
|
|
491
|
-
'block'}removeListener(gina,$uploadResetTrigger,'click',function(){k.remove();
|
|
492
|
-
qa)
|
|
493
|
-
this.index==m.length?(e+='--'+h+'--',p(!1,e,!0)):ca(m,h,e,this.index,p)},!1);
|
|
494
|
-
if('undefined'==typeof e)if('undefined'!=typeof this.id&&''!=this.id&&null!=this.id)e=this.id;else throw Error('[ FormValidator::destroy(formId) ] `formId` is missing');if('string'==typeof e)e=e.replace(/#/,'');else{if('object'!=typeof e||Array.isArray(e))throw Error('[ FormValidator::destroy(formId) ] `formId` should be a `string`');m=e.form;e=m.getAttribute('id')||'form.'+ia.v4();m.setAttribute('id',e)}'undefined'!=typeof
|
|
495
|
-
h.target,'destroy.'+e,function(b){cancelEvent(b);delete
|
|
496
|
-
|
|
497
|
-
{};for(let N=0,
|
|
498
|
-
'g'),'{}'))):console.warn('[formValidator:rules] <@import error> on `'+e[N]+'`: rule `'+
|
|
499
|
-
Na=function(m){gina.hasValidator?(
|
|
500
|
-
!0)}catch(N){throw N;}
|
|
501
|
-
|
|
502
|
-
(
|
|
503
|
-
!0;gina.validator=
|
|
504
|
-
m+'.'),p=null,
|
|
505
|
-
e=/^true$/i.test(m.disabled)?!0:!1;e&&'undefined'!=typeof h.rule&&'undefined'!=typeof h.rule[m.name]&&'undefined'!=typeof h.rule[m.name].exclude&&/^false$/i.test(h.rule[m.name].exclude)&&(e=!1);if(/^(radio|text|hidden|password|number|date|email)$/i.test(m.type)&&!e){var b=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,'value'),p=b.set;b.set=function(
|
|
506
|
-
|
|
507
|
-
(k=!1);if(/^(radio|checkbox|text|hidden|password|number|date|email)$/i.test(h.type)&&!k||b&&!k){b=h.name;
|
|
508
|
-
h.id,'undefined'==typeof gina.events[
|
|
509
|
-
/true/i.test(
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
Ka(
|
|
513
|
-
h.id,h.value),
|
|
478
|
+
}/^gina\-upload/i.test(b)&&W(gina,e,'error',b,k);triggerEvent(gina,e,'error.'+b,k);Z&&triggerEvent(gina,e,'error.'+b+'.hform',k)}});ha.readAsText(Ta)}else{if(/^(\{|\[)/.test(I.responseText))try{k=Q(JSON.parse(I.responseText),k)}catch(aa){k=Q(aa,k)}else'object'==typeof I.responseText?k=Q(I.responseText,k):k.message=I.responseText;if('undefined'!=typeof k&&'undefined'!=typeof k.error&&k.fields&&'object'==typeof k.fields){cb='undefined'!=typeof k.message?k.message:null;ua={};for(mb in k.fields)Da={},
|
|
479
|
+
Da[mb]={},Da[mb].isApiError=k.fields[mb],cb&&!Da[mb].isApiError&&(Da[mb].isApiError=k.error),ua[mb]=Da[mb],H(p.target,Da,m,mb);k.fields=ua}N=p.eventData.error=k;if(gina&&O&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&N)try{window.ginaToolbar.update('data-xhr',N)}catch(aa){throw aa;}/^gina\-upload/i.test(b)&&W(gina,e,'error',b,k);triggerEvent(gina,e,'error.'+b,k);Z&&triggerEvent(gina,e,'error.'+b+'.hform',k)}}};I.onprogress=function(ua){var Da='0';ua.lengthComputable&&(Da=ua.loaded/
|
|
480
|
+
ua.total,Da=parseInt(100*Da));ua={status:100,progress:Da};p.eventData.onprogress=ua;triggerEvent(gina,e,'progress.'+b,ua)};I.ontimeout=function(ua){k={status:408,error:'Request Timeout'};p.eventData.ontimeout=k;p.target.setAttribute('data-gina-form-loading',!1);/^gina\-upload/i.test(b)&&W(gina,e,'error',b,k);triggerEvent(gina,e,'error.'+b,k);Z&&triggerEvent(gina,e,'error.'+b+'.hform',k)};m||(m=event.detail.data);if(m){h=!1;if('object'==typeof m){qa=[];ba=0;var Aa={};try{if(m instanceof FormData){var J=
|
|
481
|
+
event.currentTarget.getAttribute('data-gina-form-upload-group')||'untagged',ma,ta;for([ma,ta]of m.entries())ta instanceof File?(h||=!0,qa[ba]={key:ma,group:J,file:ta,bin:''},++ba):Aa[ma]=ta}else m=JSON.stringify(m);if(h&&0<qa.length){var fa='--ginaWKBoundary'+ia.v4().replace(/\-/g,'');return ca(qa,fa,'',0,function(ua,Da,Ta){if(ua)/^gina\-upload/i.test(b)&&W(gina,e,'error',b,ua),triggerEvent(gina,e,'error.'+b,ua),Z&&triggerEvent(gina,e,'error.'+b+'.hform',ua);else return Ta&&(I.setRequestHeader('Content-Type',
|
|
482
|
+
'multipart/form-data; boundary='+fa),I.send(Da),p.sent=!0,O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.sent||(gina.forms.sent={}),window.ginaToolbar.update('forms',{id:b,sent:Da}))),!1})}'undefined'!=typeof Aa&&0<Aa.count()&&(m=JSON.stringify(Aa))}catch(ua){/^gina\-upload/i.test(b)&&W(gina,e,'error',b,ua),triggerEvent(gina,e,'error.'+b,ua),Z&&triggerEvent(gina,e,'error.'+b+'.hform',ua)}}h||('undefined'!=typeof xa&&null!=xa&&''!=xa&&I.setRequestHeader('Content-Type',
|
|
483
|
+
xa),I.send(m))}else'undefined'!=typeof xa&&null!=xa&&''!=xa&&I.setRequestHeader('Content-Type',xa),I.send();p.sent=!0;O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.sent||(gina.forms.sent={}),J={id:b,sent:'string'==typeof m?JSON.parse(m):m},window.ginaToolbar.update('forms',J))}}},W=function(m,h,e,b,p){m=h.uploadProperties||null;if(!m)throw Error('No uploadProperties found !!');h=document.getElementById(m.uploadTriggerId);b=null;var u=p.files||[],k=null;m.hasPreviewContainer&&
|
|
484
|
+
(b=document.getElementById(m.previewContainer.id))&&(b.innerHTML='');m.errorField&&(k=document.getElementById(m.errorField));k&&(k.style.display='none');if(k&&'success'!=e){var N=p.message||p.error;k.innerHTML='<p>'+N+'</p>';fadeIn(k)}else if(k||'success'==e)for(e=0,p=u.length;e<p;++e){var F=b.id.replace(/\-preview/,'-'+e+'-reset-trigger');N=!1;k=document.getElementById(F);var Z=['reset','js-upload-reset'];k?(/a/i.test(k.tagName)&&(k.href='#'),k.innerHTML&&''!=k.innerHTML||(k.innerHTML=h.getAttribute('data-gina-form-upload-reset-label')||
|
|
485
|
+
'Reset'),'undefined'==typeof k.className&&(k.className=''),F=Q(k.className.split(/\s+/g),Z),k.className=F.join(' ')):(N=!0,k=document.createElement('A'),k.href='#',k.innerHTML=h.getAttribute('data-gina-form-upload-reset-label')||'Reset',k.className=Z.join(' '),k.id=F);k.style.display='none';if('undefined'==typeof u[e].preview&&m.hasPreviewContainer&&/^image/.test(u[e].mime)&&''!=u[e].location){F=document.createElement('IMG');F.src=u[e].tmpUri;F.style.display='none';F.setAttribute('data-upload-original-filename',
|
|
486
|
+
u[e].originalFilename);F.setAttribute('data-upload-reset-link-id',k.id);Z=b.getAttribute('data-preview-max-width')||null;if(F.width&&Z&&F.width>Z){var xa=F.width/Z;F.width=Z;F.height/=xa}else!F.width&&Z&&(F.width=Z);/ul/i.test(m.previewContainer.tagName)?(Z=document.createElement('LI'),Z.className='item',Z.appendChild(F),b.appendChild(Z)):b.appendChild(F);fadeIn(F)}F=m.uploadFields[e];for(var ba in F)if('name'==ba&&''!=F[ba].value||!u[e][ba]||'preview'==ba&&'undefined'==typeof u[e][ba]||/(height|width)/i.test(ba)&&
|
|
487
|
+
!/^image/.test(u[e].mime))/(preview|height|width)/i.test(ba)&&(Z=document.getElementById(F[ba].id))&&Z.parentNode.removeChild(Z);else if(F[ba].value=u[e][ba],'preview'==ba)for(var qa in u[e][ba])if('undefined'!=typeof u[e][ba][qa]&&'undefined'!=typeof F[ba][qa]&&(F[ba][qa].value=u[e][ba][qa]),'tmpUri'==qa&&m.hasPreviewContainer){xa=document.createElement('IMG');xa.src=u[e][ba].tmpUri;xa.style.display='none';xa.setAttribute('data-upload-original-filename',u[e].originalFilename);xa.setAttribute('data-upload-preview-original-filename',
|
|
488
|
+
u[e][ba].originalFilename);xa.setAttribute('data-upload-reset-link-id',k.id);if(Z=b.getAttribute('data-preview-max-width')||null)xa.width=Z;/ul/i.test(m.previewContainer.tagName)?(Z=document.createElement('LI'),Z.className='item',Z.appendChild(xa),b.appendChild(Z)):b.appendChild(xa);fadeIn(xa)}m.hasPreviewContainer&&(/ul/i.test(m.previewContainer.tagName)?(Z=document.createElement('LI'),Z.className='item',N&&Z.appendChild(k),b.appendChild(Z)):N&&b.appendChild(k));pb('reset',h,e);fadeIn(k)}else throw Error(N);
|
|
489
|
+
},ja=function(m,h){console.debug(h+' input files');var e=/reset/i.test(h)?!0:!1,b=null,p=null,u=document.getElementById(m.id+'-preview').childNodes,k=null,N=m.customFiles,F=[];for(let Z=0,xa=u.length;Z<xa;Z++)if(/img/i.test(u[Z].tagName)){e?(b=u[Z].getAttribute('data-upload-original-filename'),F.push(b),(p=u[Z].getAttribute('data-upload-preview-original-filename'))&&F.push(p)):(b=u[Z].src.substring(u[Z].src.lastIndexOf('/')+1),F.push(b));for(let ba=0,qa=N.length;ba<qa;ba++)if(N[ba].name==b){k=e?document.getElementById(u[Z].getAttribute('data-upload-'+
|
|
490
|
+
h+'-link-id')):document.getElementById(N[ba].deleteLinkId);k.style.display='none';u[Z].style.display='none';N.splice(ba,1);m.customFiles=N;e&&(m.value=N.join(', C:\\fakepath\\'));b=new RegExp('^'+(m.name+'['+ba+']').replace(/\-|\[|\]|\./g,'\\$&'));for(let J=0,ma=m.form.length;J<ma;J++)if(p=m.form[J].dataset.ginaFormUploadIsLocked||!1,b.test(m.form[J].name)&&!/true/i.test(p)&&(m.form[J].remove(),ma--,J--,gina&&O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar))try{window.ginaToolbar.update('data-xhr',
|
|
491
|
+
{files:N})}catch(ta){throw ta;}p=m.getAttribute('data-gina-form-upload-'+h+'-action');if(!p||'undefined'==typeof p||''==p||/404/.test(p))throw Error('input file `'+m.id+'` error: `data-gina-form-upload-'+h+'-action` is required. You need to provide a valide url.');(b=m.getAttribute('data-gina-form-upload-'+h+'-method'))&&'undefined'!=typeof b&&''!=b?b=b.toUpperCase():e?b='POST':(b=1<F.length?'POST':'DELETE',console.warn('`data-gina-form-upload-'+h+'-method` was not defined. Switching to `'+b+'` by default.'));
|
|
492
|
+
let Aa=m.getAttribute('data-gina-form-upload-'+h+'-is-synchrone');if(/null/i.test(Aa)||'undefined'==typeof b||''==b)Aa=!0;p=setupXhr({url:p,method:b,isSynchrone:Aa,headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','X-Requested-With':'XMLHttpRequest'}});/GET|DELETE/i.test(b)?p.send():p.send(JSON.stringify({files:F}));if(/none/i.test(window.getComputedStyle(m).display)){if(/none/i.test(m.parentElement.style.display)){m.parentElement.style.display='block';return}m.style.display=
|
|
493
|
+
'block'}removeListener(gina,$uploadResetTrigger,'click',function(){k.remove();u[Z].remove()});xa--;Z--;break}}},ca=function(m,h,e,b,p){var u=new FileReader;u.addEventListener('load',function(k){k.preventDefault();try{var N=this.result,F=void 0;k='';var Z=null;'undefined'==typeof F&&(F=8);var xa=F/8;switch(F){case 8:Z=new Uint8Array(N);break;case 16:Z=new Uint16Array(N);break;case 32:Z=new Uint32Array(N);break;default:Z=new Uint8Array(N)}var ba=Z.length,qa=Math.pow(2,8)+xa;N=0;for(xa=F=null;N<ba;N+=
|
|
494
|
+
qa)F=Math.min(qa,ba-N),xa=Z.subarray(N,N+F),k+=String.fromCharCode.apply(null,xa);m[this.index].bin+=k;m[this.index].file.type||(m[this.index].file.type='application/octet-stream')}catch(Aa){return p(Aa,null,!0)}e+='--'+h+'\r\n';e+='Content-Disposition: form-data; name="'+m[this.index].key+'"; group="'+m[this.index].group+'"; filename="'+m[this.index].file.name+'"\r\nContent-Type: '+m[this.index].file.type+'\r\nContent-Length: '+m[this.index].bin.length+'\r\n\r\n';e+=m[this.index].bin+'\r\n';++this.index;
|
|
495
|
+
this.index==m.length?(e+='--'+h+'--',p(!1,e,!0)):ca(m,h,e,this.index,p)},!1);u.index=b;m[b].bin='';u.readAsArrayBuffer(m[b].file)},wa=function(m){var h=m.target.getAttribute('data-gina-form-event-on-submit-success')||null;if(null!=h)if(/\((.*)\)/.test(h))eval(h);else m.on('success.hform',window[h]);h=m.target.getAttribute('data-gina-form-event-on-submit-error')||null;if(null!=h)if(/\((.*)\)/.test(h))eval(h);else m.on('error.hform',window[h])},la=function(m){var h=null,e=m;if(!w.$forms)throw Error('`$forms` collection not found');
|
|
496
|
+
if('undefined'==typeof e)if('undefined'!=typeof this.id&&''!=this.id&&null!=this.id)e=this.id;else throw Error('[ FormValidator::destroy(formId) ] `formId` is missing');if('string'==typeof e)e=e.replace(/#/,'');else{if('object'!=typeof e||Array.isArray(e))throw Error('[ FormValidator::destroy(formId) ] `formId` should be a `string`');m=e.form;e=m.getAttribute('id')||'form.'+ia.v4();m.setAttribute('id',e)}'undefined'!=typeof w.$forms[e]?h=w.$forms[e]:'undefined'!=typeof this.binded&&(h=this);if(h)addListener(gina,
|
|
497
|
+
h.target,'destroy.'+e,function(b){cancelEvent(b);delete w.$forms[e];removeListener(gina,b.currentTarget,b.type);removeListener(gina,b.currentTarget,'destroy')}),h=nb(h),triggerEvent(gina,h.target,'destroy.'+e);else throw Error('[ FormValidator::destroy(formId) ] `'+e+'` not found');},za=function(m){m='undefined'!=typeof m?m:w.rules;for(let b in m){var h=Object.getOwnPropertyNames(m[b]),e=0;let p=h.length,u=!1,k=null;for(;e<p;){if(/^_case_/.test(h[e])){u=!0;k=h[e];break}e++}u||'object'!=typeof m[b]||
|
|
498
|
+
za(m[b]);if(k&&Array.isArray(m[b][k].conditions)&&0<m[b][k].conditions.length)for(h=0,e=m[b][k].conditions.length;h<e;)'undefined'!=typeof m[b][k].conditions[h].rules&&0==m[b][k].conditions[h].rules.count()&&(m[b][k].conditions.splice(h,1),e--,h--),h++}},Ba=function(m){var h=JSON.stringify(m),e=h.match(/("@import\s+[-_a-z A-Z 0-9/.]+")/g)||[],b=[];for(let N=0,F=e.length;N<F;N++)0>b.indexOf(e[N])&&b.push(e[N]);e=b;b=h.match(/("_merging(.*))(\s+:|:)(.*)(",|")/g);w.rules||(w.rules={});if(e&&0<e.length){m=
|
|
499
|
+
{};for(let N=0,F=e.length;N<F;++N){var p=e[N].replace(/(@import\s+|"|')/g,'');var u=p.replace(/(@import\s+|"|')/g,'').split(/\s/g);for(let Z=0,xa=u.length;Z<xa;++Z){var k=u[Z].replace(/\//g,'.').replace(/\-/g,'.');'undefined'!=typeof w.rules[k]?(k=JSON.stringify(w.rules[k]),k=JSON.parse(k),k._comment='undefined'!=typeof k._comment?k._comment+'\n':'',k._comment+='Imported from `'+p+'`',k=JSON.stringify(k),h=h.replace(new RegExp(e[N],'g'),k),w.rules=JSON.parse(JSON.stringify(w.rules).replace(new RegExp(e[N],
|
|
500
|
+
'g'),'{}'))):console.warn('[formValidator:rules] <@import error> on `'+e[N]+'`: rule `'+u[Z]+'` not found. Ignoring.')}u=new RegExp(e[N]);if(p=b&&u.test(b.join())?!0:!1)for(let Z=0,xa=b.length;Z<xa;Z++)if(u.test(b[Z])){p=JSON.stringify(m);p=p.substring(1,p.length-1);Z<xa-1&&(p+=',');try{h=h.replace(new RegExp(b[Z],'g'),p),w.rules=JSON.parse(JSON.stringify(w.rules).replace(new RegExp(b[Z],'g'),'{}'))}catch(ba){throw ba;}}m={}}m=JSON.parse(h);La(m,'');try{za()}catch(N){console.error(N.stack)}}return m},
|
|
501
|
+
Na=function(m){gina.hasValidator?(w=Q(w,gina.validator),w.on('init',function(h){w.isReady=!0;triggerEvent(gina,w.target,'ready.'+w.id,w)})):(w.target=document,w.setOptions=n,w.getFormById=y,w.validateFormById=E,w.resetErrorsDisplay=M,w.resetFields=T,w.handleErrorsDisplay=H,w.send=Ea,w.on('init',function(h){if('undefined'!=typeof m&&m.count())try{La(m,''),m=Ba(m),gina.forms.rules='undefined'!=typeof gina.forms.rules&&gina.forms.rules?Q(gina.forms.rules,m,!0):m,w.rules=Q(w.rules,JSON.clone(gina.forms.rules),
|
|
502
|
+
!0)}catch(N){throw N;}Fa.count()||(Fa=JSON.clone(w.rules));va.setOptions=n;va.getFormById=y;va.validateFormById=E;va.resetErrorsDisplay=M;va.resetFields=T;va.handleErrorsDisplay=H;va.submit=pa;va.send=Ea;va.unbind=nb;va.bind=ub;va.reBind=zb;va.destroy=la;h=0;for(var e=document.getElementsByTagName('form'),b=0,p=e.length;b<p;++b){if(e[b].getAttribute){var u=e[b].getAttribute('id')||'form.'+ia.v4();u!==e[b].getAttribute('id')&&e[b].setAttribute('id',u)}else u='form.'+ia.v4(),e[b].setAttribute('id',
|
|
503
|
+
u);va.id=u;va.target=e[b];w.$forms[u]=Q({},va);var k=e[b].getAttribute('data-gina-form-rule');if(k){k=k.replace(/\-|\//g,'.');'undefined'!=typeof m&&(w.$forms[u].rules[k]=w.rules[k]=Fa[k]=Q(JSON.clone(eval('gina.forms.rules.'+k)),w.rules[k]));if('undefined'==typeof Fa[k])throw Error('['+u+'] no rule found with key: `'+k+'`. Please check if json is not malformed @ /forms/rules/'+k.replace(/\./g,'/')+'.json');k=w.rules[k]}'string'==typeof u&&'undefined'!=typeof Fa[u.replace(/\-/g,'.')]||'object'==typeof k?
|
|
504
|
+
(u=w.$forms[u].target,k?ub(u,k):ub(u),++h):('object'==typeof e[b].id?(delete w.$forms[e[b].id],u=e[b].attributes.getNamedItem('id').nodeValue||'form.'+ia.v4(),e[b].setAttribute('id',u),e[b].id=u,va.target=e[b],w.$forms[u]=Q({},va),u=w.$forms[u].target):u=w.$forms[e[b].id].target,k?ub(u,k):ub(u))}if(window.XMLHttpRequest)I=new XMLHttpRequest;else if(window.ActiveXObject)try{I=new ActiveXObject('Msxml2.XMLHTTP')}catch(N){try{I=new ActiveXObject('Microsoft.XMLHTTP')}catch(F){}}w.isReady=!0;gina.hasValidator=
|
|
505
|
+
!0;gina.validator=w;triggerEvent(gina,w.target,'ready.'+w.id,w)}));w.initialized=!0;return w},La=function(m,h){var e;for(e in m)if('object'==typeof m[e]&&'undefined'==typeof w.rules[h+e]){var b=e;/\[|\]/.test(e)&&(b=e.replace(/\[/g,'.').replace(/\]/g,''));w.rules[h+b]=m[e];La(m[e],h+b+'.')}},Ia=function(m){if('undefined'!=typeof Fa[m])return Fa[m];var h=null;if('undefined'==typeof w.rules[m]){if(La(Fa,''),Fa=Ba(Fa),h=Fa[m],!h)return{}}else h=w.rules[m];h=JSON.clone(h);var e=new RegExp('^'+m),b=new RegExp('^'+
|
|
506
|
+
m+'.'),p=null,u=function(N,F,Z,xa,ba,qa,Aa){if(F.length){var J=Object.getOwnPropertyNames(N)[0],ma=F[0];ma=''==ba?ba+=ma:ba+'['+ma+']';1==F.length&&(N[J]=Q(N[J],Z,!0));F.splice(0,1);ma==J?u(N[J],F,Z,xa,ma,qa,Aa):'undefined'!=typeof N[J]?u(N[J],F,Z,xa,ma,qa,Aa):u(N,F,Z,xa,ba,qa,Aa)}},k;for(k in w.rules)k!=m&&e.test(k)&&(p=k.replace(b,''),/\./.test(p)&&(p=p.split(/\./g),u(h,p,w.rules[k],h,'',0,h.count()-1)));return Fa[m]=h},Ua=formatDataFromString,Qa=function(m){var h=w.$forms[m.form.getAttribute('id')],
|
|
507
|
+
e=/^true$/i.test(m.disabled)?!0:!1;e&&'undefined'!=typeof h.rule&&'undefined'!=typeof h.rule[m.name]&&'undefined'!=typeof h.rule[m.name].exclude&&/^false$/i.test(h.rule[m.name].exclude)&&(e=!1);if(/^(radio|text|hidden|password|number|date|email)$/i.test(m.type)&&!e){var b=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,'value'),p=b.set;b.set=function(u){Object.defineProperty(this,'value',{set:p});var k='change.'+this.id;u===this.value&&u===this.defaultValue||u===this.value||(this.value=
|
|
508
|
+
u,console.debug('Value set: '+u),'undefined'!=typeof gina.events[k]&&(console.debug('trigger event on: ',this.name,k),triggerEvent(gina,this,k,u)));Object.defineProperty(this,'value',b)};Object.defineProperty(m,'value',b)}},Ha=function(m,h,e,b){'undefined'==typeof b&&(b=!1);var p=m.rules,u=w.$forms[h.form.getAttribute('id')],k=/^true$/i.test(h.disabled)?!0:!1;k&&'undefined'!=typeof u.rule&&'undefined'!=typeof u.rule[h.name]&&'undefined'!=typeof u.rule[h.name].exclude&&/^false$/i.test(u.rule[h.name].exclude)&&
|
|
509
|
+
(k=!1);if(/^(radio|checkbox|text|hidden|password|number|date|email)$/i.test(h.type)&&!k||b&&!k){b=h.name;u=p[b]||null;if(!u&&(Ab(p,h),'undefined'==typeof p[b]))return;if(m.target.dataset.ginaFormLiveCheckEnabled&&u&&(b=[],u=null,k=0,/^(radio|checkbox)$/i.test(h.type)?u=/^(radio|checkbox)$/i.test(h.type)?'changed.'+h.id:'change.'+h.id:(addEventListener(gina,h,'focusout.'+h.id,function(F){F.preventDefault();clearTimeout(e)}),u='change.'+h.id,'undefined'==typeof gina.events[u]&&(b[k]=u,++k),u='keyup.'+
|
|
510
|
+
h.id,'undefined'==typeof gina.events[u]&&(b[k]=u,++k),u='focusin.'+h.id,'undefined'==typeof gina.events[u]&&(b[k]=u,++k),u='focusout.'+h.id),'undefined'==typeof gina.events[u]&&(b[k]=u,++k),0<b.length)){var N=!1;addListener(gina,h,b,function(F){F.preventDefault();clearTimeout(e);if(!N&&/^changed\./i.test(F.type)||!N&&/^(radio|checkbox)$/i.test(F.target.type))N=!0;else if(N&&/^changed\./i.test(F.type)||N&&/^(radio|checkbox)$/i.test(F.target.type))return!1;if('undefined'!=typeof w.$forms[F.target.form.getAttribute('id')].isSubmitting&&
|
|
511
|
+
/true/i.test(w.$forms[F.target.form.getAttribute('id')].isSubmitting))return!1;var Z=function(){/^(password)$/i.test(F.target.type)||console.debug('processing: '+F.target.name+'/'+F.target.id);if(!/^(radio|checkbox)$/i.test(F.target.type)&&F.target.value===F.target.defaultValue&&''!=F.target.value){var xa=w.$forms[F.target.form.getAttribute('id')].errors;if(xa&&0!=xa.count())H(F.target.form,xa,null,F.target.name);else return H(F.target.form,{},null,F.target.name),cancelEvent(F)}xa={};var ba={};xa[F.target.name]=
|
|
512
|
+
F.target.value;ba[F.target.name]=F.target;w.$forms[F.target.form.getAttribute('id')].isValidating=!0;da(F.target,xa,ba,m.rules,function(qa){qa.isValid()?H(F.target.form,{},qa.data,F.target.name):H(F.target.form,qa.error,qa.data,F.target.name);var Aa=F.target.form,J=null,ma=null,ta=null;ta=fb(Aa,p);J=ta.fields;ma=ta.$fields;var fa=Aa.getAttribute('id');ta=w.$forms[fa].rules;w.$forms[fa].isValidating=!0;da(Aa,J,ma,ta,function(ua){w.$forms[fa].isValidating=!1;console.debug('['+fa+'] onSilentGlobalLiveValidation: '+
|
|
513
|
+
ua.isValid(),ua,J);var Da=ua.isValid();O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),window.ginaToolbar.update('forms',{id:fa,errors:ua.error||{}}));if(!Da&&ua.error){w.$forms[h.form.getAttribute('id')].errors=Q(qa.error,ua.error);for(let Ta in ua.error)x(ma[Ta]),H(Aa,ua.error,ua.data,Ta)}else w.$forms[fa].errors&&!w.$forms[fa].errors.count()&&(w.$forms[fa].errors={},console.debug('resetting field: '+h.name),v[fa]={},H(Aa,{},null,h.name));
|
|
514
|
+
Ka(Aa,Da);N=!1})})};if(/^changed\./i.test(F.type)||/^change\./i.test(F.type)&&'radio'==F.target.type)return function(xa,ba){if(!(0<ba))return++ba,setTimeout(()=>{console.debug(' changed .... '+h.id);Z()},0)}(N,0);/^focusin\./i.test(F.type)?/\-error/.test(h.parentNode.className)&&(console.debug('#1 you just focusin ....'+h.id,h.value,w.$forms[h.form.getAttribute('id')].isValidating),x(h)):/^focusout\./i.test(F.type)?/\-warning/.test(h.parentNode.className)&&(console.debug('#1 you just focusout ....'+
|
|
515
|
+
h.id,h.value),w.$forms[h.form.getAttribute('id')].isValidating=!1,x(h),H(h.form,w.$forms[h.form.getAttribute('id')].errors,null,h.name)):/^keyup\./i.test(F.type)?(h.ginaFormValidatorTestedValue=h.value,e=setTimeout(function(){-1<['91','17','16'].indexOf(''+F.keyCode)&&0==U.count()||(console.debug('[A]['+U.count()+'] keyup ('+F.keyCode+') .... '+h.id,h.value,' VS ',h.ginaFormValidatorTestedValue+'(old)'),Z())},1E3)):/^change\./i.test(F.type)&&!/^(checkbox)$/i.test(F.target.type)&&(console.debug(' change .... '+
|
|
514
516
|
h.id),Z())})}}},Ja=function(m,h){m.setSelectionRange?(m.focus(),m.setSelectionRange(h,h)):m.createTextRange&&(m=m.createTextRange(),m.collapse(!0),m.moveEnd('character',h),m.moveStart('character',h),m.select())},Za=function(m,h){if(document.activeElement&&document.activeElement.form){m=Array.prototype.filter.call(document.activeElement.form.querySelectorAll('a:not([disabled]), button:not([disabled]), input[type=text]:not([disabled]), select:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])'),
|
|
515
517
|
function(p){return 0<p.offsetWidth||0<p.offsetHeight||p===document.activeElement});var e=m.indexOf(document.activeElement);if(-1<e){var b=m[e+1];h&&(b=m[e-1]);(b||m[0]).focus()}}},rb=function(m,h){m.setAttribute('readonly','readonly');addListener(gina,m,'focusout.'+m.id,function(e){e.preventDefault();clearTimeout(h);e=e.currentTarget;triggerEvent(gina,e,'change.'+e.id);e.setAttribute('readonly','readonly')});addListener(gina,m,'focusin.'+m.id,function(e){e.preventDefault();e.currentTarget.removeAttribute('readonly');
|
|
516
|
-
var b='keydown.'+e.currentTarget.id;'undefined'==typeof gina.events[b]&&addListener(gina,e.currentTarget,b,function(p){p.preventDefault();clearTimeout(h);var
|
|
517
|
-
{
|
|
518
|
-
case 39:N+1<k.length+1&&Ja(
|
|
519
|
-
break}default:1<p.key.length||(N!=
|
|
520
|
-
h,null,!0);break;default:Ha(m,h,null),m=h.getAttribute('autocomplete'),/safari/i.test(navigator.userAgent)&&m&&/^(off|false)/i.test(m)&&rb(h,null)}gina.events['registered.'+h.id]=h.id}},pb=function(m,h,e){var b=h.id+'-'+e+'-'+m+'-trigger',p=document.getElementById(b);p||(b=h.getAttribute('data-gina-form-upload--'+e+ +m+'-trigger'),p=document.getElementById(b));p&&'undefined'==typeof p.isBinded||p&&'undefined'!=typeof p.isBinded&&!/true/i.test(p.isBinded)?(addListener(gina,p,'click',function(
|
|
521
|
-
ja(h,m)}),p.isBinded=!0):console.warn('[FormValidator::bindForm][upload]['+h.id+'] : did not find `upload '+m+' trigger`.\nPlease, make sure that your delete element ID is `'+b+'-'+m+'-trigger`, or add to your file input ('+h.id+') -> `data-gina-form-upload-'+m+'-trigger="your-custom-id"` definition.')},Vb=function(m,h){var e=function(b,p,
|
|
522
|
-
b.getAttribute(p);if(!N||''==N){k||console.warn('`'+p+'` definition not found for `'+b.id+'`. Trying to get default route.');var
|
|
523
|
-
e(m,'data-gina-form-upload-action',h);e(m,'data-gina-form-upload-reset-action',h);e(m,'data-gina-form-upload-delete-action',h)},zb=function(m,h,e){var b=null;'undefined'!=typeof this.target&&/FORM/i.test(this.target.tagName)?b=this.target.getAttribute('id'):/string/i.test(typeof m)&&(b=m);if('undefined'!=typeof
|
|
524
|
-
e=null;try{if(m.getAttribute&&m.getAttribute('id'))if(e=m.getAttribute('id'),'undefined'!=typeof
|
|
518
|
+
var b='keydown.'+e.currentTarget.id;'undefined'==typeof gina.events[b]&&addListener(gina,e.currentTarget,b,function(p){p.preventDefault();clearTimeout(h);var u=p.currentTarget,k=p.currentTarget.value,N=u.selectionStart,F=u.selectionEnd;u.removeAttribute('readonly');switch(p.keyCode){case 46:N!=F?(u.value=k.substring(0,N)+k.substring(F),0==N&&(u.value=k.substring(F+1))):u.value=0==N?k.substring(N+1):k.substring(0,N)+k.substring(F+1);p.currentTarget.setAttribute('readonly','readonly');setTimeout(()=>
|
|
519
|
+
{u.removeAttribute('readonly');setTimeout(()=>{Ja(u,N)},0)},0);break;case 8:N!=F?(u.value=k.substring(0,N)+k.substring(F),0==N&&(u.value=k.substring(F))):u.value=0==N?k.substring(N+1):k.substring(0,N-1)+k.substring(F);p.currentTarget.setAttribute('readonly','readonly');setTimeout(()=>{u.removeAttribute('readonly');setTimeout(()=>{N!=F?Ja(u,N):0==N?Ja(u,N):Ja(u,N-1)},0)},0);break;case 9:U[16]&&U[9]?Za(u,!0):Za(u);break;case 13:case 16:break;case 37:console.debug('moving left ',N-1);Ja(u,N-1);break;
|
|
520
|
+
case 39:N+1<k.length+1&&Ja(u,N+1);break;case 17:case 91:console.debug('CMD, CTRL hit');p.preventDefault();break;case 67:if(U[67]&&U[91]||U[67]&&U[17]){u.setSelectionRange(N,F);document.execCommand('copy');break}case 86:if(U[86]&&U[91]||U[86]&&U[17]){N!=F&&(u.value=u.value.replace(k.substring(N,F),''));Ja(u,N);document.execCommand('paste');break}case 88:if(U[88]&&U[91]||U[88]&&U[17]){u.setSelectionRange(N,F);document.execCommand('cut');break}case 90:if(U[90]&&U[91]||U[90]&&U[17]){u.value=u.defaultValue;
|
|
521
|
+
break}default:1<p.key.length||(N!=F?(u.value=k.substring(0,N)+p.key,F-1<k.length&&(u.value+=k.substring(F))):u.value=0==N?p.key+k.substring(N):k.substring(0,N)+p.key+k.substring(F),p.currentTarget.setAttribute('readonly','readonly'),setTimeout(()=>{u.removeAttribute('readonly');setTimeout(()=>{Ja(u,N+1)},0)},0))}})})},$a=function(m,h){if(/^(input|textarea)$/i.test(h.tagName)&&'undefined'==typeof gina.events['registered.'+h.id]){/^file$/i.test(h.type)||Qa(h);switch(h.tagName.toLowerCase()){case 'textarea':Ha(m,
|
|
522
|
+
h,null,!0);break;default:Ha(m,h,null),m=h.getAttribute('autocomplete'),/safari/i.test(navigator.userAgent)&&m&&/^(off|false)/i.test(m)&&rb(h,null)}gina.events['registered.'+h.id]=h.id}},pb=function(m,h,e){var b=h.id+'-'+e+'-'+m+'-trigger',p=document.getElementById(b);p||(b=h.getAttribute('data-gina-form-upload--'+e+ +m+'-trigger'),p=document.getElementById(b));p&&'undefined'==typeof p.isBinded||p&&'undefined'!=typeof p.isBinded&&!/true/i.test(p.isBinded)?(addListener(gina,p,'click',function(u){u.preventDefault();
|
|
523
|
+
ja(h,m)}),p.isBinded=!0):console.warn('[FormValidator::bindForm][upload]['+h.id+'] : did not find `upload '+m+' trigger`.\nPlease, make sure that your delete element ID is `'+b+'-'+m+'-trigger`, or add to your file input ('+h.id+') -> `data-gina-form-upload-'+m+'-trigger="your-custom-id"` definition.')},Vb=function(m,h){var e=function(b,p,u){var k=null;switch(p){case 'data-gina-form-upload-action':k='upload-to-tmp-xml';break;case 'data-gina-form-upload-reset-action':k='upload-delete-from-tmp-xml'}var N=
|
|
524
|
+
b.getAttribute(p);if(!N||''==N){k||console.warn('`'+p+'` definition not found for `'+b.id+'`. Trying to get default route.');var F=null;try{k&&(N=G.getRoute(k))}catch(Z){F=Z}N?(console.info('Ignore previous warnings regarding upload. I have found a default `'+p+'` route: `'+k+'@'+N.bundle+'`'),b.setAttribute('data-gina-form-upload-action',N.toUrl())):(b='`'+p+'` needs to be defined to proceed for your `input[type=file]` with ID `'+b.id+'`\n'+F+'\n',u&&(u.innerHTML+=b.replace(/(\n|\r)/g,'<br>')),console.error(b))}};
|
|
525
|
+
e(m,'data-gina-form-upload-action',h);e(m,'data-gina-form-upload-reset-action',h);e(m,'data-gina-form-upload-delete-action',h)},zb=function(m,h,e){var b=null;'undefined'!=typeof this.target&&/FORM/i.test(this.target.tagName)?b=this.target.getAttribute('id'):/string/i.test(typeof m)&&(b=m);if('undefined'!=typeof w.$forms[b])m=w.$forms[b];else throw Error('form instance `'+b+'` not found');M(b);nb(m.target);'undefined'!=typeof rule?ub(m.target,h):ub(m.target);return e?e(m):m},nb=function(m){var h=null,
|
|
526
|
+
e=null;try{if(m.getAttribute&&m.getAttribute('id'))if(e=m.getAttribute('id'),'undefined'!=typeof w.$forms[e])h=w.$forms[e];else throw Error('form instance `'+e+'` not found');else if('undefined'!=typeof m.target)h=m,e=m.getAttribute&&m.getAttribute('id')?h.getAttribute('id'):h.id;else throw Error('Validator::unbindForm($target): `$target` must be a DOM element\n'+err.stack);}catch(k){throw Error('Validator::unbindForm($target) could not unbind form `'+m+'`\n'+k.stack);}if('undefined'!=typeof h&&!h.binded)return h;
|
|
525
527
|
removeListener(gina,h,'success.'+e);removeListener(gina,h,'error.'+e);h.target.getAttribute('data-gina-form-event-on-submit-success')&&removeListener(gina,h,'success.'+e+'.hform');h.target.getAttribute('data-gina-form-event-on-submit-error')&&removeListener(gina,h,'error.'+e+'.hform');removeListener(gina,h,'validate.'+e);removeListener(gina,h,'validated.'+e);removeListener(gina,h,'submit.'+e);removeListener(gina,h,'reset.'+e);m=[];e=h.target.getElementsByTagName('button');if(0<e.length)for(let k=
|
|
526
|
-
0,N=e.length;k<N;++k)m.push(e[k]);e=h.target.getElementsByTagName('a');if(0<e.length)for(let k=0,N=e.length;k<N;++k)m.push(e[k]);e=h.target.getElementsByTagName('input');if(0<e.length)for(let k=0,N=e.length;k<N;++k)if(/^(hidden)$/i.test(e[k].type)||m.push(e[k]),/^(file)$/i.test(e[k].type)){var b=e[k].getAttribute('data-gina-form-virtual');if(b){var p=y(b).target;if(p){m.push(p);for(let
|
|
527
|
-
b&&removeListener(gina,p,
|
|
528
|
-
if(0<e.length)for(let k=0,N=e.length;k<N;++k)m.push(e[k]);m.push(h.target);for(let k=0,N=m.length;k<N;++k){e=m[k];b=e.getAttribute('id');for(let
|
|
529
|
-
e,
|
|
530
|
-
!/object/i.test(typeof m)?this.target.id||this.target.getAttribute('id'):/string/i.test(typeof m)?m:m.getAttribute('id');try{if('undefined'!=typeof
|
|
531
|
-
var
|
|
532
|
-
0<e.rules.count()?e.target.dataset.ginaFormLiveCheckEnabled=!0:e.target.dataset.ginaFormLiveCheckEnabled='undefined'!=typeof e.target.dataset.ginaFormLiveCheckEnabled?/^true$/i.test(e.target.dataset.ginaFormLiveCheckEnabled)?!0:!1:!1;e.fieldsSet||(e.fieldsSet={});
|
|
533
|
-
Z[ha]),
|
|
534
|
-
!0:!1),e.fieldsSet[
|
|
535
|
-
h[ha].value)));/^true$/i.test(e.target.dataset.ginaFormLiveCheckEnabled)&&$a(e,h[ha]);if(
|
|
536
|
-
(e.rules[h[ha].name].exclude=!0));if(0<qa.count())for(var fa in qa)h[ha].name!=fa&&(h[ha].getAttribute('data-gina-form-element-group'),qa[fa].test(h[ha].name)&&(h[ha].disabled=!0,'undefined'==typeof
|
|
537
|
-
Z);if((Z=ma.getElementById(
|
|
538
|
-
deleteLinkId=
|
|
528
|
+
0,N=e.length;k<N;++k)m.push(e[k]);e=h.target.getElementsByTagName('a');if(0<e.length)for(let k=0,N=e.length;k<N;++k)m.push(e[k]);e=h.target.getElementsByTagName('input');if(0<e.length)for(let k=0,N=e.length;k<N;++k)if(/^(hidden)$/i.test(e[k].type)||m.push(e[k]),/^(file)$/i.test(e[k].type)){var b=e[k].getAttribute('data-gina-form-virtual');if(b){var p=y(b).target;if(p){m.push(p);for(let F=0,Z=ka.length;F<Z;F++){var u=ka[F];'undefined'!=typeof gina.events[u+'.'+b+'.hform']&&gina.events[u+'.'+b+'.hform']==
|
|
529
|
+
b&&removeListener(gina,p,u+'.'+b+'.hform')}}}}else for(let F=0,Z=ka.length;F<Z;F++)b=ka[F]+'.'+e[k].id,'undefined'!=typeof gina.events[b]&&gina.events[b]==e[k].id&&removeListener(gina,e[k],b),b=ka[F],'undefined'!=typeof gina.events[b]&&gina.events[b]==e[k].id&&removeListener(gina,e[k],b),b=e[k].id,'undefined'!=typeof gina.events[b]&&gina.events[b]==e[k].id&&removeListener(gina,e[k],b);e=h.target.getElementsByTagName('textarea');if(0<e.length)for(let k=0,N=e.length;k<N;++k)m.push(e[k]);e=h.target.getElementsByTagName('form');
|
|
530
|
+
if(0<e.length)for(let k=0,N=e.length;k<N;++k)m.push(e[k]);m.push(h.target);for(let k=0,N=m.length;k<N;++k){e=m[k];b=e.getAttribute('id');for(let F=0,Z=ka.length;F<Z;F++)u=p=ka[F],'undefined'!=typeof gina.events[u]&&gina.events[u]==b&&removeListener(gina,e,u),u=b,'undefined'!=typeof gina.events[u]&&gina.events[u]==b&&removeListener(gina,e,u),u=p+'.'+b,'undefined'!=typeof gina.events[u]&&gina.events[u]==b&&removeListener(gina,e,u),u=p+'.'+b,'undefined'!=typeof gina.events[u]&&gina.events[u]==u&&removeListener(gina,
|
|
531
|
+
e,u),u=p+'.'+b+'.hform','undefined'!=typeof gina.events[u]&&gina.events[u]==b&&removeListener(gina,e,u)}evt=null;h.binded=!1;return h},Ab=function(m,h){h=h.name;if(!m[h])for(let e in m)if(/^\//.test(e)&&(re=e.match(/\/(.*)\//).pop(),flags=e.replace('/'+re+'/',''),re=re.replace(/\[/g,'\\[').replace(/\]/g,'\\]'),re=new RegExp(re,flags),re.test(h))){m[h]=m[e];break}},ub=function(m,h){var e=null,b=null,p=typeof(0<Fa.count())?Fa:w.rules;b='undefined'==typeof m&&'undefined'!=typeof this.target&&/FORM/i.test(this.target.tagName)||
|
|
532
|
+
!/object/i.test(typeof m)?this.target.id||this.target.getAttribute('id'):/string/i.test(typeof m)?m:m.getAttribute('id');try{if('undefined'!=typeof w.$forms[b]){e=w.$forms[b];if('undefined'==typeof e.target)throw Error('Validator::bindForm($target, customRule): `$target` must be a DOM element\n');m=e.target}else throw Error('form instance `'+b+'` not found');}catch(ha){throw Error('Validator::bindForm($target, customRule) could not bind form `'+m+'`\n'+ha.stack);}console.debug('binding for: '+b);
|
|
533
|
+
var u=!1,k=null,N='',F=null;'undefined'!=typeof h||'string'==typeof b&&'undefined'!=typeof p[b.replace(/\-|\//g,'.')]?(u=!0,k=h&&'object'==typeof h?h:h&&'string'==typeof h&&'undefined'!=typeof p[h.replace(/\-|\//g,'.')]?Ia(h.replace(/\-|\//g,'.')):Ia(b.replace(/\-|\//g,'.')),e.rules=k,O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.rules||(gina.forms.rules={}),objCallback={id:b,rules:e.rules},window.ginaToolbar.update('forms',objCallback))):e.rules={};'undefined'==typeof e.target.dataset.ginaFormLiveCheckEnabled&&
|
|
534
|
+
0<e.rules.count()?e.target.dataset.ginaFormLiveCheckEnabled=!0:e.target.dataset.ginaFormLiveCheckEnabled='undefined'!=typeof e.target.dataset.ginaFormLiveCheckEnabled?/^true$/i.test(e.target.dataset.ginaFormLiveCheckEnabled)?!0:!1:!1;e.fieldsSet||(e.fieldsSet={});F=null;m.getElementsByTagName('a');h=m.getElementsByTagName('input');var Z=m.getElementsByTagName('textarea');F=m.getElementsByTagName('select');var xa={},ba=[],qa={},Aa=null,J={},ma=null,ta=null;for(let ha=0,Y=Z.length;ha<Y;++ha)Ab(e.rules,
|
|
535
|
+
Z[ha]),ta=Z[ha].getAttribute('id'),ta&&''!=ta||(ta='textareas.'+ia.v4(),Z[ha].setAttribute('id',ta)),e.fieldsSet[ta]||(e.fieldsSet[ta]={id:ta,name:Z[ha].name||null,value:Z[ha].value||'',defaultValue:Z[ha].value||''}),/^true$/i.test(e.target.dataset.ginaFormLiveCheckEnabled)&&$a(e,Z[ha]);for(let ha=0,Y=h.length;ha<Y;++ha){Ab(e.rules,h[ha]);ta=h[ha].getAttribute('id');ta&&''!=ta||(ta='input.'+ia.v4(),h[ha].setAttribute('id',ta));e.fieldsSet[ta]||(Aa=h[ha].value,/$(on|true|false)$/i.test(Aa)&&(Aa=/$(on|true)$/i.test(Aa)?
|
|
536
|
+
!0:!1),e.fieldsSet[ta]={id:ta,name:h[ha].name||null,value:Aa||!/^(checkbox|radio)$/i.test(h[ha].type)?'':h[ha].checked,defaultValue:/^(checkbox|radio)$/i.test(h[ha].type)?h[ha].checked:Aa},/^(checkbox|radio)$/i.test(h[ha].type)&&'undefined'==typeof e.fieldsSet[ta].defaultChecked&&(e.fieldsSet[ta].defaultChecked=/^(true|on)$/i.test(h[ha].checked)||/^(true|on)$/.test(Aa)&&/^(checkbox)$/i.test(h[ha].type)?!0:!1,/^radio$/i.test(h[ha].type)&&(e.fieldsSet[ta].value=h[ha].value,e.fieldsSet[ta].defaultValue=
|
|
537
|
+
h[ha].value)));/^true$/i.test(e.target.dataset.ginaFormLiveCheckEnabled)&&$a(e,h[ha]);if(Aa=h[ha].getAttribute('data-gina-form-element-group'))0>ba.indexOf(Aa)&&ba.push(Aa),ma=h[ha].getAttribute('name')||ta,ma===ta&&h[ha].setAttribute('name',ta),xa[ta]={id:ta,name:ma,group:Aa,target:h[ha]},qa[h[ha].name]=new RegExp('^'+Aa.replace(/[.*+?^${}()|[\]\\]/g,'\\$&')),u&&('undefined'==typeof e.rules[h[ha].name]&&(e.rules[h[ha].name]={}),'undefined'!=typeof e.rules[h[ha].name].isRequired&&e.rules[h[ha].name].isRequired||
|
|
538
|
+
(e.rules[h[ha].name].exclude=!0));if(0<qa.count())for(var fa in qa)h[ha].name!=fa&&(h[ha].getAttribute('data-gina-form-element-group'),qa[fa].test(h[ha].name)&&(h[ha].disabled=!0,'undefined'==typeof J[fa]&&(J[fa]={}),J[fa][h[ha].name]=h[ha]));if(/^file$/i.test(h[ha].type)){ta=h[ha].getAttribute('data-gina-form-upload-trigger');ta||(ta=h[ha].id);Aa=null;ma=(new DOMParser).parseFromString(m.innerHTML,'text/html');ta&&(Aa=document.getElementById(ta));Z=document.getElementById(h[ha].id+'-error');Vb(h[ha],
|
|
539
|
+
Z);if((Z=ma.getElementById(ta+'-preview'))&&Aa&&!/none/i.test(window.getComputedStyle(Z).display)&&!/none/i.test(Z.parentElement.style.display)){ma=0;console.debug('preview is visible ...');Aa.customFiles=[];Aa.form=m;Z=Z.childNodes;for(let aa=0,ra=Z.length;aa<ra;aa++){var ua=null;if(/ul/i.test(Z[aa].tagName))for(let Oa=0,Wa=Z[aa].length;Oa<Wa;Oa++){let gb=$$els[aa];for(let Pa=0,tb=gb.length;Pa<tb;Pa++)/img/i.test(gb[Pa])&&(ua=gb[Pa],ua.setAttribute(''),ma++)}else/img/i.test(Z[aa].tagName)&&(ua=Z[aa],
|
|
540
|
+
deleteLinkId=ta+'-'+ma+'-delete-trigger',ua=ua.src.substring(ua.src.lastIndexOf('/')+1),Aa.customFiles.push({name:ua,deleteLinkId}),pb('delete',Aa,ma),ma++)}}addListener(gina,h[ha],'change',function(aa){aa.preventDefault();var ra=aa.currentTarget;aa=ra.files;ra.customFiles=Array.from(aa);if(!aa.length)return!1;var Oa=ra.getAttribute('data-gina-form-upload-action'),Wa=ra.getAttribute('name'),gb='gina-upload-'+Wa.replace(/\[/g,'-').replace(/\]/g,'-'+e.id);ra.setAttribute('data-gina-form-virtual',gb);
|
|
539
541
|
var Pa=ra.getAttribute('data-gina-form-upload-on-success'),tb=ra.getAttribute('data-gina-form-upload-on-error'),jb=null;if(0<aa.length){var eb=null;if(z()){eb=gina.popin.getActivePopin();eb.$target=(new DOMParser).parseFromString(eb.target.outerHTML,'text/html');eb.$target.getElementById(eb.id).innerHTML=document.getElementById(eb.id).innerHTML;var hb=eb.$target.getElementById(gb)}else hb=document.getElementById(gb);if(!hb){try{hb=y(gb)||null}catch(Rc){}hb||=z()?eb.$target.createElement('form'):document.createElement('form');
|
|
540
542
|
hb.id=gb;hb.action=Oa;hb.enctype='multipart/form-data';hb.method='POST';if('undefined'!=typeof ra.form){Oa='files';var qb=ra.getAttribute('data-gina-form-upload-prefix')||ra.name||ra.getAttribute('name'),lb=ra.id||ra.getAttribute('id'),Mb=!1,Eb=ra.getAttribute('data-gina-form-upload-preview')||lb+'-preview';Eb=z()?eb.$target.getElementById(Eb):document.getElementById(Eb);'undefined'!=typeof Eb&&(Mb=!0);qb&&(Oa=qb);qb=[];for(var Ib='name group originalFilename ext encoding size height width location mime preview'.split(' '),
|
|
541
543
|
Kb=ra.form.getElementsByTagName('INPUT'),Zb,Xb,Dc,fc,Nb=0,Pc=aa.length;Nb<Pc;++Nb){pb('reset',ra,Nb);qb[Nb]=null;Zb=Oa+'['+Nb+']';fc=new RegExp('^'+Zb.replace(/\[/g,'\\[').replace(/\]/g,'\\]'));for(var mc=0,Lc=Kb.length;mc<Lc;++mc)Zb=Kb[mc].getAttribute('type'),jb=Kb[mc].getAttribute('data-gina-form-upload-error')||lb+'-error'||null,Zb&&/hidden/i.test(Zb)&&(Xb=Kb[mc],Zb=/\[\w+\]$/i.test(Xb.name)?Xb.name.match(/\[\w+\]$/)[0].replace(/\[|\]/g,''):Xb.name,Dc=/\[\w+\]$/i.test(Xb.name)?Xb.name.match(/\[\w+\]$/)[0].replace(/\[|\]/g,
|
|
542
544
|
''):Xb.name,Xb&&'undefiend'!=typeof Zb&&-1<Ib.indexOf(Zb)&&fc.test(Xb.name)?(qb[Nb]||(qb[Nb]={}),/\[preview\]/i.test(Xb.name)?('undefined'==typeof qb[Nb].preview&&(qb[Nb].preview={}),qb[Nb].preview[Zb]=Xb):qb[Nb][Zb]=Xb):Xb&&'undefiend'!=typeof Zb&&0>Ib.indexOf(Zb)&&fc.test(Xb.name)&&(qb[Nb]||(qb[Nb]={}),/\[preview\]/i.test(Xb.name)?('undefined'==typeof qb[Nb].preview&&(qb[Nb].preview={}),qb[Nb].preview[Dc]=Xb):qb[Nb][Dc]=Xb));fc=0;for(mc=Ib.length;fc<mc;++fc)qb[Nb]||(qb[Nb]={}),'undefined'==typeof qb[Nb][Ib[fc]]&&
|
|
543
545
|
(Zb=Oa+'['+Nb+']['+Ib[fc]+']',$newVirtualField=document.createElement('input'),$newVirtualField.type='hidden',$newVirtualField.id='input.'+ia.v4(),$newVirtualField.name=Zb,$newVirtualField.value='',ra.form.appendChild($newVirtualField),qb[Nb][Ib[fc]]=ra.form[ra.form.length-1])}hb.uploadProperties={id:ra.form.id||ra.getAttribute('id'),uploadTriggerId:ra.id,$form:ra.form,errorField:jb,mandatoryFields:Ib,uploadFields:qb,hasPreviewContainer:Mb,isPopinContext:z()};Mb&&(hb.uploadProperties.previewContainer=
|
|
544
546
|
Eb)}Pa?hb.setAttribute('data-gina-form-event-on-submit-success',Pa):hb.setAttribute('data-gina-form-event-on-submit-success','onGenericXhrResponse');tb?hb.setAttribute('data-gina-form-event-on-submit-error',tb):hb.setAttribute('data-gina-form-event-on-submit-error','onGenericXhrResponse');z()?document.getElementById(eb.id).appendChild(hb):document.body.appendChild(hb)}try{var Qc=y(gb),rc=new FormData;ra=null;gb=0;for(var sc=aa.length;gb<sc;++gb)ra=aa[gb],rc.append(Wa,ra,ra.name);Qc.send(rc,{withCredentials:!0})}catch(Rc){throw Rc;
|
|
545
|
-
}}})}}var
|
|
546
|
-
Wa=null,tb=null;Pa=fb(gb,p);Wa=Pa.fields;Pa=Pa.$fields;var jb=gb.getAttribute('id');tb=
|
|
547
|
-
''!=
|
|
548
|
-
|
|
549
|
-
typeof ra&&(ra=!1);if('undefined'==typeof
|
|
550
|
-
(e.rules[
|
|
551
|
-
Ta(Y.id,
|
|
547
|
+
}}})}}var Da=function(ha,Y){ha.setAttribute('data-value',ha.value);if(/^(true)$/i.test(Y.target.dataset.ginaFormLiveCheckEnabled&&0<Y.rules.count())){var aa={},ra={},Oa=null;Oa=ha.form;aa[event.target.name]=event.target.value;ra[event.target.name]=event.target;w.$forms[Oa.getAttribute('id')].isValidating=!0;da(event.target,aa,ra,Y.rules,function(Wa){w.$forms[Oa.getAttribute('id')].isValidating=!1;Wa.isValid()?H(Oa,{},Wa.data,event.target.name):H(Oa,Wa.error,Wa.data,event.target.name);var gb=Oa,Pa=
|
|
548
|
+
Wa=null,tb=null;Pa=fb(gb,p);Wa=Pa.fields;Pa=Pa.$fields;var jb=gb.getAttribute('id');tb=w.$forms[jb].rules;w.$forms[jb].isValidating=!0;da(gb,Wa,Pa,tb,function(eb){w.$forms[jb].isValidating=!1;console.debug('[updateSelect]: onSilentGlobalLiveValidation: '+eb.isValid(),eb);var hb=eb.isValid();if(!hb){w.$forms[jb].errors=eb.error;for(let qb in eb.error)H(gb,eb.error,eb.data,qb)}Ka(gb,hb);once=!1})})}};Aa=J=null;fa=0;for(qa=F.length;fa<qa;++fa)if(Ab(e.rules,F[fa]),ta=F[fa].getAttribute('id'),!ta||!/^gina\-toolbar/.test(ta)){ta&&
|
|
549
|
+
''!=ta||(ta='select.'+ia.v4(),F[fa].setAttribute('id',ta));if(Aa=F[fa].getAttribute('data-gina-form-element-group'))J=F[fa].getAttribute('name')||ta,J===ta&&F[fa].setAttribute('name',ta),xa[ta]={id:ta,name:J,group:Aa,target:F[fa]};addListener(gina,F[fa],'change',function(ha){ha=ha.target;/select/i.test(ha.type)&&Da(ha,e)});if(F[fa].options&&!e.fieldsSet[ta]){J=0;if(Aa=F[fa].getAttribute('data-value')||null)for(ma=0,Z=F[fa].options.length;ma<Z;++ma)if(F[fa].options[ma].value==Aa){J=ma;F[fa].selectedIndex=
|
|
550
|
+
J;break}'undefined'!=typeof F[fa].options[F[fa].selectedIndex]&&F[fa].options[F[fa].selectedIndex].index&&(J=F[fa].options[F[fa].selectedIndex].index);0<F[fa].options.length&&'undefined'!=typeof F[fa].options[J]&&(Aa=F[fa].options[J].value);e.fieldsSet[ta]={id:ta,name:F[fa].name||null,value:Aa||null,selectedIndex:J||0};'undefined'!=typeof F[fa].selectedIndex&&-1<F[fa].selectedIndex&&(F[fa].options[J].selected=!0,F[fa].setAttribute('data-value',F[fa].options[J].value))}}var Ta=function(ha,Y,aa,ra){'undefined'==
|
|
551
|
+
typeof ra&&(ra=!1);if('undefined'==typeof xa[ha])throw Error('Radio & Checkbox dependencies not met: you must use the ID attribue of the `master element` as the `data-gina-form-element-group`');var Oa=ha.replace(/\-|_|@|#|\.|\[|\]/g,'\\$&');ha=xa[ha].target.checked;for(let Pa in xa)if(!/radio|checkbox/i.test(xa[Pa].target.type)){var Wa=new RegExp(Oa);var gb=new RegExp(Y);if(Wa.test(xa[Pa].group)&&gb.test(xa[Pa].group)||Wa.test(xa[Pa].group))xa[Pa].target.disabled=!0,'undefined'==typeof e.rules[xa[Pa].name]&&
|
|
552
|
+
(e.rules[xa[Pa].name]={}),e.rules[xa[Pa].name].exclude=!0,ra?(xa[Pa].target.disabled=ha?!1:!0,e.rules[xa[Pa].name].exclude=ha?!1:!0):(xa[Pa].target.disabled=aa,e.rules[xa[Pa].name].exclude=aa)}},ab=function(ha,Y,aa,ra){'undefined'==typeof ra&&(ra=!1);if(ra&&'undefined'!=typeof xa[Y.id])return ha=/true/i.test(Y.checked)?!1:!0,Ta(Y.id,xa[Y.id].group,ha,ra);aa=Y.name;u&&'undefined'==typeof ha.rules[aa]&&(ha.rules[aa]={});/^true$/i.test(Y.checked)?u&&(ha.rules[aa].exclude=!1,'undefined'!=typeof xa[Y.id]&&
|
|
553
|
+
Ta(Y.id,xa[Y.id].group,!1,ra)):u&&(ha.rules[aa].exclude=!0,'undefined'!=typeof xa[Y.id]&&Ta(Y.id,xa[Y.id].group,!0,ra))},sb=function(ha,Y){'undefined'==typeof Y&&(Y=!1);var aa=function(Pa,tb,jb){if(tb)ab(e,Pa,tb);else for(let eb in xa)if(gb.test(xa[eb].group)||gb.test(xa[eb].target.getAttribute('data-gina-form-element-group')))xa[eb].target.disabled=jb};Y&&/^(on)$/i.test(ha.value)&&!ha.checked&&(ha.value=!1);var ra=ha.getAttribute('data-value')||ha.getAttribute('value')||ha.value;ra=/^(true|on)$/.test(ra)?
|
|
552
554
|
!0:ra;''===ra&&(ra=!1);var Oa=/^(true|on|false)$/i.test(ra)?!0:!1;Y&&Oa&&(/^true$/i.test(ra)&&!ha.checked?ha.checked=!0:/^false$/i.test(ra)&&ha.checked&&(ha.checked=!1));ra=ha.checked;var Wa=ha.getAttribute('data-gina-form-element-group')||null,gb=new RegExp(ha.id.replace(/\-|_|@|#|\.|\[|\]/g,'\\$&'));ra&&'null'!=ra&&'false'!=ra&&''!=ra?(Y?yb(ha):(setTimeout(function(){ha.checked=!0;aa(ha,Wa,!1);yb(ha)},0),ha.setAttribute('checked','checked')),Oa&&(ha.value=!0,ha.setAttribute('value',!0),typeof('undefined'!=
|
|
553
|
-
ha.getAttribute('data-value'))&&ha.setAttribute('data-value',!0))):(Y?yb(ha):setTimeout(function(){ha.checked=!1;aa(ha,Wa,!0);yb(ha)},0),ha.removeAttribute('checked'),Oa&&(ha.value=!1,ha.setAttribute('value','false'),typeof('undefined'!=ha.getAttribute('data-value'))&&ha.setAttribute('data-value','false')))},yb=function(ha){ha=new RegExp(ha.id.replace(/\-|_|@|#|\.|\[|\]/g,'\\$&'));for(let Y in
|
|
554
|
-
ab(e,
|
|
555
|
-
{}),/^(true|on)$/i.test(ha.checked)?(
|
|
556
|
-
ra&&'false'!=ra&&''!=ra?setTimeout(function(){aa?Fb(ha):(ha.checked=!1,ha.removeAttribute('checked'))},0):setTimeout(function(){aa?Fb(ha):(ha.checked=!0,ha.setAttribute('checked','checked'))},0),Oa&&(ha.value=/^true$/.test(ha.value)?!0:!1))};fa=0;for(qa=h.length;fa<qa;++fa){
|
|
557
|
-
-1<ba.indexOf(h[fa].id)){
|
|
558
|
-
Y,function(aa){Ya(aa.target);triggerEvent(gina,aa.target,'changed.'+aa.target.id)});Ya(ha,!0)},'undefined'!=typeof gina.events[N]&&gina.events[N]==h[fa].id&&removeListener(gina,h[fa],N),
|
|
559
|
-
function(ra){var Oa=ra.isValid();console.debug('silent reset validation result[isValid:'+Oa+']: ',ra);
|
|
560
|
-
if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;
|
|
561
|
-
triggerEvent(gina,aa,ra,Y.detail,Y))});addListener(gina,m,'focusin',function(Y){var aa=Y.target;if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;var ra=aa.id;if(!ra)return!1;/^focusin\./.test(ra)||(ra='focusin.'+aa.id);if(gina.events[ra]){cancelEvent(Y);var Oa=Y.target.form.getAttribute('id')||Y.currentTarget.getAttribute('id'),Wa={id:aa.id,name:aa.name};
|
|
555
|
+
ha.getAttribute('data-value'))&&ha.setAttribute('data-value',!0))):(Y?yb(ha):setTimeout(function(){ha.checked=!1;aa(ha,Wa,!0);yb(ha)},0),ha.removeAttribute('checked'),Oa&&(ha.value=!1,ha.setAttribute('value','false'),typeof('undefined'!=ha.getAttribute('data-value'))&&ha.setAttribute('data-value','false')))},yb=function(ha){ha=new RegExp(ha.id.replace(/\-|_|@|#|\.|\[|\]/g,'\\$&'));for(let Y in xa)(/checkbox/i.test(xa[Y].target.type)&&ha.test(xa[Y].group)||/checkbox/i.test(xa[Y].target.type)&&ha.test(xa[Y].target.getAttribute('data-gina-form-element-group')))&&
|
|
556
|
+
ab(e,xa[Y].target,xa[Y].group,!0)},Fb=function(ha,Y){Y=ha.id.replace(/\-|_|@|#|\.|\[|\]/g,'\\$&');Y=new RegExp(Y);for(let aa in xa)if(/checkbox|radio/i.test(xa[aa].target.type)||(xa[aa].target.disabled=!0,'undefined'==typeof e.rules[xa[aa].name]&&(e.rules[xa[aa].name]={}),e.rules[xa[aa].name].exclude=!0),Y.test(xa[aa].group)||Y.test(xa[aa].target.getAttribute('data-gina-form-element-group').replace(/\-|_|@|#|\.|\[|\]/g,'\\$&')))xa[aa].target.disabled=!0,'undefined'==typeof e.rules[xa[aa].name]&&(e.rules[xa[aa].name]=
|
|
557
|
+
{}),/^(true|on)$/i.test(ha.checked)?(xa[aa].target.disabled=!1,e.rules[xa[aa].name].exclude=!1):(xa[aa].target.disabled=!0,e.rules[xa[aa].name].exclude=!0);yb(ha)},mb=null,Ya=function(ha,Y,aa){Y='undefined'!=typeof Y&&Y?!0:!1;aa='undefined'!=typeof aa&&aa?!0:!1;var ra=ha.checked,Oa=/^(true|false)$/i.test(ha.value);mb=document.getElementsByName(ha.name);for(let Wa=0,gb=mb.length;Wa<gb;++Wa)mb[Wa].id!==ha.id&&ra&&(mb[Wa].checked=!1,mb[Wa].removeAttribute('checked'),Fb(mb[Wa],!0));Y?Fb(ha):(ra&&'null'!=
|
|
558
|
+
ra&&'false'!=ra&&''!=ra?setTimeout(function(){aa?Fb(ha):(ha.checked=!1,ha.removeAttribute('checked'))},0):setTimeout(function(){aa?Fb(ha):(ha.checked=!0,ha.setAttribute('checked','checked'))},0),Oa&&(ha.value=/^true$/.test(ha.value)?!0:!1))};fa=0;for(qa=h.length;fa<qa;++fa){F=h[fa].getAttribute('type');if('undefined'==typeof h[fa].id||''==h[fa].id)h[fa].id=F+'-'+ia.v4(),h[fa].setAttribute('id',h[fa].id);if('undefined'!=typeof F&&/^checkbox$/i.test(F)){if(h[fa].disabled&&-1<ba.indexOf(h[fa].id)||!h[fa].checked&&
|
|
559
|
+
-1<ba.indexOf(h[fa].id)){F=new RegExp(h[fa].id.replace(/\-|_|@|#|\.|\[|\]/g,'\\$&'));for(var cb in xa)F.test(xa[cb].group)&&(xa[cb].target.disabled=!0)}N='change.'+h[fa].id;F=function(ha,Y){addListener(gina,ha,Y,function(aa){sb(aa.target);triggerEvent(gina,aa.target,'changed.'+aa.target.id)});sb(ha,!0)};'undefined'!=typeof gina.events[N]&&gina.events[N]==h[fa].id&&removeListener(gina,h[fa],N);F(h[fa],N)}else'undefined'!=typeof F&&/^radio$/i.test(F)&&(N=h[fa].id,F=function(ha,Y){addListener(gina,ha,
|
|
560
|
+
Y,function(aa){Ya(aa.target);triggerEvent(gina,aa.target,'changed.'+aa.target.id)});Ya(ha,!0)},'undefined'!=typeof gina.events[N]&&gina.events[N]==h[fa].id&&removeListener(gina,h[fa],N),F(h[fa],N))}N='click';F=function(){var ha=null;ha='reset.'+m.id;'undefined'==typeof gina.events[ha]&&addListener(gina,m,ha,function(Y){Y.preventDefault();var aa=w.$forms[Y.currentTarget.id||Y.target.id];aa.target.dataset.ginaFormIsResetting=!0;T(aa);Y=fb(aa.target,aa.rules,!0);da(aa.target,Y.fields,Y.$fields,aa.rules,
|
|
561
|
+
function(ra){var Oa=ra.isValid();console.debug('silent reset validation result[isValid:'+Oa+']: ',ra);H(aa.target,{});Ka(aa.target,Oa);aa.target.dataset.ginaFormIsResetting=!1})});addListener(gina,m,'reset',function(Y){var aa=Y.target;if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;Y.preventDefault();var ra=aa.id;if(!ra)return!1;/^reset\./.test(ra)||(ra='reset.'+aa.id);gina.events[ra]&&triggerEvent(gina,aa,ra,Y.detail)});addListener(gina,m,'keydown',function(Y){var aa=Y.target;
|
|
562
|
+
if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;U[Y.keyCode]='keydown'==Y.type;var ra=aa.id;if(!ra)return!1;/^keydown\./.test(ra)||(ra='keydown.'+aa.id);gina.events[ra]&&(cancelEvent(Y),triggerEvent(gina,aa,ra,Y.detail,Y))});addListener(gina,m,'keyup',function(Y){var aa=Y.target;if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;U[Y.keyCode]&&delete U[Y.keyCode];var ra=aa.id;if(!ra)return!1;/^keyup\./.test(ra)||(ra='keyup.'+aa.id);gina.events[ra]&&(cancelEvent(Y),
|
|
563
|
+
triggerEvent(gina,aa,ra,Y.detail,Y))});addListener(gina,m,'focusin',function(Y){var aa=Y.target;if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;var ra=aa.id;if(!ra)return!1;/^focusin\./.test(ra)||(ra='focusin.'+aa.id);if(gina.events[ra]){cancelEvent(Y);var Oa=Y.target.form.getAttribute('id')||Y.currentTarget.getAttribute('id'),Wa={id:aa.id,name:aa.name};w.$forms[Oa].lastFocused.length?w.$forms[Oa].lastFocused.splice(0,0,Wa):w.$forms[Oa].lastFocused[0]=Wa;w.$forms[Oa].lastFocused.splice(2);
|
|
562
564
|
triggerEvent(gina,aa,ra,Y.detail)}});addListener(gina,m,'focusout',function(Y){var aa=Y.target;if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;var ra=aa.id;if(!ra)return!1;/^focusout\./.test(ra)||(ra='focusout.'+aa.id);gina.events[ra]&&(cancelEvent(Y),triggerEvent(gina,aa,ra,Y.detail))});addListener(gina,m,'change',function(Y){var aa=Y.target;if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;var ra=aa.id;if(!ra)return!1;/^change\./.test(ra)||(ra='change.'+
|
|
563
565
|
aa.id);gina.events[ra]&&(cancelEvent(Y),triggerEvent(gina,aa,ra,Y.detail))});addListener(gina,m,'click',function(Y){var aa=Y.target,ra=!1,Oa=!1;if(/(label)/i.test(Y.target.tagName)&&'undefined'!=typeof Y.target.control&&null!=Y.target.control&&/(checkbox|radio)/i.test(Y.target.control.type)||/(label)/i.test(Y.target.parentNode.tagName)&&'undefined'!=typeof Y.target.parentNode.control&&null!=Y.target.parentNode.control&&/(checkbox|radio)/i.test(Y.target.parentNode.control.type))Oa=Y.target.getAttribute('for')||
|
|
564
566
|
Y.target.parentNode.getAttribute('for')?!0:!1,aa=Y.target.control||Y.target.parentNode.control;if(!aa.disabled&&/(checkbox|radio)/i.test(aa.type)&&!Oa){if(/checkbox/i.test(aa.type))return sb(aa);if(/radio/i.test(aa.type))return Ya(aa,!1,!0)}if(/(button|input)/i.test(aa.tagName)&&/(submit|checkbox|radio)/i.test(aa.type)||/a/i.test(aa.tagName)&&aa.attributes.getNamedItem('data-gina-form-submit')||/a/i.test(aa.parentNode.tagName)&&aa.parentNode.attributes.getNamedItem('data-gina-form-submit')){Oa=aa.attributes.getNamedItem('data-gina-form-submit');
|
|
565
567
|
var Wa=aa.parentNode.attributes.getNamedItem('data-gina-form-submit');if(Oa||Wa)ra=!0,(Wa=Oa?aa.getAttribute('data-gina-form-submit-method')||Y.currentTarget.getAttribute('method'):aa.parentNode.getAttribute('data-gina-form-submit-method')||Y.currentTarget.getAttribute('method'))&&(Oa&&aa.form?aa.form.setAttribute?aa.form.setAttribute('method',Wa):Y.currentTarget.setAttribute('method',Wa):aa.parentNode.form&&(aa.parentNode.form.setAttribute?aa.parentNode.form.setAttribute('method',Wa):Y.currentTarget.setAttribute('method',
|
|
566
|
-
Wa)));'undefined'!=typeof aa.id&&aa.getAttribute('id')||aa.setAttribute('id','click.'+ia.v4());aa.id=aa.getAttribute('id');if(/^click\./.test(aa.id)||
|
|
567
|
-
Oa,
|
|
568
|
-
Y.error,Y.data);ha=ha.target.getAttribute('id');if('undefined'!=typeof Y.isValid&&Y.isValid()){var aa=
|
|
569
|
-
{};aa={_length:0};var Oa=m.getAttribute('id'),Wa='undefined'!=typeof
|
|
570
|
-
m,'validate.'+b,gb)}))})};ba=null;h=[];ba=[];
|
|
568
|
+
Wa)));'undefined'!=typeof aa.id&&aa.getAttribute('id')||aa.setAttribute('id','click.'+ia.v4());aa.id=aa.getAttribute('id');if(/^click\./.test(aa.id)||u){Oa=aa.id;if(!Oa)return!1;/^click\./.test(Oa)||(Oa=aa.id);if(!aa.disabled&&/(checkbox|radio)/i.test(aa.type)){if(/checkbox/i.test(aa.type))return sb(aa);if(/radio/i.test(aa.type))return Ya(aa,!1,!0)}if('undefined'!=typeof Y.defaultPrevented&&Y.defaultPrevented)return!1;if('submit'==aa.type&&!/^submit\./i.test(Oa)||ra&&!/^submit\./i.test(Oa))Oa='submit.'+
|
|
569
|
+
Oa,w.$forms[e.id].submitTrigger=e.submitTrigger=aa.id;'reset'!=aa.type||/^reset\./i.test(Oa)||(Oa='reset.'+Oa);gina.events[Oa]?(cancelEvent(Y),triggerEvent(gina,aa,Oa,Y.detail)):ra&&'undefined'!=typeof this.id&&''!=this.id&&'undefined'!=typeof gina.validator.$forms[this.id]&&(gina.validator.getFormById(this.id).submit(),cancelEvent(Y))}}})};F();N='validate.'+b;F=function(){addListener(gina,m,N,function(ha){cancelEvent(ha);var Y=e.eventData.error||e.eventData.validation||ha.detail;H(ha.target,Y.fields||
|
|
570
|
+
Y.error,Y.data);ha=ha.target.getAttribute('id');if('undefined'!=typeof Y.isValid&&Y.isValid()){var aa=w.$forms[ha].target.getAttribute('data-gina-form-inherits-data')||null;aa&&(Y.data=Q(Y.data,JSON.parse(decodeURIComponent(aa))));w.$forms[ha]?w.$forms[ha].send(Y.data):e&&e.send(Y.data)}})};'undefined'!=typeof gina.events[N]&&gina.events[N]=='validate.'+b&&removeListener(gina,e,N,F);F();cb=function(ha,Y){/^submit\./i.test(ha)||(ha='submit.'+ha);addListener(gina,Y,ha,function(aa){cancelEvent(aa);var ra=
|
|
571
|
+
{};aa={_length:0};var Oa=m.getAttribute('id'),Wa='undefined'!=typeof w.$forms[Oa]?w.$forms[Oa].rules:null;ra=fb(m,Wa);aa=ra.fields;ra=ra.$fields;Wa=w.$forms[Oa].rules;0==aa._length?(delete aa._length,aa={error:[],isValid:function(){return!0},data:Ua(aa)},triggerEvent(gina,m,'validate.'+b,aa)):(b=m.getAttribute('id'),k=(Wa=m.getAttribute('data-gina-form-rule'))?Ia(Wa.replace(/\-|\//g,'.')):Ia(b.replace(/\-/g,'.')),w.$forms[Oa].isSubmitting=!0,w.$forms[Oa].isSending=!1,da(m,aa,ra,k,function(gb){triggerEvent(gina,
|
|
572
|
+
m,'validate.'+b,gb)}))})};ba=null;h=[];ba=[];F=null;ba=m.getElementsByTagName('button');if(0<ba.length)for(let ha=0,Y=ba.length;ha<Y;++ha)'submit'==ba[ha].type&&h.push(ba[ha]);ba=m.getElementsByTagName('a');if(0<ba.length)for(let ha=0,Y=ba.length;ha<Y;++ha)ba[ha].attributes.getNamedItem('data-gina-form-submit')?h.push(ba[ha]):ba[ha].getAttribute('id')||/gina\-popin/.test(ba[ha].className)||gina.popinIsBinded||/gina\-link/.test(ba[ha].className)||(F='link.'+ia.v4(),ba[ha].id=F);F=null;fa=!1;for(let ha=
|
|
571
573
|
0,Y=h.length;ha<Y;++ha){ba=h[ha];if(/button/i.test(ba.tagName)&&'undefined'!=typeof ba.type&&/submit/i.test(ba.type)||/a/i.test(ba.tagName)&&'undefined'!=typeof ba.dataset.ginaFormSubmit&&/^true$/i.test(ba.dataset.ginaFormSubmit)||/a/i.test(ba.parentNode.tagName)&&'undefined'!=typeof ba.parentNode.dataset.ginaFormSubmit&&/^true$/i.test(ba.parentNode.dataset.ginaFormSubmit)){/a/i.test(ba.parentNode.tagName)&&(ba=ba.parentNode);if('undefined'==typeof ba.id||'undefined'!=typeof ba.id&&''==ba.id)ba.id=
|
|
572
|
-
'click.'+ia.v4(),ba.setAttribute('id',ba.id);/a/i.test(ba.tagName)&&'undefined'==typeof ba.form&&(ba.form={id:e.id});'undefined'==typeof ba.dataset.ginaFormSubmitTriggerFor&&'undefined'!=typeof
|
|
573
|
-
(
|
|
574
|
-
'text/html').getElementById(ra.submitTrigger))&&ra.disabled&&cancelEvent(ha);if('undefined'!=typeof ha.defaultPrevented&&ha.defaultPrevented)return!1;(
|
|
574
|
+
'click.'+ia.v4(),ba.setAttribute('id',ba.id);/a/i.test(ba.tagName)&&'undefined'==typeof ba.form&&(ba.form={id:e.id});'undefined'==typeof ba.dataset.ginaFormSubmitTriggerFor&&'undefined'!=typeof w.$forms[e.id]&&'undefined'==typeof w.$forms[e.id].submitTrigger&&'undefined'!=typeof ba.form.id&&e.id==ba.form.id&&(console.debug('attching submitTrigger: '+ba.id,' form id: '+e.id),w.$forms[e.id].submitTrigger=e.submitTrigger=ba.id||ba.getAttribute('id'),ba.dataset.ginaFormSubmitTriggerFor=e.id)}'A'==ba.tagName&&
|
|
575
|
+
(F=ba.getAttribute('onclick'),fa=ba.getAttribute('data-gina-form-submit'),F||fa?/return false/i.test(F)||fa||(F=/;$/.test(F)?F+'return false;':F+'; return false;'):ba.setAttribute('onclick','return false;'));ba.id?N=ba.id:(N='click.'+ia.v4(),ba.id=N,ba.setAttribute('id',N));'undefined'!=typeof gina.events[N]&&gina.events[N]==ba.id||cb(N,ba)}N='submit';addListener(gina,m,N,function(ha){var Y=ha.target,aa=Y.getAttribute('id'),ra=w.$forms[aa],Oa=e.binded;(ra=(new DOMParser).parseFromString(Y.innerHTML,
|
|
576
|
+
'text/html').getElementById(ra.submitTrigger))&&ra.disabled&&cancelEvent(ha);if('undefined'!=typeof ha.defaultPrevented&&ha.defaultPrevented)return!1;(u||Oa)&&cancelEvent(ha);ha={};Oa={_length:0};ra='undefined'!=typeof gina.validator.$forms[aa]?gina.validator.$forms[aa].rules:null;for(var Wa=null,gb=null,Pa=0,tb=Y.length;Pa<tb;++Pa)Wa=Y[Pa].getAttribute('name'),gb=Y[Pa].disabled||Y[Pa].getAttribute('disabled'),gb=/disabled|true/i.test(gb)?!0:!1,Wa&&!gb&&('undefined'!=typeof Y[Pa].type&&'radio'==Y[Pa].type||
|
|
575
577
|
'undefined'!=typeof Y[Pa].type&&'checkbox'==Y[Pa].type?Y[Pa].checked?/^(true|false)$/.test(Y[Pa].value)?Oa[Wa]=Y[Pa].value=/^true$/.test(Y[Pa].value)?!0:!1:Oa[Wa]=Y[Pa].value:ra&&'undefined'!=typeof ra[Wa]&&'undefined'!=typeof ra[Wa].isBoolean&&'checkbox'==Y[Pa].type&&!/^(true|false)$/.test(Y[Pa].value)&&(Oa[Wa]=!1):Oa[Wa]=Y[Pa].value,ha[Wa]=Y[Pa],ha[Wa].setAttribute('data-gina-form-errors',''));Oa._length=Oa.count();0==Oa._length?(delete Oa._length,ha={error:[],isValid:function(){return!0},data:Ua(Oa)},
|
|
576
|
-
'undefined'!=typeof gina.events['submit.'+aa]?triggerEvent(gina,Y,'submit.'+aa,ha):triggerEvent(gina,Y,'validate.'+aa,ha)):(k=(ra=Y.getAttribute('data-gina-form-rule'))?Ia(ra.replace(/\-|\//g,'.')):Ia(aa.replace(/\-/g,'.')),
|
|
578
|
+
'undefined'!=typeof gina.events['submit.'+aa]?triggerEvent(gina,Y,'submit.'+aa,ha):triggerEvent(gina,Y,'validate.'+aa,ha)):(k=(ra=Y.getAttribute('data-gina-form-rule'))?Ia(ra.replace(/\-|\//g,'.')):Ia(aa.replace(/\-/g,'.')),w.$forms[aa].isValidating=!0,da(Y,Oa,ha,k,function(jb){w.$forms[aa].isValidating=!1;'undefined'!=typeof gina.events['submit.'+aa]?triggerEvent(gina,Y,'submit.'+aa,jb):triggerEvent(gina,Y,'validate.'+aa,jb)}))});w.$forms[b].binded=!0;/^(true)$/i.test(e.target.dataset.ginaFormLiveCheckEnabled&&
|
|
577
579
|
0<e.rules.count())?(console.debug('silent validation mode on'),cb=fb(e.target,e.rules),da(e.target,cb.fields,cb.$fields,e.rules,function(ha){console.debug('silent validation result[isValid:'+ha.isValid()+']: ',ha);O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),window.ginaToolbar.update('forms',{id:b,errors:ha.error}));Ka(e,ha.isValid())})):/^(true)$/i.test(e.target.dataset.ginaFormLiveCheckEnabled)||Ka(e,!0)},Ka=function(m,h){$formInstance=
|
|
578
|
-
null;m instanceof HTMLFormElement?(m=m.getAttribute('id'),$formInstance=
|
|
579
|
-
document.getElementById($formInstance.submitTrigger)&&(/^true$/i.test(h)||!/^(true)$/i.test($formInstance.target.dataset.ginaFormLiveCheckEnabled)?document.getElementById($formInstance.submitTrigger).disabled=!1:document.getElementById($formInstance.submitTrigger).disabled=!0)},fb=function(m,h,e){'undefined'==typeof e&&(e=!1);var b={},p={},
|
|
580
|
-
typeof gina.validator.$forms[
|
|
581
|
-
'undefined'==typeof m[k].dataset.ginaFormSubmitTriggerFor&&'undefined'!=typeof
|
|
582
|
-
'checkbox'==m[k].type)if(m[k].checked||'undefined'==typeof h[
|
|
583
|
-
/^true$/.test(h[
|
|
580
|
+
null;m instanceof HTMLFormElement?(m=m.getAttribute('id'),$formInstance=w.$forms[m]):$formInstance=m;'undefined'==typeof $formInstance.submitTrigger&&/^(true)$/i.test($formInstance.target.dataset.ginaFormLiveCheckEnabled)?console.warn('This might be normal, so do not worry if this form is handled by your javascript: `'+$formInstance.id+'`\nGina could not complete `updateSubmitTriggerState()`: `submitTrigger` might not be attached to form instance `'+$formInstance.id+'`\nTo disable this warning, You just need to disable `Form Live Checking on your form by adding to your <form>: `data-gina-form-live-check-enabled=false``'):
|
|
581
|
+
document.getElementById($formInstance.submitTrigger)&&(/^true$/i.test(h)||!/^(true)$/i.test($formInstance.target.dataset.ginaFormLiveCheckEnabled)?document.getElementById($formInstance.submitTrigger).disabled=!1:document.getElementById($formInstance.submitTrigger).disabled=!0)},fb=function(m,h,e){'undefined'==typeof e&&(e=!1);var b={},p={},u=m.id||m.getAttribute('id');'undefined'==typeof h&&(h='undefined'!=typeof w.$forms[u].rules&&0<w.$forms[u].rules.count()?w.$forms[u].rules:null,h||'undefined'==
|
|
582
|
+
typeof gina.validator.$forms[u]||(h=gina.validator.$forms[u].rules));for(var k=0,N=m.length;k<N;++k){if(e)switch(m[k].tagName.toLowerCase()){case 'input':/^(hidden|text)$/i.test(m[k].type)&&(m[k].value=m[k].defaultValue)}if(/button/i.test(m[k].tagName)&&'undefined'!=typeof m[k].type&&/submit/i.test(m[k].type)||/a/i.test(m[k].tagName)&&'undefined'!=typeof m[k].dataset.ginaFormSubmit&&/^true$/i.test(m[k].dataset.ginaFormSubmit))/a/i.test(m[k].tagName)&&'undefined'==typeof m[k].form&&(m[k].form={id:u}),
|
|
583
|
+
'undefined'==typeof m[k].dataset.ginaFormSubmitTriggerFor&&'undefined'!=typeof w.$forms[u]&&'undefined'==typeof w.$forms[u].submitTrigger&&'undefined'!=typeof m[k].form.id&&u==m[k].form.id&&(w.$forms[u].submitTrigger=m[k].id||m[k].getAttribute('id'),m[k].dataset.ginaFormSubmitTriggerFor=u);var F=m[k].getAttribute('name');var Z=m[k].disabled||m[k].getAttribute('disabled');Z=/disabled|true/i.test(Z)?!0:!1;if(F&&!Z){if('undefined'!=typeof m[k].type&&'radio'==m[k].type||'undefined'!=typeof m[k].type&&
|
|
584
|
+
'checkbox'==m[k].type)if(m[k].checked||'undefined'==typeof h[F]&&'undefined'!=m[k].value&&/^(true|false)$/.test(m[k].value)||!m[k].checked&&'undefined'!=typeof h[F]&&'undefined'!=typeof h[F].isBoolean&&/^(true|false)$/.test(m[k].value))if(/^(true|false)$/.test(m[k].value))if('undefined'==typeof h[F]?h[F]={isBoolean:!0}:'undefined'!=typeof h[F]&&'undefined'==typeof h[F].isBoolean&&(h[F].isBoolean=!0,h[F].isRequired=!0),'radio'==m[k].type){if('undefined'==typeof h[F])throw Error('rule '+F+' is not defined');
|
|
585
|
+
/^true$/.test(h[F].isBoolean)&&m[k].checked&&(p[F]=/^true$/.test(m[k].value)?!0:!1)}else p[F]=m[k].value=/^true$/.test(m[k].value)?!0:!1;else p[F]=m[k].value;else h&&'undefined'!=typeof h[F]&&'undefined'!=typeof h[F].isBoolean&&'undefined'!=typeof h[F].isRequired&&!/^(true|false)$/.test(m[k].value)&&(p[F]=!1);else p[F]=m[k].value;'undefined'==typeof b[F]&&(b[F]=m[k],b[F].setAttribute('data-gina-form-errors',''))}}p._length=p.count()||0;return{$fields:b,fields:p,rules:h}},Hb=function(m,h,e,b){return'undefined'==
|
|
584
586
|
typeof m[e]||/^(null|NaN|undefined|\s*)$/i.test(h[e])?h[e]:'undefined'!=typeof m[e].isNumber||'undefined'!=typeof m[e].isInteger||'undefined'!=typeof m[e].isFloat||'undefined'!=typeof m[e].toFloat||'undefined'!=typeof m[e].toInteger?(/,/.test(h[e])&&(h[e]=h[e].replace(/,/g,'.').replace(/\s+/g,'')),h[e]):'boolean'==typeof h[e]?h[e]:m[e].isBoolean?/^true$/i.test(h[e])?!0:!1:'undefined'!=typeof b&&/^true$/i.test(b)?'\\"'+h[e]+'\\"':h[e]},Ub=function(m,h){'string'!=typeof m&&(m=JSON.stringify(JSON.clone(m)));
|
|
585
|
-
m=JSON.parse(m.replace(/"(true|false)"/gi,'$1'));for(let e in h)h[e]=Hb(m,h,e);return h},pc=function(m,h,e,b){var p=JSON.parse(m.replace(/"(true|false)"/gi,'$1')),
|
|
586
|
-
typeof p[b[Z]]?k=Hb(p,h,b[Z],!0):
|
|
587
|
-
b[Z]+'` to `string`.'),m=m.replace(N,k||e[b[Z]].checked);return JSON.parse(m)},da=function(m,h,e,b,p){delete h._length;var
|
|
588
|
-
(ma=Y.match(/\/(.*)\//).pop(),
|
|
589
|
-
(
|
|
590
|
-
typeof gina.events[
|
|
591
|
-
0<p._errors.count())){'undefined'==typeof
|
|
592
|
-
{}}));triggerEvent(gina,hb,'validated.'+qb,p);return}jb=!1;1==aa.length||aa[aa.length-1]==Ya?(lb=0<p._errors.count()?!1:!0,!lb&&/^true|false$/i.test(
|
|
593
|
-
!1;lb=Mb.isValid();O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),window.ginaToolbar.update('forms',{id:qb,errors:Mb.error||{}}));
|
|
594
|
-
Ya+'->'+Oa+'()`\nStack:\n'+jb);}}},
|
|
595
|
-
|
|
587
|
+
m=JSON.parse(m.replace(/"(true|false)"/gi,'$1'));for(let e in h)h[e]=Hb(m,h,e);return h},pc=function(m,h,e,b){var p=JSON.parse(m.replace(/"(true|false)"/gi,'$1')),u=JSON.stringify(p);b&&(h=e[Object.getOwnPropertyNames(e)[0]].form,e=fb(h,p),delete e.fields._length,h=e.fields,e=e.$fields);b=[];var k=0;for(N in h)b[k]=N,k++;b.sort().reverse();for(let Z=0,xa=b.length;Z<xa;Z++){var N=b[Z].replace(/\-|_|@|#|\.|\[|\]/g,'\\$&');N=new RegExp('\\$'+N,'g');k='\\"'+h[b[Z]]+'\\"';var F=N.test(u);F&&'undefined'!=
|
|
588
|
+
typeof p[b[Z]]?k=Hb(p,h,b[Z],!0):F&&console.warn('`'+b[Z]+'` is used in a dynamic rule without definition. This could lead to an evaluation error. Casting `'+b[Z]+'` to `string`.');m=m.replace(N,k)}if(/\$(.*)/.test(m))for(let Z=0,xa=b.length;Z<xa;Z++)N=b[Z].replace(/\-|_|@|#|\.|\[|\]/g,'\\$&'),N=new RegExp('\\$'+N,'g'),k=''!=e[b[Z]].value?'\\"'+e[b[Z]].value+'\\"':'\\"\\"',(F=N.test(u))&&'undefined'!=typeof p[b[Z]]?k=Hb(p,h,b[Z],!0):F&&console.warn('`'+b[Z]+'` is used in a dynamic rule without definition. This could lead to an evaluation error. Casting `'+
|
|
589
|
+
b[Z]+'` to `string`.'),m=m.replace(N,k||e[b[Z]].checked);return JSON.parse(m)},da=function(m,h,e,b,p){delete h._length;var u=JSON.stringify(b);h=Ub(u,h);/\$(.*)/.test(u)&&(b=!/^form$/i.test(m.tagName)&&1==e.count()&&/true/i.test(m.form.dataset.ginaFormLiveCheckEnabled)?!0:!1,b=pc(u,h,e,b));var k=null,N=u=null,F=!1,Z=0;h.count();var xa=!1,ba=null,qa=null,Aa=null,J=0,ma=null,ta=null,fa=null,ua=function(Ya,cb,ha){if('undefined'==typeof cb[Ya]){skipTest=!1;for(var Y in cb)if(!/^_comment$/i.test(Y)&&/^\//.test(Y)&&
|
|
590
|
+
(ma=Y.match(/\/(.*)\//).pop(),ta=Y.replace('/'+ma+'/',''),ma=ma.replace(/\[/g,'\\[').replace(/\]/g,'\\]'),ma=new RegExp(ma,ta),ma.test(Ya))){skipTest=!0;cb[Ya]=cb[Y];break}if('undefined'==typeof cb[Ya])return}var aa=Object.getOwnPropertyNames(cb)||[];Y=0;var ra=aa.length;if(0<ra)for(;Y<ra;)'undefined'!=typeof cb[aa[Y]].exclude&&/^true$/i.test(cb[aa[Y]].exclude)&&(aa.splice(Y,1),ra--,Y--),Y++;for(var Oa in cb[Ya])if('function'==typeof Da[Ya][Oa]){/^((is)\d+|is$)/.test(Oa)&&'undefined'==typeof Da[Ya][Oa]&&
|
|
591
|
+
(Da[Ya][Oa]=function(){},Da[Ya][Oa]=R(Da[Ya][Oa],Da[Ya][Oa.replace(/\d+/,'')]),Da[Ya][Oa].setAlias=function(jb){this._currentValidatorAlias=jb}(Oa));try{if(Array.isArray(cb[Ya][Oa])){fa=JSON.clone(cb[Ya][Oa]);if(/\$[\-\w\[\]]*/.test(fa[0])){var Wa=fa[0].match(/\$[\-\w\[\]]*/g);Y=0;for(var gb=Wa.length;Y<gb;++Y)fa[0]=fa[0].replace(Wa[Y],Da[Wa[Y].replace('$','')].value)}Da[Ya][Oa].apply(Da[Ya],fa)}else if(/^query$/.test(Oa)){ba=e[Ya];qa=ba.getAttribute('id');Aa='asyncCompleted.'+qa;var Pa=0,tb=!1;if('undefined'!=
|
|
592
|
+
typeof gina.events[Aa]){console.debug('event `'+Aa+'` already added');J=0;break}++J;addListener(gina,ba,Aa,function(jb){jb.preventDefault();Pa++;--J;var eb=Object.getOwnPropertyNames(cb[Ya]);eb[eb.length-1]==Oa&&(xa=!0);eb='asyncCompleted.'+jb.target.getAttribute('id');if(!/true/.test(tb)){Da[Ya]=jb.detail;var hb=m;/^form$/i.test(m.tagName)||(hb=m.form);var qb=hb.getAttribute('id'),lb=null;if(xa&&0>=J&&!tb&&(tb=!0,removeListener(gina,jb.target,eb),p._data=Da.toData(),p._errors=Da.getErrors(Ya),p._errors&&
|
|
593
|
+
0<p._errors.count())){'undefined'==typeof w.$forms[qb].errors&&(w.$forms[qb].errors={});'undefined'!=typeof p._errors[Ya]&&(w.$forms[qb].errors[Ya]=p._errors[Ya]);console.debug('[A] Refreshing warning/error on field '+Ya);if(!lb&&/^true|false$/i.test(w.$forms[qb].isValidating)||''!=Da[Ya].target.value)x(yb[Ya]),H(hb,p._errors,p._data,Ya),Ka(hb,lb);O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),window.ginaToolbar.update('forms',{id:qb,errors:w.$forms[qb].errors||
|
|
594
|
+
{}}));triggerEvent(gina,hb,'validated.'+qb,p);return}jb=!1;1==aa.length||aa[aa.length-1]==Ya?(lb=0<p._errors.count()?!1:!0,!lb&&/^true|false$/i.test(w.$forms[qb].isValidating)&&(console.debug('[1] Should update error display now ',p._errors),w.$forms[qb].errors=Q(p._errors,w.$forms[qb].errors),x(yb[Ya]),H(hb,p._errors,p._data,Ya),Ka(hb,lb)),triggerEvent(gina,hb,'validated.'+qb,p)):/^true$/i.test(w.$forms[qb].isValidating)&&1<aa.length&&aa[aa.length-1]!=Ya&&(jb=!0);jb&&da(hb,sb,yb,cb,function(Mb){w.$forms[qb].isValidating=
|
|
595
|
+
!1;lb=Mb.isValid();O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),window.ginaToolbar.update('forms',{id:qb,errors:Mb.error||{}}));H(hb,Mb.error,Mb.data,Ya);Ka(hb,lb)})}});Da[Ya][Oa](cb[Ya][Oa]);continue}else Da[Ya][Oa](cb[Ya][Oa]);delete ha[Ya]}catch(jb){if('conditions'==Oa)throw Error('[ ginaFormValidator ] could not evaluate `'+Ya+'->'+Oa+'()` where `conditions` must be a `collection` (Array)\nStack:\n'+jb);throw Error('[ ginaFormValidator ] could not evaluate `'+
|
|
596
|
+
Ya+'->'+Oa+'()`\nStack:\n'+jb);}}},Da=null,Ta={},ab=!1;S?/^form$/i.test(m.tagName)?(k=m.getAttribute('id'),u='validated.'+k,w.$forms[k].fields=h,'undefined'!=typeof m.eventData&&'undefined'!=typeof m.eventData.error&&delete m.eventData.error,Da=new r(h,e,B)):(ab=!0,k=m.form.getAttribute('id')||m.form.target.getAttribute('id'),u='validated.'+k,w.$forms[k].fields=h,Da=new r(h,e,B,w.$forms[k].fieldsSet)):Da=new r(h,null,B);var sb=null,yb=null;if(ab){ab=m.form.getAttribute('id');var Fb=fb(w.$forms[ab].target,
|
|
597
|
+
w.$forms[ab].rules,!1);sb=Ub(JSON.stringify(w.$forms[ab].rules),JSON.clone(Fb.fields));yb=Fb.$fields}else sb=JSON.clone(h),yb=e;ab='undefined'!=typeof b?JSON.clone(b):{};var mb=function(Ya,cb,ha,Y,aa,ra,Oa,Wa){var gb=null;if('undefined'!=typeof ra)for(var Pa in Y){var tb=aa[Pa].getAttribute('type');if(S&&'undefined'==typeof aa[Pa])console.warn('field `'+Pa+'` found for your form rule ('+Ya.id+'), but not found in $field collection.\nPlease, check your HTML or remove `'+Pa+'` declaration from your rule if this is a mistake.');
|
|
596
598
|
else{S&&aa[Pa].getAttribute('data-gina-form-element-group')&&'undefined'!=typeof ra[Pa]&&'undefined'!=typeof ra[Pa].exclude&&ra[Pa].exclude&&!aa[Pa].disabled&&(ra[Pa].exclude=!1);var jb='undefined'!=typeof ra['_case_'+Pa]?!0:!1;if(S&&'input'==aa[Pa].tagName.toLowerCase()&&/^(checkbox)$/i.test(tb))if(!aa[Pa].checked&&'undefined'!=typeof ra[Pa]&&'undefined'!=typeof ra[Pa].isRequired&&/^(false)$/i.test(ra[Pa].isRequired)||aa[Pa].disabled)ra[Pa]={exclude:!0};else{if(!aa[Pa].checked&&'undefined'==typeof ra[Pa])continue}else S&&
|
|
597
599
|
'input'==aa[Pa].tagName.toLowerCase()&&/^(radio)$/i.test(tb)&&console.debug('Radio: ',aa[Pa].id,aa[Pa].checked,aa[Pa].value);for(var eb in ra)if(/^_case_/.test(eb)&&'undefined'!=typeof ra[eb].conditions&&(!Array.isArray(ra[eb].conditions)||ra[eb].conditions.length)&&'undefined'!=typeof ra[eb].conditions[0].rules&&'undefined'!=typeof ra[eb].conditions&&Array.isArray(ra[eb].conditions))if(gb=eb.replace('_case_',''),'undefined'==typeof yb[gb])console.warn('Found case `'+eb+'` but field `'+gb+'` is misssing in the dom.\n You should add `'+
|
|
598
600
|
gb+'` element to your form in order to allow Validator to process this case.');else{'undefined'==typeof cb[gb]&&(cb[gb]=yb[gb].value);tb=cb[gb];S&&('true'==Y[Pa]?tb=!0:'false'==Y[Pa]&&(tb=!1));for(var hb=0,qb=ra[eb].conditions.length;hb<qb;++hb)if(!(Array.isArray(ra[eb].conditions[hb].case)&&-1==ra[eb].conditions[hb].case.indexOf(tb)||!Array.isArray(ra[eb].conditions[hb].case)&&ra[eb].conditions[hb].case!=tb))for(var lb in ra[eb].conditions[hb].rules)if(!/^_comment$/i.test(lb)&&lb!=gb&&aa[lb])if(Pa==
|
|
599
|
-
lb||/^\//.test(lb)||'undefined'!=typeof Y[lb]||'undefined'==typeof cb[lb])if(/^\//.test(lb)){if(ma=lb.match(/\/(.*)\//).pop(),
|
|
601
|
+
lb||/^\//.test(lb)||'undefined'!=typeof Y[lb]||'undefined'==typeof cb[lb])if(/^\//.test(lb)){if(ma=lb.match(/\/(.*)\//).pop(),ta=lb.replace('/'+ma+'/',''),ma=ma.replace(/\[/g,'\\[').replace(/\]/g,'\\]'),ma=new RegExp(ma,ta),ma.test(Pa)){if(ra[eb].conditions[hb].case==tb||/^\//.test(ra[eb].conditions[hb].case)&&(new RegExp(ra[eb].conditions[hb].case)).test(tb))Mb='undefined'!=typeof ra[lb]?ra[lb]:{},ra[lb]=Q(ra[eb].conditions[hb].rules[lb],Mb);gb!=lb&&'undefined'!=typeof ra[lb]&&ua(lb,ra,Y)}}else'undefined'!=
|
|
600
602
|
typeof ra[eb].conditions[hb].rules[lb]&&(caseField=lb,tb=Y[caseField],'undefined'==typeof aa[caseField]?console.warn('ignoring case `'+caseField+'`: field `NaN'):(S&&/^(true|false)$/i.test(tb)&&'undefined'!=typeof ra[caseField]&&'undefined'!=typeof ra[caseField].isBoolean&&/^(true)$/i.test(ra[caseField].isBoolean)&&(tb=/^(true)$/i.test(tb)?!0:!1),'undefined'!=typeof ra[eb].conditions[hb].rules[lb]&&(Mb='undefined'!=typeof ra[eb].conditions[hb].rules[lb]?ra[eb].conditions[hb].rules[lb]:{},ra[lb]=Mb),
|
|
601
|
-
gb!=lb&&'undefined'!=typeof ra[lb]&&'undefined'!=typeof Y[lb]&&
|
|
602
|
-
tb=!0:'false'==Y[Pa]&&(tb=!1)),jb[Kb]['case']===tb||Array.isArray(jb[Kb]['case'])&&-1<jb[Kb]['case'].indexOf(tb)||/^\//.test(jb[Kb]['case'])){Mb={};if('undefined'==typeof jb[Kb].rules[Pa]&&'undefined'==typeof cb[Pa]||aa[Pa].disabled)jb[Kb].rules[Pa]={exclude:!0};for(var Eb in jb[Kb].rules)if(!/^_comment$/i.test(Eb))if(/^\//.test(Eb)){ma=Eb.match(/\/(.*)\//).pop();
|
|
603
|
-
(ma=jb[Kb]['case'].match(/\/(.*)\//).pop(),
|
|
604
|
-
|
|
605
|
-
ha,Y,aa,Mb,Oa,Wa)}--Wa}}}--Z;if(0>=Wa&&0>Z){cb=
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
define('gina/toolbar','require jquery vendor/uuid lib/collection lib/routing gina/storage gina/validator'.split(' '),function(A){var
|
|
609
|
-
null,La=null,Ia=null,Ua=null,Qa=null,Ha=null,Ja=null,Za=function(){
|
|
610
|
-
La=
|
|
611
|
-
position:'top-right',width:'30',panelId:'#gina-toolbar-data',isCollapsed:!0,isUnfolded:[],debug:{forms:{active:!1,strategy:'frontend'}}},
|
|
612
|
-
pb()},rb=function(p,
|
|
613
|
-
delete
|
|
614
|
-
Ia.html(Ub(Z,ba,null,qa,Ia)),N=$forms,Ua.html(''),Ua.html(da(k,
|
|
615
|
-
/^(data-xhr)$/.test(p)?La.html('<ul class="gina-toolbar-code">'+fb(la[p],
|
|
616
|
-
qa)),Ua.find('div.gina-toolbar-section > h2').off('click').on('click',function(
|
|
617
|
-
0<
|
|
618
|
-
|
|
619
|
-
Na.add(Ia).off('click','a').on('click','a',function(
|
|
620
|
-
ca.off('click').on('click',function(
|
|
621
|
-
|
|
622
|
-
pa&&'undefined'!=typeof
|
|
623
|
-
p)},zb=function(p){
|
|
624
|
-
p&&p.length&&'all'!=p){S=p.attr('class');var N=!1;if(/(gina-toolbar-folding-state-[a-z 0-9_-]+|gina-toolbar-xhr-folding-state-[a-z 0-9_-]+)/i.test(S))if(/gina-toolbar-folding-state-[a-z0-9_-]+/i.test(S)?S=S.match(/gina-toolbar-folding-state-[a-z0-9_-]+/i)[0].replace(/gina-toolbar-folding-state-/,''):(N=!0,'undefined'!=typeof S&&(S=S.match(/gina-toolbar-xhr-folding-state-[a-z0-9_-]+/i)[0].replace(/gina-toolbar-xhr-folding-state-/,'xhr-'))),0>
|
|
625
|
-
(p.addClass('gina-toolbar-unfolded'),p.next('ul').slideToggle('fast'));else if(-1<
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
ba+'-folding-state-'+Ka(
|
|
629
|
-
(Z+='<li class="gina-toolbar-key-value gina-toolbar-is-overridden">',Z+='<span class="gina-toolbar-key">'+qa+':</span> <span class="gina-toolbar-value">'+
|
|
630
|
-
Z+='<a href="#" class="gina-toolbar-key gina-toolbar'+ba+'-folding-state-'+Ka(
|
|
631
|
-
Array.isArray(p[qa])?Array.isArray(p[qa])?(k+='-'+qa,''==
|
|
632
|
-
(
|
|
633
|
-
if('object'!=typeof p[ba]||Array.isArray(p[ba])||null===p[ba])if(Array.isArray(p[ba])){var
|
|
634
|
-
k.substring(0,k.length-1)),qa)+'</ul></li>')):(
|
|
635
|
-
ba.length-1)}else if(qa=null===
|
|
636
|
-
ba+':</span> <span class="gina-toolbar-value">'+
|
|
637
|
-
qa+'">'+p[ba]+'</span></li>'):Z.find('ul.'+k.substring(0,k.length-1)).append('<li class="gina-toolbar-key-value"><span class="gina-toolbar-key">'+ba+':</span> <span class="gina-toolbar-value gina-toolbar-value-type-is-'+qa+'">'+p[ba]+'</span></li>');else
|
|
638
|
-
|
|
639
|
-
1)+'</h2><ul class="'+k.substring(0,k.length-1)+'"></ul></div>',
|
|
640
|
-
gina.hasPopinHandler?gina.popin.getActivePopin():null;var
|
|
641
|
-
|
|
642
|
-
(
|
|
643
|
-
(
|
|
644
|
-
ma+':</span><span class="gina-toolbar-value">'+
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
La.html(p);W.text('');La.find('input').off('change').on('change',function(k){var N=
|
|
649
|
-
break;case /gina/.test(k.name):
|
|
603
|
+
gb!=lb&&'undefined'!=typeof ra[lb]&&'undefined'!=typeof Y[lb]&&ua(lb,ra,Y)));else{Y[lb]=cb[lb];var Mb='undefined'!=typeof ra[lb]?ra[lb]:{};ra[lb]=Q(ra[eb].conditions[hb].rules[lb],Mb);ua(lb,ra,Y)}}if(gb!=Pa&&('undefined'!=typeof ra[Pa]&&ua(Pa,ra,cb),jb)){++Wa;jb=ra['_case_'+Pa].conditions;if(!jb)throw Error('[ ginaFormValidator ] case `_case_'+Pa+'` found without `condition(s)` !\nPlease, check your delcaration for `_case_'+Pa+'`');for(let Kb=0,Zb=jb.length;Kb<Zb;++Kb)if(tb=cb[Pa],S&&('true'==Y[Pa]?
|
|
604
|
+
tb=!0:'false'==Y[Pa]&&(tb=!1)),jb[Kb]['case']===tb||Array.isArray(jb[Kb]['case'])&&-1<jb[Kb]['case'].indexOf(tb)||/^\//.test(jb[Kb]['case'])){Mb={};if('undefined'==typeof jb[Kb].rules[Pa]&&'undefined'==typeof cb[Pa]||aa[Pa].disabled)jb[Kb].rules[Pa]={exclude:!0};for(var Eb in jb[Kb].rules)if(!/^_comment$/i.test(Eb))if(/^\//.test(Eb)){ma=Eb.match(/\/(.*)\//).pop();ta=Eb.replace('/'+ma+'/','');ma=ma.replace(/\[/g,'\\[').replace(/\]/g,'\\]');ma=new RegExp(ma,ta);for(var Ib in aa)ma.test(Ib)&&(/^\//.test(jb[Kb]['case'])?
|
|
605
|
+
(ma=jb[Kb]['case'].match(/\/(.*)\//).pop(),ta=jb[Kb]['case'].replace('/'+ma+'/',''),ma=new RegExp(ma,ta),ma.test(tb)&&(Mb[Ib]=jb[Kb].rules[Eb])):Mb[Ib]=jb[Kb].rules[Eb],'undefined'==typeof Y[Ib]&&'undefined'!=typeof aa[Ib]&&'undefined'!=typeof aa[Ib].value&&(Y[Ib]=aa[Ib].value,S&&/(true|false)/i.test(Y[Ib])&&('true'==Y[Ib]?Y[Ib]=!0:'false'==Y[Ib]&&(Y[Ib]=!1)),Da.addField(Ib,Y[Ib]),'undefined'!=typeof ha[Ib]&&(Mb[Ib]=Q(Mb[Ib],ha[Ib]))))}else/^\//.test(jb[Kb]['case'])?(ma=jb[Kb]['case'].match(/\/(.*)\//).pop(),
|
|
606
|
+
ta=jb[Kb]['case'].replace('/'+ma+'/',''),ma=ma.replace(/\[/g,'\\[').replace(/\]/g,'\\]'),ma=new RegExp(ma,ta),ma.test(tb)&&(Mb[Eb]=jb[Kb].rules[Eb])):Mb[Eb]=jb[Kb].rules[Eb],'undefined'==typeof Y[Eb]&&'undefined'!=typeof aa[Eb]&&'undefined'!=typeof aa[Eb].value&&(Y[Eb]=aa[Eb].value,S&&/(true|false)/i.test(Y[Eb])&&('true'==Y[Eb]?Y[Eb]=!0:'false'==Y[Eb]&&(Y[Eb]=!1)),Da.addField(Eb,Y[Eb]),'undefined'!=typeof ha[Eb]&&(Mb[Eb]=Q(Mb[Eb],ha[Eb])));++Z;if(S)mb(Ya,cb,ha,Y,aa,Mb,Oa,Wa);else return mb(Ya,cb,
|
|
607
|
+
ha,Y,aa,Mb,Oa,Wa)}--Wa}}}--Z;if(0>=Wa&&0>Z){cb=Da.getErrors();for(Pa in cb){for(rule in cb[Pa])Ta[Pa]||(Ta[Pa]=''),0>Ta[Pa].indexOf(rule)&&(Ta[Pa]+=rule+' ');S&&aa[Pa].setAttribute('data-gina-form-errors',Ta[Pa].substring(0,Ta[Pa].length-1))}try{N=Ua(Da.toData()),O&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.validated||(gina.forms.validated={}),gina.forms.validated[k]||(gina.forms.validated[k]={}),window.ginaToolbar.update('forms',{id:k,validated:N}))}catch(Kb){throw Kb;
|
|
608
|
+
}xa=!0;if(!F&&0>=J)if('undefined'!=typeof Oa&&'function'===typeof Oa)Oa._errors=Da.getErrors(),Oa._data=Da.toData(),triggerEvent(gina,Ya,'validated.'+k,Oa);else return F=!0,{isValid:Da.isValid,error:cb,data:N}}};S&&addListener(gina,m,u,function(Ya){Ya.preventDefault();if(!F){F=!0;xa=!1;J=0;var cb=Ya.detail,ha=cb._data||Da.toData(),Y=cb._errors||Da.getErrors()||null;console.debug('instance errors: ',w.$forms[k].errors,' VS cbErrors: ',Y,Da.isValid(),' VS d.getErrors(): ',Da.getErrors());0<Y.count()&&
|
|
609
|
+
Da.isValid()&&(Da.isValid=function(){return!1});cb({isValid:Da.isValid,error:Y,data:Ua(ha)});removeListener(gina,Ya.target,'validated.'+Ya.target.id)}});if(S)mb(m,sb,ab,h,e,b,p,0);else return mb(m,sb,ab,h,e,b,p,0)};return S?Na(A):D(A,P,V)}'undefined'!==typeof module&&module.exports?module.exports=ValidatorPlugin:'function'===typeof define&&define.amd&&define('gina/validator',['utils/events','utils/dom','utils/effects','utils/data','lib/form-validator'],function(){return ValidatorPlugin});
|
|
610
|
+
define('gina/toolbar','require jquery vendor/uuid lib/collection lib/routing gina/storage gina/validator'.split(' '),function(A){var P=A('jquery');P.noConflict();var V=A('lib/routing');A('lib/collection');var ka=A('gina/storage');return function(){var S=null,O=!1,ia=!1,Q=!1,R,r=(new ka({bucket:'gina'})).Collection('plugin'),G=null,w=null,va=!1,Fa=null,U=null,I=null,B=null,D=null,n='',y=null,z=null,E=null,x='',v=null,H=0,M=0,T=0,pa='',Ea={},W=null,ja=null,ca=null,wa=null,la=null,za=null,Ba=null,Na=
|
|
611
|
+
null,La=null,Ia=null,Ua=null,Qa=null,Ha=null,Ja=null,Za=function(){G=P('#gina-toolbar');if(!G.length)return!1;Fa=G.find('.gina-toolbar-tab > a');U=P('#gina-toolbar-toggle');I=P('#gina-toolbar-panels');B=I.find('.gina-toolbar-panel');y=P('#gina-toolbar-vposition');z=P('#gina-toolbar-hposition');E=y.add(z);v=P('#gina-toolbar-width');G.find('.gina-toolbar-main');W=P('#gina-toolbar-json');ja=P('#gina-toolbar-gina-json');ca=P('#gina-toolbar-toggle-code-raw');$forms=P('form:not(.gina-toolbar-options, .gina-toolbar-content)');
|
|
612
|
+
La=P('#gina-toolbar-data-html');Ia=P('#gina-toolbar-view-html');Ua=P('#gina-toolbar-forms-html');Na=P('#gina-toolbar-configuration-environment-html');Qa=P('#gina-toolbar-code-toggle');G.prepend('<textarea class="gina-toolbar-copy"></textarea>');Ha=G.find('.gina-toolbar-copy');w=r.findOne({_name:'toolbar'});w||(w={_name:'toolbar',_version:'1.0.3',_description:'Toolbar settings',_licence:'MIT',_author:[{name:'Fabrice Delaneau',company:'Freelancer'},{name:'Martin-Luther Etouman',company:'Rhinostone'}],
|
|
613
|
+
position:'top-right',width:'30',panelId:'#gina-toolbar-data',isCollapsed:!0,isUnfolded:[],debug:{forms:{active:!1,strategy:'frontend'}}},r.insert(w),w=r.findOne({_name:'toolbar'}));'1.0.3'!=w._version&&('1.0.1'>w._version&&(w.isUnfolded||(w.isUnfolded=[]),void 0!=w.codeFolding&&delete w.codeFolding),'undefined'==typeof w.isUnfolded||Array.isArray(w.isUnfolded)||(w.isUnfolded=[]),w._version='1.0.3',w.save(!0));x=w.position;H=w.width;n=w.panelId;va=w.isCollapsed;G.removeClass('gina-toolbar-hidden');
|
|
614
|
+
pb()},rb=function(p,u,k){var N=null,F=null;try{F=W?W.text():'',''==F||'null'==F?W.text('{}'):(la=JSON.parse(F),Ba=JSON.parse(ja.text()),W.text(''),wa||(wa={jsonObject:JSON.clone(la),ginaJsonObject:JSON.clone(Ba)},za={}))}catch(J){console.error('Could not load ['+(p?' [ '+p+' ] ':' ')+'] json\n'+J.message+'\n'+J.stack);return}if(la){u&&!k?(la[p]||(la[p]={}),la[p]=Ba[p]=u):'data-xhr'==p&&!u&&la['data-xhr']?delete la['data-xhr']:k&&(la=u,Ba=k);b(la,'');Ba.environment&&(delete Ba.environment.routing,
|
|
615
|
+
delete Ba.environment.reverseRouting,delete Ba.environment.forms);la.environment&&(delete la.environment.routing,delete la.environment.reverseRouting,delete la.environment.forms);Na.html(fb(la.environment,Ba.environment));N=la.data;var Z=la.view;k=la.forms;var xa=Ba.data,ba=Ba.view;F=Ba.forms;ia=R=!1;var qa=null,Aa=!1;/^(view-xhr)$/.test(p)&&(qa=!0,Z=la[p],ba=Ba[p],N=la['data-xhr'],xa=Ba['data-xhr']);if(!p||/^(data)$/.test(p))La.html('<ul class="gina-toolbar-code">'+fb(N,xa,null,qa)+'</ul>'),Ia.html('<div id="gina-toolbar-view-html-properties" class="gina-toolbar-section">\n <h2 class="gina-toolbar-section-title">properties</h2>\n <ul class="gina-toolbar-properties"></ul>\n</div>'),
|
|
616
|
+
Ia.html(Ub(Z,ba,null,qa,Ia)),N=$forms,Ua.html(''),Ua.html(da(k,F,Ua,0,N,N.length,qa)),Ua.find('div.gina-toolbar-section > h2').off('click').on('click',function(J){J.preventDefault();P(this).parent().find('ul').first().slideToggle()});if(/^(data-xhr|view-xhr)$/.test(p)){if('undefined'==typeof la[p]||!la[p]||'null'==la[p])return!1;qa=!0;Aa='undefined'!=typeof la[p].isXHRViewData?!0:Aa;Aa||/^(view-xhr)$/.test(p)||'undefined'==typeof la['el-xhr']||(za.data=JSON.clone(la[p]));Aa&&delete la[p].isXHRViewData;
|
|
617
|
+
/^(data-xhr)$/.test(p)?La.html('<ul class="gina-toolbar-code">'+fb(la[p],Ba[p],null,qa)+'</ul>'):/^(view-xhr)$/.test(p)&&(Ia.html('<div id="gina-toolbar-view-html-properties" class="gina-toolbar-section">\n <h2 class="gina-toolbar-section-title">properties</h2>\n <ul class="gina-toolbar-properties"></ul>\n</div>'),Ia.html(Ub(la[p],Ba[p],null,qa,Ia)))}/^(el-xhr)$/.test(p)&&(qa=!0,N=P('#'+u).find('form:not(.gina-toolbar-options, .gina-toolbar-content)'),Ua.html(''),Ua.html(da(k,F,Ua,0,N,N.length,
|
|
618
|
+
qa)),Ua.find('div.gina-toolbar-section > h2').off('click').on('click',function(J){J.preventDefault();P(this).parent().find('ul').first().slideToggle()}));/^(forms)$/.test(p)&&(ia=qa=!0,P('#gina-toolbar-form-'+u.id).length||(N=$forms,Ua.html(''),Ua.html(da(k,F,Ua,0,N,N.length,qa)),Ua.find('div.gina-toolbar-section > h2').off('click').on('click',function(J){J.preventDefault();P(this).parent().find('ul').first().slideToggle()})),'undefined'!=typeof u.rules&&m(u.id,'rules',u.rules,qa),'undefined'!=typeof u.errors&&
|
|
619
|
+
0<u.errors.count()&&m(u.id,'errors',u.errors,qa),'undefined'!=typeof u.sent&&m(u.id,'sent',u.sent,qa));w.currentFile=la.file;w.currentFile||(w.currentFile=la.file);la.file==w.currentFile&&P(document).ready(function(){ia?(O=!0,0<w.isUnfolded.length&&!R&&(R=!0,setTimeout(function(){0<w.isUnfolded.length&&$a(w.isUnfolded,w.isUnfolded.length,0)},200))):qa?(O=!0,0<w.isUnfolded.length&&!R&&(R=!0,$a(w.isUnfolded,w.isUnfolded.length,0))):(O=!1,setTimeout(function(){0<w.isUnfolded.length&&$a(w.isUnfolded,
|
|
620
|
+
w.isUnfolded.length,0)},200))})}if(!p||'el-xhr'==p&&!Q)Q=p&&'el-xhr'==p?!0:!1,pc(p)},$a=function(p,u,k){if(k==u)return!1;var N=p[k],F=null;O&&/^xhr-/.test(N)?(N=N.replace(/^xhr-/,''),F=P('.gina-toolbar-xhr-folding-state-'+N)):F=P('.gina-toolbar-folding-state-'+N);Ab(F,function(){k+=1;$a(p,u,k)})},pb=function(){La.add(Ia).off('click','a').on('click','a',function(u){u.preventDefault();Ab(P(this),null,!0)}).add(Ua).off('click','a').on('click','a',function(u){u.preventDefault();Ab(P(this),null,!0)});
|
|
621
|
+
Na.add(Ia).off('click','a').on('click','a',function(u){u.preventDefault();Ab(P(this),null,!0)}).add(Ua).off('click','a').on('click','a',function(u){u.preventDefault();Ab(P(this),null,!0)});Qa.off('click').on('click',function(u){u.preventDefault();Ab('all',null,!0)});La.add(Ia,Ua).off('click','.gina-toolbar-value').on('click','.gina-toolbar-value',function(u){u.preventDefault();try{Ja=P(this).text(),Ha.text(Ja),Ha.select(),document.execCommand('copy',!1,null),Ha.blur()}catch(k){alert('Please press Ctrl/Cmd+C to copy the value')}});
|
|
622
|
+
ca.off('click').on('click',function(u){la&&window.open('','JSON RAW','width=400,height=100').document.write(JSON.stringify(la.data))});Fa.off('click').on('click',function(u){u.preventDefault();Fa.removeClass('gina-toolbar-active');B.removeClass('gina-toolbar-active');P(this).addClass('gina-toolbar-active');n=P(this).attr('href');D=P(n).addClass('gina-toolbar-active');w.panelId=n;w.save()});U.off('click').on('click',function(u){u.preventDefault();G.toggleClass('gina-toolbar-collapsed');va=G.hasClass('gina-toolbar-collapsed');
|
|
623
|
+
w.isCollapsed=va;w.save()});E.off('change').on('change',function(u){u.preventDefault();u=y.val();var k=z.val();x=u+'-'+k;Vb(x);w.position=x;w.save()});v.off('change').on('change',function(u){u.preventDefault();H=v.val();zb(H);w.width=H;w.save()});P(window).off('resize').on('resize',function(){nb()});P('body').off('keypress').on('keypress',function(u){if(!/INPUT|TEXTAREA/.test(u.target.tagName)){pa=u.keyCode?u.keyCode:u.which?u.which:u.charCode;u=new Date;if('undefined'!=typeof Ea.keynum&&Ea.keynum==
|
|
624
|
+
pa&&'undefined'!=typeof Ea.pressTime&&500>u.getTime()-Ea.pressTime)switch(pa){case 103:G.toggle()}Ea.pressTime=u.getTime();Ea.keynum=pa}});Fa.filter('[href="'+n+'"]').trigger('click');va||P('#gina-toolbar-toggle').trigger('click');Vb(x);var p=x.split('-');y.val(p[0]);z.val(p[1]);zb(H);v.val(H);nb();p=W?W.text():'';/^\{\{ (.*) \}\}/.test(p)?e(p,rb):rb()},Vb=function(p){G.removeClass('gina-toolbar-top-left gina-toolbar-top-right gina-toolbar-bottom-left gina-toolbar-bottom-right').addClass('gina-toolbar-'+
|
|
625
|
+
p)},zb=function(p){G.removeClass('gina-toolbar-auto gina-toolbar-100 gina-toolbar-80 gina-toolbar-60 gina-toolbar-50 gina-toolbar-40 gina-toolbar-30').addClass('gina-toolbar-'+p)},nb=function(){M=window.innerHeight-32;G.find('.gina-toolbar-main').css('max-height',M+'px');var p=D.find('.gina-toolbar-main'),u=p.find('.gina-toolbar-content');T=p.height();T==M?u.addClass('gina-toolbar-content-end'):u.removeClass('gina-toolbar-content-end')},Ab=function(p,u,k){'undefined'==typeof k&&(k=!1);if(void 0!=
|
|
626
|
+
p&&p.length&&'all'!=p){S=p.attr('class');var N=!1;if(/(gina-toolbar-folding-state-[a-z 0-9_-]+|gina-toolbar-xhr-folding-state-[a-z 0-9_-]+)/i.test(S))if(/gina-toolbar-folding-state-[a-z0-9_-]+/i.test(S)?S=S.match(/gina-toolbar-folding-state-[a-z0-9_-]+/i)[0].replace(/gina-toolbar-folding-state-/,''):(N=!0,'undefined'!=typeof S&&(S=S.match(/gina-toolbar-xhr-folding-state-[a-z0-9_-]+/i)[0].replace(/gina-toolbar-xhr-folding-state-/,'xhr-'))),0>w.isUnfolded.indexOf(S))w.isUnfolded.push(S),w.save(),p.hasClass('gina-toolbar-unfolded')||
|
|
627
|
+
(p.addClass('gina-toolbar-unfolded'),p.next('ul').slideToggle('fast'));else if(-1<w.isUnfolded.indexOf(S)&&p.hasClass('gina-toolbar-unfolded')){for(var F=new RegExp('^('+S+')'),Z=0,xa=w.isUnfolded.length;Z<xa;++Z)F.test(w.isUnfolded[Z])&&(!ia&&k||ia&&N||k)&&(w.isUnfolded.splice(Z,1),--Z);w.save(!0);0>w.isUnfolded.indexOf(S)&&(p.removeClass('gina-toolbar-unfolded'),p.next('ul').slideToggle('fast'))}else p.addClass('gina-toolbar-unfolded'),p.next('ul').slideToggle('fast')}'undefined'!=typeof u&&null!=
|
|
628
|
+
u&&u()},ub=function(p){var u={},k=null,N=[],F=0;for(k in p)p.hasOwnProperty(k)&&(N[F]=k,++F);var Z=N.length;N.sort();for(F=0;F<Z;++F)k=N[F],u[k]=p[k];return u},Ka=function(p,u){var k='';if('undefined'!=typeof p&&''!=p){var N=p;'string'==typeof p&&(N=p.replace(/(\]\[|\[)/g,'-').replace(/\]/,'').replace(/[^A-Za-z0-9_-]/g,'_'));k+=N+'-'}'undefined'!=typeof u&&''!=u?(p=u,'string'==typeof u&&(p=u.replace(/(\]\[|\[)/g,'-').replace(/\]/,'')),k+=p):k=k.substring(0,k.length-1);return k.trim()},fb=function(p,
|
|
629
|
+
u,k,N,F){var Z='';k='undefined'!=typeof k&&null!=k?k.replace(/[^A-Za-z0-9_-]/g,'_'):'';var xa='undefined'!=typeof F&&null!=F?F:'',ba='undefined'!=typeof N&&null!=N?'-xhr':'';if(p){p=ub(p);u=ub(u);for(var qa in p)if('object'!=typeof p[qa]||Array.isArray(p[qa])||null===p[qa])if(Array.isArray(p[qa])){k+='-'+qa.replace(/[^A-Za-z0-9_-]/g,'_');var Aa=0<p[qa].length||'undefined'!=typeof u[qa]&&0<u[qa].length?'':' is-empty';Z+='<li class="gina-toolbar-collection">';Z+='<a href="#" class="gina-toolbar-key gina-toolbar'+
|
|
630
|
+
ba+'-folding-state-'+Ka(xa,qa.replace(/[^A-Za-z0-9_-]/g,'_'))+Aa+'">'+qa+' <span>['+p[qa].length+']</span></a>';Z+='<ul class="gina-toolbar-collection">'+Hb(p[qa],u[qa],k,N,F)+'</ul>';Z+='</li>';k=k.substring(0,k.length-qa.length)}else Aa=null===u[qa]?'null':typeof u[qa],'undefined'==Aa?(Z+='<li class="gina-toolbar-key-value">',Z+='<span class="gina-toolbar-key gina-toolbar-key-added">'+qa+':</span> <span class="gina-toolbar-value gina-toolbar-value-type-is-'+Aa+'">'+p[qa]+'</span>'):(p[qa]!==u[qa]&&
|
|
631
|
+
(Z+='<li class="gina-toolbar-key-value gina-toolbar-is-overridden">',Z+='<span class="gina-toolbar-key">'+qa+':</span> <span class="gina-toolbar-value">'+u[qa]+'</span>',Z+='</li>'),Z+='<li class="gina-toolbar-key-value">',Z+='<span class="gina-toolbar-key">'+qa+':</span> <span class="gina-toolbar-value gina-toolbar-value-type-is-'+Aa+'">'+p[qa]+'</span>'),Z+='</li>';else k+='-'+qa.replace(/[^A-Za-z0-9_-]/g,'_'),Aa=0<p[qa].count()||'undefined'!=typeof u[qa]&&0<u[qa].count()?'':' is-empty',Z+='<li class="gina-toolbar-object">',
|
|
632
|
+
Z+='<a href="#" class="gina-toolbar-key gina-toolbar'+ba+'-folding-state-'+Ka(xa,qa.replace(/[^A-Za-z0-9_-]/g,'_'))+Aa+'">'+qa+' <span>{ }</span></a>',Z+='<ul class="gina-toolbar-object">'+fb(p[qa],u[qa],k,N,F)+'</ul>',Z+='</li>',k=k.substring(0,k.length-qa.length);return Z}},Hb=function(p,u,k,N,F){var Z='';k='undefined'!=typeof k&&null!=k?k:'';var xa='undefined'!=typeof F&&null!=F?F:'',ba='undefined'!=typeof N&&null!=N?'-xhr':'';u||=[];for(var qa=0,Aa=p.length;qa<Aa;++qa)'object'!=typeof p[qa]||
|
|
633
|
+
Array.isArray(p[qa])?Array.isArray(p[qa])?(k+='-'+qa,''==xa&&(xa=k),Z+='<li class="gina-toolbar-collection">',Z+='<a href="#" class="gina-toolbar-key gina-toolbar'+ba+'-folding-state-'+Ka(xa,qa)+'">'+qa+'<span>[ ]</span></a>',Z+='<ul class="gina-toolbar-collection">'+Hb(p[qa],u[qa],k,N,F)+'</ul>',Z+='</li>',k=k.substring(0,k.length-qa.toString().length)):Z+='<li class="gina-toolbar-key-value"><span class="gina-toolbar-key">'+qa+':</span> <span class="gina-toolbar-value">'+p[qa]+'</span></li>':(u[qa]||
|
|
634
|
+
(u[qa]=p[qa]),k+='-'+qa,''==xa&&(xa=k),Z+='<li class="gina-toolbar-object">',Z+='<a href="#" class="gina-toolbar-key gina-toolbar'+ba+'-folding-state-'+Ka(xa,qa)+'">'+qa+' <span>{ }</span></a>',Z+='<ul class="gina-toolbar-object">'+fb(p[qa],u[qa],k,N,F)+'</ul>',Z+='</li>',k=k.substring(0,k.length-qa.toString().length-1));return Z},Ub=function(p,u,k,N,F,Z){k=null!=k?k.replace(/[^A-Za-z0-9_-]/g,'_'):'';var xa='undefined'!=typeof N&&null!=N?'-xhr':'';p=ub(p);u=ub(u);Z||=F;for(var ba in p){var qa=ba;
|
|
635
|
+
if('object'!=typeof p[ba]||Array.isArray(p[ba])||null===p[ba])if(Array.isArray(p[ba])){var Aa=P('#gina-toolbar-view-'+k.substring(0,k.length-1));var J=Aa.length?!0:!1;!J||/^html/.test(k)?(Aa=P('.'+k),J=k+ba.replace(/[^A-Za-z0-9_-]/g,'_')+'-',Aa.append('<li class="gina-toolbar-collection"><a href="#" class="gina-toolbar-key gina-toolbar'+xa+'-folding-state-'+Ka(ba.replace(/[^A-Za-z0-9_-]/g,'_'),J.substring(0,J.length-1))+'">'+ba+' <span>['+p[ba].length+']</span></a><ul> '+Hb(p[ba],u[ba],J,Aa.find('li ul.'+
|
|
636
|
+
k.substring(0,k.length-1)),qa)+'</ul></li>')):(J=k+ba.replace(/[^A-Za-z0-9_-]/g,'_')+'-',Aa.find('li.'+k.substring(0,k.length-1)+' ul').append('<li class="gina-toolbar-collection"><a class="gina-toolbar-key gina-toolbar'+xa+'-folding-state-'+Ka(ba.replace(/[^A-Za-z0-9_-]/g,'_'),J.substring(0,J.length-1))+'">'+ba+' <span>['+p[ba].length+']</span></a><ul>'+Hb(p[ba],u[ba],J,Aa.find('li ul.'+k.substring(0,k.length-1)),qa)+'</ul></li>'));k+=ba.replace(/[^A-Za-z0-9_-]/g,'_')+'-';k=k.substring(0,k.length-
|
|
637
|
+
ba.length-1)}else if(qa=null===u[ba]?'null':typeof u[ba],'undefined'==qa)/\-$/.test(k)&&(k=k.substring(0,k.length-1)),k&&F.find('ul.'+k).append('<li class="gina-toolbar-key-value"><span class="gina-toolbar-key gina-toolbar-key-added">'+ba+':</span> <span class="gina-toolbar-value gina-toolbar-value-type-is-'+qa+'">'+p[ba]+'</span></li>');else if(p[ba]!==u[ba]){k||(k+=ba.replace(/[^A-Za-z0-9_-]/g,'_')+'-');try{F.find('ul.'+k).append('<li class="gina-toolbar-key-value gina-toolbar-is-overridden"><span class="gina-toolbar-key">'+
|
|
638
|
+
ba+':</span> <span class="gina-toolbar-value">'+u[ba]+'</span></li>'),F.find('ul.'+k).append('<li class="gina-toolbar-key-value"><span class="gina-toolbar-key">'+ba+':</span> <span class="gina-toolbar-value gina-toolbar-value-type-is-'+qa+'">'+p[ba]+'</span></li>')}catch(ma){throw Error('GinaToolbarError: `ul.'+k+'` not found');}}else!k||/^html\-properties/.test(k)?Z.find('.gina-toolbar-properties').append('<li class="gina-toolbar-key-value"><span class="gina-toolbar-key">'+ba+':</span> <span class="gina-toolbar-value gina-toolbar-value-type-is-'+
|
|
639
|
+
qa+'">'+p[ba]+'</span></li>'):Z.find('ul.'+k.substring(0,k.length-1)).append('<li class="gina-toolbar-key-value"><span class="gina-toolbar-key">'+ba+':</span> <span class="gina-toolbar-value gina-toolbar-value-type-is-'+qa+'">'+p[ba]+'</span></li>');else Aa=P('#gina-toolbar-view-'+k.substring(0,k.length-1)),(J=Aa.length?!0:!1)?(J=k+ba.replace(/[^A-Za-z0-9_-]/g,'_')+'-',Aa.find('ul.'+k.substring(0,k.length-1)).append('<li class="gina-toolbar-object"><a href="#" class="gina-toolbar-key gina-toolbar'+
|
|
640
|
+
xa+'-folding-state-'+Ka(ba.replace(/[^A-Za-z0-9_-]/g,'_'),J.substring(0,J.length-1))+'">'+ba+' <span>{ }</span></a><ul class="gina-toolbar-object '+J.substring(0,J.length-1)+'"></ul></li>'),Ub(p[ba],u[ba],J,N,Aa.find('ul.'+k.substring(0,k.length-1)),Z),k+=ba.replace(/[^A-Za-z0-9_-]/g,'_')+'-'):(k+=ba.replace(/[^A-Za-z0-9_-]/g,'_')+'-','params'==ba?(qa='<div id="gina-toolbar-view-'+k.substring(0,k.length-1)+'" class="gina-toolbar-section"><h2 class="gina-toolbar-section-title">'+k.substring(0,k.length-
|
|
641
|
+
1)+'</h2><ul class="'+k.substring(0,k.length-1)+'"></ul></div>',P('#gina-toolbar-view-html-properties').before(qa)):/^html/.test(k)||(qa='<div id="gina-toolbar-view-'+k.substring(0,k.length-1)+'" class="gina-toolbar-section"><h2 class="gina-toolbar-section-title">'+k.substring(0,k.length-1)+'</h2><ul class="'+k.substring(0,k.length-1)+'"></ul></div>',F.append(qa)),Ub(p[ba],u[ba],k,N,F.find('ul.'+k.substring(0,k.length-1)),Z)),k=k.substring(0,k.length-ba.length-1)}return Z.html()},pc=function(p){p=
|
|
642
|
+
gina.hasPopinHandler?gina.popin.getActivePopin():null;var u,k=(gina.hasPopinHandler?P('#'+p.id):P('body')).html().match(/404:\[(.+)\](.+)@(.+)"/gm);if(k){var N=0;for(u=k.length;N<u;++N){p=k[N].replace(/"(.*)|"/g,'');var F=p.match(/\[(.*)\]/g,'')[0].replace(/\[|\]/g,'');V.getRouteByUrl(p,F)}}fLen=V.notFound.count();if(0<fLen)for(f in V.notFound)console.warn('(x'+V.notFound[f].count+') '+f+' => '+V.notFound[f].message)},da=function(p,u,k,N,F,Z,xa){if(!Z)return!1;for(var ba=F[N].attributes,qa,Aa=F[N].getAttribute('id')||
|
|
643
|
+
F[N].id,J=P('<div id="gina-toolbar-form-'+Aa+'" class="gina-toolbar-section"><h2 class="gina-toolbar-section-title">'+Aa+'</h2><ul class="gina-toolbar-section-content gina-toolbar-code" style="display: none;"><li class="gina-toolbar-form-attributes"><h3 class="gina-toolbar-sub-section-title">'+'gina-toolbar-form-attributes'.replace(/gina-toolbar-form-/,'')+'</h3><ul class="gina-toolbar-code"></ul></li></ul></div>'),ma,ta,fa=null,ua=0,Da=ba.length;ua<Da;++ua)ma=ba[ua].name,ta=ba[ua].nodeValue,/^method$/.test(ma)&&
|
|
644
|
+
(ta=ta.toUpperCase()),/^class$/.test(ma)&&/\s+/.test(ta)&&(ta='<ul><li>'+ta.replace(/\s+/g,'</li><li>')+'</li></ul>'),/^action$/.test(ma)&&((qa='undefined'!=typeof ba.method?ba.method.nodeValue:null)||console.warn('[ ToolbarFormHelper::UndefinedMethod : form `'+(Aa||void 0)+'` method attribute cannot be left undefined !'),qa=V.getRouteByUrl(ta,qa),'undefined'!=typeof qa&&qa||(qa={name:'not found',namespace:'not found',param:{control:'not found',file:'not found'}}),ta='<ul><li><span class="gina-toolbar-key">url</span><span class="gina-toolbar-value">'+
|
|
645
|
+
(ta||'#')+'</span></li><li><span class="gina-toolbar-key">route</span><span class="gina-toolbar-value">'+qa.name+'</span></li><li><span class="gina-toolbar-key">namespace</span><span class="gina-toolbar-value">'+(qa.namespace||'root controller')+'</span></li><li><span class="gina-toolbar-key">control</span><span class="gina-toolbar-value">'+qa.param.control+'</span></li><li><span class="gina-toolbar-key">file</span><span class="gina-toolbar-value">'+qa.param.file+'</span></li><ul>',fa='<li><span class="gina-toolbar-key">'+
|
|
646
|
+
ma+':</span><span class="gina-toolbar-value">'+ta+'</span></li>'),/^data-gina-form-event/.test(ma)?(qa='events',fa=J.find('.gina-toolbar-form-attributes').find('.gina-toolbar-key-events').length?!0:!1,ma=ma.replace(/^data-gina-form-event-/,''),fa||J.find('ul.gina-toolbar-section-content').append('<li class="gina-toolbar-form-'+qa+'"><h3 class="gina-toolbar-sub-section-title">'+qa+'</h3><ul class="gina-toolbar-code"></ul></li>'),fa='<li><span class="gina-toolbar-key">'+ma+':</span><span class="gina-toolbar-value">'+
|
|
647
|
+
ta+'</span></li>',J.find('ul.gina-toolbar-section-content').find('li.gina-toolbar-form-'+qa+' > ul').append(fa)):(/^action$/.test(ma)||(fa='<li><span class="gina-toolbar-key">'+ma+':</span><span class="gina-toolbar-value">'+ta+'</span></li>'),J.find('ul.gina-toolbar-section-content').find('li.gina-toolbar-form-attributes > ul').append(fa));ba=null;try{var Ta=F[N].getAttribute('data-gina-form-rule');ba='undefined'!=typeof Ta&&null!=Ta?eval('gina.forms.rules.'+Ta.replace(/-/g,'.')):eval('gina.forms.rules.'+
|
|
648
|
+
Aa.replace(/-/g,'.'))}catch(ab){}ba&&(qa='rules',J.find('ul.gina-toolbar-section-content').append('<li class="gina-toolbar-form-'+qa+'"><h3 class="gina-toolbar-sub-section-title">'+qa+'</h3><ul class="gina-toolbar-properties">'+fb(ba,ba,Aa,xa,qa)+'</ul></li>'));k.append(J);++N;N<Z&&da(p,u,k,N,F,Z,xa)},m=function(p,u,k,N){var F=P('#gina-toolbar-form-'+p);$section=F.find('ul.gina-toolbar-section-content').find('li.gina-toolbar-form-'+u+'> ul');if(0<$section.length){if(0==k.count())return F.find('ul.gina-toolbar-section-content').find('li.gina-toolbar-form-'+
|
|
649
|
+
u).remove(),!1;$section.html(fb(k,k,p,N,u))}else F.find('ul.gina-toolbar-section-content').append('<li class="gina-toolbar-form-'+u+'"><h3 class="gina-toolbar-sub-section-title">'+u+'</h3><ul class="gina-toolbar-properties">'+fb(k,k,p,N,u)+'</ul></li>');p=F.find('ul.gina-toolbar-section-content');p.is(':visible')||p.slideToggle()},h=function(p,u){return p='<label class="gina-toolbar-input-file"><input type="file" multiple id="'+(p+'">')+u+'</label>'},e=function(p,u){p=h('mock','Select your JSON file');
|
|
650
|
+
La.html(p);W.text('');La.find('input').off('change').on('change',function(k){var N=P(this)[0].files,F=k=null;if(1==N.length)k=P(this)[0].files[0],F=new FileReader,F.addEventListener('load',function(){W.text(F.result);ja.text(F.result);u()},!1),F.readAsBinaryString(k);else{var Z=0;F=[];for(var xa=0,ba=N.length;xa<ba;++xa)switch(k=N[xa],!0){case /user/.test(k.name):F[xa]=new FileReader;F[xa].addEventListener('load',function(qa){W.text(qa.currentTarget.result);++Z;Z==N.length&&u()},!1);F[xa].readAsBinaryString(k);
|
|
651
|
+
break;case /gina/.test(k.name):F[xa]=new FileReader,F[xa].addEventListener('load',function(qa){ja.text(qa.currentTarget.result);++Z;Z==N.length&&u()},!1),F[xa].readAsBinaryString(k)}}});return!1},b=function(p,u){for(var k in p)'object'==typeof p[k]&&b(p[k],u+k+'-')};this.update=function(p,u){rb(p,u)};this.restore=function(){za&&'undefined'!=typeof za.data&&(wa.jsonObject.data=za.data);rb('data',wa.jsonObject,wa.ginaJsonObject);Q=!1;V.notFound={}};if('undefined'!=typeof gina.validator)gina.validator.on('initialized',
|
|
650
652
|
function(){console.log('toolbar validator ready');Za()});else Za()}});
|
|
651
|
-
define('gina','require vendor/uuid lib/merge utils/events helpers/prototypes helpers/dateFormat gina/toolbar'.split(' '),function(A){A('utils/events');var
|
|
652
|
-
window.getComputedStyle||(window.getComputedStyle=function(S,O){this.el=S;this.getPropertyValue=function(ia){var Q=/(\-([a-z]){1})/g;'float'==ia&&(ia='styleFloat');Q.test(ia)&&(ia=ia.replace(Q,function(
|
|
653
|
-
setOptions:function(
|
|
654
|
-
!function(A,
|
|
655
|
-
if('object'!=typeof
|
|
653
|
+
define('gina','require vendor/uuid lib/merge utils/events helpers/prototypes helpers/dateFormat gina/toolbar'.split(' '),function(A){A('utils/events');var P=A('lib/merge'),V=A('helpers/dateFormat')();A('helpers/prototypes')({dateFormat:V});var ka=A('vendor/uuid');window.process||function(S,O,ia,Q,R,r,G){for(r=S[ia]||(S[ia]={});!G&&R<Q.length;)G=S[Q[R++]+'requestAnimationFrame'];r[O]=r[O]||G&&G.bind(S)||S.setImmediate||S.setTimeout}(window,'nextTick','process',['r','webkitR','mozR','msR','oR'],0);
|
|
654
|
+
window.getComputedStyle||(window.getComputedStyle=function(S,O){this.el=S;this.getPropertyValue=function(ia){var Q=/(\-([a-z]){1})/g;'float'==ia&&(ia='styleFloat');Q.test(ia)&&(ia=ia.replace(Q,function(R,r,G){return G.toUpperCase()}));return S.currentStyle[ia]?S.currentStyle[ia]:null};return this});return function(S){this.plugin='gina';var O='gina-'+ka.v1(),ia=document,Q;document.id=O;O={id:O,isFrameworkLoaded:!1,hasValidator:!1,hasPopinHandler:!1,config:{},session:null,registeredEvents:{},events:{},
|
|
655
|
+
setOptions:function(R){Q=P(Q,R,!0)}};'undefined'!=typeof parent.window.gina&&(window.gina=P(window.gina||{},parent.window.gina));O=P(window.gina||{},O);registerEvents(this.plugin,['ginaloaded','ready']);triggerEvent(S,ia,'ginaloaded',O)}});
|
|
656
|
+
!function(A,P){'object'==typeof exports&&'undefined'!=typeof module?module.exports=P():'function'==typeof define&&define.amd?define('vendor/engine.io',P):(A='undefined'!=typeof globalThis?globalThis:A||self).eio=P()}(this,function(){function A(da,m){for(var h=0;h<m.length;h++){var e=m[h];e.enumerable=e.enumerable||!1;e.configurable=!0;'value'in e&&(e.writable=!0);var b=Object,p=b.defineProperty;var u=e.key;a:if('object'==typeof u&&u){var k=u[Symbol.toPrimitive];if(void 0!==k){u=k.call(u,'string');
|
|
657
|
+
if('object'!=typeof u)break a;throw new TypeError('@@toPrimitive must return a primitive value.');}u=String(u)}p.call(b,da,'symbol'==typeof u?u:u+'',e)}}function P(da,m,h){return m&&A(da.prototype,m),h&&A(da,h),Object.defineProperty(da,'prototype',{writable:!1}),da}function V(){return V=Object.assign?Object.assign.bind():function(da){for(var m=1;m<arguments.length;m++){var h=arguments[m],e;for(e in h)({}).hasOwnProperty.call(h,e)&&(da[e]=h[e])}return da},V.apply(null,arguments)}function ka(da){return ka=
|
|
656
658
|
Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},ka(da)}function S(da,m){da.prototype=Object.create(m.prototype);da.prototype.constructor=da;ia(da,m)}function O(){try{var da=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(m){}return(O=function(){return!!da})()}function ia(da,m){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,e){return h.__proto__=e,h},ia(da,m)}function Q(da){return Q=
|
|
657
|
-
'function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&'function'==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?'symbol':typeof m},Q(da)}function
|
|
658
|
-
h||!function(b){try{return-1!==Function.toString.call(b).indexOf('[native code]')}catch(p){return'function'==typeof b}}(h))return h;if('function'!=typeof h)throw new TypeError('Super expression must either be null or a function');if(void 0!==m){if(m.has(h))return m.get(h);m.set(h,e)}return e.prototype=Object.create(h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),ia(e,h)},
|
|
659
|
-
new Uint8Array(da.buffer,da.byteOffset,da.byteLength)}function
|
|
660
|
-
p.setUint16(1,e)}else b=new Uint8Array(9),p=new DataView(b.buffer),p.setUint8(0,127),p.setBigUint64(1,BigInt(e));da.data&&'string'!=typeof da.data&&(b[0]|=128);m.enqueue(b);m.enqueue(h)})}})}function
|
|
661
|
-
|
|
662
|
-
$a.requests[da].abort()}function y(da){da=da.xdomain;try{if('undefined'!=typeof XMLHttpRequest&&(!da||rb))return new XMLHttpRequest}catch(m){}if(!da)try{return new (Ia[['Active'].concat('Object').join('X')])('Microsoft.XMLHTTP')}catch(m){}}function z(da){if(8E3<da.length)throw'URI too long';var m=da,h=da.indexOf('['),e=da.indexOf(']');-1!=h&&-1!=e&&(da=da.substring(0,h)+da.substring(h,e).replace(/:/g,';')+da.substring(e,da.length));var b,p;da=ub.exec(da||'');for(var
|
|
663
|
-
'';return-1!=h&&-1!=e&&(
|
|
664
|
-
'1';
|
|
665
|
-
return M&&da instanceof Blob?m?h(da):W(da,h):
|
|
666
|
-
data:
|
|
667
|
-
data:da.substring(1)}:{type:
|
|
668
|
-
|
|
669
|
-
(h=h.slice(0)).length;e<b;++e)h[e].apply(this,m)}return this};
|
|
670
|
-
Ua=Ia.setTimeout,Qa=Ia.clearTimeout,Ha=function(da){function m(h,e,b){var p;return(p=da.call(this,h)||this).description=e,p.context=b,p.type='TransportError',p}return S(m,da),m}(
|
|
671
|
-
'opening',this.doOpen(),this},h.close=function(){return'opening'!==this.readyState&&'open'!==this.readyState||(this.doClose(),this.onClose()),this},h.send=function(e){'open'===this.readyState&&this.write(e)},h.onOpen=function(){this.readyState='open';this.writable=!0;da.prototype.emitReserved.call(this,'open')},h.onData=function(e){e=
|
|
659
|
+
'function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&'function'==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?'symbol':typeof m},Q(da)}function R(da){var m='function'==typeof Map?new Map:void 0;return R=function(h){function e(){return function(b,p,u){if(O())return Reflect.construct.apply(null,arguments);var k=[null];k.push.apply(k,p);k=new (b.bind.apply(b,k));return u&&ia(k,u.prototype),k}(h,arguments,ka(this).constructor)}if(null===
|
|
660
|
+
h||!function(b){try{return-1!==Function.toString.call(b).indexOf('[native code]')}catch(p){return'function'==typeof b}}(h))return h;if('function'!=typeof h)throw new TypeError('Super expression must either be null or a function');if(void 0!==m){if(m.has(h))return m.get(h);m.set(h,e)}return e.prototype=Object.create(h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),ia(e,h)},R(da)}function r(da){return da instanceof Uint8Array?da:da instanceof ArrayBuffer?new Uint8Array(da):
|
|
661
|
+
new Uint8Array(da.buffer,da.byteOffset,da.byteLength)}function G(){return new TransformStream({transform:function(da,m){!function(h,e){M&&h.data instanceof Blob?h.data.arrayBuffer().then(r).then(e):T&&(h.data instanceof ArrayBuffer||pa(h.data))?e(r(h.data)):Ea(h,!1,function(b){v||=new TextEncoder;e(v.encode(b))})}(da,function(h){var e=h.length;if(126>e){var b=new Uint8Array(1);(new DataView(b.buffer)).setUint8(0,e)}else if(65536>e){b=new Uint8Array(3);var p=new DataView(b.buffer);p.setUint8(0,126);
|
|
662
|
+
p.setUint16(1,e)}else b=new Uint8Array(9),p=new DataView(b.buffer),p.setUint8(0,127),p.setBigUint64(1,BigInt(e));da.data&&'string'!=typeof da.data&&(b[0]|=128);m.enqueue(b);m.enqueue(h)})}})}function w(da){return da.reduce(function(m,h){return m+h.length},0)}function va(da,m){if(da[0].length===m)return da.shift();for(var h=new Uint8Array(m),e=0,b=0;b<m;b++)h[b]=da[0][e++],e===da[0].length&&(da.shift(),e=0);return da.length&&e<da[0].length&&(da[0]=da[0].slice(e)),h}function Fa(da){if(da){for(var m in Fa.prototype)da[m]=
|
|
663
|
+
Fa.prototype[m];return da}}function U(da){for(var m=arguments.length,h=Array(1<m?m-1:0),e=1;e<m;e++)h[e-1]=arguments[e];return h.reduce(function(b,p){return da.hasOwnProperty(p)&&(b[p]=da[p]),b},{})}function I(da,m){m.useNativeTimers?(da.setTimeoutFn=Ua.bind(Ia),da.clearTimeoutFn=Qa.bind(Ia)):(da.setTimeoutFn=Ia.setTimeout.bind(Ia),da.clearTimeoutFn=Ia.clearTimeout.bind(Ia))}function B(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function D(){}function n(){for(var da in $a.requests)$a.requests.hasOwnProperty(da)&&
|
|
664
|
+
$a.requests[da].abort()}function y(da){da=da.xdomain;try{if('undefined'!=typeof XMLHttpRequest&&(!da||rb))return new XMLHttpRequest}catch(m){}if(!da)try{return new (Ia[['Active'].concat('Object').join('X')])('Microsoft.XMLHTTP')}catch(m){}}function z(da){if(8E3<da.length)throw'URI too long';var m=da,h=da.indexOf('['),e=da.indexOf(']');-1!=h&&-1!=e&&(da=da.substring(0,h)+da.substring(h,e).replace(/:/g,';')+da.substring(e,da.length));var b,p;da=ub.exec(da||'');for(var u={},k=14;k--;)u[Ka[k]]=da[k]||
|
|
665
|
+
'';return-1!=h&&-1!=e&&(u.source=m,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,':'),u.authority=u.authority.replace('[','').replace(']','').replace(/;/g,':'),u.ipv6uri=!0),u.pathNames=function(N,F){N=F.replace(/\/{2,9}/g,'/').split('/');'/'!=F.slice(0,1)&&0!==F.length||N.splice(0,1);'/'==F.slice(-1)&&N.splice(N.length-1,1);return N}(0,u.path),u.queryKey=(b=u.query,p={},b.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(N,F,Z){F&&(p[F]=Z)}),p),u}var E=Object.create(null);E.open='0';E.close=
|
|
666
|
+
'1';E.ping='2';E.pong='3';E.message='4';E.upgrade='5';E.noop='6';var x=Object.create(null);Object.keys(E).forEach(function(da){x[E[da]]=da});for(var v,H={type:'error',data:'parser error'},M='function'==typeof Blob||'undefined'!=typeof Blob&&'[object BlobConstructor]'===Object.prototype.toString.call(Blob),T='function'==typeof ArrayBuffer,pa=function(da){return'function'==typeof ArrayBuffer.isView?ArrayBuffer.isView(da):da&&da.buffer instanceof ArrayBuffer},Ea=function(da,m,h){var e=da.type;da=da.data;
|
|
667
|
+
return M&&da instanceof Blob?m?h(da):W(da,h):T&&(da instanceof ArrayBuffer||pa(da))?m?h(da):W(new Blob([da]),h):h(E[e]+(da||''))},W=function(da,m){var h=new FileReader;return h.onload=function(){var e=h.result.split(',')[1];m('b'+(e||''))},h.readAsDataURL(da)},ja='undefined'==typeof Uint8Array?[]:new Uint8Array(256),ca=0;64>ca;ca++)ja['ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charCodeAt(ca)]=ca;var wa,la='function'==typeof ArrayBuffer,za=function(da,m){if('string'!=typeof da)return{type:'message',
|
|
668
|
+
data:Ba(da,m)};var h=da.charAt(0);if('b'===h){da=da.substring(1);if(la){var e=.75*da.length;h=da.length;var b=0;'='===da[da.length-1]&&(e--,'='===da[da.length-2]&&e--);var p=new ArrayBuffer(e),u=new Uint8Array(p);for(e=0;e<h;e+=4){var k=ja[da.charCodeAt(e)];var N=ja[da.charCodeAt(e+1)];var F=ja[da.charCodeAt(e+2)];var Z=ja[da.charCodeAt(e+3)];u[b++]=k<<2|N>>4;u[b++]=(15&N)<<4|F>>2;u[b++]=(3&F)<<6|63&Z}m=Ba(p,m)}else m={base64:!0,data:da};m={type:'message',data:m}}else m=x[h]?1<da.length?{type:x[h],
|
|
669
|
+
data:da.substring(1)}:{type:x[h]}:H;return m},Ba=function(da,m){return'blob'===m?da instanceof Blob?da:new Blob([da]):da instanceof ArrayBuffer?da:da.buffer},Na=String.fromCharCode(30);Fa.prototype.on=Fa.prototype.addEventListener=function(da,m){return this.t=this.t||{},(this.t['$'+da]=this.t['$'+da]||[]).push(m),this};Fa.prototype.once=function(da,m){function h(){this.off(da,h);m.apply(this,arguments)}return h.fn=m,this.on(da,h),this};Fa.prototype.off=Fa.prototype.removeListener=Fa.prototype.removeAllListeners=
|
|
670
|
+
Fa.prototype.removeEventListener=function(da,m){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var h,e=this.t['$'+da];if(!e)return this;if(1==arguments.length)return delete this.t['$'+da],this;for(var b=0;b<e.length;b++)if((h=e[b])===m||h.fn===m){e.splice(b,1);break}return 0===e.length&&delete this.t['$'+da],this};Fa.prototype.emit=function(da){this.t=this.t||{};for(var m=Array(arguments.length-1),h=this.t['$'+da],e=1;e<arguments.length;e++)m[e-1]=arguments[e];if(h){e=0;for(var b=
|
|
671
|
+
(h=h.slice(0)).length;e<b;++e)h[e].apply(this,m)}return this};Fa.prototype.emitReserved=Fa.prototype.emit;Fa.prototype.listeners=function(da){return this.t=this.t||{},this.t['$'+da]||[]};Fa.prototype.hasListeners=function(da){return!!this.listeners(da).length};var La='function'==typeof Promise&&'function'==typeof Promise.resolve?function(da){return Promise.resolve().then(da)}:function(da,m){return m(da,0)},Ia='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return this')(),
|
|
672
|
+
Ua=Ia.setTimeout,Qa=Ia.clearTimeout,Ha=function(da){function m(h,e,b){var p;return(p=da.call(this,h)||this).description=e,p.context=b,p.type='TransportError',p}return S(m,da),m}(R(Error));ca=function(da){function m(e){var b;return(b=da.call(this)||this).writable=!1,I(b,e),b.opts=e,b.query=e.query,b.socket=e.socket,b.supportsBinary=!e.forceBase64,b}S(m,da);var h=m.prototype;return h.onError=function(e,b,p){return da.prototype.emitReserved.call(this,'error',new Ha(e,b,p)),this},h.open=function(){return this.readyState=
|
|
673
|
+
'opening',this.doOpen(),this},h.close=function(){return'opening'!==this.readyState&&'open'!==this.readyState||(this.doClose(),this.onClose()),this},h.send=function(e){'open'===this.readyState&&this.write(e)},h.onOpen=function(){this.readyState='open';this.writable=!0;da.prototype.emitReserved.call(this,'open')},h.onData=function(e){e=za(e,this.socket.binaryType);this.onPacket(e)},h.onPacket=function(e){da.prototype.emitReserved.call(this,'packet',e)},h.onClose=function(e){this.readyState='closed';
|
|
672
674
|
da.prototype.emitReserved.call(this,'close',e)},h.pause=function(e){},h.createUri=function(e){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return e+'://'+this.i()+this.o()+this.opts.path+this.u(b)},h.i=function(){var e=this.opts.hostname;return-1===e.indexOf(':')?e:'['+e+']'},h.o=function(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?':'+this.opts.port:''},h.u=function(e){var b='',p;for(p in e)e.hasOwnProperty(p)&&
|
|
673
|
-
(b.length&&(b+='&'),b+=encodeURIComponent(p)+'='+encodeURIComponent(e[p]));e=b;return e.length?'?'+e:''},m}(
|
|
674
|
-
p()}))}else p()},h.p=function(){this.h=!0;this.doPoll();this.emitReserved('poll')},h.onData=function(e){var b=this;(function(p,
|
|
675
|
-
'open'===this.readyState&&this.p())},h.doClose=function(){var e=this,b=function(){e.write([{type:'close'}])};'open'===this.readyState?b():this.once('open',b)},h.write=function(e){var b=this;this.writable=!1;(function(p,
|
|
676
|
-
(b[this.opts.timestampParam]=B()),this.supportsBinary||b.sid||(b.b64=1),this.createUri(e,b)},
|
|
677
|
-
S(m,da);var h=m.prototype;return h.doWrite=function(e,b){var p=this;e=this.request({method:'POST',data:e});e.on('success',b);e.on('error',function(
|
|
678
|
-
p.data:null,
|
|
679
|
-
'text/plain;charset=UTF-8')}catch(N){}try{
|
|
680
|
-
typeof
|
|
681
|
-
e),this.emitReserved('success'),this.T())},h.abort=function(){this.T()},m}(
|
|
682
|
-
0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return V(h,{xd:this.xd},this.opts),new $a(y,this.uri(),h)},m}(Ja);var zb='undefined'!=typeof navigator&&'string'==typeof navigator.product&&'reactnative'===navigator.product.toLowerCase();Ja=function(da){function m(){return da.apply(this,arguments)||this}S(m,da);var h=m.prototype;return h.doOpen=function(){var e=this.uri(),b=this.opts.protocols,p=zb?{}:
|
|
683
|
-
'localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this.opts.extraHeaders&&(p.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,b,p)}catch(
|
|
684
|
-
this.ws.onmessage=function(b){return e.onData(b.data)};this.ws.onerror=function(b){return e.onError('websocket error',b)}},h.write=function(e){var b=this;this.writable=!1;for(var p=function(){var k=e[
|
|
685
|
-
this.opts.secure?'wss':'ws',b=this.query||{};return this.opts.timestampRequests&&(b[this.opts.timestampParam]=B()),this.supportsBinary||(b.b64=1),this.createUri(e,b)},
|
|
686
|
-
arguments)||this}S(m,da);var h=m.prototype;return h.doOpen=function(){var e=this;try{this.M=new WebTransport(this.createUri('https'),this.opts.transportOptions[this.name])}catch(b){return this.emitReserved('error',b)}this.M.closed.then(function(){e.onClose()}).catch(function(b){e.onError('webtransport error',b)});this.M.ready.then(function(){e.M.createBidirectionalStream().then(function(b){var p=function(k,N){
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
1;b.C.write(e[
|
|
675
|
+
(b.length&&(b+='&'),b+=encodeURIComponent(p)+'='+encodeURIComponent(e[p]));e=b;return e.length?'?'+e:''},m}(Fa);var Ja=function(da){function m(){var e;return(e=da.apply(this,arguments)||this).h=!1,e}S(m,da);var h=m.prototype;return h.doOpen=function(){this.p()},h.pause=function(e){var b=this;this.readyState='pausing';var p=function(){b.readyState='paused';e()};if(this.h||!this.writable){var u=0;this.h&&(u++,this.once('pollComplete',function(){--u||p()}));this.writable||(u++,this.once('drain',function(){--u||
|
|
676
|
+
p()}))}else p()},h.p=function(){this.h=!0;this.doPoll();this.emitReserved('poll')},h.onData=function(e){var b=this;(function(p,u){p=p.split(Na);for(var k=[],N=0;N<p.length;N++){var F=za(p[N],u);if(k.push(F),'error'===F.type)break}return k})(e,this.socket.binaryType).forEach(function(p){if('opening'===b.readyState&&'open'===p.type&&b.onOpen(),'close'===p.type)return b.onClose({description:'transport closed by the server'}),!1;b.onPacket(p)});'closed'!==this.readyState&&(this.h=!1,this.emitReserved('pollComplete'),
|
|
677
|
+
'open'===this.readyState&&this.p())},h.doClose=function(){var e=this,b=function(){e.write([{type:'close'}])};'open'===this.readyState?b():this.once('open',b)},h.write=function(e){var b=this;this.writable=!1;(function(p,u){var k=p.length,N=Array(k),F=0;p.forEach(function(Z,xa){Ea(Z,!1,function(ba){N[xa]=ba;++F===k&&u(N.join(Na))})})})(e,function(p){b.doWrite(p,function(){b.writable=!0;b.emitReserved('drain')})})},h.uri=function(){var e=this.opts.secure?'https':'http',b=this.query||{};return!1!==this.opts.timestampRequests&&
|
|
678
|
+
(b[this.opts.timestampParam]=B()),this.supportsBinary||b.sid||(b.b64=1),this.createUri(e,b)},P(m,[{key:'name',get:function(){return'polling'}}])}(ca),Za=!1;try{Za='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest}catch(da){}var rb=Za;Ja=function(da){function m(e){var b;if(b=da.call(this,e)||this,'undefined'!=typeof location){var p='https:'===location.protocol,u=location.port;u||=p?'443':'80';b.xd='undefined'!=typeof location&&e.hostname!==location.hostname||u!==e.port}return b}
|
|
679
|
+
S(m,da);var h=m.prototype;return h.doWrite=function(e,b){var p=this;e=this.request({method:'POST',data:e});e.on('success',b);e.on('error',function(u,k){p.onError('xhr post error',u,k)})},h.doPoll=function(){var e=this,b=this.request();b.on('data',this.onData.bind(this));b.on('error',function(p,u){e.onError('xhr poll error',p,u)});this.pollXhr=b},m}(Ja);var $a=function(da){function m(e,b,p){var u;return(u=da.call(this)||this).createRequest=e,I(u,p),u.l=p,u.v=p.method||'GET',u.m=b,u.k=void 0!==p.data?
|
|
680
|
+
p.data:null,u.A(),u}S(m,da);var h=m.prototype;return h.A=function(){var e,b=this,p=U(this.l,'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');p.xdomain=!!this.l.xd;var u=this.j=this.createRequest(p);try{u.open(this.v,this.m,!0);try{if(this.l.extraHeaders)for(var k in u.setDisableHeaderCheck&&u.setDisableHeaderCheck(!0),this.l.extraHeaders)this.l.extraHeaders.hasOwnProperty(k)&&u.setRequestHeader(k,this.l.extraHeaders[k])}catch(N){}if('POST'===this.v)try{u.setRequestHeader('Content-type',
|
|
681
|
+
'text/plain;charset=UTF-8')}catch(N){}try{u.setRequestHeader('Accept','*/*')}catch(N){}null===(e=this.l.cookieJar)||void 0===e||e.addCookies(u);'withCredentials'in u&&(u.withCredentials=this.l.withCredentials);this.l.requestTimeout&&(u.timeout=this.l.requestTimeout);u.onreadystatechange=function(){var N;3!==u.readyState||null!==(N=b.l.cookieJar)&&void 0!==N&&N.parseCookies(u.getResponseHeader('set-cookie'));4===u.readyState&&(200===u.status||1223===u.status?b.B():b.setTimeoutFn(function(){b.O('number'==
|
|
682
|
+
typeof u.status?u.status:0)},0))};u.send(this.k)}catch(N){return void this.setTimeoutFn(function(){b.O(N)},0)}'undefined'!=typeof document&&(this.U=m.requestsCount++,m.requests[this.U]=this)},h.O=function(e){this.emitReserved('error',e,this.j);this.T(!0)},h.T=function(e){if(void 0!==this.j&&null!==this.j){if(this.j.onreadystatechange=D,e)try{this.j.abort()}catch(b){}'undefined'!=typeof document&&delete m.requests[this.U];this.j=null}},h.B=function(){var e=this.j.responseText;null!==e&&(this.emitReserved('data',
|
|
683
|
+
e),this.emitReserved('success'),this.T())},h.abort=function(){this.T()},m}(Fa);if($a.requestsCount=0,$a.requests={},'undefined'!=typeof document)'function'==typeof attachEvent?attachEvent('onunload',n):'function'==typeof addEventListener&&addEventListener('onpagehide'in Ia?'pagehide':'unload',n,!1);var pb,Vb=(pb=y({xdomain:!1}))&&null!==pb.responseType;pb=function(da){function m(h){var e=da.call(this,h)||this;h=h&&h.forceBase64;return e.supportsBinary=Vb&&!h,e}return S(m,da),m.prototype.request=function(){var h=
|
|
684
|
+
0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return V(h,{xd:this.xd},this.opts),new $a(y,this.uri(),h)},m}(Ja);var zb='undefined'!=typeof navigator&&'string'==typeof navigator.product&&'reactnative'===navigator.product.toLowerCase();Ja=function(da){function m(){return da.apply(this,arguments)||this}S(m,da);var h=m.prototype;return h.doOpen=function(){var e=this.uri(),b=this.opts.protocols,p=zb?{}:U(this.opts,'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized',
|
|
685
|
+
'localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this.opts.extraHeaders&&(p.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,b,p)}catch(u){return this.emitReserved('error',u)}this.ws.binaryType=this.socket.binaryType;this.addEventListeners()},h.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws.S.unref();e.onOpen()};this.ws.onclose=function(b){return e.onClose({description:'websocket connection closed',context:b})};
|
|
686
|
+
this.ws.onmessage=function(b){return e.onData(b.data)};this.ws.onerror=function(b){return e.onError('websocket error',b)}},h.write=function(e){var b=this;this.writable=!1;for(var p=function(){var k=e[u],N=u===e.length-1;Ea(k,b.supportsBinary,function(F){try{b.doWrite(k,F)}catch(Z){}N&&La(function(){b.writable=!0;b.emitReserved('drain')},b.setTimeoutFn)})},u=0;u<e.length;u++)p()},h.doClose=function(){void 0!==this.ws&&(this.ws.onerror=function(){},this.ws.close(),this.ws=null)},h.uri=function(){var e=
|
|
687
|
+
this.opts.secure?'wss':'ws',b=this.query||{};return this.opts.timestampRequests&&(b[this.opts.timestampParam]=B()),this.supportsBinary||(b.b64=1),this.createUri(e,b)},P(m,[{key:'name',get:function(){return'websocket'}}])}(ca);var nb=Ia.WebSocket||Ia.MozWebSocket;Ja=function(da){function m(){return da.apply(this,arguments)||this}S(m,da);var h=m.prototype;return h.createSocket=function(e,b,p){return zb?new nb(e,b,p):b?new nb(e,b):new nb(e)},h.doWrite=function(e,b){this.ws.send(b)},m}(Ja);ca=function(da){function m(){return da.apply(this,
|
|
688
|
+
arguments)||this}S(m,da);var h=m.prototype;return h.doOpen=function(){var e=this;try{this.M=new WebTransport(this.createUri('https'),this.opts.transportOptions[this.name])}catch(b){return this.emitReserved('error',b)}this.M.closed.then(function(){e.onClose()}).catch(function(b){e.onError('webtransport error',b)});this.M.ready.then(function(){e.M.createBidirectionalStream().then(function(b){var p=function(k,N){wa||=new TextDecoder;var F=[],Z=0,xa=-1,ba=!1;return new TransformStream({transform:function(qa,
|
|
689
|
+
Aa){for(F.push(qa);;){if(0===Z){if(1>w(F))break;qa=va(F,1);ba=!(128&~qa[0]);xa=127&qa[0];Z=126>xa?3:126===xa?1:2}else if(1===Z){if(2>w(F))break;qa=va(F,2);xa=(new DataView(qa.buffer,qa.byteOffset,qa.length)).getUint16(0);Z=3}else if(2===Z){if(8>w(F))break;qa=va(F,8);qa=new DataView(qa.buffer,qa.byteOffset,qa.length);var J=qa.getUint32(0);if(J>Math.pow(2,21)-1){Aa.enqueue(H);break}xa=J*Math.pow(2,32)+qa.getUint32(4);Z=3}else{if(w(F)<xa)break;qa=va(F,xa);Aa.enqueue(za(ba?qa:wa.decode(qa),N));Z=0}if(0===
|
|
690
|
+
xa||xa>k){Aa.enqueue(H);break}}}})}(Number.MAX_SAFE_INTEGER,e.socket.binaryType),u=b.readable.pipeThrough(p).getReader();p=G();p.readable.pipeTo(b.writable);e.C=p.writable.getWriter();!function N(){u.read().then(function(F){var Z=F.value;F.done||(e.onPacket(Z),N())}).catch(function(F){})}();b={type:'open'};e.query.sid&&(b.data='{"sid":"'.concat(e.query.sid,'"}'));e.C.write(b).then(function(){return e.onOpen()})})})},h.write=function(e){var b=this;this.writable=!1;for(var p=function(){var k=u===e.length-
|
|
691
|
+
1;b.C.write(e[u]).then(function(){k&&La(function(){b.writable=!0;b.emitReserved('drain')},b.setTimeoutFn)})},u=0;u<e.length;u++)p()},h.doClose=function(){var e;null===(e=this.M)||void 0===e||e.close()},P(m,[{key:'name',get:function(){return'webtransport'}}])}(ca);var Ab={websocket:Ja,webtransport:ca,polling:pb},ub=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,
|
|
690
692
|
Ka='source protocol authority userInfo user password host port relative path directory file query anchor'.split(' '),fb='function'==typeof addEventListener&&'function'==typeof removeEventListener,Hb=[];fb&&addEventListener('offline',function(){Hb.forEach(function(da){return da()})},!1);var Ub=function(da){function m(e,b){var p;((p=da.call(this)||this).binaryType='arraybuffer',p.writeBuffer=[],p.L=0,p.R=-1,p.D=-1,p.P=-1,p.I=1/0,e&&'object'===Q(e)&&(b=e,e=null),e)?(e=z(e),b.hostname=e.host,b.secure=
|
|
691
|
-
'https'===e.protocol||'wss'===e.protocol,b.port=e.port,e.query&&(b.query=e.query)):b.host&&(b.hostname=z(b.host).host);return
|
|
692
|
-
|
|
693
|
+
'https'===e.protocol||'wss'===e.protocol,b.port=e.port,e.query&&(b.query=e.query)):b.host&&(b.hostname=z(b.host).host);return I(p,b),p.secure=null!=b.secure?b.secure:'undefined'!=typeof location&&'https:'===location.protocol,b.hostname&&!b.port&&(b.port=p.secure?'443':'80'),p.hostname=b.hostname||('undefined'!=typeof location?location.hostname:'localhost'),p.port=b.port||('undefined'!=typeof location&&location.port?location.port:p.secure?'443':'80'),p.transports=[],p.$={},b.transports.forEach(function(u){var k=
|
|
694
|
+
u.prototype.name;p.transports.push(k);p.$[k]=u}),p.opts=V({path:'/engine.io',agent:!1,withCredentials:!1,upgrade:!0,timestampParam:'t',rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},b),p.opts.path=p.opts.path.replace(/\/$/,'')+(p.opts.addTrailingSlash?'/':''),'string'==typeof p.opts.query&&(p.opts.query=function(u){var k={};u=u.split('&');for(var N=0,F=u.length;N<F;N++){var Z=u[N].split('=');k[decodeURIComponent(Z[0])]=
|
|
693
695
|
decodeURIComponent(Z[1])}return k}(p.opts.query)),fb&&(p.opts.closeOnBeforeunload&&(p.q=function(){p.transport&&(p.transport.removeAllListeners(),p.transport.close())},addEventListener('beforeunload',p.q,!1)),'localhost'!==p.hostname&&(p.N=function(){p.V('transport close',{description:'network connection lost'})},Hb.push(p.N))),p.opts.withCredentials&&(p.X=void 0),p.H(),p}S(m,da);var h=m.prototype;return h.createTransport=function(e){var b=V({},this.opts.query);b.EIO=4;b.transport=e;this.id&&(b.sid=
|
|
694
696
|
this.id);b=V({},this.opts,{query:b,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this.$[e](b)},h.H=function(){var e=this;if(0!==this.transports.length){var b=this.opts.rememberUpgrade&&m.priorWebsocketSuccess&&-1!==this.transports.indexOf('websocket')?'websocket':this.transports[0];this.readyState='opening';b=this.createTransport(b);b.open();this.setTransport(b)}else this.setTimeoutFn(function(){e.emitReserved('error','No transports available')},
|
|
695
697
|
0)},h.setTransport=function(e){var b=this;this.transport&&this.transport.removeAllListeners();this.transport=e;e.on('drain',this.F.bind(this)).on('packet',this.G.bind(this)).on('error',this.O.bind(this)).on('close',function(p){return b.V('transport close',p)})},h.onOpen=function(){this.readyState='open';m.priorWebsocketSuccess='websocket'===this.transport.name;this.emitReserved('open');this.flush()},h.G=function(e){if('opening'===this.readyState||'open'===this.readyState||'closing'===this.readyState)switch(this.emitReserved('packet',
|
|
696
698
|
e),this.emitReserved('heartbeat'),e.type){case 'open':this.onHandshake(JSON.parse(e.data));break;case 'ping':this.J('pong');this.emitReserved('ping');this.emitReserved('pong');this.W();break;case 'error':var b=Error('server error');b.code=e.data;this.O(b);break;case 'message':this.emitReserved('data',e.data),this.emitReserved('message',e.data)}},h.onHandshake=function(e){this.emitReserved('handshake',e);this.id=e.sid;this.transport.query.sid=e.sid;this.R=e.pingInterval;this.D=e.pingTimeout;this.P=
|
|
697
699
|
e.maxPayload;this.onOpen();'closed'!==this.readyState&&this.W()},h.W=function(){var e=this;this.clearTimeoutFn(this.K);var b=this.R+this.D;this.I=Date.now()+b;this.K=this.setTimeoutFn(function(){e.V('ping timeout')},b);this.opts.autoUnref&&this.K.unref()},h.F=function(){this.writeBuffer.splice(0,this.L);this.L=0;0===this.writeBuffer.length?this.emitReserved('drain'):this.flush()},h.flush=function(){if('closed'!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var e=
|
|
698
|
-
this.Y();this.transport.send(e);this.L=e.length;this.emitReserved('flush')}},h.Y=function(){if(!(this.P&&'polling'===this.transport.name&&1<this.writeBuffer.length))return this.writeBuffer;for(var e,b=1,p=0;p<this.writeBuffer.length;p++){if(e=this.writeBuffer[p].data){if('string'==typeof e){for(var
|
|
699
|
-
p);b+=2}return this.writeBuffer},h.Z=function(){var e=this;if(!this.I)return!0;var b=Date.now()>this.I;return b&&(this.I=0,La(function(){e.V('ping timeout')},this.setTimeoutFn)),b},h.write=function(e,b,p){return this.J('message',e,b,p),this},h.send=function(e,b,p){return this.J('message',e,b,p),this},h.J=function(e,b,p,
|
|
700
|
-
options:p},this.emitReserved('packetCreate',e),this.writeBuffer.push(e),
|
|
700
|
+
this.Y();this.transport.send(e);this.L=e.length;this.emitReserved('flush')}},h.Y=function(){if(!(this.P&&'polling'===this.transport.name&&1<this.writeBuffer.length))return this.writeBuffer;for(var e,b=1,p=0;p<this.writeBuffer.length;p++){if(e=this.writeBuffer[p].data){if('string'==typeof e){for(var u=0,k=0,N=0,F=e.length;N<F;N++)128>(u=e.charCodeAt(N))?k+=1:2048>u?k+=2:55296>u||57344<=u?k+=3:(N++,k+=4);e=k}else e=Math.ceil(1.33*(e.byteLength||e.size));b+=e}if(0<p&&b>this.P)return this.writeBuffer.slice(0,
|
|
701
|
+
p);b+=2}return this.writeBuffer},h.Z=function(){var e=this;if(!this.I)return!0;var b=Date.now()>this.I;return b&&(this.I=0,La(function(){e.V('ping timeout')},this.setTimeoutFn)),b},h.write=function(e,b,p){return this.J('message',e,b,p),this},h.send=function(e,b,p){return this.J('message',e,b,p),this},h.J=function(e,b,p,u){if('function'==typeof b&&(u=b,b=void 0),'function'==typeof p&&(u=p,p=null),'closing'!==this.readyState&&'closed'!==this.readyState)(p=p||{}).compress=!1!==p.compress,e={type:e,data:b,
|
|
702
|
+
options:p},this.emitReserved('packetCreate',e),this.writeBuffer.push(e),u&&this.once('flush',u),this.flush()},h.close=function(){var e=this,b=function(){e.V('forced close');e.transport.close()},p=function N(){e.off('upgrade',N);e.off('upgradeError',N);b()},u=function(){e.once('upgrade',p);e.once('upgradeError',p)};return'opening'!==this.readyState&&'open'!==this.readyState||(this.readyState='closing',this.writeBuffer.length?this.once('drain',function(){e.upgrading?u():b()}):this.upgrading?u():b()),
|
|
701
703
|
this},h.O=function(e){if(m.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&1<this.transports.length&&'opening'===this.readyState)return this.transports.shift(),this.H();this.emitReserved('error',e);this.V('transport error',e)},h.V=function(e,b){if('opening'===this.readyState||'open'===this.readyState||'closing'===this.readyState){if(this.clearTimeoutFn(this.K),this.transport.removeAllListeners('close'),this.transport.close(),this.transport.removeAllListeners(),fb&&(this.q&&removeEventListener('beforeunload',
|
|
702
|
-
this.q,!1),this.N)){var p=Hb.indexOf(this.N);-1!==p&&Hb.splice(p,1)}this.readyState='closed';this.id=null;this.emitReserved('close',e,b);this.writeBuffer=[];this.L=0}},m}(
|
|
703
|
-
da.call(this,h,e)||this}return S(m,da),m}(function(da){function m(){var e;return(e=da.apply(this,arguments)||this)._=[],e}S(m,da);var h=m.prototype;return h.onOpen=function(){if(da.prototype.onOpen.call(this),'open'===this.readyState&&this.opts.upgrade)for(var e=0;e<this._.length;e++)this.tt(this._[e])},h.tt=function(e){function b(){Z||(Z=!0,qa(),
|
|
704
|
-
Z=!1;Ub.priorWebsocketSuccess=!1;var
|
|
705
|
-
|
|
704
|
+
this.q,!1),this.N)){var p=Hb.indexOf(this.N);-1!==p&&Hb.splice(p,1)}this.readyState='closed';this.id=null;this.emitReserved('close',e,b);this.writeBuffer=[];this.L=0}},m}(Fa);Ub.protocol=4;var pc=function(da){function m(h){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e='object'===Q(h)?h:e;return(!e.transports||e.transports&&'string'==typeof e.transports[0])&&(e.transports=(e.transports||['polling','websocket','webtransport']).map(function(b){return Ab[b]}).filter(function(b){return!!b})),
|
|
705
|
+
da.call(this,h,e)||this}return S(m,da),m}(function(da){function m(){var e;return(e=da.apply(this,arguments)||this)._=[],e}S(m,da);var h=m.prototype;return h.onOpen=function(){if(da.prototype.onOpen.call(this),'open'===this.readyState&&this.opts.upgrade)for(var e=0;e<this._.length;e++)this.tt(this._[e])},h.tt=function(e){function b(){Z||(Z=!0,qa(),F.close(),F=null)}function p(){ba('transport closed')}function u(){ba('socket closed')}function k(Aa){F&&Aa.name!==F.name&&b()}var N=this,F=this.createTransport(e),
|
|
706
|
+
Z=!1;Ub.priorWebsocketSuccess=!1;var xa=function(){Z||(F.send([{type:'ping',data:'probe'}]),F.once('packet',function(Aa){if(!Z)if('pong'===Aa.type&&'probe'===Aa.data){if(N.upgrading=!0,N.emitReserved('upgrading',F),F)Ub.priorWebsocketSuccess='websocket'===F.name,N.transport.pause(function(){Z||'closed'!==N.readyState&&(qa(),N.setTransport(F),F.send([{type:'upgrade'}]),N.emitReserved('upgrade',F),F=null,N.upgrading=!1,N.flush())})}else Aa=Error('probe error'),Aa.transport=F.name,N.emitReserved('upgradeError',
|
|
707
|
+
Aa)}))},ba=function(Aa){Aa=Error('probe error: '+Aa);Aa.transport=F.name;b();N.emitReserved('upgradeError',Aa)},qa=function(){F.removeListener('open',xa);F.removeListener('error',ba);F.removeListener('close',p);N.off('close',u);N.off('upgrading',k)};F.once('open',xa);F.once('error',ba);F.once('close',p);this.once('close',u);this.once('upgrading',k);-1!==this._.indexOf('webtransport')&&'webtransport'!==e?this.setTimeoutFn(function(){Z||F.open()},200):F.open()},h.onHandshake=function(e){this._=this.nt(e.upgrades);
|
|
706
708
|
da.prototype.onHandshake.call(this,e)},h.nt=function(e){for(var b=[],p=0;p<e.length;p++)~this.transports.indexOf(e[p])&&b.push(e[p]);return b},m}(Ub));return function(da,m){return new pc(da,m)}});
|
|
707
|
-
function BindingHelper(A){var
|
|
708
|
-
O.handler+'` could not be reached. You must expose it to the `window` do object before any call.');var Q=O.handler;delete O.handler;window[Q].apply(this,Object.values(O));O.handler=Q}else
|
|
709
|
+
function BindingHelper(A){var P={};'undefined'!=typeof A&&(P=A);P.process=function(V,ka,S){if('undefined'==typeof V||!Array.isArray(V))throw Error('`bindings` must be a defined array');'undefined'==typeof ka&&(ka=V.length,S=0);if(V[S]){var O=V[S];if('undefined'==typeof O.call)throw Error('`bindings.['+S+'].call` is required !');if('function'!=typeof P[O.call])throw Error('`bindingContext.'+O.call+'` is not a function');var ia=O.call;delete O.call;try{if('undefined'!=typeof O.handler){if(!window[O.handler])throw Error('`'+
|
|
710
|
+
O.handler+'` could not be reached. You must expose it to the `window` do object before any call.');var Q=O.handler;delete O.handler;window[Q].apply(this,Object.values(O));O.handler=Q}else P[ia].apply(this,Object.values(O));O.call=ia}catch(R){console.error('BindingHelper encountered error while trying to execute `'+ia+'`'+R.stack||R)}P.process(V,ka,S+1)}};return P}define('helpers/binding',[],function(){return BindingHelper});
|
|
709
711
|
if('undefined'!==typeof module&&module.exports){var fs=require('fs'),os=require('os'),dns=require('dns'),execSync=require('child_process').execSync,util=require('util'),promisify=util.promisify;try{var console=require('../../logger')}catch(A){}}
|
|
710
|
-
function Domain(A,
|
|
711
|
-
(
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
n.
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
typeof
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
Ia
|
|
712
|
+
function Domain(A,P){this.name=arguments.callee.name;var V='undefined'!==typeof module&&module.exports?!1:!0,ka=!1,S='/_gina/assets/public_suffix_list.dat',O=null;V&&(ka=!!window.MSInputMethodContext&&!!document.documentMode,S=gina.config.webroot+S.substring(1),O=new EventTarget);'function'==typeof arguments[0]&&(P=arguments[0],A=void 0);var ia={filename:'../dist/public_suffix_list.dat',url:S,alternativeUrl:'https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat',isCachingRequired:!1,
|
|
713
|
+
isUpdating:!1};V||'undefined'==typeof A||'undefined'==typeof A.webroot||(ia.url=A.webroot+S.substring(1));var Q=this.name,R=null,r=window.rawPSL||null,G=function(I,B,D){if('undefined'==typeof B)B=ia;else for(let n in ia)'undefined'==typeof B[n]&&(B[n]=ia[n]);V||(B.filename=__dirname+'/'+B.filename);V&&B.isCachingRequired&&(console.warn('[DOMAIN] `options.isCachingRequired` is only available for backend'),B.isCachingRequired=!1);R=B;if(D)return w(B,function(n){n?D(n):(console.debug('[DOMAIN][CB] PSL Loaded'),
|
|
714
|
+
D(n,I))});w(B);console.debug('[DOMAIN] PSL Loaded');return I};S=function(){};var w=async function(I,B){var D=V||I.isCachingRequired?I.url:I.filename,n='undefined'!=typeof I.isUpdating?I.isUpdating:!1,y=null;if(V)if(r&&!n)B(!1);else if(window.fetch){if(O.addEventListener('domain_psl.loaded',E=>{B(E.detail.error)}),!(-1<window.gina._global.initialized.indexOf(Q))){V&&-1==window.gina._global.initialized.indexOf(Q)&&window.gina._global.initialized.push(Q);y=n=null;try{n=await fetch(D),y=await n.text(),
|
|
715
|
+
r=window.rawPSL=y}catch(E){y=Error('[DOMAIN] Could not load PSL\n'+(E.stack||E.message||E));O.dispatchEvent(new CustomEvent('domain_psl.loaded',{detail:{data:null,error:y,timestamp:new Date}}));return}I.isUpdating=!1;O.dispatchEvent(new CustomEvent('domain_psl.loaded',{detail:{data:y,error:!1,timestamp:new Date}}))}}else y=Error('[DOMAIN] Fetch API not supported'),B(y);else{D=!1;if('undefined'!=typeof fs.accessSync)try{fs.accessSync(I.filename,fs.constants.F_OK),D=!0}catch(E){D=!1;try{fs.lstatSync(I.filename).isSymbolicLink()&&
|
|
716
|
+
(D=!0)}catch(x){}}else D=fs.existsSync(I.filename);D||(I.isCachingRequired=!0);if(I.isCachingRequired){D='curl -o '+I.filename+' '+I.url+' >/dev/null 2>&1';console.debug('[DOMAIN] Running: '+D);try{console.debug(execSync(D).toString())}catch(E){console.warn('[DOMAIN] could not fetch from `'+I.url+'`. Trying with `'+I.alternativeUrl+'`');D='curl -o '+I.filename+' '+I.alternativeUrl+' >/dev/null 2>&1';try{console.debug(execSync(D).toString())}catch(x){B(x);return}}var z=!1;nIntervId=setInterval(()=>
|
|
717
|
+
{if('undefined'!=typeof fs.accessSync)try{fs.accessSync(I.filename,fs.constants.F_OK),z=!0}catch(E){z=!1;try{fs.lstatSync(I.filename).isSymbolicLink()&&(z=!0)}catch(x){}}else z=fs.existsSync(I.filename);z&&(clearInterval(nIntervId),r=fs.readFileSync(I.filename).toString(),B(!1))},200)}try{r=fs.readFileSync(I.filename).toString(),B&&B(!1)}catch(E){console.warn('[DOMAIN] could not read from `'+I.filename+'`'),w(A,B)}}},va=function(I){R.isUpdating=!0;w(R,I)},Fa=async function(I){I='undefined'!=typeof I&&
|
|
718
|
+
''!=I?I:os.hostname();if(/\./.test(I))return I;console.debug('[DOMAIN][getFQDN] FQDN: '+I);var B=null,D=null;B=await promisify(dns.lookup)(I,{hints:dns.ADDRCONFIG||dns.V4MAPPED}).then(function(n){console.debug('[DOMAIN][getFQDN] IP: '+n.address);console.debug('[DOMAIN][getFQDN] FAMILY: '+n.family);return n}).catch(function(n){D=n});if(D)throw D;I=await promisify(dns.lookupService)(B.address,0).then(function(n){console.debug('[DOMAIN][getFQDN] FQDN: '+n.hostname);console.debug('[DOMAIN][getFQDN] Service: '+
|
|
719
|
+
n.service);return n.hostname}).catch(function(n){});if(D)throw D;if(!/\./.test(I))throw Error('[DOMAIN][getFQDN] `'+I+'` is not a FQDN !');return I},U={getRootDomain:function(I,B){'undefined'==typeof B&&(B=!1);I=I.trim();var D=!1,n=!1,y=I.replace(/^(.*):\/\/|\/(.*)/g,''),z=y.split(/\./g).reverse(),E=z.length?z.length-1:0,x=r.replace(/\/\/\s*(.*)\n|^\s*\n/gm,'').split(/\n/).filter(function(v,H,M){/[^a-z 0-9.]+/.test(v)&&(v=v.replace(/[^a-z 0-9.]+/g,'').replace(/^\./g,''));return/\./.test(v)&&!D&&(new RegExp('.'+
|
|
720
|
+
v+'$')).test(y)?(D=!0,E=v.split(/\./g).length,M.splice(0,M.length),!1):v});y=z[E];0<E&&(z=z.splice(0,E),n=z[0],/:(.*)$/.test(n)&&(n=n.replace(/:(.*)$/,'')),(n=D||!D&&-1<x.indexOf(n)?!0:!1)?1<E&&!D?(z.splice(2),y=z.reverse().join('.')):y+='.'+z.reverse().join('.'):1<E?(z.splice(2),y=z.reverse().join('.')):y+='.'+z.reverse().join('.'));/:(.*)$/.test(y)&&(y=y.replace(/:(.*)$/,''));console.debug('[DOMAIN] isSLD: '+D,I,' -> ',y);/^true$/i.test(B);return{value:y,isSLD:D,isRegisteredTldOrSld:n}}};V?U.onReady=
|
|
721
|
+
S:(U.updatePSL=va,U.getFQDN=Fa);return V&&ka&&!window.fetch?(ka=document.createElement('script'),ka.type='text/javascript',ka.src='https://cdn.jsdelivr.net/npm/promise-polyfill@8.1.3/dist/polyfill.min.js',S=document.createElement('script'),S.type='text/javascript',S.src='https://cdn.jsdelivr.net/npm/whatwg-fetch@3.4.0/dist/fetch.umd.min.js',document.head.appendChild(ka),document.head.appendChild(S),setTimeout(()=>G(U,A,P),500)):G(U,A,P)}
|
|
722
|
+
'undefined'!==typeof module&&module.exports?module.exports=Domain:'function'===typeof define&&define.amd&&define('lib/domain',[],function(){return Domain});
|
|
723
|
+
define('gina/link','require jquery vendor/uuid lib/domain lib/merge utils/events'.split(' '),function(A){A('jquery').noConflict();var P=A('vendor/uuid'),V=A('lib/domain'),ka=null,S=A('lib/merge');A('utils/events');return function(O){function ia(n,y){var z=B(n),E=z.id,x=document.getElementById(E)||null;(x.getAttribute('data-gina-link-event-on-success')||x.getAttribute('data-gina-link-event-on-error'))&&listenToXhrEvents(z);y='undefined'==typeof y?va:S(y,va);if(/^(http|https):/.test(n)&&!(new RegExp('^'+
|
|
724
|
+
window.location.protocol+'//'+window.location.host)).test(n)){var v=ka.getRootDomain(window.location.hostname).value,H=ka.getRootDomain(n).value;v=v===H?!0:!1;gina.config.envIsDev&&(console.debug('Checking CORS from Popin plugin...TODO - local CORS Proxy'),console.debug('Is request from same domain ? ',v));v||(n=n.match(/^(https|http):/)[0]+'//corsacme.herokuapp.com/?'+n)}y.url=n;z&&'undefined'!=typeof z.options&&(y=S(z.options,y));y.withCredentials?'withCredentials'in w?y.isSynchrone?w.open(y.method,
|
|
725
|
+
y.url,y.isSynchrone):w.open(y.method,y.url):'undefined'!=typeof XDomainRequest?(w=new XDomainRequest,w.open(y.method,y.url)):(w=null,triggerEvent(gina,x,'error.'+E,'CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ')):y.isSynchrone?w.open(y.method,y.url,y.isSynchrone):w.open(y.method,y.url);if(!w)throw Error('No `xhr` object initiated');y.$link=z;handleXhr(w,x,y,A);w.send()}function Q(n,y){if('object'!=typeof y)throw Error('`options` must be an object');
|
|
726
|
+
n.options=S(y,R.options);y=document.getElementById(n.id)||null;if('undefined'==typeof r.$links[n.id]){if(-1<Fa.indexOf(n.id))throw Error('`link '+n.id+'` already exists !');if(!gina.events[evt]){addListener(gina,y,evt,function(x){cancelEvent(x);x=I(x.target.id);var v=x.url;'undefined'==typeof x.options.isSynchrone&&(x.options.isSynchrone=!1);'undefined'==typeof x.options.withCredentials&&(x.options.withCredentials=!1);ia(v,x.options)});var z=y.childNodes,E=0;lLen=z.length;if(0<lLen)for(;E<lLen;++E)'undefined'!=
|
|
727
|
+
typeof z[E].tagName&&U(z[E],y,evt)}n.request=ia;n.getLinkById=I;n.getLinkByUrl=B;r.$links[n.id]=n}}this.plugin='link';registerEvents(this.plugin,'loaded ready open close destroy success error progress'.split(' '));var R={options:{url:void 0,'class':'gina-link-default'},authorizedEvents:['ready','success','error'],events:{}},r={plugin:this.plugin,id:'gina-links-'+P.v4(),on,eventData:{},$links:{},target:document,isReady:!1,initialized:!1},G={plugin:this.plugin,on,eventData:{},target:document,url:null,
|
|
728
|
+
request:null,$forms:[]},w=null,va={url:'',method:'GET',isSynchrone:!1,withCredentials:!0,headers:{'X-Requested-With':'XMLHttpRequest'}},Fa=[],U=function(n,y,z){addListener(gina,n,'click',function(E){cancelEvent(E);triggerEvent(gina,y,z)})},I=function(n){return'undefined'!=typeof r.$links[n]?r.$links[n]:null},B=function(n){var y=null,z;for(z in gina.link.$links)if('undefined'!=typeof gina.link.$links[z].url&&gina.link.$links[z].url==n){y=gina.link.$links[z];break}return y},D=function(n,y){'undefined'==
|
|
729
|
+
typeof n&&(n=r.target);var z,E=null;n=n.getElementsByTagName('a');for(var x=0,v=n.length;x<v;++x)if(((z=n[x].getAttribute('data-gina-link'))||''==z)&&!/^false$/i.test(z)){z=n[x];var H={type:'a',method:'GET'};var M=z.getAttribute('data-gina-link-url');H.url='undefined'!=typeof M&&null!=M?M:z.getAttribute('href');M=z.getAttribute('id');if('undefined'==typeof M||null==M||''==M||/popin\.link/.test(M))M='link.click.gina-link-'+r.id+'-'+P.v4();z.id=M;evt=H.id=M;z.setAttribute('id',evt);'A'==z.tagName&&
|
|
730
|
+
(E=z.getAttribute('onclick'));E?'undefined'==typeof E||/return false/.test(E)||(E=/;$/.test(E)?E+'return false;':E+'; return false;',z.setAttribute('onclick',E)):z.setAttribute('onclick','return false;');'undefined'==typeof r.$links[H.id]&&(H.target=z,z=S(H,G),Q(z,y))}};ka||new V(function(n,y){if(n)throw n;ka=y});return function(n){r.bindLinks=D;r.request=ia;r.getLinkById=I;r.getLinkByUrl=B;r.on('init',function(y){if(window.XMLHttpRequest)w=new XMLHttpRequest;else if(window.ActiveXObject)try{w=new ActiveXObject('Msxml2.XMLHTTP')}catch(z){try{w=
|
|
731
|
+
new ActiveXObject('Microsoft.XMLHTTP')}catch(E){}}evt='click';addListener(gina,r.target,evt,function(z){'undefined'==typeof z.target.id&&(z.target.setAttribute('id',evt+'.'+P.v4()),z.target.id=z.target.getAttribute('id'));if(/^link\.click\./.test(z.target.id)){cancelEvent(z);var E=z.target.id;(new RegExp('^link.click.gina-link-'+r.id)).test(E)&&triggerEvent(gina,z.target,E,z.detail)}});'undefined'==typeof n&&(n={});r.options=n;D(r.target,n);gina.linkIsBinded=!0;r.isReady=!0;gina.hasLinkHandler=!0;
|
|
732
|
+
gina.link=S(gina.link,r);triggerEvent(gina,r.target,'ready.'+r.id,r)});r.initialized=!0;return r}(O)}});
|
|
733
|
+
define('gina/popin','require vendor/uuid jquery lib/domain lib/merge utils/events'.split(' '),function(A){A('jquery').noConflict();var P=A('vendor/uuid'),V=A('lib/domain'),ka=null,S=A('lib/merge');A('utils/events');return function(O){function ia(){var W=null,ja;for(ja in gina.popin.$popins)if('undefined'!=typeof gina.popin.$popins[ja].isOpen&&gina.popin.$popins[ja].isOpen){W=gina.popin.$popins[ja];break}!W&&gina.popin.activePopinId&&(W=gina.popin.$popins[gina.popin.activePopinId]);return W}function Q(W,
|
|
734
|
+
ja){var ca=W.target,wa=W.type;'undefined'!=typeof W.detail&&'function'==typeof W.detail.trim&&(ca.innerHTML=W.detail.trim());W=function(zb,nb,Ab){var ub=Ab.getAttribute('data-gina-popin-is-link');ub=/^true$/i.test(ub)?!0:!1;'link'!=zb||ub||(zb='action');addListener(gina,Ab,nb,function(Ka){cancelEvent(Ka);if('close'!=zb){var fb=!1,Hb='loaded.'+ja.id;'undefined'==typeof gina.events[Hb]&&addListener(gina,ca,Hb,function(Ub){Ub.preventDefault();fb||(fb=!0,G(Ub.detail))});Hb={isSynchrone:!1,withCredentials:!1};
|
|
735
|
+
Hb=S(ja.options,Hb);r(ja.name,Ab.href,Hb)}removeListener(gina,Ka.target,Ka.type)});addListener(gina,Ab,'click',function(Ka){cancelEvent(Ka);if(null!=Ka.target.getAttribute('disabled')&&'false'!=Ka.target.getAttribute('disabled'))return!1;if('link'==zb){var fb=Ka.target.getAttribute('href')||null,Hb=Ka.target.getAttribute('target');null!=Hb&&''!=Hb?window.open(fb,Hb):triggerEvent(gina,Ka.target,Ka.currentTarget.id,ja)}else'undefined'==typeof Ka.target.id&&(Ka.target.setAttribute('id',nb+'.'+P.v4()),
|
|
736
|
+
Ka.target.id=Ka.target.getAttribute('id')),/^popin\.close\./.test(Ka.target.id)&&(cancelEvent(Ka),ja.isRedirecting=!1,I(ja.name)),/^popin\.click\./.test(Ka.target.id)&&(cancelEvent(Ka),fb=Ka.target.id,(new RegExp('^popin.click.gina-popin-'+n.id)).test(fb)&&triggerEvent(gina,Ka.target,fb,Ka.detail))})};gina.popinIsBinded=!0;var la=null,za=null,Ba=null;if(!ja.isOpen&&D.options.cancelOnOverlayClick){var Na=ja.target;if(!D.options.useDialogMode||gina.config.envIsDev)Na=n.target.childNodes[0];addListener(gina,
|
|
737
|
+
Na,'mousedown',function(zb){if(/gina-popin-is-active/.test(zb.target.className)){removeListener(gina,zb.target,'mousedown');zb=[];la=0;var nb=ca.getElementsByTagName('button');za=0;Ba=nb.length;if(0<Ba)for(;za<Ba;++za)/gina-popin-close/.test(nb[za].className)&&(zb[la]=nb[za],++la);nb=ca.getElementsByTagName('div');za=0;Ba=nb.length;if(0<Ba)for(;za<Ba;++za)/gina-popin-close/.test(nb[za].className)&&(zb[la]=nb[za],++la);nb=ca.getElementsByTagName('a');za=0;Ba=nb.length;if(0<Ba)for(;za<Ba;++za)/gina-popin-close/.test(nb[za].className)&&
|
|
738
|
+
(zb[la]=nb[za],++la);za=0;for(Ba=zb.length;za<Ba;++za){nb=zb[za];let Ab=nb.getAttribute('id');for(let ub=0,Ka=B.length;ub<Ka;ub++){let fb=B[ub];'undefined'!=typeof gina.events[fb]&&gina.events[fb]==Ab&&removeListener(gina,nb,fb);'undefined'!=typeof gina.events[Ab]&&gina.events[Ab]==Ab&&removeListener(gina,nb,Ab);'undefined'!=typeof gina.events[fb+'.'+Ab]&&gina.events[fb+'.'+Ab]==Ab&&removeListener(gina,nb,fb+'.'+Ab);'undefined'!=typeof gina.events[fb+'.'+Ab]&&gina.events[fb+'.'+Ab]==fb+'.'+Ab&&removeListener(gina,
|
|
739
|
+
nb,fb+'.'+Ab)}}ja.isRedirecting=!1;I(ja.name)}})}/<form/i.test(ca.innerHTML)&&'undefined'!=typeof z&&z&&(ja.hasForm=!0);var La=[],Ia=[];Na=[];Ia=ca.getElementsByTagName('button');za=la=0;Ba=Ia.length;if(0<Ia.length)for(;za<Ba;++za)/gina-popin-close/.test(Ia[za].className)&&(La[la]=Ia[za],++la);Ia=ca.getElementsByTagName('div');za=0;Ba=Ia.length;if(0<Ba)for(;za<Ba;++za)/gina-popin-close/.test(Ia[za].className)&&(La[la]=Ia[za],++la);Ia=ca.getElementsByTagName('a');za=0;Ba=Ia.length;if(0<Ba)for(;za<
|
|
740
|
+
Ba;++za)/gina-popin-close/.test(Ia[za].className)?(La[la]=Ia[za],++la):('undefined'==typeof Ia[za]||/(#|#.*)$/.test(Ia[za].href)||Ia[za].id)&&('undefined'==typeof Ia[za]||/(#|#.*)$/.test(Ia[za].href)||/^(click\.|popin\.link)/.test(Ia[za].id))||Na.push(Ia[za]);var Ua=null;Ia=null;za=0;for(Ba=La.length;za<Ba;++za)'A'==La[za].tagName&&(Ua=La[za].getAttribute('onclick')),Ua?'undefined'==typeof Ua||/return false/.test(Ua)||(Ua=/;$/.test(Ua)?Ua+'return false;':Ua+'; return false;'):La[za].setAttribute('onclick',
|
|
741
|
+
'return false;'),La[za].id?Ia=La[za].id:(Ia='popin.close.'+P.v4(),La[za].id=Ia,La[za].setAttribute('id',Ia)),'undefined'!=typeof gina.events[Ia]&&gina.events[Ia]==La[za].id||W('close',Ia,La[za]);la=0;Ba=Na.length;var Qa=null,Ha=null,Ja=null,Za={},rb=null,$a=new DOMParser,pb=null,Vb=null;for(Ia=La=La=null;la<Ba;++la)null==Na[la].getAttribute('disabled')&&(Na[la].id=/^null$/i.test(Na[la].getAttribute('id'))?null:Na[la].getAttribute('id'),Na[la].id&&/^popin\.link/.test(Na[la].id)&&/^popin\.click/.test(Na[la].id)?
|
|
742
|
+
Ia=Na[la].id:(Ia=!0,La=Na[la].getAttribute('href'),La&&''!=La&&'#'!=La||('#'!=La&&Na[la].setAttribute('href','#'),Ia=!1),/^null$/i.test(Na[la].id)?Ia?(Ia='popin.link.'+P.v4(),Na[la].setAttribute('data-gina-popin-is-link',!0)):(Ia='popin.click.'+P.v4(),Na[la].setAttribute('data-gina-popin-is-link',!1)):Ia=Na[la].id,Na[la].id=Ia,Na[la].setAttribute('id',Ia)),La=(La=Na[la].getAttribute('data-gina-form-submit'))&&/^true$/i.test(La)?!0:!1,La||(/^(null|\s*)$/.test(Na[la].getAttribute('href'))||addListener(gina,
|
|
739
743
|
Na[la],'click',function(zb){zb.preventDefault();ja.isRedirecting=!0;if(ja.hasForm){Qa=ja.target.getElementsByTagName('FORM');Ha=0;for(Ja=Qa.length;Ha<Ja;++Ha)if(pb=zb.currentTarget.id,Vb=$a.parseFromString(Qa.item(Ha).innerHTML,'text/html').getElementById(pb)||!1)rb=Qa[Ha].getAttribute('data-gina-form-inherits-data')||null,Za=S(Za,JSON.parse(decodeURIComponent(rb)));0<Za.count()&&(/\?/.test(zb.currentTarget.href)?zb.currentTarget.href+='&inheritedData='+encodeRFC5987ValueChars(JSON.stringify(Za)):
|
|
740
|
-
zb.currentTarget.href+='?inheritedData='+encodeRFC5987ValueChars(JSON.stringify(Za)))}}),'undefined'!=typeof gina.events[Ia]&&gina.events[Ia]==Na[la].id||W('link',Ia,Na[la])));if(ja.hasForm)for(W=null,Na=ca.getElementsByTagName('form'),la=0,
|
|
741
|
-
removeListener(gina,ja.target,
|
|
744
|
+
zb.currentTarget.href+='?inheritedData='+encodeRFC5987ValueChars(JSON.stringify(Za)))}}),'undefined'!=typeof gina.events[Ia]&&gina.events[Ia]==Na[la].id||W('link',Ia,Na[la])));if(ja.hasForm)for(W=null,Na=ca.getElementsByTagName('form'),la=0,Ba=Na.length;la<Ba;++la)Na[la].id&&'string'==typeof Na[la]?W=Na[la].id:(W=Na[la].getAttribute('id')||'form.'+P.v4(),Na[la].setAttribute('id',W),Na[la].id=W),0>ja.$forms.indexOf(W)&&ja.$forms.push(W),Na[la].close=I,z.isPopinContext=!0,z.validateFormById(Na[la].getAttribute('id')),
|
|
745
|
+
removeListener(gina,ja.target,wa)}function R(W,ja){var ca=ia();if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&'undefined'!=typeof W&&'undefined'!=typeof ja&&W){ca=W;try{var wa=null;!ja&&ca.error&&/^(\{|\[)/.test(ca.error)&&(ca.error=JSON.parse(ca.error));if('undefined'!=typeof ca.error&&'object'==typeof ca.error&&'object'==typeof ca.error){wa={status:ca.status};for(xErr in ca.error)/^error$/.test(xErr)||(wa[xErr]=ca.error[xErr]);wa.error=ca.error.error;ca=wa}else'undefined'!=
|
|
742
746
|
typeof ca.error&&'string'==typeof ca.error&&(ca=W);ca.isXHRViewData=!0;ginaToolbar.update('data-xhr',ca);return}catch(la){throw la;}}try{ca=M(n.activePopinId)}catch(la){ca&&ginaToolbar.update('data-xhr',la)}ca||(new DOMParser).parseFromString(W,'text/html').getElementsByClassName('popin')[0]||(new DOMParser).parseFromString(W,'text/html').getElementsByTagName('div');ca='string'==typeof W&&/<(.*)>/.test(W)?(new DOMParser).parseFromString(W,'text/html').getElementById('gina-without-layout-xhr-data'):
|
|
743
747
|
document.getElementById('gina-without-layout-xhr-data');if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&ca)try{'undefined'!=typeof ca.value&&ca.value&&(ca=JSON.parse(decodeURIComponent(ca.value)),ca.isXHRViewData=!0,ginaToolbar.update('data-xhr',ca))}catch(la){throw la;}W='string'==typeof W&&/<(.*)>/.test(W)?(new DOMParser).parseFromString(W,'text/html').getElementById('gina-without-layout-xhr-view'):document.getElementById('gina-without-layout-xhr-view');if(gina&&'undefined'!=
|
|
744
|
-
typeof window.ginaToolbar&&window.ginaToolbar&&W)try{'undefined'!=typeof W.value&&W.value&&(W=JSON.parse(decodeURIComponent(W.value)),ginaToolbar.update('view-xhr',W))}catch(la){throw la;}}function
|
|
745
|
-
la);var
|
|
746
|
-
Na),n.target.firstChild.appendChild(
|
|
747
|
-
'//corsacme.herokuapp.com/?'+ja,ca.withCredentials=!1));ca.url=ja;
|
|
748
|
-
|
|
749
|
-
!0),
|
|
750
|
-
Qa.status=
|
|
751
|
-
(delete Qa.popin,rb&&(Qa.popin={reload:rb}))}Ja='_self';'undefined'!=typeof Qa.target&&(Qa.target='_'+Qa.target,Ja=Qa.target);if(/^_self$/.test(Ja))return Ja=null,Ja='undefined'!=typeof Qa.popin?Qa.popin.location||Qa.popin.url:Qa.location,
|
|
752
|
-
typeof Qa.popin&&'undefined'!=typeof Qa.popin.close&&(
|
|
753
|
-
la,Qa)}else Ia=!1,Qa={status:
|
|
754
|
-
ca.isRedirecting='undefined'!=typeof ja?ja:!1;ja=ca.target;ja.innerHTML=W.trim();
|
|
755
|
-
n.target,'loaded.'+ca.id,ca):triggerEvent(gina,n.target,'open.'+ca.id,ca);if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar)try{ginaToolbar.update('el-xhr',ca.id)}catch(la){throw la;}}}function
|
|
756
|
-
function
|
|
757
|
-
'').replace(La,'');-1<ca.indexOf(Ia)||
|
|
758
|
-
/gina-popin-is-active/.test(n.target.firstChild.className)&&removeListener(gina,n.target,'open.'+ja.id);
|
|
759
|
-
'undefined'!=typeof W?
|
|
760
|
-
if(z&&(ja=0,W=ca.$forms.length,z.$forms&&0<W))for(;ja<W;++ja)'undefined'!=typeof z.$forms[ca.$forms[ja]]&&z.$forms[ca.$forms[ja]].destroy(),ca.$forms.splice(ja,1);gina.popinIsBinded=!1;removeListener(gina,ca.target,'loaded.'+ca.id)}}function
|
|
761
|
-
ja.target;var
|
|
762
|
-
ja.$headers[W].id+'`\n'+la.stack)}ja.$headers=[]}
|
|
763
|
-
id:'gina-popins-'+
|
|
764
|
-
document.createElement('div');ja.setAttribute('id','gina-popins-overlay');ja.setAttribute('class','gina-popins-overlay');W.appendChild(ja)}document.body.appendChild(W);n.target=W;n.on=on;gina.popinContainer=n.id},
|
|
765
|
-
function(W,ja){ja=getElementsByAttribute('data-gina-popin-name');var ca=null,
|
|
766
|
-
(ca.popinName=
|
|
767
|
-
W.id,Q(Ha,W),W.isOpen||
|
|
768
|
-
Ia.target.getAttribute('disabled'))return!1;'undefined'==typeof Ia.target.id&&(Ia.target.setAttribute('id',
|
|
769
|
-
isSynchrone:!1,withCredentials:!0,headers:{'X-Requested-With':'XMLHttpRequest'}};gina.hasPopinHandler?(n.target=document.getElementById(gina.popinContainer),n.on=on):
|
|
770
|
-
ca.options=S(W,
|
|
771
|
-
ca.name=ca.options.name;ca.target=n.target;ca.load=
|
|
772
|
-
for(let
|
|
773
|
-
n.id,ja)});n.initialized=!0;return n}(O)}});'function'!==typeof Object.assign&&Object.defineProperty(Object,'assign',{value:function(A,
|
|
774
|
-
if('undefined'==typeof JSON.clone){var clone=function(A,
|
|
775
|
-
clone}if('undefined'==typeof JSON.escape){var escape=function(A){try{return A.replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/\t/g,'\\t')}catch(
|
|
776
|
-
function Inherits(A,
|
|
748
|
+
typeof window.ginaToolbar&&window.ginaToolbar&&W)try{'undefined'!=typeof W.value&&W.value&&(W=JSON.parse(decodeURIComponent(W.value)),ginaToolbar.update('view-xhr',W))}catch(la){throw la;}}function r(W,ja,ca){if('undefined'==typeof W){if('undefined'==typeof this.name)throw Error('`$popin.name` needs to be defined !');W=this.name}else'undefined'==typeof this.name&&'undefined'!=W&&(this.name=W);var wa=T(W),la=wa.id,za=document.getElementById(wa.openTrigger)||null;gina.popin.activePopinId||(gina.popin.activePopinId=
|
|
749
|
+
la);var Ba=document.getElementById(la)||null;if(null==Ba){var Na=null;D.options.useDialogMode?(Na=wa.options.class+' '+la,Ba=document.createElement('dialog'),Ba.setAttribute('id',la),Ba.setAttribute('class',Na),Ba.setAttribute('data-type','modal'),Ba.setAttribute('aria-labelledby',W),($overlay=document.getElementById('gina-popins-overlay'))?$overlay.appendChild(Ba):n.target.appendChild(Ba)):(Na=wa.options.class+' '+la,Ba=document.createElement('div'),Ba.setAttribute('id',la),Ba.setAttribute('class',
|
|
750
|
+
Na),n.target.firstChild.appendChild(Ba))}'undefined'==typeof ca?ca=Ea:(W=Ea.withCredentials,ca=S(ca,Ea),ca.withCredentials=W);/^(http|https):/.test(ja)&&!(new RegExp('^'+window.location.protocol+'//'+window.location.host)).test(ja)&&(W=ka.getRootDomain(window.location.hostname).value,Na=ka.getRootDomain(ja).value,W=W===Na?!0:!1,gina.config.envIsDev&&(console.debug('Checking CORS from Popin plugin...TODO - local CORS Proxy'),console.debug('Is request from same domain ? ',W)),W||(ja=ja.match(/^(https|http):/)[0]+
|
|
751
|
+
'//corsacme.herokuapp.com/?'+ja,ca.withCredentials=!1));ca.url=ja;wa.options=S(ca,wa.options);var La=null;ca.withCredentials?'withCredentials'in E?ca.isSynchrone?E.open(ca.method,ca.url,ca.isSynchrone):E.open(ca.method,ca.url):'undefined'!=typeof XDomainRequest?(E=new XDomainRequest,E.open(ca.method,ca.url)):(E=null,La='CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ',triggerEvent(gina,Ba,'error.'+la,La)):ca.isSynchrone?E.open(ca.method,ca.url,ca.isSynchrone):
|
|
752
|
+
E.open(ca.method,ca.url);var Ia=!1;if(E){E.withCredentials='undefined'!=typeof ca.withCredentials?ca.withCredentials:!1;E.onerror=function(Qa,Ha){La={status:E.status,error:'Transaction error: might be due to the server CORS settings.\nPlease, check the console for more details.'};Ia=!0;n.eventData.error=La+'\n'+Ha;R(La,Ia);triggerEvent(gina,Ba,'error.'+la,La)};for(var Ua in ca.headers)E.setRequestHeader(Ua,ca.headers[Ua]);/^(1|3)$/.test(E.readyState)&&(wa.target.setAttribute('data-gina-popin-loading',
|
|
753
|
+
!0),za&&(/^A$/i.test(za.tagName)?za.setAttribute('aria-disabled',!0):za.setAttribute('disabled',!0)));E.onreadystatechange=function(Qa){/^(1|3)$/.test(E.readyState)&&(wa.target.setAttribute('data-gina-popin-loading',!0),za&&(/^A$/i.test(za.tagName)?za.setAttribute('aria-disabled',!0):za.setAttribute('disabled',!0)));if(4==E.readyState)if(Qa=null,/^2/.test(E.status))try{Qa=E.responseText;var Ha=E.getResponseHeader('Content-Type'),Ja=/application\/json/.test(Ha)?!0:!1,Za=!0;Ja&&(Qa=JSON.parse(E.responseText),
|
|
754
|
+
Qa.status=E.status,Qa.contentType=Ha,Za=!1);n.eventData.success=Qa;if(!Ja&&wa.isOpen&&!wa.hasForm||!Ja&&wa.isOpen&&Za)G(Qa,Za);else{if(Ja&&'undefined'!=typeof Qa.location||Ja&&'undefined'!=typeof Qa.reload){Ha=!1;'undefined'!=typeof Qa.isXhrRedirect&&/^true$/i.test(Qa.isXhrRedirect)&&(Ha=!0);if('undefined'!=typeof Qa.location&&Ha){if('undefined'!=typeof Qa.popin&&'undefined'!=typeof Qa.popin.close){wa.isRedirecting=!1;wa.close();var rb=Qa.popin.reload?Qa.popin.reload:!1;Qa.popin.location||Qa.popin.url||
|
|
755
|
+
(delete Qa.popin,rb&&(Qa.popin={reload:rb}))}Ja='_self';'undefined'!=typeof Qa.target&&(Qa.target='_'+Qa.target,Ja=Qa.target);if(/^_self$/.test(Ja))return Ja=null,Ja='undefined'!=typeof Qa.popin?Qa.popin.location||Qa.popin.url:Qa.location,wa.load(wa.name,Ja,wa.options),setTimeout(function($a){$a.isOpen||$a.open()},50,wa);window.open(Qa.location,Ja);return}if('undefined'!=typeof Qa.location){document.location=Qa.location;return}if('undefined'!=typeof Qa.reload){document.location.reload();return}'undefined'!=
|
|
756
|
+
typeof Qa.popin&&'undefined'!=typeof Qa.popin.close&&(wa.isRedirecting=!1,I(wa.name))}if(!Ja){GINA_ENV_IS_DEV&&R(Qa);triggerEvent(gina,Ba,'loaded.'+la,Qa);return}GINA_ENV_IS_DEV&&R(Qa);triggerEvent(gina,$forms[0],'success.'+la,Qa)}GINA_ENV_IS_DEV&&R(Qa)}catch($a){Ia=!1,Qa={status:422,error:$a.description||$a.stack},/application\/json/.test(E.getResponseHeader('Content-Type'))&&(Qa.error=JSON.parse(E.responseText),Ia=!0),n.eventData.error=Qa,GINA_ENV_IS_DEV&&R(Qa,Ia),triggerEvent(gina,Ba,'error.'+
|
|
757
|
+
la,Qa)}else Ia=!1,Qa={status:E.status,error:E.responseText},/application\/json/.test(E.getResponseHeader('Content-Type'))&&(Qa.error=JSON.parse(E.responseText),Ia=!0),n.eventData.error=Qa,GINA_ENV_IS_DEV&&R(Qa,Ia),triggerEvent(gina,Ba,'error.'+la,Qa)};E.send();return{open:function(){var Qa=!1;addListener(gina,Ba,'loaded.'+la,function(Ha){Ha.preventDefault();Qa||(Qa=!0,n.activePopinId=wa.id,Q(Ha,wa),Fa(wa.name))})}}}}function G(W,ja){var ca=ia();if(ca){if(!ca.isOpen)throw Error('Popin `'+ca.name+'` is not open !');
|
|
758
|
+
ca.isRedirecting='undefined'!=typeof ja?ja:!1;ja=ca.target;ja.innerHTML=W.trim();U(ca.name,!0);Q({target:ja,type:'loaded.'+ca.id},ca);if(!D.options.useDialogMode&&/safari/i.test(window.navigator.userAgent))for(W=document.getElementsByTagName('link'),ja=0;ja<W.length;ja++)if('stylesheet'==W[ja].getAttribute('rel')){var wa=W[ja].getAttribute('href').split('?')[0];/gina\.min\.css|gina\.css/.test(wa)&&(wa=wa+'?version='+(new Date).getMilliseconds(),W[ja].setAttribute('href',wa))}ca.isRedirecting?triggerEvent(gina,
|
|
759
|
+
n.target,'loaded.'+ca.id,ca):triggerEvent(gina,n.target,'open.'+ca.id,ca);if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar)try{ginaToolbar.update('el-xhr',ca.id)}catch(la){throw la;}}}function w(W){var ja=setupXhr();ja.open('GET',W,!0);ja.setRequestHeader('Content-Type','text/javascript');ja.onload=function(){eval(ja.response)};ja.send()}function va(W){var ja=setupXhr();ja.open('GET',W,!0);ja.setRequestHeader('Content-Type','text/css');ja.onload=function(){eval(ja.response)};ja.send()}
|
|
760
|
+
function Fa(W){var ja='undefined'!=typeof W?T(W):M(this.id);if(!ja)throw Error('Popin name `'+W+'` not found !');W=document.getElementById(ja.id);var ca=ja.parentScripts,wa=W.getElementsByTagName('script'),la=ja.parentStyles,za=W.getElementsByTagName('link'),Ba=0,Na=wa.length,La=gina.config.hostname.replace(/(https|http|):\/\//,'').replace(/:\d+$/,'');for(La=new RegExp(La+':\\d+|'+La);Ba<Na;++Ba){if('undefined'==typeof wa[Ba].src||''==wa[Ba].src)continue;let Ia=wa[Ba].src.replace(/(https|http|):\/\//,
|
|
761
|
+
'').replace(La,'');-1<ca.indexOf(Ia)||w(wa[Ba].src)}Ba=0;for(Na=za.length;Ba<Na;++Ba)'undefined'!=typeof za[Ba].href&&''!=za[Ba].href&&(ca=za[Ba].href.replace(/(https|http|):\/\//,'').replace(La,''),-1<la.indexOf(ca)||va(za[Ba].href));Q({target:W,type:'loaded.'+ja.id},ja);/gina-popin-is-active/.test(W.className)||(W.className+=' gina-popin-is-active');if(!D.options.useDialogMode||gina.config.envIsDev)/gina-popin-is-active/.test(n.target.firstChild.className)||(n.target.firstChild.className+=' gina-popin-is-active'),
|
|
762
|
+
/gina-popin-is-active/.test(n.target.firstChild.className)&&removeListener(gina,n.target,'open.'+ja.id);D.options.useDialogMode&&!W.getAttribute('open')&&('function'===typeof W.showModal?gina.config.envIsDev?W.show():W.showModal():W.setAttribute('open',!0));ja.isOpen=!0;ja.target=W;n.activePopinId=ja.id;if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar)try{ginaToolbar.update('el-xhr',ja.id)}catch(Ia){throw Ia;}triggerEvent(gina,n.target,'open.'+ja.id,ja)}function U(W,ja){var ca=
|
|
763
|
+
'undefined'!=typeof W?T(W):ia();if(!ca&&'undefined'!=typeof W)throw Error('Popin `'+W+'` not found !');if('undefined'!=typeof ca&&null!=ca&&(W=ca.target,ja='undefined'!=typeof ja?ja:!1,null!=W&&/gina-popin-is-active/.test(W.className))){ja||(n.target.firstChild.className=n.target.firstChild.className.replace(/\sgina-popin-is-active|gina-popin-is-active|gina-popin-is-active\s/,''),W.className=W.className.replace(/\sgina-popin-is-active|gina-popin-is-active|gina-popin-is-active\s/,''),W.innerHTML='');
|
|
764
|
+
if(z&&(ja=0,W=ca.$forms.length,z.$forms&&0<W))for(;ja<W;++ja)'undefined'!=typeof z.$forms[ca.$forms[ja]]&&z.$forms[ca.$forms[ja]].destroy(),ca.$forms.splice(ja,1);gina.popinIsBinded=!1;removeListener(gina,ca.target,'loaded.'+ca.id)}}function I(W){if('undefined'==typeof W&&/^true$/.test(this.isOpen)){W=this.name;var ja=this}else{ja=T(W)||ia();if(!ja)return;W=ja.name}if(!ja&&'undefined'!=typeof W)throw Error('Popin `'+W+'` not found !');if(ja.isOpen&&'undefined'!=typeof ja&&null!=ja&&!ja.isRedirecting){var ca=
|
|
765
|
+
ja.target;var wa=document.getElementById(ja.openTrigger)||null;'function'===typeof ca.close?ca.close():ca.removeAttribute('open');removeListener(gina,ja.target,'ready.'+n.id);ja.hasForm&&(ja.hasForm=!1);if(null!=ca&&/gina-popin-is-active/.test(ca.className)){U(W);ja.isOpen=!1;gina.popinIsBinded=!1;GINA_ENV_IS_DEV&&gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&ginaToolbar.restore();n.activePopinId=null;if(0<ja.$headers.length){W=0;ca=ja.$headers.length;try{for(;W<ca;++W)document.getElementById(ja.$headers[W].id).remove()}catch(la){console.warn('Could not remove script `'+
|
|
766
|
+
ja.$headers[W].id+'`\n'+la.stack)}ja.$headers=[]}wa&&(/^A$/i.test(wa.tagName)?wa.removeAttribute('aria-disabled',!0):wa.removeAttribute('disabled',!0));triggerEvent(gina,ja.target,'close.'+ja.id,ja)}}}this.plugin='popin';var B='init loaded ready open close click destroy success error progress'.split(' ');registerEvents(this.plugin,B);var D={options:{name:void 0,'class':'gina-popin-default',useDialogMode:!0,cancelOnOverlayClick:!1},authorizedEvents:['ready','error'],events:{}},n={plugin:this.plugin,
|
|
767
|
+
id:'gina-popins-'+P.v4(),on,eventData:{},$popins:{},activePopinId:null,getActivePopin:null,target:document,isReady:!1,initialized:!1},y={plugin:this.plugin,on,eventData:{},target:document,name:null,load:null,loadContent:null,open:null,isOpen:!1,isRedirecting:!1,close:null,$forms:[],hasForm:!1,$headers:[]},z=null,E=null,x=[],v=function(){var W=document.createElement('div');W.id=n.id;W.setAttribute('id',n.id);W.setAttribute('class','gina-popins');if(!D.options.useDialogMode||gina.config.envIsDev){var ja=
|
|
768
|
+
document.createElement('div');ja.setAttribute('id','gina-popins-overlay');ja.setAttribute('class','gina-popins-overlay');W.appendChild(ja)}document.body.appendChild(W);n.target=W;n.on=on;gina.popinContainer=n.id},H=function(W,ja,ca){addListener(gina,W,'click',function(wa){cancelEvent(wa);triggerEvent(gina,ja,ca)})},M=function(W){return'undefined'!=typeof n.$popins[W]?n.$popins[W]:null},T=function(W){var ja=null,ca;for(ca in n.$popins)if(n.$popins[ca].name===W){ja=n.$popins[ca];break}return ja},pa=
|
|
769
|
+
function(W,ja){ja=getElementsByAttribute('data-gina-popin-name');var ca=null,wa=null,la=null,za=null,Ba=null,Na=null,La=null;Na=0;for(La=ja.length;Na<La;++Na){ca=ja[Na];wa=ca.getAttribute('data-gina-popin-name');'A'==ca.tagName&&(za=ca.getAttribute('href'),''==za||'#'==za||/#/.test(za))&&(za=null);za||'undefined'==typeof ca.getAttribute('data-gina-popin-url')||(za=ca.getAttribute('data-gina-popin-url'));if(!za)throw Error('Found `data-gina-popin-name` without `url` !');ca.url||(ca.url=za);ca.popinName||
|
|
770
|
+
(ca.popinName=wa);if(wa==W.name&&(la=ca.id||ca.getAttribute('id')||null,Ba='popin.click.gina-popin-'+n.id+'-'+P.v4()+'-'+wa,la&&RegExp('^popin.click.gina-popin-').test(la)&&(Ba=la),!gina.events[Ba]&&(ca.id=Ba,ca.setAttribute('id',Ba),addListener(gina,ca,Ba,function(Ia){cancelEvent(Ia);W.openTrigger=Ia.currentTarget.id||Ia.currentTarget.getAttribute('id');var Ua=!1;addListener(gina,W.target,'loaded.'+W.id,function(Ha){Ha.preventDefault();Ua||(Ua=!0,console.debug('active popin should be ',W.id),gina.popin.activePopinId=
|
|
771
|
+
W.id,Q(Ha,W),W.isOpen||Fa(W.name))});Ia={isSynchrone:!1,withCredentials:!1};Ia=S(W.options,Ia);var Qa=this.getAttribute('data-gina-popin-url')||this.getAttribute('href');if(!Qa)throw Error('Popin `url` not defined, please check value for `data-gina-popin-url`');r(W.name,Qa,Ia)}),wa=ca.childNodes,la=0,lLen=wa.length,0<lLen)))for(;la<lLen;++la)'undefined'!=typeof wa[la].tagName&&H(wa[la],ca,Ba)}Ba='click';addListener(gina,document,Ba,function(Ia){if(null!=Ia.target.getAttribute('disabled')&&'false'!=
|
|
772
|
+
Ia.target.getAttribute('disabled'))return!1;'undefined'==typeof Ia.target.id&&(Ia.target.setAttribute('id',Ba+'.'+P.v4()),Ia.target.id=Ia.target.getAttribute('id'));if(/^popin\.close\./.test(Ia.target.id)){cancelEvent(Ia);var Ua=Ia.target.id;triggerEvent(gina,Ia.target,Ua,Ia.detail)}/^popin\.click\./.test(Ia.target.id)&&(cancelEvent(Ia),Ua=Ia.target.id,(new RegExp('^popin.click.gina-popin-'+n.id)).test(Ua)&&triggerEvent(gina,Ia.target,Ua,Ia.detail))});gina.popinIsBinded=!1},Ea={url:'',method:'GET',
|
|
773
|
+
isSynchrone:!1,withCredentials:!0,headers:{'X-Requested-With':'XMLHttpRequest'}};gina.hasPopinHandler?(n.target=document.getElementById(gina.popinContainer),n.on=on):v();ka||new V(function(W,ja){if(W)throw W;ka=ja});return function(W){n.getPopinById=M;n.getPopinByName=T;n.load=r;n.loadContent=G;n.getActivePopin=ia;n.open=Fa;n.close=I;addListener(gina,n.target,'init.'+n.id,function(ja){ja=null;if('undefined'==typeof n.$popins['gina-popin-'+n.id+'-'+W.name]){var ca=ja=S({},y);if('object'!=typeof W)throw Error('`options` must be an object');
|
|
774
|
+
ca.options=S(W,D.options);ca.id='gina-popin-'+n.id+'-'+ca.options.name;if('undefined'==typeof n.$popins[ca.id]){if('string'!=typeof ca.options.name||''==ca.options.name)throw Error('`options.name` can not be left `empty` or `undefined`');if(-1<x.indexOf(ca.options.name))throw Error('`popin '+ca.options.name+'` already exists !');'undefined'!=typeof ca.options.validator&&(z=ca.options.validator,ca.validateFormById=z.validateFormById);ca.options['class']='gina-popin-container '+ca.options['class'];
|
|
775
|
+
ca.name=ca.options.name;ca.target=n.target;ca.load=r;ca.loadContent=G;ca.open=Fa;ca.close=I;GINA_ENV_IS_DEV&&(ca.updateToolbar=R);ca.parentScripts=[];ca.parentStyles=[];var wa=gina.config.hostname.replace(/(https|http|):\/\//,'').replace(/:\d+$/,'');wa=new RegExp(wa+':\\d+|'+wa);var la=document.getElementsByTagName('script');for(let Ba=0,Na=la.length;Ba<Na;Ba++)if(la[Ba].src&&''!=la[Ba].src){var za=la[Ba].src.replace(/(https|http|):\/\//,'').replace(wa,'');ca.parentScripts[Ba]=za}la=document.getElementsByTagName('link');
|
|
776
|
+
for(let Ba=0,Na=la.length;Ba<Na;Ba++)'undefined'!=typeof la[Ba].rel&&/stylesheet/i.test(la[Ba].rel)&&(za=la[Ba].href.replace(/(https|http|):\/\//,'').replace(wa,''),ca.parentStyles[Ba]=za);n.$popins[ca.id]=ca;if(window.XMLHttpRequest)E=new XMLHttpRequest;else if(window.ActiveXObject)try{E=new ActiveXObject('Msxml2.XMLHTTP')}catch(Ba){try{E=new ActiveXObject('Microsoft.XMLHTTP')}catch(Na){}}pa(ca)}}n.isReady=!0;gina.hasPopinHandler=!0;gina.popin=S(gina.popin,n);triggerEvent(gina,n.target,'ready.'+
|
|
777
|
+
n.id,ja)});n.initialized=!0;return n}(O)}});'function'!==typeof Object.assign&&Object.defineProperty(Object,'assign',{value:function(A,P){if(null===A||void 0===A)throw new TypeError('Cannot convert undefined or null to object');for(var V=Object(A),ka=1;ka<arguments.length;ka++){var S=arguments[ka];if(null!==S&&void 0!==S)for(var O in S)Object.prototype.hasOwnProperty.call(S,O)&&(V[O]=S[O])}return V},writable:!0,configurable:!0});
|
|
778
|
+
if('undefined'==typeof JSON.clone){var clone=function(A,P){if(null==A||'object'!=typeof A||A.constructor!=Object&&A.constructor!=Array)return A;if(A.constructor==Date||A.constructor==RegExp||A.constructor==Function||A.constructor==String||A.constructor==Number||A.constructor==Boolean)return new A.constructor(A);P=P||new A.constructor;for(var V=0,ka=Object.getOwnPropertyNames(A).length||0,S=Object.keys(A);V<ka;)P[S[V]]='undefined'==typeof P[S[V]]?clone(A[S[V]],null):P[S[V]],V++;return P};JSON.clone=
|
|
779
|
+
clone}if('undefined'==typeof JSON.escape){var escape=function(A){try{return A.replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/\t/g,'\\t')}catch(P){throw P;}};JSON.escape=escape}define('utils/polyfill',function(){});
|
|
780
|
+
function Inherits(A,P){return function(V,ka){var S='undefined'==typeof V||'undefined'==typeof ka?"inherits(a, b): neither [ a ] nor [ b ] can't be undefined or null":!1;if(S)throw Error(S);S=function(){return function(){if(this){this.prototype=V.prototype;this.name||(this.name=V.name);this.prototype.name=this.name;for(var O in ka.prototype)this[O]||(this[O]=ka.prototype[O]);ka.apply(this,arguments);V.apply(this,arguments)}}}(V,ka);void 0==V.prototype&&(V.prototype={});void 0==ka.prototype&&(ka.prototype=
|
|
777
781
|
{});V.prototype=Object.create(ka.prototype,{});S.prototype=Object.create(V.prototype,{});return S}}'undefined'!==typeof module&&module.exports?module.exports=Inherits():'function'===typeof define&&define.amd&&define('lib/inherits',[],function(){return Inherits()});var readyList=[{name:'gina',ctx:window.gina,fn:window.onGinaLoaded}],readyFired=!1,readyEventHandlersInstalled=!1;
|
|
778
|
-
function ready(){if(!readyFired){readyFired=!0;var A=null,
|
|
779
|
-
(window.originalContext=window.$),ka[V].ctx=window.originalContext||$,ka[V].fn.call(window,ka[V].ctx,window.require),++V,
|
|
780
|
-
if('undefined'==typeof window.gina){var gina={_global:{register:function(A){if('undefined'!=typeof A)for(let
|
|
782
|
+
function ready(){if(!readyFired){readyFired=!0;var A=null,P=function(V,ka){if(ka[V])if('gina'==ka[V].name)var S=window.setInterval(function(O,ia){try{if('undefined'==typeof ia&&(ia=window.readyList),ia[O].ctx=window.gina,A=ia[O].fn.call(window,ia[O].ctx,window.require))window.clearInterval(S),++O,P(O,ia)}catch(Q){throw window.clearInterval(S),Q;}},50,V,ka);else window.$||'undefined'==typeof parent.window.$||(window.$=parent.window.$),'undefined'==typeof window.originalContext&&'undefined'!=typeof window.$&&
|
|
783
|
+
(window.originalContext=window.$),ka[V].ctx=window.originalContext||$,ka[V].fn.call(window,ka[V].ctx,window.require),++V,P(V,ka);else ka=[]};P(0,readyList)}}function readyStateChange(){'complete'===document.readyState&&gina.ready()}
|
|
784
|
+
if('undefined'==typeof window.gina){var gina={_global:{register:function(A){if('undefined'!=typeof A)for(let P in A)window[P]=A[P]},unregister:function(A){if('undefined'==typeof A||!Array.isArray(A))throw Error('`variables` needs to ba an array');for(let P=0,V=A.length;P<V;P++)delete window[A[P]]},initialized:[]},ready:function(A,P){readyFired?setTimeout(function(){A(P)},1):(readyList.push({name:'anonymous',fn:A,ctx:P}),'complete'===document.readyState||!document.attachEvent&&'interactive'===document.readyState?
|
|
781
785
|
setTimeout(ready,1):readyEventHandlersInstalled||(document.addEventListener?(document.addEventListener('DOMContentLoaded',ready,!1),window.addEventListener('load',ready,!1)):(document.attachEvent('onreadystatechange',readyStateChange),window.attachEvent('onload',ready)),readyEventHandlersInstalled=!0))}};window.gina=gina}define('core',['require','gina'],function(A){A('gina')(window.gina)});require.config({packages:['gina']});require('vendor/uuid vendor/engine.io core helpers/prototypes helpers/binding helpers/dateFormat gina/link gina/validator gina/popin gina/storage utils/dom utils/events utils/data utils/effects utils/polyfill lib/inherits lib/form-validator lib/collection lib/domain lib/routing'.split(' '));
|
|
782
|
-
for(var tags=document.getElementsByTagName('script'),t=0,len=tags.length;t<len;++t)if(/gina.min.js|gina.js/.test(tags[t].getAttribute('src'))){tags[t].onload=function(A){if(window.onGinaLoaded)var
|
|
786
|
+
for(var tags=document.getElementsByTagName('script'),t=0,len=tags.length;t<len;++t)if(/gina.min.js|gina.js/.test(tags[t].getAttribute('src'))){tags[t].onload=function(A){if(window.onGinaLoaded)var P=window.onGinaLoaded;document.addEventListener?document.addEventListener('ginaloaded',function(V){window.gina=V.detail;P(V.detail)}):document.attachEvent&&document.attachEvent('ginaloaded',function(V){window.gina=V.detail;P(V.detail)})}();break};
|