gina 0.1.6-alpha.132 → 0.1.6-alpha.134

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.
Files changed (364) hide show
  1. package/framework/v0.1.6-alpha.134/VERSION +1 -0
  2. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.map +1 -1
  3. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/js/gina.js +3 -0
  4. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +181 -180
  5. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.map +5 -5
  6. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.map +2 -2
  7. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/dist/swig.min.js.map +2 -2
  8. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/server.isaac.js +3 -1
  9. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/server.js +7 -19
  10. package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/routing/src/main.js +3 -0
  11. package/package.json +2 -2
  12. package/framework/v0.1.6-alpha.132/VERSION +0 -1
  13. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/AUTHORS +0 -0
  14. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/LICENSE +0 -0
  15. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/html/nolayout.html +0 -0
  16. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/html/static.html +0 -0
  17. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/img/android-chrome-192x192.png +0 -0
  18. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/img/android-chrome-512x512.png +0 -0
  19. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/img/apple-touch-icon.png +0 -0
  20. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/img/favicon-16x16.png +0 -0
  21. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/img/favicon-32x32.png +0 -0
  22. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/img/favicon.ico +0 -0
  23. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/README.md +0 -0
  24. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  25. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/html/toolbar.html +0 -0
  26. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
  27. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/asset/plugin/uuid.json +0 -0
  28. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/config.js +0 -0
  29. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/index.js +0 -0
  30. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/connector.js +0 -0
  31. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/connector.v2.js +0 -0
  32. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  33. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/connector.v4.js +0 -0
  34. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/n1ql.js +0 -0
  35. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/session-store.js +0 -0
  36. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
  37. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  38. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  39. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/controller/controller.framework.js +0 -0
  40. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/controller/controller.js +0 -0
  41. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/controller/index.js +0 -0
  42. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/.github/workflows/ci.yml +0 -0
  43. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/.github/workflows/lint.yml +0 -0
  44. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/LICENSE +0 -0
  45. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/README.md +0 -0
  46. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-big.js +0 -0
  47. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-small.js +0 -0
  48. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-big.js +0 -0
  49. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-small.js +0 -0
  50. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-100pairs-small.js +0 -0
  51. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-900pairs-small-alt.js +0 -0
  52. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/lib/index.js +0 -0
  53. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/lib/types/multipart.js +0 -0
  54. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/lib/types/urlencoded.js +0 -0
  55. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/lib/utils.js +0 -0
  56. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/busboy-1.6.0/package.json +0 -0
  57. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/.travis.yml +0 -0
  58. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/LICENSE +0 -0
  59. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/bool.js +0 -0
  60. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/boolean_double.js +0 -0
  61. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/boolean_single.js +0 -0
  62. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/default_hash.js +0 -0
  63. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/default_singles.js +0 -0
  64. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/divide.js +0 -0
  65. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/line_count.js +0 -0
  66. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/line_count_options.js +0 -0
  67. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/line_count_wrap.js +0 -0
  68. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/nonopt.js +0 -0
  69. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/reflect.js +0 -0
  70. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/short.js +0 -0
  71. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/string.js +0 -0
  72. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/usage-options.js +0 -0
  73. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/example/xup.js +0 -0
  74. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/index.js +0 -0
  75. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/package.json +0 -0
  76. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/package.json.dist +0 -0
  77. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/optimist-0.6.1/readme.markdown +0 -0
  78. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/HISTORY.md +0 -0
  79. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/LICENSE +0 -0
  80. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/README.md +0 -0
  81. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/bin/swig.js +0 -0
  82. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/bin/swig.js.dist +0 -0
  83. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/dist/swig.min.js +0 -0
  84. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/index.js +0 -0
  85. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/dateformatter.js +0 -0
  86. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/filters.js +0 -0
  87. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/lexer.js +0 -0
  88. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/loaders/filesystem.js +0 -0
  89. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/loaders/index.js +0 -0
  90. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/loaders/memory.js +0 -0
  91. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/parser.js +0 -0
  92. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/swig.js +0 -0
  93. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/autoescape.js +0 -0
  94. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/block.js +0 -0
  95. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/else.js +0 -0
  96. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/elseif.js +0 -0
  97. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/extends.js +0 -0
  98. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/filter.js +0 -0
  99. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/for.js +0 -0
  100. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/if.js +0 -0
  101. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/import.js +0 -0
  102. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/include.js +0 -0
  103. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/index.js +0 -0
  104. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/macro.js +0 -0
  105. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/parent.js +0 -0
  106. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/raw.js +0 -0
  107. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/set.js +0 -0
  108. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/tags/spaceless.js +0 -0
  109. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/lib/utils.js +0 -0
  110. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/package.json +0 -0
  111. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-1.4.2/package.json.dist +0 -0
  112. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
  113. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/deps/swig-client/swig.js +0 -0
  114. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/dev/index.js +0 -0
  115. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/dev/lib/class.js +0 -0
  116. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/dev/lib/factory.js +0 -0
  117. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/dev/lib/tools.js +0 -0
  118. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/gna.js +0 -0
  119. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/README.md +0 -0
  120. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/currency.json +0 -0
  121. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/dist/language/en.json +0 -0
  122. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/dist/language/fr.json +0 -0
  123. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/dist/region/en.json +0 -0
  124. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/dist/region/fr.json +0 -0
  125. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/index.js +0 -0
  126. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/src/make.js +0 -0
  127. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/src/resources/currency.csv +0 -0
  128. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/src/resources/region.csv +0 -0
  129. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/locales/src/resources/region.mapping.json +0 -0
  130. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/mime.types +0 -0
  131. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/model/entity.js +0 -0
  132. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/model/index.js +0 -0
  133. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/model/template/entityFactory.js +0 -0
  134. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/model/template/index.js +0 -0
  135. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/README.md +0 -0
  136. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/index.js +0 -0
  137. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/file/README.md +0 -0
  138. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/file/build.json +0 -0
  139. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/file/package.json +0 -0
  140. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/intl/README.md +0 -0
  141. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/intl/build.json +0 -0
  142. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/intl/package.json +0 -0
  143. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/intl/src/main.js +0 -0
  144. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/storage/README.md +0 -0
  145. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/storage/build.json +0 -0
  146. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/storage/package.json +0 -0
  147. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/storage/src/main.js +0 -0
  148. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/validator/README.md +0 -0
  149. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/validator/build.json +0 -0
  150. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/validator/package.json +0 -0
  151. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/validator/src/form-validator.js +0 -0
  152. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/plugins/lib/validator/src/main.js +0 -0
  153. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/router.js +0 -0
  154. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/server.express.js +0 -0
  155. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/status.codes +0 -0
  156. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/_gitignore +0 -0
  157. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/config/app.json +0 -0
  158. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/config/routing.json +0 -0
  159. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/config/settings.json +0 -0
  160. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  161. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/config/templates.json +0 -0
  162. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  163. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  164. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  165. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle/index.js +0 -0
  166. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  167. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  168. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  169. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  170. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  171. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_public/readme.md +0 -0
  172. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  173. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  174. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  175. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  176. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  177. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/command/gina.bat.tpl +0 -0
  178. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/command/gina.tpl +0 -0
  179. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/conf/env.json +0 -0
  180. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/conf/manifest.json +0 -0
  181. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/conf/package.json +0 -0
  182. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/conf/settings.json +0 -0
  183. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/conf/statics.json +0 -0
  184. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/conf/templates.json +0 -0
  185. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/error/client/json/401.json +0 -0
  186. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/error/client/json/403.json +0 -0
  187. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/error/client/json/404.json +0 -0
  188. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/error/server/html/50x.html +0 -0
  189. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/error/server/json/500.json +0 -0
  190. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/error/server/json/503.json +0 -0
  191. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/core/template/extensions/logger/config.json +0 -0
  192. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/console.js +0 -0
  193. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/context.js +0 -0
  194. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/data/LICENSE +0 -0
  195. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/data/README.md +0 -0
  196. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/data/package.json +0 -0
  197. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/data/src/main.js +0 -0
  198. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/dateFormat.js +0 -0
  199. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/index.js +0 -0
  200. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/json/LICENSE +0 -0
  201. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/json/README.md +0 -0
  202. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/json/package.json +0 -0
  203. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/json/src/main.js +0 -0
  204. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/path.js +0 -0
  205. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/plugins/README.md +0 -0
  206. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/plugins/package.json +0 -0
  207. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/plugins/src/api-error.js +0 -0
  208. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/plugins/src/main.js +0 -0
  209. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/prototypes.js +0 -0
  210. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/task.js +0 -0
  211. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/helpers/text.js +0 -0
  212. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/archiver/README.md +0 -0
  213. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/archiver/build.json +0 -0
  214. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/archiver/package.json +0 -0
  215. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/archiver/src/dep/jszip.min.js +0 -0
  216. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/archiver/src/main.js +0 -0
  217. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/aliases.json +0 -0
  218. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/add.js +0 -0
  219. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/arguments.json +0 -0
  220. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/copy.js +0 -0
  221. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/cp.js +0 -0
  222. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/help.js +0 -0
  223. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/help.txt +0 -0
  224. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/list.js +0 -0
  225. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/remove.js +0 -0
  226. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/rename.js +0 -0
  227. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/restart.js +0 -0
  228. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/rm.js +0 -0
  229. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/start.js +0 -0
  230. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/status.js +0 -0
  231. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/bundle/stop.js +0 -0
  232. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/add.js +0 -0
  233. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/get.js +0 -0
  234. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/help.js +0 -0
  235. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/help.txt +0 -0
  236. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/link-dev.js +0 -0
  237. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/list.js +0 -0
  238. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/remove.js +0 -0
  239. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/rm.js +0 -0
  240. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/set.js +0 -0
  241. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/unset.js +0 -0
  242. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/env/use.js +0 -0
  243. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/build.js +0 -0
  244. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/dot.js +0 -0
  245. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/get.js +0 -0
  246. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/help.js +0 -0
  247. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/help.txt +0 -0
  248. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/init.js +0 -0
  249. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/link-node-modules.js +0 -0
  250. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/link.js +0 -0
  251. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/msg.json +0 -0
  252. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/open.js +0 -0
  253. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/restart.js +0 -0
  254. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/set.js +0 -0
  255. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/start.js +0 -0
  256. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/status.js +0 -0
  257. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/stop.js +0 -0
  258. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/tail.js +0 -0
  259. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/update.js +0 -0
  260. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/framework/version.js +0 -0
  261. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/gina-dev.1.md +0 -0
  262. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/gina-framework.1.md +0 -0
  263. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/gina.1.md +0 -0
  264. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/helper.js +0 -0
  265. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/index.js +0 -0
  266. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/minion/help.js +0 -0
  267. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/minion/help.txt +0 -0
  268. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/msg.json +0 -0
  269. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/port/help.js +0 -0
  270. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/port/help.txt +0 -0
  271. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/port/inc/scan.js +0 -0
  272. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/port/list.js +0 -0
  273. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/port/reset.js +0 -0
  274. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/port/set.js +0 -0
  275. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/add.js +0 -0
  276. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/arguments.json +0 -0
  277. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/build.js +0 -0
  278. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/help.js +0 -0
  279. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/help.txt +0 -0
  280. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/import.js +0 -0
  281. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/list.js +0 -0
  282. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/move.js +0 -0
  283. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/remove.js +0 -0
  284. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/rename.js +0 -0
  285. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/restart.js +0 -0
  286. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/rm.js +0 -0
  287. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/start.js +0 -0
  288. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/status.js +0 -0
  289. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/project/stop.js +0 -0
  290. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/protocol/help.js +0 -0
  291. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/protocol/help.txt +0 -0
  292. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/protocol/list.js +0 -0
  293. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/protocol/set.js +0 -0
  294. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/add.js +0 -0
  295. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/help.js +0 -0
  296. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/help.txt +0 -0
  297. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/link-local.js +0 -0
  298. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/link-production.js +0 -0
  299. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/list.js +0 -0
  300. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/remove.js +0 -0
  301. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/rm.js +0 -0
  302. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/scope/use.js +0 -0
  303. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cmd/view/add.js +0 -0
  304. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/collection/README.md +0 -0
  305. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/collection/build.json +0 -0
  306. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/collection/package.json +0 -0
  307. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/collection/src/main.js +0 -0
  308. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/config.js +0 -0
  309. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cron/README.md +0 -0
  310. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cron/package.json +0 -0
  311. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/cron/src/main.js +0 -0
  312. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/LICENSE +0 -0
  313. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/README.md +0 -0
  314. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/dist/2025-03-14_13-41-20_UTC.dat +0 -0
  315. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/dist/public_suffix_list.dat +0 -0
  316. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/exemples/backend.js +0 -0
  317. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/exemples/frontend.html +0 -0
  318. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/package.json +0 -0
  319. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/domain/src/main.js +0 -0
  320. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/generator/index.js +0 -0
  321. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/index.js +0 -0
  322. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/LICENSE +0 -0
  323. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/README.md +0 -0
  324. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/example/inheriting_eventemitter.js +0 -0
  325. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/example/protected_inheritance.js +0 -0
  326. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/example/simple_inheritance.js +0 -0
  327. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
  328. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/package.json +0 -0
  329. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/inherits/src/main.js +0 -0
  330. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/README.md +0 -0
  331. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/package.json +0 -0
  332. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/containers/default/index.js +0 -0
  333. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/containers/file/index.js +0 -0
  334. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
  335. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
  336. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/containers/mq/index.js +0 -0
  337. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/containers/mq/listener.js +0 -0
  338. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/containers/mq/speaker.js +0 -0
  339. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/helper.js +0 -0
  340. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/logger/src/main.js +0 -0
  341. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/math/index.js +0 -0
  342. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/merge/README.md +0 -0
  343. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/merge/example/merge.js +0 -0
  344. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/merge/example/merge_2_literal objects.js +0 -0
  345. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/merge/example/merge_and_preserve_first.js +0 -0
  346. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/merge/package.json +0 -0
  347. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/merge/src/main.js +0 -0
  348. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/model.js +0 -0
  349. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/proc.js +0 -0
  350. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/routing/README.md +0 -0
  351. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/routing/build.json +0 -0
  352. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/routing/package.json +0 -0
  353. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/session-store.js +0 -0
  354. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/shell.js +0 -0
  355. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/swig-filters/README.md +0 -0
  356. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/swig-filters/package.json +0 -0
  357. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/swig-filters/src/main.js +0 -0
  358. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/url/README.md +0 -0
  359. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/url/index.js +0 -0
  360. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/url/mocks.json +0 -0
  361. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/url/routing.json +0 -0
  362. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/url/test.js +0 -0
  363. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/lib/validator.js +0 -0
  364. /package/framework/{v0.1.6-alpha.132 → v0.1.6-alpha.134}/package.json +0 -0
@@ -7,7 +7,7 @@
7
7
  */
8
8
  var requirejs,require,define;
9
9
  (function(A,R){function V(Fa,Oa){return Oa||''}function ka(Fa){return'[object Function]'===Ea.call(Fa)}function S(Fa){return'[object Array]'===Ea.call(Fa)}function N(Fa,Oa){if(Fa){var Ya;for(Ya=0;Ya<Fa.length&&(!Fa[Ya]||!Oa(Fa[Ya],Ya,Fa));Ya+=1);}}function ha(Fa,Oa){if(Fa){var Ya;for(Ya=Fa.length-1;-1<Ya&&(!Fa[Ya]||!Oa(Fa[Ya],Ya,Fa));--Ya);}}function Q(Fa,Oa){return W.call(Fa,Oa)}function T(Fa,Oa){return Q(Fa,Oa)&&Fa[Oa]}function v(Fa,Oa){for(var Ya in Fa)if(Q(Fa,Ya)&&-1==Ia.indexOf(Ya)&&Oa(Fa[Ya],
10
- Ya))break}function I(Fa,Oa,Ya,pb){Oa&&v(Oa,function(bb,qb){if(Ya||!Q(Fa,qb))!pb||'object'!==typeof bb||!bb||S(bb)||ka(bb)||bb instanceof RegExp?Fa[qb]=bb:(Fa[qb]||(Fa[qb]={}),I(Fa[qb],bb,Ya,pb))});return Fa}function x(Fa,Oa){return function(){return Oa.apply(Fa,arguments)}}function ya(Fa){throw Fa;}function va(Fa){if(!Fa)return Fa;var Oa=A;N(Fa.split('.'),function(Ya){Oa=Oa[Ya]});return Oa}function P(Fa,Oa,Ya,pb){Oa=Error(Oa+'\nhttps://requirejs.org/docs/errors.html#'+Fa);Oa.requireType=Fa;Oa.requireModules=
10
+ Ya))break}function I(Fa,Oa,Ya,pb){Oa&&v(Oa,function(bb,qb){if(Ya||!Q(Fa,qb))!pb||'object'!==typeof bb||!bb||S(bb)||ka(bb)||bb instanceof RegExp?Fa[qb]=bb:(Fa[qb]||(Fa[qb]={}),I(Fa[qb],bb,Ya,pb))});return Fa}function x(Fa,Oa){return function(){return Oa.apply(Fa,arguments)}}function xa(Fa){throw Fa;}function ua(Fa){if(!Fa)return Fa;var Oa=A;N(Fa.split('.'),function(Ya){Oa=Oa[Ya]});return Oa}function P(Fa,Oa,Ya,pb){Oa=Error(Oa+'\nhttps://requirejs.org/docs/errors.html#'+Fa);Oa.requireType=Fa;Oa.requireModules=
11
11
  pb;Ya&&(Oa.originalError=Ya);return Oa}function K(){if(y&&'interactive'===y.readyState)return y;ha(document.getElementsByTagName('script'),function(Fa){if('interactive'===Fa.readyState)return y=Fa});return y}var B,E,n,y,z,F,w,u=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,G=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,M=/\.js$/,U=/^\.\//;var qa=Object.prototype;var Ea=qa.toString,W=qa.hasOwnProperty,ia=!('undefined'===typeof window||'undefined'===typeof navigator||!window.document),ea=!ia&&'undefined'!==
12
12
  typeof importScripts,za=ia&&'PLAYSTATION 3'===navigator.platform?/^complete$/:/^(complete|loaded)$/,na='undefined'!==typeof opera&&'[object Opera]'===opera.toString(),sa={},Da={},Qa=[],Ja=!1,Ia=['__proto__','constructor'];if('undefined'===typeof define){if('undefined'!==typeof requirejs){if(ka(requirejs))return;Da=requirejs;requirejs=void 0}'undefined'===typeof require||ka(require)||(Da=require,require=void 0);var Ha=requirejs=function(Fa,Oa,Ya,pb){var bb='_';if(!S(Fa)&&'string'!==typeof Fa){var qb=
13
13
  Fa;S(Oa)?(Fa=Oa,Oa=Ya,Ya=pb):Fa=[]}qb&&qb.context&&(bb=qb.context);(pb=T(sa,bb))||(pb=sa[bb]=Ha.s.newContext(bb));qb&&pb.configure(qb);return pb.require(Fa,Oa,Ya)};Ha.config=function(Fa){return Ha(Fa)};Ha.nextTick='undefined'!==typeof R?function(Fa){R(Fa,4)}:function(Fa){Fa()};require||=Ha;Ha.version='2.3.7';Ha.jsExtRegExp=/^\/|:|\?|\.js$/;Ha.isBrowser=ia;qa=Ha.s={contexts:sa,newContext:function(Fa){function Oa(H,la,wa){var Y;la=la&&la.split('/');var ma=h.map,Ka=ma&&ma['*'];if(H){H=H.split('/');var Ta=
@@ -21,7 +21,7 @@ Vb(qb(H[0],null,!0)).init(H[1],H[2])}function Ub(H){H=H.currentTarget||H.srcElem
21
21
  {}}var ca,l,h={waitSeconds:7,baseUrl:'./',paths:{},bundles:{},pkgs:{},shim:{},config:{}},e={},b={},q={},m=[],p={},O={},D={},aa=1,Aa=1;var ba={require:function(H){return H.require?H.require:H.require=Ba.makeRequire(H.map)},exports:function(H){H.usingExports=!0;if(H.map.isDefine)return H.exports?p[H.map.id]=H.exports:H.exports=p[H.map.id]={}},module:function(H){return H.module?H.module:H.module={id:H.map.id,uri:H.map.url,config:function(){return T(h.config,H.map.id)||{}},exports:H.exports||(H.exports=
22
22
  {})}}};var ra=function(H){this.events=T(q,H.id)||{};this.map=H;this.shim=T(h.shim,H.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};ra.prototype={init:function(H,la,wa,Y){Y=Y||{};if(!this.inited){this.factory=la;if(wa)this.on('error',wa);else this.events.error&&(wa=x(this,function(ma){this.emit('error',ma)}));this.depMaps=H&&H.slice(0);this.errback=wa;this.inited=!0;this.ignore=Y.ignore;Y.enabled||this.enabled?this.enable():this.check()}},defineDep:function(H,
23
23
  la){this.depMatched[H]||(this.depMatched[H]=!0,--this.depCount,this.depExports[H]=la)},fetch:function(){if(!this.fetched){this.fetched=!0;Ba.startTime=(new Date).getTime();var H=this.map;if(this.shim)Ba.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],x(this,function(){return H.prefix?this.callPlugin():this.load()}));else return H.prefix?this.callPlugin():this.load()}},load:function(){var H=this.map.url;O[H]||(O[H]=!0,Ba.load(this.map.id,H))},check:function(){if(this.enabled&&!this.enabling){var H=
24
- this.map.id;var la=this.depExports;var wa=this.exports,Y=this.factory;if(!this.inited)Q(Ba.defQueueMap,H)||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(Y)){if(this.events.error&&this.map.isDefine||Ha.onError!==ya)try{wa=Ba.execCb(H,Y,la,wa)}catch(Ta){var ma=Ta}else wa=Ba.execCb(H,Y,la,wa);this.map.isDefine&&void 0===wa&&((la=this.module)?wa=la.exports:this.usingExports&&(wa=this.exports));if(ma)return ma.requireMap=
24
+ this.map.id;var la=this.depExports;var wa=this.exports,Y=this.factory;if(!this.inited)Q(Ba.defQueueMap,H)||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(Y)){if(this.events.error&&this.map.isDefine||Ha.onError!==xa)try{wa=Ba.execCb(H,Y,la,wa)}catch(Ta){var ma=Ta}else wa=Ba.execCb(H,Y,la,wa);this.map.isDefine&&void 0===wa&&((la=this.module)?wa=la.exports:this.usingExports&&(wa=this.exports));if(ma)return ma.requireMap=
25
25
  this.map,ma.requireModules=this.map.isDefine?[this.map.id]:null,ma.requireType=this.map.isDefine?'define':'require',nb(this.error=ma)}else wa=Y;this.exports=wa;if(this.map.isDefine&&!this.ignore&&(p[H]=wa,Ha.onResourceLoad)){var Ka=[];N(this.depMaps,function(Ta){Ka.push(Ta.normalizedMap||Ta)});Ha.onResourceLoad(Ba,this.map,Ka)}tb(H);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit('defined',this.exports),this.defineEmitComplete=!0)}}},callPlugin:function(){var H=
26
26
  this.map,la=H.id,wa=qb(H.prefix);this.depMaps.push(wa);xb(wa,'defined',x(this,function(Y){var ma=T(D,this.map.id),Ka=this.map.name,Ta=this.map.parentMap?this.map.parentMap.name:null,$a=Ba.makeRequire(H.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){Y.normalize&&(Ka=Y.normalize(Ka,function(hb){return Oa(hb,Ta,!0)})||'');var Ab=qb(H.prefix+'!'+Ka,this.map.parentMap,!0);xb(Ab,'defined',x(this,function(hb){this.map.normalizedMap=Ab;this.init([],function(){return hb},null,{enabled:!0,ignore:!0})}));
27
27
  if(Y=T(e,Ab.id)){this.depMaps.push(Ab);if(this.events.error)Y.on('error',x(this,function(hb){this.emit('error',hb)}));Y.enable()}}else if(ma)this.map.url=Ba.nameToUrl(ma),this.load();else{var Bb=x(this,function(hb){this.init([],function(){return hb},null,{enabled:!0})});Bb.error=x(this,function(hb){this.inited=!0;this.error=hb;hb.requireModules=[la];v(e,function(Hb){0===Hb.map.id.indexOf(la+'_unnormalized')&&tb(Hb.map.id)});nb(hb)});Bb.fromText=x(this,function(hb,Hb){var Ua=H.name,cb=qb(Ua),fa=Ja;
@@ -29,20 +29,20 @@ Hb&&(hb=Hb);fa&&(Ja=!1);Vb(cb);Q(h.config,la)&&(h.config[Ua]=h.config[la]);try{H
29
29
  !1,!this.skipMap);this.depMaps[la]=H;if(wa=T(ba,H.id)){this.depExports[la]=wa(this);return}this.depCount+=1;xb(H,'defined',x(this,function(ma){this.undefed||(this.defineDep(la,ma),this.check())}));this.errback?xb(H,'error',x(this,this.errback)):this.events.error&&xb(H,'error',x(this,function(ma){this.emit('error',ma)}))}wa=H.id;var Y=e[wa];Q(ba,wa)||!Y||Y.enabled||Ba.enable(H,this)}));v(this.pluginMaps,x(this,function(H){var la=T(e,H.id);la&&!la.enabled&&Ba.enable(H,this)}));this.enabling=!1;this.check()},
30
30
  on:function(H,la){var wa=this.events[H];wa||=this.events[H]=[];wa.push(la)},emit:function(H,la){N(this.events[H],function(wa){wa(la)});'error'===H&&delete this.events[H]}};var Ba={config:h,contextName:Fa,registry:e,defined:p,urlFetched:O,defQueue:m,defQueueMap:{},Module:ra,makeModuleMap:qb,nextTick:Ha.nextTick,onError:nb,configure:function(H){H.baseUrl&&'/'!==H.baseUrl.charAt(H.baseUrl.length-1)&&(H.baseUrl+='/');if('string'===typeof H.urlArgs){var la=H.urlArgs;H.urlArgs=function(ma,Ka){return(-1===
31
31
  Ka.indexOf('?')?'?':'&')+la}}var wa=h.shim,Y={paths:!0,bundles:!0,config:!0,map:!0};v(H,function(ma,Ka){Y[Ka]?(h[Ka]||(h[Ka]={}),I(h[Ka],ma,!0,!0)):h[Ka]=ma});H.bundles&&v(H.bundles,function(ma,Ka){N(ma,function(Ta){Ta!==Ka&&(D[Ta]=Ka)})});H.shim&&(v(H.shim,function(ma,Ka){S(ma)&&(ma={deps:ma});!ma.exports&&!ma.init||ma.exportsFn||(ma.exportsFn=Ba.makeShimExports(ma));wa[Ka]=ma}),h.shim=wa);H.packages&&N(H.packages,function(ma){ma='string'===typeof ma?{name:ma}:ma;var Ka=ma.name;ma.location&&(h.paths[Ka]=
32
- ma.location);h.pkgs[Ka]=ma.name+'/'+(ma.main||'main').replace(U,'').replace(M,'')});v(e,function(ma,Ka){ma.inited||ma.map.unnormalized||(ma.map=qb(Ka,null,!0))});(H.deps||H.callback)&&Ba.require(H.deps||[],H.callback)},makeShimExports:function(H){return function(){var la;H.init&&(la=H.init.apply(A,arguments));return la||H.exports&&va(H.exports)}},makeRequire:function(H,la){function wa(Y,ma,Ka){var Ta;la.enableBuildCallback&&ma&&ka(ma)&&(ma.__requireJsBuild=!0);if('string'===typeof Y){if(ka(ma))return nb(P('requireargs',
32
+ ma.location);h.pkgs[Ka]=ma.name+'/'+(ma.main||'main').replace(U,'').replace(M,'')});v(e,function(ma,Ka){ma.inited||ma.map.unnormalized||(ma.map=qb(Ka,null,!0))});(H.deps||H.callback)&&Ba.require(H.deps||[],H.callback)},makeShimExports:function(H){return function(){var la;H.init&&(la=H.init.apply(A,arguments));return la||H.exports&&ua(H.exports)}},makeRequire:function(H,la){function wa(Y,ma,Ka){var Ta;la.enableBuildCallback&&ma&&ka(ma)&&(ma.__requireJsBuild=!0);if('string'===typeof Y){if(ka(ma))return nb(P('requireargs',
33
33
  'Invalid require call'),Ka);if(H&&Q(ba,Y))return ba[Y](e[H.id]);if(Ha.get)return Ha.get(Ba,Y,H,wa);var $a=qb(Y,H,!1,!0);$a=$a.id;return Q(p,$a)?p[$a]:nb(P('notloaded','Module name "'+$a+'" has not been loaded yet for context: '+Fa+(H?'':'. Use require([])')))}pc();Ba.nextTick(function(){pc();Ta=Vb(qb(null,H));Ta.skipMap=la.skipMap;Ta.init(Y,ma,Ka,{enabled:!0});eb()});return wa}la=la||{};I(wa,{isBrowser:ia,toUrl:function(Y){var ma=Y.lastIndexOf('.'),Ka=Y.split('/')[0];if(-1!==ma&&('.'!==Ka&&'..'!==
34
34
  Ka||1<ma)){var Ta=Y.substring(ma,Y.length);Y=Y.substring(0,ma)}return Ba.nameToUrl(Oa(Y,H&&H.id,!0),Ta,!0)},defined:function(Y){return Q(p,qb(Y,H,!1,!0).id)},specified:function(Y){Y=qb(Y,H,!1,!0).id;return Q(p,Y)||Q(e,Y)}});H||(wa.undef=function(Y){yb();var ma=qb(Y,H,!0),Ka=T(e,Y);Ka.undefed=!0;Ya(Y);delete p[Y];delete O[ma.url];delete q[Y];ha(m,function(Ta,$a){Ta[0]===Y&&m.splice($a,1)});delete Ba.defQueueMap[Y];Ka&&(Ka.events.defined&&(q[Y]=Ka.events),tb(Y))});return wa},enable:function(H){T(e,
35
- H.id)&&Vb(H).enable()},completeLoad:function(H){var la=T(h.shim,H)||{},wa=la.exports;for(yb();m.length;){var Y=m.shift();if(null===Y[0]){Y[0]=H;if(ma)break;var ma=!0}else Y[0]===H&&(ma=!0);Gb(Y)}Ba.defQueueMap={};Y=T(e,H);if(!ma&&!Q(p,H)&&Y&&!Y.inited)if(!h.enforceDefine||wa&&va(wa))Gb([H,la.deps||[],la.exportsFn]);else return pb(H)?void 0:nb(P('nodefine','No define call for '+H,null,[H]));eb()},nameToUrl:function(H,la,wa){var Y,ma;(Y=T(h.pkgs,H))&&(H=Y);if(Y=T(D,H))return Ba.nameToUrl(Y,la,wa);if(Ha.jsExtRegExp.test(H))Y=
35
+ H.id)&&Vb(H).enable()},completeLoad:function(H){var la=T(h.shim,H)||{},wa=la.exports;for(yb();m.length;){var Y=m.shift();if(null===Y[0]){Y[0]=H;if(ma)break;var ma=!0}else Y[0]===H&&(ma=!0);Gb(Y)}Ba.defQueueMap={};Y=T(e,H);if(!ma&&!Q(p,H)&&Y&&!Y.inited)if(!h.enforceDefine||wa&&ua(wa))Gb([H,la.deps||[],la.exportsFn]);else return pb(H)?void 0:nb(P('nodefine','No define call for '+H,null,[H]));eb()},nameToUrl:function(H,la,wa){var Y,ma;(Y=T(h.pkgs,H))&&(H=Y);if(Y=T(D,H))return Ba.nameToUrl(Y,la,wa);if(Ha.jsExtRegExp.test(H))Y=
36
36
  H+(la||'');else{Y=h.paths;var Ka=H.split('/');for(ma=Ka.length;0<ma;--ma){var Ta=Ka.slice(0,ma).join('/');if(Ta=T(Y,Ta)){S(Ta)&&(Ta=Ta[0]);Ka.splice(0,ma,Ta);break}}Y=Ka.join('/');Y+=la||(/^data:|^blob:|\?/.test(Y)||wa?'':'.js');Y=('/'===Y.charAt(0)||Y.match(/^[\w\+\.\-]+:/)?'':h.baseUrl)+Y}return h.urlArgs&&!/^blob:/.test(Y)?Y+h.urlArgs(H,Y):Y},load:function(H,la){Ha.load(Ba,H,la)},execCb:function(H,la,wa,Y){return la.apply(Y,wa)},onScriptLoad:function(H){if('load'===H.type||za.test((H.currentTarget||
37
37
  H.srcElement).readyState))y=null,H=Ub(H),Ba.completeLoad(H.id)},onScriptError:function(H){var la=Ub(H);if(!pb(la.id)){var wa=[];v(e,function(Y,ma){0!==ma.indexOf('_@r')&&N(Y.depMaps,function(Ka){if(Ka.id===la.id)return wa.push(ma),!0})});return nb(P('scripterror','Script error for "'+la.id+(wa.length?'", needed by: '+wa.join(', '):'"'),H,[la.id]))}}};Ba.require=Ba.makeRequire();return Ba}};Ha({});N(['toUrl','undef','defined','specified'],function(Fa){Ha[Fa]=function(){var Oa=sa._;return Oa.require[Fa].apply(Oa,
38
- arguments)}});if(ia){var mb=qa.head=document.getElementsByTagName('head')[0];if(B=document.getElementsByTagName('base')[0])mb=qa.head=B.parentNode}Ha.onError=ya;Ha.createNode=function(Fa,Oa,Ya){Oa=Fa.xhtml?document.createElementNS('http://www.w3.org/1999/xhtml','html:script'):document.createElement('script');Oa.type=Fa.scriptType||'text/javascript';Oa.charset='utf-8';Oa.async=!0;return Oa};Ha.load=function(Fa,Oa,Ya){var pb=Fa&&Fa.config||{};if(ia){var bb=Ha.createNode(pb,Oa,Ya);bb.setAttribute('data-requirecontext',
38
+ arguments)}});if(ia){var mb=qa.head=document.getElementsByTagName('head')[0];if(B=document.getElementsByTagName('base')[0])mb=qa.head=B.parentNode}Ha.onError=xa;Ha.createNode=function(Fa,Oa,Ya){Oa=Fa.xhtml?document.createElementNS('http://www.w3.org/1999/xhtml','html:script'):document.createElement('script');Oa.type=Fa.scriptType||'text/javascript';Oa.charset='utf-8';Oa.async=!0;return Oa};Ha.load=function(Fa,Oa,Ya){var pb=Fa&&Fa.config||{};if(ia){var bb=Ha.createNode(pb,Oa,Ya);bb.setAttribute('data-requirecontext',
39
39
  Fa.contextName);bb.setAttribute('data-requiremodule',Oa);!bb.attachEvent||bb.attachEvent.toString&&0>bb.attachEvent.toString().indexOf('[native code')||na?(bb.addEventListener('load',Fa.onScriptLoad,!1),bb.addEventListener('error',Fa.onScriptError,!1)):(Ja=!0,bb.attachEvent('onreadystatechange',Fa.onScriptLoad));bb.src=Ya;if(pb.onNodeCreated)pb.onNodeCreated(bb,pb,Oa,Ya);z=bb;B?mb.insertBefore(bb,B):mb.appendChild(bb);z=null;return bb}if(ea)try{R(function(){},0),importScripts(Ya),Fa.completeLoad(Oa)}catch(qb){Fa.onError(P('importscripts',
40
40
  'importScripts failed for '+Oa+' at '+Ya,qb,[Oa]))}};ia&&!Da.skipDataMain&&ha(document.getElementsByTagName('script'),function(Fa){mb||(mb=Fa.parentNode);if(E=Fa.getAttribute('data-main'))return F=E,Da.baseUrl||-1!==F.indexOf('!')||(n=F.split('/'),F=n.pop(),w=n.length?n.join('/')+'/':'./',Da.baseUrl=w),F=F.replace(M,''),Ha.jsExtRegExp.test(F)&&(F=E),Da.deps=Da.deps?Da.deps.concat(F):[F],!0});define=function(Fa,Oa,Ya){var pb;'string'!==typeof Fa&&(Ya=Oa,Oa=Fa,Fa=null);S(Oa)||(Ya=Oa,Oa=null);!Oa&&ka(Ya)&&
41
41
  (Oa=[],Ya.length&&(Ya.toString().replace(u,V).replace(G,function(qb,Vb){Oa.push(Vb)}),Oa=(1===Ya.length?['require']:['require','exports','module']).concat(Oa)));if(Ja&&(pb=z||K())){Fa||=pb.getAttribute('data-requiremodule');var bb=sa[pb.getAttribute('data-requirecontext')]}bb?(bb.defQueue.push([Fa,Oa,Ya]),bb.defQueueMap[Fa]=!0):Qa.push([Fa,Oa,Ya])};define.amd={jQuery:!0};Ha.exec=function(Fa){return eval(Fa)};Ha(Da)}})(this,'undefined'===typeof setTimeout?void 0:setTimeout);define('requireLib',function(){});
42
- !function(A,R){'object'==typeof exports&&'undefined'!=typeof module?R(exports):'function'==typeof define&&define.amd?define('vendor/uuid',['exports'],R):R((A=A||self).uuid={})}(this,function(A){function R(){if(!v)throw Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return v(I)}function V(n,y){y=y||0;var z=va;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++]],
42
+ !function(A,R){'object'==typeof exports&&'undefined'!=typeof module?R(exports):'function'==typeof define&&define.amd?define('vendor/uuid',['exports'],R):R((A=A||self).uuid={})}(this,function(A){function R(){if(!v)throw Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return v(I)}function V(n,y){y=y||0;var z=ua;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++]],
43
43
  z[n[y++]],z[n[y++]],z[n[y++]],z[n[y++]],z[n[y++]]].join('')}function ka(n,y,z){var F=function(w,u,G,M){M=G&&M||0;if('string'==typeof w&&(w=function(U){U=unescape(encodeURIComponent(U));for(var qa=Array(U.length),Ea=0;Ea<U.length;Ea++)qa[Ea]=U.charCodeAt(Ea);return qa}(w)),'string'==typeof u&&(u=function(U){var qa=[];return U.replace(/[a-fA-F0-9]{2}/g,function(Ea){qa.push(parseInt(Ea,16))}),qa}(u)),!Array.isArray(w))throw TypeError('value must be an array of bytes');if(!Array.isArray(u)||16!==u.length)throw TypeError('namespace must be uuid string or an Array of 16 byte values');
44
44
  w=z(u.concat(w));if(w[6]=15&w[6]|y,w[8]=63&w[8]|128,G)for(u=0;16>u;++u)G[M+u]=w[u];return G||V(w)};try{F.name=n}catch(w){}return F.DNS='6ba7b810-9dad-11d1-80b4-00c04fd430c8',F.URL='6ba7b811-9dad-11d1-80b4-00c04fd430c8',F}function S(n,y){var z=(65535&n)+(65535&y);return(n>>16)+(y>>16)+(z>>16)<<16|65535&z}function N(n,y,z,F,w,u){return S((G=S(S(y,n),S(F,u)))<<(M=w)|G>>>32-M,z);var G,M}function ha(n,y,z,F,w,u,G){return N(y&z|~y&F,n,y,w,u,G)}function Q(n,y,z,F,w,u,G){return N(y&F|z&~F,n,y,w,u,G)}function T(n,
45
- y,z,F,w,u,G){return N(z^(y|~F),n,y,w,u,G)}for(var v='undefined'!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||'undefined'!=typeof msCrypto&&'function'==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),I=new Uint8Array(16),x,ya,va=[],P=0;256>P;++P)va[P]=(P+256).toString(16).substr(1);var K=0,B=0;P=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(F){var w,
45
+ y,z,F,w,u,G){return N(z^(y|~F),n,y,w,u,G)}for(var v='undefined'!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||'undefined'!=typeof msCrypto&&'function'==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),I=new Uint8Array(16),x,xa,ua=[],P=0;256>P;++P)ua[P]=(P+256).toString(16).substr(1);var K=0,B=0;P=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(F){var w,
46
46
  u=[],G=32*F.length;for(w=0;w<G;w+=8){var M=F[w>>5]>>>w%32&255;M=parseInt('0123456789abcdef'.charAt(M>>>4&15)+'0123456789abcdef'.charAt(15&M),16);u.push(M)}return u}(function(F,w){F[w>>5]|=128<<w%32;F[14+(w+64>>>9<<4)]=w;var u=1732584193,G=-271733879,M=-1732584194,U=271733878;for(w=0;w<F.length;w+=16){var qa=u;var Ea=G;var W=M;var ia=U;u=ha(u,G,M,U,F[w],7,-680876936);U=ha(U,u,G,M,F[w+1],12,-389564586);M=ha(M,U,u,G,F[w+2],17,606105819);G=ha(G,M,U,u,F[w+3],22,-1044525330);u=ha(u,G,M,U,F[w+4],7,-176418897);
47
47
  U=ha(U,u,G,M,F[w+5],12,1200080426);M=ha(M,U,u,G,F[w+6],17,-1473231341);G=ha(G,M,U,u,F[w+7],22,-45705983);u=ha(u,G,M,U,F[w+8],7,1770035416);U=ha(U,u,G,M,F[w+9],12,-1958414417);M=ha(M,U,u,G,F[w+10],17,-42063);G=ha(G,M,U,u,F[w+11],22,-1990404162);u=ha(u,G,M,U,F[w+12],7,1804603682);U=ha(U,u,G,M,F[w+13],12,-40341101);M=ha(M,U,u,G,F[w+14],17,-1502002290);G=ha(G,M,U,u,F[w+15],22,1236535329);u=Q(u,G,M,U,F[w+1],5,-165796510);U=Q(U,u,G,M,F[w+6],9,-1069501632);M=Q(M,U,u,G,F[w+11],14,643717713);G=Q(G,M,U,u,F[w],
48
48
  20,-373897302);u=Q(u,G,M,U,F[w+5],5,-701558691);U=Q(U,u,G,M,F[w+10],9,38016083);M=Q(M,U,u,G,F[w+15],14,-660478335);G=Q(G,M,U,u,F[w+4],20,-405537848);u=Q(u,G,M,U,F[w+9],5,568446438);U=Q(U,u,G,M,F[w+14],9,-1019803690);M=Q(M,U,u,G,F[w+3],14,-187363961);G=Q(G,M,U,u,F[w+8],20,1163531501);u=Q(u,G,M,U,F[w+13],5,-1444681467);U=Q(U,u,G,M,F[w+2],9,-51403784);M=Q(M,U,u,G,F[w+7],14,1735328473);G=Q(G,M,U,u,F[w+12],20,-1926607734);u=N(G^M^U,u,G,F[w+5],4,-378558);U=N(u^G^M,U,u,F[w+8],11,-2022574463);M=N(U^u^G,M,
@@ -51,15 +51,15 @@ F[w],6,-198630844);U=T(U,u,G,M,F[w+7],10,1126891415);M=T(M,U,u,G,F[w+14],15,-141
51
51
  M,U,u,F[w+9],21,-343485551);u=S(u,qa);G=S(G,Ea);M=S(M,W);U=S(U,ia)}return[u,G,M,U]}(function(F){var w,u=[];u[(F.length>>2)-1]=void 0;for(w=0;w<u.length;w+=1)u[w]=0;var G=8*F.length;for(w=0;w<G;w+=8)u[w>>5]|=(255&F[w/8])<<w%32;return u}(n),8*n.length))});var E=ka('v5',80,function(n){var y=[1518500249,1859775393,2400959708,3395469782],z=[1732584193,4023233417,2562383102,271733878,3285377520];if('string'==typeof n){var F=unescape(encodeURIComponent(n));n=Array(F.length);for(var w=0;w<F.length;w++)n[w]=
52
52
  F.charCodeAt(w)}n.push(128);F=Math.ceil((n.length/4+2)/16);var u=Array(F);for(w=0;w<F;w++){u[w]=Array(16);for(var G=0;16>G;G++)u[w][G]=n[64*w+4*G]<<24|n[64*w+4*G+1]<<16|n[64*w+4*G+2]<<8|n[64*w+4*G+3]}u[F-1][14]=8*(n.length-1)/Math.pow(2,32);u[F-1][14]=Math.floor(u[F-1][14]);u[F-1][15]=8*(n.length-1)&4294967295;for(w=0;w<F;w++){n=Array(80);for(G=0;16>G;G++)n[G]=u[w][G];for(G=16;80>G;G++){var M=n[G-3]^n[G-8]^n[G-14]^n[G-16];n[G]=M<<1|M>>>31}M=z[0];var U=z[1],qa=z[2],Ea=z[3],W=z[4];for(G=0;80>G;G++){var ia=
53
53
  Math.floor(G/20),ea=M<<5|M>>>27;a:{switch(ia){case 0:var za=U&qa^~U&Ea;break a;case 1:za=U^qa^Ea;break a;case 2:za=U&qa^U&Ea^qa&Ea;break a;case 3:za=U^qa^Ea;break a}za=void 0}ia=ea+za+W+y[ia]+n[G]>>>0;W=Ea;Ea=qa;qa=(U<<30|U>>>2)>>>0;U=M;M=ia}z[0]=z[0]+M>>>0;z[1]=z[1]+U>>>0;z[2]=z[2]+qa>>>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]>>
54
- 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 F=y||[],w=(n=n||{}).node||x,u=void 0!==n.clockseq?n.clockseq:ya;if(null==w||null==u){var G=n.random||(n.rng||R)();null==w&&(w=x=[1|G[0],G[1],G[2],G[3],G[4],G[5]]);null==u&&(u=ya=16383&(G[6]<<8|G[7]))}G=void 0!==n.msecs?n.msecs:(new Date).getTime();var M=void 0!==n.nsecs?n.nsecs:B+1,U=G-K+(M-B)/1E4;if(0>U&&void 0===n.clockseq&&(u=u+1&16383),(0>U||G>K)&&void 0===n.nsecs&&(M=0),1E4<=M)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");
55
- K=G;B=M;ya=u;n=(1E4*(268435455&(G+=122192928E5))+M)%4294967296;F[z++]=n>>>24&255;F[z++]=n>>>16&255;F[z++]=n>>>8&255;F[z++]=255&n;n=G/4294967296*1E4&268435455;F[z++]=n>>>8&255;F[z++]=255&n;F[z++]=n>>>24&15|16;F[z++]=n>>>16&255;F[z++]=u>>>8|128;F[z++]=255&u;for(u=0;6>u;++u)F[z+u]=w[u];return y||V(F)};A.v3=P;A.v4=function(n,y,z){z=y&&z||0;'string'==typeof n&&(y='binary'===n?Array(16):null,n=null);var F=(n=n||{}).random||(n.rng||R)();if(F[6]=15&F[6]|64,F[8]=63&F[8]|128,y)for(n=0;16>n;++n)y[z+n]=F[n];
54
+ 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 F=y||[],w=(n=n||{}).node||x,u=void 0!==n.clockseq?n.clockseq:xa;if(null==w||null==u){var G=n.random||(n.rng||R)();null==w&&(w=x=[1|G[0],G[1],G[2],G[3],G[4],G[5]]);null==u&&(u=xa=16383&(G[6]<<8|G[7]))}G=void 0!==n.msecs?n.msecs:(new Date).getTime();var M=void 0!==n.nsecs?n.nsecs:B+1,U=G-K+(M-B)/1E4;if(0>U&&void 0===n.clockseq&&(u=u+1&16383),(0>U||G>K)&&void 0===n.nsecs&&(M=0),1E4<=M)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");
55
+ K=G;B=M;xa=u;n=(1E4*(268435455&(G+=122192928E5))+M)%4294967296;F[z++]=n>>>24&255;F[z++]=n>>>16&255;F[z++]=n>>>8&255;F[z++]=255&n;n=G/4294967296*1E4&268435455;F[z++]=n>>>8&255;F[z++]=255&n;F[z++]=n>>>24&15|16;F[z++]=n>>>16&255;F[z++]=u>>>8|128;F[z++]=255&u;for(u=0;6>u;++u)F[z+u]=w[u];return y||V(F)};A.v3=P;A.v4=function(n,y,z){z=y&&z||0;'string'==typeof n&&(y='binary'===n?Array(16):null,n=null);var F=(n=n||{}).random||(n.rng||R)();if(F[6]=15&F[6]|64,F[8]=63&F[8]|128,y)for(n=0;16>n;++n)y[z+n]=F[n];
56
56
  return y||V(F)};A.v5=E;Object.defineProperty(A,'__esModule',{value:!0})});
57
- function Merge(){var A=[],R=!1,V=function(N,ha){var Q=N;R||('object'==typeof N&&Array.isArray(N),R=!0);'undefined'==typeof Q&&(Q='undefined'!=typeof ha&&Array.isArray(ha)?[]:{});var T=!1;'boolean'==typeof arguments[arguments.length-1]&&(T=arguments[arguments.length-1]);var v=1,I=arguments.length,x,ya;if('object'!==typeof Q&&'function'!==typeof Q)Q=T?'undefined'==typeof arguments[2]?arguments[1]:arguments[2]:'undefined'==typeof arguments[0]?arguments[1]:arguments[0];else for(;v<I;++v)if('boolean'!=
58
- typeof arguments[v]&&null!=(x=arguments[v])){if('object'!=typeof x){Q=x;break}if(Array.isArray(x)&&Array.isArray(Q))Q=ka(x,Q,T);else for(var va in x){Q||={name:null};var P=Q[va];var K=x[va];if(Q!==K)if(K&&(S(K)||(ya=Array.isArray(K)))){var B=!1;if(ya){ya=!1;if(P&&Array.isArray(P))var E=P||[];else if(S(P)){E=P||{};Q[va]=E;continue}else E=[];A=E;E=ka(K,E,T);Q[va]=E}else{E=P&&S(P)?P:null;if(!E){B=!0;E={};for(var n in K)E[n]=K[n]}if(T){for(n in K)'undefined'!=typeof K[n]?Array.isArray(K[n])&&Array.isArray(E[n])?
59
- E[n]=ka(K[n],E[n],T):E[n]=K[n]:Array.isArray(K[n])&&Array.isArray(E[n])&&(E[n]=ka(K[n],E[n],T));Q[va]=E}else{for(n in K)'undefined'==typeof E[n]?Array.isArray(K[n])&&Array.isArray(E[n])?E[n]=ka(K[n],E[n],T):E[n]=K[n]:Array.isArray(K[n])&&Array.isArray(E[n])&&(E[n]=ka(K[n],E[n],T));'boolean'==typeof P||B?B&&(Q[va]=E):Q[va]=V(E,K,T)}}}else void 0!==K&&(Q[va]='undefined'==typeof P||null==P||P===K||T?K:P)}}A=[];R=!1;return Q},ka=function(N,ha,Q){A=[];var T=[],v=V.getKeyComparison();if(/^true$/i.test(Q)){if('object'==
60
- typeof N[0]&&null!=N[0]&&'undefined'!=typeof N[0][v]&&'object'==typeof ha[0]&&'undefined'!=typeof ha[0][v]){A=Array.isArray(ha)?Array.from(ha):JSON.clone(ha);var I=0;for(Q=A.length;I<Q;++I)T.push(A[I][v]);Q=JSON.clone(N);var x=0;I=0;N=Q.length;for(var ya=P||0,va=ha.length;ya<va;++ya)a:for(I=I||0;I<N;++I)if(Q[I][v]===ha[ya][v]){-1<T.indexOf(Q[I][v])?(A[x]=Q[I],++x):-1==T.indexOf(Q[I][v])&&(T.push(Q[I][v]),A[x]=Q[I],++x);break a}else-1==T.indexOf(Q[I][v])&&(T.push(Q[I][v]),A.push(Q[I]));return A}return Array.isArray(N)&&
57
+ function Merge(){var A=[],R=!1,V=function(N,ha){var Q=N;R||('object'==typeof N&&Array.isArray(N),R=!0);'undefined'==typeof Q&&(Q='undefined'!=typeof ha&&Array.isArray(ha)?[]:{});var T=!1;'boolean'==typeof arguments[arguments.length-1]&&(T=arguments[arguments.length-1]);var v=1,I=arguments.length,x,xa;if('object'!==typeof Q&&'function'!==typeof Q)Q=T?'undefined'==typeof arguments[2]?arguments[1]:arguments[2]:'undefined'==typeof arguments[0]?arguments[1]:arguments[0];else for(;v<I;++v)if('boolean'!=
58
+ typeof arguments[v]&&null!=(x=arguments[v])){if('object'!=typeof x){Q=x;break}if(Array.isArray(x)&&Array.isArray(Q))Q=ka(x,Q,T);else for(var ua in x){Q||={name:null};var P=Q[ua];var K=x[ua];if(Q!==K)if(K&&(S(K)||(xa=Array.isArray(K)))){var B=!1;if(xa){xa=!1;if(P&&Array.isArray(P))var E=P||[];else if(S(P)){E=P||{};Q[ua]=E;continue}else E=[];A=E;E=ka(K,E,T);Q[ua]=E}else{E=P&&S(P)?P:null;if(!E){B=!0;E={};for(var n in K)E[n]=K[n]}if(T){for(n in K)'undefined'!=typeof K[n]?Array.isArray(K[n])&&Array.isArray(E[n])?
59
+ E[n]=ka(K[n],E[n],T):E[n]=K[n]:Array.isArray(K[n])&&Array.isArray(E[n])&&(E[n]=ka(K[n],E[n],T));Q[ua]=E}else{for(n in K)'undefined'==typeof E[n]?Array.isArray(K[n])&&Array.isArray(E[n])?E[n]=ka(K[n],E[n],T):E[n]=K[n]:Array.isArray(K[n])&&Array.isArray(E[n])&&(E[n]=ka(K[n],E[n],T));'boolean'==typeof P||B?B&&(Q[ua]=E):Q[ua]=V(E,K,T)}}}else void 0!==K&&(Q[ua]='undefined'==typeof P||null==P||P===K||T?K:P)}}A=[];R=!1;return Q},ka=function(N,ha,Q){A=[];var T=[],v=V.getKeyComparison();if(/^true$/i.test(Q)){if('object'==
60
+ typeof N[0]&&null!=N[0]&&'undefined'!=typeof N[0][v]&&'object'==typeof ha[0]&&'undefined'!=typeof ha[0][v]){A=Array.isArray(ha)?Array.from(ha):JSON.clone(ha);var I=0;for(Q=A.length;I<Q;++I)T.push(A[I][v]);Q=JSON.clone(N);var x=0;I=0;N=Q.length;for(var xa=P||0,ua=ha.length;xa<ua;++xa)a:for(I=I||0;I<N;++I)if(Q[I][v]===ha[xa][v]){-1<T.indexOf(Q[I][v])?(A[x]=Q[I],++x):-1==T.indexOf(Q[I][v])&&(T.push(Q[I][v]),A[x]=Q[I],++x);break a}else-1==T.indexOf(Q[I][v])&&(T.push(Q[I][v]),A.push(Q[I]));return A}return Array.isArray(N)&&
61
61
  0==N.length||'undefined'==typeof N?/^true$/i.test(Q)?N:ha:N}if(0==N.length&&0<ha.length)return A=ha;if(0==ha.length&&0<N.length)for(I=0;I<N.length;++I)ha.push(N[I]);if(0==A.length&&0<ha.length)for(I=0;I<ha.length;++I)'object'!=typeof ha[I]&&-1==A.indexOf(ha[I])&&A.push(ha[I]);if(0<ha.length){if('undefined'!=typeof N[0]&&'object'==typeof N[0]&&null!=N[0]&&'undefined'!=typeof N[0][v]&&'object'==typeof ha[0]&&'undefined'!=typeof ha[0][v]){A=Array.isArray(ha)?Array.from(ha):JSON.clone(ha);Q=JSON.clone(N);
62
- var P=null;I=0;for(N=A.length;I<N;++I)T.push(A[I][v]);for(I=0;I<N;++I)a:for(ya=P||0,va=Q.length;ya<va;++ya)if(null!=Q[ya]&&'undefined'!=typeof Q[ya][v]&&Q[ya][v]!==A[I][v]){if(-1==T.indexOf(Q[ya][v])){A.push(Q[ya]);T.push(Q[ya][v]);P=ya+1;N<va&&++N;break a}}else if(null!=Q[ya]&&'undefined'!=typeof Q[ya][v]&&Q[ya][v]===A[I][v])P=ya+1;else break a;return A}for(I=0;I<N.length;++I)if(T=null,'undefined'==typeof N||'object'!=typeof N[I]||Array.isArray(N[I])||null==N[I]||(T=Object.getOwnPropertyNames(N[I])),
62
+ var P=null;I=0;for(N=A.length;I<N;++I)T.push(A[I][v]);for(I=0;I<N;++I)a:for(xa=P||0,ua=Q.length;xa<ua;++xa)if(null!=Q[xa]&&'undefined'!=typeof Q[xa][v]&&Q[xa][v]!==A[I][v]){if(-1==T.indexOf(Q[xa][v])){A.push(Q[xa]);T.push(Q[xa][v]);P=xa+1;N<ua&&++N;break a}}else if(null!=Q[xa]&&'undefined'!=typeof Q[xa][v]&&Q[xa][v]===A[I][v])P=xa+1;else break a;return A}for(I=0;I<N.length;++I)if(T=null,'undefined'==typeof N||'object'!=typeof N[I]||Array.isArray(N[I])||null==N[I]||(T=Object.getOwnPropertyNames(N[I])),
63
63
  'undefined'!=typeof T&&null!=T&&(T=T[0]||null),-1<ha.indexOf(N[I])&&Q)ha.splice(ha.indexOf(N[I]),1,N[I]);else if('undefined'==typeof A[I]&&'object'==typeof N[I])for(x in A=ha,'undefined'==typeof A[I]&&(A[I]={}),N[I])A[I].hasOwnProperty(x)||(A[I][x]=N[I][x]);else!Q&&-1<A.indexOf(N[I])&&/number/i.test(typeof N[I])&&N[I]!==A[I]?A.push(N[I]):'undefined'==typeof ha[I]||/null/i.test(ha[I])||'undefined'==typeof ha[I][v]||'undefined'==typeof N[I]||'undefined'==typeof N[I][v]||ha[I][v]!=N[I][v]?-1==A.indexOf(N[I])&&
64
64
  'object'!=typeof N[I]?A.push(N[I]):'undefined'==typeof ha[I]||/null/i.test(ha[I])||'undefined'==typeof ha[I][T]||'undefined'==typeof N[I]||'undefined'==typeof N[I][T]||ha[I][T]!=N[I][T]||(A[I]=Q?N[I]:ha[I]):A[I]=Q?N[I]:ha[I]}if(0<A.length&&0<ha.length||0==A.length&&0==ha.length)return A};ka.prototype.setKeyComparison=function(N){this.keyComparison=N};var S=function(N){if(!N||'[object Object]'!=={}.toString.call(N)||N.nodeType||N.setInterval)return!1;var ha={}.hasOwnProperty,Q=ha.call(N,'constructor');
65
65
  ha='undefined'!=typeof N.constructor?ha.call(N.constructor.prototype,'isPrototypeOf'):!1;return!N.constructor||Q||ha?!0:!1};V.setKeyComparison=function(N){ka.keyComparison=N;return V};V.getKeyComparison=function(){var N=ka.keyComparison||'id';ka.keyComparison='id';return N};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()});
@@ -72,18 +72,18 @@ function cancelEvent(A){'undefined'!=typeof A&&null!=A&&(A.cancelBubble=!0,A.pre
72
72
  function setupXhr(A){var R=null;if(window.XMLHttpRequest)R=new XMLHttpRequest;else if(window.ActiveXObject)try{R=new ActiveXObject('Msxml2.XMLHTTP')}catch(ka){try{R=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 R)A.isSynchrone?R.open(A.method,A.url,A.isSynchrone):R.open(A.method,
73
73
  A.url);else if('undefined'!=typeof XDomainRequest)R=new XDomainRequest,R.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}R.responseType='undefined'!=typeof A.responseType?A.responseType:'';R.withCredentials=!0}else A.isSynchrone?R.open(A.method,A.url,A.isSynchrone):R.open(A.method,A.url);for(var V in A.headers)'Content-Type'==V&&'undefined'!=typeof enctype&&null!=
74
74
  enctype&&''!=enctype||R.setRequestHeader(V,A.headers[V])}return R}
75
- function handleXhr(A,R,V,ka){if(!A)throw Error('No `xhr` object initiated');var S=null,N=null,ha=null,Q=null,T=null,v=V.$link||null,I=V.$form||null,x=null;delete V.$link;delete V.$form;I||v?v?(v.target=document.getElementById(v.id),x=gina.link.target,T=gina.link.id):(x=I.target,T=x.getAttribute('id')):(x=R,T=x.getAttribute('id'));var ya=v&&R.getAttribute('data-gina-link-event-on-success')||v&&R.getAttribute('data-gina-link-event-on-error')?!0:!1,va=I&&x.getAttribute('data-gina-form-event-on-submit-success')||
76
- I&&x.getAttribute('data-gina-form-event-on-submit-error')?!0:!1;va&&I&&listenToXhrEvents(I,'form');R=R.getAttribute('enctype')||V.headers['Content-Type'];for(var P in V.headers)'Content-Type'==P&&'undefined'!=typeof R&&null!=R&&''!=R||A.setRequestHeader(P,V.headers[P]);A.withCredentials='undefined'!=typeof V.withCredentials?V.withCredentials:!1;A.onerror=function(K,B){K={status:A.status||500,error:'Transaction error: might be due to the server CORS settings.\nPlease, check the console for more details.'};
77
- I&&(I.eventData.error=K);v&&(v.eventData.error=K);window.ginaToolbar.update('data-xhr',K,!0);triggerEvent(gina,x,'error.'+T,K);va&&triggerEvent(gina,x,'error.'+T+'.hform',K);ya&&triggerEvent(gina,x,'error.'+T+'.hlink',K)};A.onreadystatechange=function(K){'undefined'==typeof merge&&(merge=ka('lib/merge'));K=/Google Inc/i.test(navigator.vendor)?50:0;2==A.readyState&&(N=/^attachment;/.test(A.getResponseHeader('Content-Disposition'))?!0:!1,!A.responseType&&N&&(A.responseType='blob'));if(4==A.readyState)if(S=
75
+ function handleXhr(A,R,V,ka){if(!A)throw Error('No `xhr` object initiated');var S=null,N=null,ha=null,Q=null,T=null,v=V.$link||null,I=V.$form||null,x=null;delete V.$link;delete V.$form;I||v?v?(v.target=document.getElementById(v.id),x=gina.link.target,T=gina.link.id):(x=I.target,T=x.getAttribute('id')):(x=R,T=x.getAttribute('id'));var xa=v&&R.getAttribute('data-gina-link-event-on-success')||v&&R.getAttribute('data-gina-link-event-on-error')?!0:!1,ua=I&&x.getAttribute('data-gina-form-event-on-submit-success')||
76
+ I&&x.getAttribute('data-gina-form-event-on-submit-error')?!0:!1;ua&&I&&listenToXhrEvents(I,'form');R=R.getAttribute('enctype')||V.headers['Content-Type'];for(var P in V.headers)'Content-Type'==P&&'undefined'!=typeof R&&null!=R&&''!=R||A.setRequestHeader(P,V.headers[P]);A.withCredentials='undefined'!=typeof V.withCredentials?V.withCredentials:!1;A.onerror=function(K,B){K={status:A.status||500,error:'Transaction error: might be due to the server CORS settings.\nPlease, check the console for more details.'};
77
+ I&&(I.eventData.error=K);v&&(v.eventData.error=K);window.ginaToolbar.update('data-xhr',K,!0);triggerEvent(gina,x,'error.'+T,K);ua&&triggerEvent(gina,x,'error.'+T+'.hform',K);xa&&triggerEvent(gina,x,'error.'+T+'.hlink',K)};A.onreadystatechange=function(K){'undefined'==typeof merge&&(merge=ka('lib/merge'));K=/Google Inc/i.test(navigator.vendor)?50:0;2==A.readyState&&(N=/^attachment;/.test(A.getResponseHeader('Content-Disposition'))?!0:!1,!A.responseType&&N&&(A.responseType='blob'));if(4==A.readyState)if(S=
78
78
  null,ha=A.getResponseHeader('Content-Type'),/^2/.test(A.status)){try{if(/blob/.test(A.responseType)||N){if('undefined'==typeof ha||null==ha)ha='application/octet-stream';S=new Blob([this.response],{type:ha});var B=document.createElement('a');B.style='display: none';document.body.appendChild(B);var E=window.URL.createObjectURL(S);B.href=E;var n=A.getResponseHeader('Content-Disposition');B.download=n.match('=(.*)')[0].substring(1);B.click();window.URL.revokeObjectURL(E);Q={status:A.status,statusText:A.statusText,
79
79
  responseType:S.type,type:S.type,size:S.size}}!Q&&/\/json/.test(ha)&&(Q=JSON.parse(A.responseText),'undefined'==typeof Q.status&&(Q.status=A.status||200));if(!Q&&/\/html/.test(ha)&&(Q={contentType:ha,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=
80
80
  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(u){throw u;}y.loadContent(Q.content);Q=XHRData;triggerEvent(gina,x,'success.'+
81
- T,Q);return}}Q||(Q=A.responseText);I&&(I.eventData.success=Q);XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{'undefined'!=typeof XHRData&&/\/html/.test(ha)&&window.ginaToolbar.update('data-xhr',XHRData)}catch(u){throw u;}triggerEvent(gina,x,'success.'+T,Q);va&&triggerEvent(gina,x,'success.'+T+'.hform',Q);ya&&triggerEvent(gina,x,'success.'+T+'.hlink',Q)}catch(u){Q={status:422,error:u.message,stack:u.stack};I&&(I.eventData.error=Q);XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&
82
- XHRData)try{'undefined'!=typeof XHRData&&window.ginaToolbar.update('data-xhr',XHRData)}catch(G){throw G;}triggerEvent(gina,x,'error.'+T,Q);va&&triggerEvent(gina,x,'error.'+T+'.hform',Q);ya&&triggerEvent(gina,x,'error.'+T+'.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},K)}else if(0!=A.status)if(Q=
81
+ T,Q);return}}Q||(Q=A.responseText);I&&(I.eventData.success=Q);XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{'undefined'!=typeof XHRData&&/\/html/.test(ha)&&window.ginaToolbar.update('data-xhr',XHRData)}catch(u){throw u;}triggerEvent(gina,x,'success.'+T,Q);ua&&triggerEvent(gina,x,'success.'+T+'.hform',Q);xa&&triggerEvent(gina,x,'success.'+T+'.hlink',Q)}catch(u){Q={status:422,error:u.message,stack:u.stack};I&&(I.eventData.error=Q);XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&
82
+ XHRData)try{'undefined'!=typeof XHRData&&window.ginaToolbar.update('data-xhr',XHRData)}catch(G){throw G;}triggerEvent(gina,x,'error.'+T,Q);ua&&triggerEvent(gina,x,'error.'+T+'.hform',Q);xa&&triggerEvent(gina,x,'error.'+T+'.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},K)}else if(0!=A.status)if(Q=
83
83
  {status:A.status,message:''},/blob/.test(A.responseType)){S=new Blob([this.response],{type:'text/plain'});var z=new FileReader,F='';z.addEventListener('loadend',u=>{'undefined'==typeof merge&&(merge=ka('lib/merge'));/string/i.test(typeof u.srcElement.result)?F+=u.srcElement.result:'object'==typeof u.srcElement.result?Q=merge(Q,u.srcElement.result):Q.message+=u.srcElement.result;if(/^2/.test(z.readyState)){if(/^(\{|\[)/.test(F))try{Q=merge(Q,JSON.parse(F))}catch(U){Q=merge(Q,U)}Q.message||delete Q.message;
84
- I&&(I.eventData.error=Q);if('undefined'!=typeof Q&&'undefined'!=typeof Q.error&&Q.error.fields&&'object'==typeof Q.error.fields){u={};var G=0,M;for(M in Q.error.fields)++G,u[M]={isApplicationValidationError:Q.error.fields[M]};0<G&&handleErrorsDisplay(I.target,u)}XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{window.ginaToolbar.update('data-xhr',XHRData)}catch(U){throw U;}triggerEvent(gina,x,'error.'+T,Q);va&&triggerEvent(gina,x,'error.'+T+'.hform',Q);ya&&triggerEvent(gina,x,'error.'+
84
+ I&&(I.eventData.error=Q);if('undefined'!=typeof Q&&'undefined'!=typeof Q.error&&Q.error.fields&&'object'==typeof Q.error.fields){u={};var G=0,M;for(M in Q.error.fields)++G,u[M]={isApplicationValidationError:Q.error.fields[M]};0<G&&handleErrorsDisplay(I.target,u)}XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{window.ginaToolbar.update('data-xhr',XHRData)}catch(U){throw U;}triggerEvent(gina,x,'error.'+T,Q);ua&&triggerEvent(gina,x,'error.'+T+'.hform',Q);xa&&triggerEvent(gina,x,'error.'+
85
85
  T+'.hlink',Q)}});z.readAsText(S)}else{try{Q=merge(Q,JSON.parse(A.responseText))}catch(u){Q=merge(Q,u)}I&&(I.eventData.error=Q);if('undefined'!=typeof Q&&'undefined'!=typeof Q.error&&Q.error.fields&&'object'==typeof Q.error.fields){B={};E=0;for(var w in Q.error.fields)++E,B[w]={isApplicationValidationError:Q.error.fields[w]};0<E&&handleErrorsDisplay(I.target,B)}XHRData=Q;if(gina&&'object'==typeof window.ginaToolbar&&XHRData)try{window.ginaToolbar.update('data-xhr',XHRData)}catch(u){throw u;}triggerEvent(gina,
86
- x,'error.'+T,Q);va&&triggerEvent(gina,x,'error.'+T+'.hform',Q);ya&&triggerEvent(gina,x,'error.'+T+'.hlink',Q)}};A.onprogress=function(K){var B='0';K.lengthComputable&&(B=K.loaded/K.total,B=parseInt(100*B));K={status:100,progress:B};I&&(I.eventData.onprogress=K);triggerEvent(gina,x,'progress.'+T,K)};A.ontimeout=function(K){Q={status:408,error:'Request Timeout'};I&&(I.eventData.ontimeout=Q);triggerEvent(gina,x,'error.'+T,Q);va&&triggerEvent(gina,x,'error.'+T+'.hform',Q);ya&&triggerEvent(gina,x,'error.'+
86
+ x,'error.'+T,Q);ua&&triggerEvent(gina,x,'error.'+T+'.hform',Q);xa&&triggerEvent(gina,x,'error.'+T+'.hlink',Q)}};A.onprogress=function(K){var B='0';K.lengthComputable&&(B=K.loaded/K.total,B=parseInt(100*B));K={status:100,progress:B};I&&(I.eventData.onprogress=K);triggerEvent(gina,x,'progress.'+T,K)};A.ontimeout=function(K){Q={status:408,error:'Request Timeout'};I&&(I.eventData.ontimeout=Q);triggerEvent(gina,x,'error.'+T,Q);ua&&triggerEvent(gina,x,'error.'+T+'.hform',Q);xa&&triggerEvent(gina,x,'error.'+
87
87
  T+'.hlink',Q)}}
88
88
  function removeListener(A,R,V,ka){'undefined'!=typeof A.event&&A.event.isTouchSupported&&/^(click|mouseout|mouseover)/.test(V)&&-1!=A.event[V].indexOf(R)&&A.event[V].splice(A.event[V].indexOf(R),1);if('undefined'!=typeof R&&null!=R)if(R.removeEventListener)if(Array.isArray(R))for(i=0,len=R.length;i<len;i++)A=/\.$/.test(V)?V+R[i].id:V,R.removeEventListener(A,ka,!1),'undefined'!=typeof gina.events[A]&&delete gina.events[A];else V=/\.$/.test(V)?V+R.id:V,R.removeEventListener(V,ka,!1);else{if(R.attachEvent)if(Array.isArray(R))for(i=
89
89
  0,len=R.length;i<len;i++)A=/\.$/.test(V)?V+R[i].id:V,R.detachEvent('on'+A,ka),'undefined'!=typeof gina.events[A]&&delete gina.events[A];else V=/\.$/.test(V)?V+R.id:V,R.detachEvent('on'+V,ka)}else if(Array.isArray(R))for(i=0,len=R.length;i<len;i++){let S=/\.$/.test(V)?V+R[i].id:V;A.customEvent.removeListener(S,ka);'undefined'!=typeof gina.events[S]&&delete gina.events[S]}else V=/\.$/.test(V)?V+R.id:V,A.customEvent.removeListener(V,ka);'undefined'!=typeof gina.events[V]&&delete gina.events[V];'undefined'!=
@@ -101,10 +101,10 @@ function DateFormatHelper(){var A='undefined'!==typeof module&&module.exports?!1
101
101
  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 N={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(' '),
102
102
  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',
103
103
  shortDate:'d/m/yy',shortDate2:'dd/mm/yyyy',mediumDate:'d mmm, yyyy',longDate:'d mmmm, yyyy',fullDate:'dddd, d mmmm, yyyy'}}};var ha=function(v,I){if(I instanceof Date)return v=v.getTime(),I=I.getTime(),Math.round(Math.abs(v-I)/864E5);throw Error('dateTo is not instance of Date() !');},Q=['us','eu','corporate'],T=function(v){d=new Date(v.getFullYear(),v.getMonth(),v.getDate());v=d.getDay()||7;d.setDate(d.getDate()+4-v);v=new Date(Date.parse(d.getFullYear(),0,1));return Math.ceil(((d-v)/864E5+1)/7)};
104
- return{setCulture:function(v,I){/\-/.test(I)?(V=I,ka=I.split(/\-/)[0]):ka=I;return this},format:function(v,I,x){var ya=N[ka]||N.en,va=null;try{va=R(ya.masks,S)}catch(U){R=(A='undefined'!==typeof module&&module.exports?!1:!0)?require('lib/merge'):require('./../lib/merge'),va=R(ya.masks,S)}'undefined'!=typeof N[V]&&(ya=N[V],'undefined'!=typeof N[V].mask&&(va=R(ya.masks,S)));var P=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
105
- K=/[^-+\dA-Z]/g,B=function(U,qa){U=String(U);for(qa=qa||2;U.length<qa;)U='0'+U;return U};1!=arguments.length||'[object String]'!=Object.prototype.toString.call(v)||/\d/.test(v)||(I=v,v=void 0);v=v?new Date(v):new Date;if(isNaN(v))throw SyntaxError('invalid date');I=String(va[I]||I||va['default']);'UTC:'==I.slice(0,4)&&(I=I.slice(4),x=!0);var E=x?'getUTC':'get';va=v[E+'Date']();var n=v[E+'Day'](),y=v[E+'Month'](),z=v[E+'FullYear'](),F=v[E+'Hours'](),w=v[E+'Minutes'](),u=v[E+'Seconds']();E=v[E+'Milliseconds']();
106
- var G=x?0:v.getTimezoneOffset(),M={d:va,dd:B(va),ddd:ya.dayNames[n],dddd:ya.dayNames[n+7],m:y+1,mm:B(y+1),mmm:ya.monthNames[y],mmmm:ya.monthNames[y+12],yy:String(z).slice(2),yyyy:z,h:F%12||12,hh:B(F%12||12),H:F,HH:B(F),M:w,MM:B(w),s:u,ss:B(u),l:B(E,3),L:B(E),t:12>F?'a':'p',tt:12>F?'am':'pm',T:12>F?'A':'P',TT:12>F?'AM':'PM',Z:x?'UTC':(String(v).match(P)||['']).pop().replace(K,''),o:(0<G?'-':'+')+B(100*Math.floor(Math.abs(G)/60)+Math.abs(G)%60,4),S:['th','st','nd','rd'][3<va%10?0:(10!=va%100-va%10)*
107
- va%10]};return I.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(U){return U in M?M[U]:U.slice(1,U.length-1)})},countDaysTo:ha,getDaysTo:function(v,I,x){if(I instanceof Date){I=ha(v,I);var ya=v.getMonth(),va=v.getFullYear();v=v.getDate()+1;v=new Date(va,ya,v);ya=[];for(va=0;va<I;++va)'undefined'!=typeof x?ya.push((new Date(v)).format(x)):ya.push(new Date(v)),v.setDate(v.getDate()+1);return ya||[]}throw Error('dateTo is not instance of Date() !');},getDaysInMonth:function(v){var I=
104
+ return{setCulture:function(v,I){/\-/.test(I)?(V=I,ka=I.split(/\-/)[0]):ka=I;return this},format:function(v,I,x){var xa=N[ka]||N.en,ua=null;try{ua=R(xa.masks,S)}catch(U){R=(A='undefined'!==typeof module&&module.exports?!1:!0)?require('lib/merge'):require('./../lib/merge'),ua=R(xa.masks,S)}'undefined'!=typeof N[V]&&(xa=N[V],'undefined'!=typeof N[V].mask&&(ua=R(xa.masks,S)));var P=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
105
+ K=/[^-+\dA-Z]/g,B=function(U,qa){U=String(U);for(qa=qa||2;U.length<qa;)U='0'+U;return U};1!=arguments.length||'[object String]'!=Object.prototype.toString.call(v)||/\d/.test(v)||(I=v,v=void 0);v=v?new Date(v):new Date;if(isNaN(v))throw SyntaxError('invalid date');I=String(ua[I]||I||ua['default']);'UTC:'==I.slice(0,4)&&(I=I.slice(4),x=!0);var E=x?'getUTC':'get';ua=v[E+'Date']();var n=v[E+'Day'](),y=v[E+'Month'](),z=v[E+'FullYear'](),F=v[E+'Hours'](),w=v[E+'Minutes'](),u=v[E+'Seconds']();E=v[E+'Milliseconds']();
106
+ var G=x?0:v.getTimezoneOffset(),M={d:ua,dd:B(ua),ddd:xa.dayNames[n],dddd:xa.dayNames[n+7],m:y+1,mm:B(y+1),mmm:xa.monthNames[y],mmmm:xa.monthNames[y+12],yy:String(z).slice(2),yyyy:z,h:F%12||12,hh:B(F%12||12),H:F,HH:B(F),M:w,MM:B(w),s:u,ss:B(u),l:B(E,3),L:B(E),t:12>F?'a':'p',tt:12>F?'am':'pm',T:12>F?'A':'P',TT:12>F?'AM':'PM',Z:x?'UTC':(String(v).match(P)||['']).pop().replace(K,''),o:(0<G?'-':'+')+B(100*Math.floor(Math.abs(G)/60)+Math.abs(G)%60,4),S:['th','st','nd','rd'][3<ua%10?0:(10!=ua%100-ua%10)*
107
+ ua%10]};return I.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(U){return U in M?M[U]:U.slice(1,U.length-1)})},countDaysTo:ha,getDaysTo:function(v,I,x){if(I instanceof Date){I=ha(v,I);var xa=v.getMonth(),ua=v.getFullYear();v=v.getDate()+1;v=new Date(ua,xa,v);xa=[];for(ua=0;ua<I;++ua)'undefined'!=typeof x?xa.push((new Date(v)).format(x)):xa.push(new Date(v)),v.setDate(v.getDate()+1);return xa||[]}throw Error('dateTo is not instance of Date() !');},getDaysInMonth:function(v){var I=
108
108
  v.getMonth();v=v.getFullYear();v=new Date(v,I,1);for(var x=[];v.getMonth()===I;)x.push(new Date(v)),v.setDate(v.getDate()+1);return x},getQuarter:function(v,I){if(1==arguments.length&&'string'==typeof arguments[0]){if(0>Q.indexOf(arguments[0].toLowerCase()))throw Error('Quarter '+arguments[0]+' code not supported !');v=new Date;I=arguments[0]}'undefined'==typeof v&&(v=new Date);'undefined'==typeof I&&(I='corporate');I=I.toLowerCase();switch(I){case 'us':var x=[4,1,2,3];break;case 'corportate':case 'eu':x=
109
109
  [1,2,3,4];break;default:x=[1,2,3,4]}return x[Math.floor(v.getMonth()/3)]},getHalfYear:function(v,I){if(1==arguments.length&&'string'==typeof arguments[0]){if(0>Q.indexOf(arguments[0].toLowerCase()))throw Error('Quarter '+arguments[0]+' code not supported !');v=new Date;I=arguments[0]}'undefined'==typeof v&&(v=new Date);'undefined'==typeof I&&(I='corporate');I=I.toLowerCase();return 2>=v.getQuarter(I)?1:2},getWeek:function(v,I){'undefined'==typeof v&&(v=new Date);'undefined'==typeof I&&(I='ISO 8601');
110
110
  I=I.replace(/\s+/g,'').toLowerCase();switch(I){case 'corporate':case 'eu':case 'iso8601':return T(v);default:return T(v)}},addHours:function(v,I){v=new Date(v.getTime());v.setHours(v.getHours()+I);return v},addDays:function(v,I){v=new Date(v.getTime());v.setHours(v.getHours()+24*I);return v},addYears:function(v,I){v=new Date(v.getTime());v.setFullYear(v.getFullYear()+I);return v}}}
@@ -113,24 +113,24 @@ I=I.replace(/\s+/g,'').toLowerCase();switch(I){case 'corporate':case 'eu':case '
113
113
  k)!==g});if(c.nodeType)return b.grep(a,function(k){return k===c!==g});if('string'==typeof c){if(Ba.test(c))return b.filter(c,a,g);c=b.filter(c,a)}return b.grep(a,function(k){return-1<b.inArray(k,c)!==g})}function S(a,c){do a=a[c];while(a&&1!==a.nodeType);return a}function N(a){var c={};return b.each(a.match(ma)||[],function(g,k){c[k]=!0}),c}function ha(){La.addEventListener?(La.removeEventListener('DOMContentLoaded',Q),A.removeEventListener('load',Q)):(La.detachEvent('onreadystatechange',Q),A.detachEvent('onload',
114
114
  Q))}function Q(){(La.addEventListener||'load'===A.event.type||'complete'===La.readyState)&&(ha(),b.ready())}function T(a,c,g){if(void 0===g&&1===a.nodeType){var k='data-'+c.replace(Bb,'-$1').toLowerCase();if(g=a.getAttribute(k),'string'==typeof g){try{g='true'===g?!0:'false'===g?!1:'null'===g?null:+g+''===g?+g:Ab.test(g)?b.parseJSON(g):g}catch(r){}b.data(a,c,g)}else g=void 0}return g}function v(a){for(var c in a)if(('data'!==c||!b.isEmptyObject(a[c]))&&'toJSON'!==c)return!1;return!0}function I(a,
115
115
  c,g,k){if($a(a)){var r,C,J=b.expando,Z=a.nodeType,pa=Z?b.cache:a,Ca=Z?a[J]:a[J]&&J;if(Ca&&pa[Ca]&&(k||pa[Ca].data)||void 0!==g||'string'!=typeof c)return Ca||=Z?a[J]=tb.pop()||b.guid++:J,pa[Ca]||(pa[Ca]=Z?{}:{toJSON:b.noop}),'object'!=typeof c&&'function'!=typeof c||(k?pa[Ca]=b.extend(pa[Ca],c):pa[Ca].data=b.extend(pa[Ca].data,c)),C=pa[Ca],k||(C.data||(C.data={}),C=C.data),void 0!==g&&(C[b.camelCase(c)]=g),'string'==typeof c?(r=C[c],null==r&&(r=C[b.camelCase(c)])):r=C,r}}function x(a,c,g){if($a(a)){var k,
116
- r,C=a.nodeType,J=C?b.cache:a,Z=C?a[b.expando]:b.expando;if(J[Z]){if(c&&(k=g?J[Z]:J[Z].data)){b.isArray(c)?c=c.concat(b.map(c,b.camelCase)):c in k?c=[c]:(c=b.camelCase(c),c=c in k?[c]:c.split(' '));for(r=c.length;r--;)delete k[c[r]];if(g?!v(k):!b.isEmptyObject(k))return}(g||(delete J[Z].data,v(J[Z])))&&(C?b.cleanData([a],!0):e.deleteExpando||J!=J.window?delete J[Z]:J[Z]=void 0)}}}function ya(a,c,g,k){var r,C=1,J=20,Z=k?function(){return k.cur()}:function(){return b.css(a,c,'')},pa=Z(),Ca=g&&g[3]||
117
- (b.cssNumber[c]?'':'px'),ua=(b.cssNumber[c]||'px'!==Ca&&+pa)&&Hb.exec(b.css(a,c));if(ua&&ua[3]!==Ca){Ca=Ca||ua[3];g=g||[];ua=+pa||1;do C=C||'.5',ua/=C,b.style(a,c,ua+Ca);while(C!==(C=Z()/pa)&&1!==C&&--J)}return g&&(ua=+ua||+pa||0,r=g[1]?ua+(g[1]+1)*g[2]:+g[2],k&&(k.unit=Ca,k.start=ua,k.end=r)),r}function va(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(' ');
116
+ r,C=a.nodeType,J=C?b.cache:a,Z=C?a[b.expando]:b.expando;if(J[Z]){if(c&&(k=g?J[Z]:J[Z].data)){b.isArray(c)?c=c.concat(b.map(c,b.camelCase)):c in k?c=[c]:(c=b.camelCase(c),c=c in k?[c]:c.split(' '));for(r=c.length;r--;)delete k[c[r]];if(g?!v(k):!b.isEmptyObject(k))return}(g||(delete J[Z].data,v(J[Z])))&&(C?b.cleanData([a],!0):e.deleteExpando||J!=J.window?delete J[Z]:J[Z]=void 0)}}}function xa(a,c,g,k){var r,C=1,J=20,Z=k?function(){return k.cur()}:function(){return b.css(a,c,'')},pa=Z(),Ca=g&&g[3]||
117
+ (b.cssNumber[c]?'':'px'),va=(b.cssNumber[c]||'px'!==Ca&&+pa)&&Hb.exec(b.css(a,c));if(va&&va[3]!==Ca){Ca=Ca||va[3];g=g||[];va=+pa||1;do C=C||'.5',va/=C,b.style(a,c,va+Ca);while(C!==(C=Z()/pa)&&1!==C&&--J)}return g&&(va=+va||+pa||0,r=g[1]?va+(g[1]+1)*g[2]:+g[2],k&&(k.unit=Ca,k.start=va,k.end=r)),r}function ua(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(' ');
118
118
  a=a.createDocumentFragment();if(a.createElement)for(;c.length;)a.createElement(c.pop());return a}function P(a,c){var g,k,r=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!=(k=g[r]);r++)!c||b.nodeName(k,c)?C.push(k):b.merge(C,P(k,c));return void 0===c||c&&b.nodeName(a,c)?b.merge([a],C):C}function K(a,c){for(var g,k=0;null!=(g=a[k]);k++)b._data(g,'globalEval',
119
- !c||b._data(c[k],'globalEval'))}function B(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function E(a,c,g,k,r){for(var C,J,Z,pa,Ca,ua,Ra,Va=a.length,zb=va(c),ab=[],Jb=0;Va>Jb;Jb++)if(J=a[Jb],J||0===J)if('object'===b.type(J))b.merge(ab,J.nodeType?[J]:J);else if(fb.test(J)){pa=pa||zb.appendChild(c.createElement('div'));Ca=(ja.exec(J)||['',''])[1].toLowerCase();Ra=Wa[Ca]||Wa._default;pa.innerHTML=Ra[1]+b.htmlPrefilter(J)+Ra[2];for(C=Ra[0];C--;)pa=pa.lastChild;if(!e.leadingWhitespace&&Na.test(J)&&ab.push(c.createTextNode(Na.exec(J)[0])),
120
- !e.tbody)for(C=(J='table'!==Ca||Pa.test(J)?'<table>'!==Ra[1]||Pa.test(J)?0:pa:pa.firstChild)&&J.childNodes.length;C--;)b.nodeName(ua=J.childNodes[C],'tbody')&&!ua.childNodes.length&&J.removeChild(ua);b.merge(ab,pa.childNodes);for(pa.textContent='';pa.firstChild;)pa.removeChild(pa.firstChild);pa=zb.lastChild}else ab.push(c.createTextNode(J));pa&&zb.removeChild(pa);e.appendChecked||b.grep(P(ab,'input'),B);for(Jb=0;J=ab[Jb++];)if(k&&-1<b.inArray(J,k))r&&r.push(J);else if(Z=b.contains(J.ownerDocument,
119
+ !c||b._data(c[k],'globalEval'))}function B(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function E(a,c,g,k,r){for(var C,J,Z,pa,Ca,va,Ra,Va=a.length,zb=ua(c),ab=[],Jb=0;Va>Jb;Jb++)if(J=a[Jb],J||0===J)if('object'===b.type(J))b.merge(ab,J.nodeType?[J]:J);else if(fb.test(J)){pa=pa||zb.appendChild(c.createElement('div'));Ca=(ja.exec(J)||['',''])[1].toLowerCase();Ra=Wa[Ca]||Wa._default;pa.innerHTML=Ra[1]+b.htmlPrefilter(J)+Ra[2];for(C=Ra[0];C--;)pa=pa.lastChild;if(!e.leadingWhitespace&&Na.test(J)&&ab.push(c.createTextNode(Na.exec(J)[0])),
120
+ !e.tbody)for(C=(J='table'!==Ca||Pa.test(J)?'<table>'!==Ra[1]||Pa.test(J)?0:pa:pa.firstChild)&&J.childNodes.length;C--;)b.nodeName(va=J.childNodes[C],'tbody')&&!va.childNodes.length&&J.removeChild(va);b.merge(ab,pa.childNodes);for(pa.textContent='';pa.firstChild;)pa.removeChild(pa.firstChild);pa=zb.lastChild}else ab.push(c.createTextNode(J));pa&&zb.removeChild(pa);e.appendChecked||b.grep(P(ab,'input'),B);for(Jb=0;J=ab[Jb++];)if(k&&-1<b.inArray(J,k))r&&r.push(J);else if(Z=b.contains(J.ownerDocument,
121
121
  J),pa=P(zb.appendChild(J),'script'),Z&&K(pa),g)for(C=0;J=pa[C++];)ta.test(J.type||'')&&g.push(J);return zb}function n(){return!0}function y(){return!1}function z(){try{return La.activeElement}catch(a){}}function F(a,c,g,k,r,C){var J,Z;if('object'==typeof c){'string'!=typeof g&&(k=k||g,g=void 0);for(Z in c)F(a,Z,g,k,c[Z],C);return a}if(null==k&&null==r?(r=g,k=g=void 0):null==r&&('string'==typeof g?(r=k,k=void 0):(r=k,k=g,g=void 0)),!1===r)r=y;else if(!r)return a;return 1===C&&(J=r,r=function(pa){return b().off(pa),
122
122
  J.apply(this,arguments)},r.guid=J.guid||(J.guid=b.guid++)),a.each(function(){b.event.add(this,c,r,k,g)})}function w(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 u(a){return a.type=(null!==b.find.attr(a,'type'))+'/'+a.type,a}function G(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,
123
- k;var r=b._data(a);a=b._data(c,r);var C=r.events;if(C)for(g in delete a.handle,a.events={},C)for(r=0,k=C[g].length;k>r;r++)b.event.add(c,g,C[g][r]);a.data&&(a.data=b.extend({},a.data))}}function U(a,c,g,k){c=Gb.apply([],c);var r,C,J,Z=0,pa=a.length,Ca=pa-1,ua=c[0],Ra=b.isFunction(ua);if(Ra||1<pa&&'string'==typeof ua&&!e.checkClone&&Kb.test(ua))return a.each(function(zb){var ab=a.eq(zb);Ra&&(c[0]=ua.call(this,zb,ab.html()));U(ab,c,g,k)});if(pa&&(J=E(c,a[0].ownerDocument,!1,a,k),r=J.firstChild,1===
123
+ k;var r=b._data(a);a=b._data(c,r);var C=r.events;if(C)for(g in delete a.handle,a.events={},C)for(r=0,k=C[g].length;k>r;r++)b.event.add(c,g,C[g][r]);a.data&&(a.data=b.extend({},a.data))}}function U(a,c,g,k){c=Gb.apply([],c);var r,C,J,Z=0,pa=a.length,Ca=pa-1,va=c[0],Ra=b.isFunction(va);if(Ra||1<pa&&'string'==typeof va&&!e.checkClone&&Kb.test(va))return a.each(function(zb){var ab=a.eq(zb);Ra&&(c[0]=va.call(this,zb,ab.html()));U(ab,c,g,k)});if(pa&&(J=E(c,a[0].ownerDocument,!1,a,k),r=J.firstChild,1===
124
124
  J.childNodes.length&&(J=r),r||k)){var Va=b.map(P(J,'script'),u);for(C=Va.length;pa>Z;Z++)r=J,Z!==Ca&&(r=b.clone(r,!0,!0),C&&b.merge(Va,P(r,'script'))),g.call(a[Z],r,Z);if(C)for(J=Va[Va.length-1].ownerDocument,b.map(Va,G),Z=0;C>Z;Z++)r=Va[Z],ta.test(r.type||'')&&!b._data(r,'globalEval')&&b.contains(J,r)&&(r.src?b._evalUrl&&b._evalUrl(r.src):b.globalEval((r.text||r.textContent||r.innerHTML||'').replace(Xb,'')));J=r=null}return a}function qa(a,c,g){for(var k=c?b.filter(c,a):a,r=0;null!=(c=k[r]);r++)g||
125
125
  1!==c.nodeType||b.cleanData(P(c)),c.parentNode&&(g&&b.contains(c.ownerDocument,c)&&K(P(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=La,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]=
126
126
  g),g}function ia(a,c){return{get:function(){return a()?void delete this.get:(this.get=c).apply(this,arguments)}}}function ea(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 za(a,c){for(var g,k,r,C=[],J=0,Z=a.length;Z>J;J++)k=a[J],k.style&&(C[J]=b._data(k,'olddisplay'),g=k.style.display,c?(C[J]||'none'!==g||(k.style.display=''),''===k.style.display&&cb(k)&&(C[J]=b._data(k,'olddisplay',W(k.nodeName)))):(r=cb(k),(g&&'none'!==
127
127
  g||!r)&&b._data(k,'olddisplay',r?g:b.css(k,'display'))));for(J=0;Z>J;J++)k=a[J],k.style&&(c&&'none'!==k.style.display&&''!==k.style.display||(k.style.display=c?C[J]||'':'none'));return a}function na(a,c,g){return(a=vd.exec(c))?Math.max(0,a[1]-(g||0))+(a[2]||'px'):c}function sa(a,c,g,k,r){c=g===(k?'border':'content')?4:'width'===c?1:0;for(var C=0;4>c;c+=2)'margin'===g&&(C+=b.css(a,g+Ua[c],!0,r)),k?('content'===g&&(C-=b.css(a,'padding'+Ua[c],!0,r)),'margin'!==g&&(C-=b.css(a,'border'+Ua[c]+'Width',!0,
128
128
  r))):(C+=b.css(a,'padding'+Ua[c],!0,r),'padding'!==g&&(C+=b.css(a,'border'+Ua[c]+'Width',!0,r)));return C}function Da(a,c,g){var k=!0,r='width'===c?a.offsetWidth:a.offsetHeight,C=rc(a),J=e.boxSizing&&'border-box'===b.css(a,'boxSizing',!1,C);if(0>=r||null==r){if(r=sc(a,c,C),(0>r||null==r)&&(r=a.style[c]),mc.test(r))return r;k=J&&(e.boxSizingReliable()||r===a.style[c]);r=parseFloat(r)||0}return r+sa(a,c,g||(J?'border':'content'),k,C)+'px'}function Qa(a,c,g,k,r){return new Qa.prototype.init(a,c,g,k,
129
129
  r)}function Ja(){return A.setTimeout(function(){Fc=void 0}),Fc=b.now()}function Ia(a,c){var g={height:a},k=0;for(c=c?1:0;4>k;k+=2-c){var r=Ua[k];g['margin'+r]=g['padding'+r]=a}return c&&(g.opacity=g.width=a),g}function Ha(a,c,g){for(var k,r=(Fa.tweeners[c]||[]).concat(Fa.tweeners['*']),C=0,J=r.length;J>C;C++)if(k=r[C].call(g,c,a))return k}function mb(a,c){var g,k,r,C,J;for(g in a)if(k=b.camelCase(g),r=c[k],C=a[g],b.isArray(C)&&(r=C[1],C=a[g]=C[0]),g!==k&&(a[k]=C,delete a[g]),J=b.cssHooks[k],J&&'expand'in
130
- J)for(g in C=J.expand(C),delete a[k],C)g in a||(a[g]=C[g],c[g]=r);else c[k]=r}function Fa(a,c,g){var k,r=0,C=Fa.prefilters.length,J=b.Deferred().always(function(){delete Z.elem}),Z=function(){if(k)return!1;var Ca=Fc||Ja();Ca=Math.max(0,pa.startTime+pa.duration-Ca);for(var ua=1-(Ca/pa.duration||0),Ra=0,Va=pa.tweens.length;Va>Ra;Ra++)pa.tweens[Ra].run(ua);return J.notifyWith(a,[pa,ua,Ca]),1>ua&&Va?Ca:(J.resolveWith(a,[pa]),!1)},pa=J.promise({elem:a,props:b.extend({},c),opts:b.extend(!0,{specialEasing:{},
131
- easing:b.easing._default},g),originalProperties:c,originalOptions:g,startTime:Fc||Ja(),duration:g.duration,tweens:[],createTween:function(Ca,ua){Ca=b.Tween(a,pa.opts,Ca,ua,pa.opts.specialEasing[Ca]||pa.opts.easing);return pa.tweens.push(Ca),Ca},stop:function(Ca){var ua=0,Ra=Ca?pa.tweens.length:0;if(k)return this;for(k=!0;Ra>ua;ua++)pa.tweens[ua].run(1);return Ca?(J.notifyWith(a,[pa,1,0]),J.resolveWith(a,[pa,Ca])):J.rejectWith(a,[pa,Ca]),this}});g=pa.props;for(mb(g,pa.opts.specialEasing);C>r;r++)if(c=
130
+ J)for(g in C=J.expand(C),delete a[k],C)g in a||(a[g]=C[g],c[g]=r);else c[k]=r}function Fa(a,c,g){var k,r=0,C=Fa.prefilters.length,J=b.Deferred().always(function(){delete Z.elem}),Z=function(){if(k)return!1;var Ca=Fc||Ja();Ca=Math.max(0,pa.startTime+pa.duration-Ca);for(var va=1-(Ca/pa.duration||0),Ra=0,Va=pa.tweens.length;Va>Ra;Ra++)pa.tweens[Ra].run(va);return J.notifyWith(a,[pa,va,Ca]),1>va&&Va?Ca:(J.resolveWith(a,[pa]),!1)},pa=J.promise({elem:a,props:b.extend({},c),opts:b.extend(!0,{specialEasing:{},
131
+ easing:b.easing._default},g),originalProperties:c,originalOptions:g,startTime:Fc||Ja(),duration:g.duration,tweens:[],createTween:function(Ca,va){Ca=b.Tween(a,pa.opts,Ca,va,pa.opts.specialEasing[Ca]||pa.opts.easing);return pa.tweens.push(Ca),Ca},stop:function(Ca){var va=0,Ra=Ca?pa.tweens.length:0;if(k)return this;for(k=!0;Ra>va;va++)pa.tweens[va].run(1);return Ca?(J.notifyWith(a,[pa,1,0]),J.resolveWith(a,[pa,Ca])):J.rejectWith(a,[pa,Ca]),this}});g=pa.props;for(mb(g,pa.opts.specialEasing);C>r;r++)if(c=
132
132
  Fa.prefilters[r].call(pa,a,g,pa.opts))return b.isFunction(c.stop)&&(b._queueHooks(pa.elem,pa.opts.queue).stop=b.proxy(c.stop,c)),c;return b.map(g,Ha,pa),b.isFunction(pa.opts.start)&&pa.opts.start.call(a,pa),b.fx.timer(b.extend(Z,{elem:a,anim:pa,queue:pa.opts.queue})),pa.progress(pa.opts.progress).done(pa.opts.done,pa.opts.complete).fail(pa.opts.fail).always(pa.opts.always)}function Oa(a){return b.attr(a,'class')||''}function Ya(a){return function(c,g){'string'!=typeof c&&(g=c,c='*');var k=0,r=c.toLowerCase().match(ma)||
133
- [];if(b.isFunction(g))for(;c=r[k++];)'+'===c.charAt(0)?(c=c.slice(1)||'*',(a[c]=a[c]||[]).unshift(g)):(a[c]=a[c]||[]).push(g)}}function pb(a,c,g,k){function r(Z){var pa;return C[Z]=!0,b.each(a[Z]||[],function(Ca,ua){Ca=ua(c,g,k);return'string'!=typeof Ca||J||C[Ca]?J?!(pa=Ca):void 0:(c.dataTypes.unshift(Ca),r(Ca),!1)}),pa}var C={},J=a===Vc;return r(c.dataTypes[0])||!C['*']&&r('*')}function bb(a,c){var g,k,r=b.ajaxSettings.flatOptions||{};for(k in c)void 0!==c[k]&&((r[k]?a:g||={})[k]=c[k]);return g&&
133
+ [];if(b.isFunction(g))for(;c=r[k++];)'+'===c.charAt(0)?(c=c.slice(1)||'*',(a[c]=a[c]||[]).unshift(g)):(a[c]=a[c]||[]).push(g)}}function pb(a,c,g,k){function r(Z){var pa;return C[Z]=!0,b.each(a[Z]||[],function(Ca,va){Ca=va(c,g,k);return'string'!=typeof Ca||J||C[Ca]?J?!(pa=Ca):void 0:(c.dataTypes.unshift(Ca),r(Ca),!1)}),pa}var C={},J=a===Vc;return r(c.dataTypes[0])||!C['*']&&r('*')}function bb(a,c){var g,k,r=b.ajaxSettings.flatOptions||{};for(k in c)void 0!==c[k]&&((r[k]?a:g||={})[k]=c[k]);return g&&
134
134
  b.extend(!0,a,g),a}function qb(a){if(!b.contains(a.ownerDocument||La,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,k){var r;if(b.isArray(c))b.each(c,function(C,J){g||wd.test(a)?k(a,J):Vb(a+'['+('object'==typeof J&&null!=J?C:'')+']',J,g,k)});else if(g||'object'!==b.type(c))k(a,c);else for(r in c)Vb(a+'['+r+']',c[r],g,k)}function xb(){try{return new A.XMLHttpRequest}catch(a){}}function nb(){try{return new A.ActiveXObject('Microsoft.XMLHTTP')}catch(a){}}
135
135
  function yb(a){return b.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var tb=[],La=A.document,eb=tb.slice,Gb=tb.concat,Ub=tb.push,pc=tb.indexOf,ca={},l=ca.toString,h=ca.hasOwnProperty,e={},b=function(a,c){return new b.fn.init(a,c)},q=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,m=/^-ms-/,p=/-([\da-z])/gi,O=function(a,c){return c.toUpperCase()};b.fn=b.prototype={jquery:'1.12.4',constructor:b,selector:'',length:0,toArray:function(){return eb.call(this)},get:function(a){return null!=a?0>a?this[a+
136
136
  this.length]:this[a]:eb.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(eb.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]]:[])},
@@ -140,48 +140,48 @@ isPlainObject:function(a){var c;if(!a||'object'!==b.type(a)||a.nodeType||b.isWin
140
140
  camelCase:function(a){return a.replace(m,'ms-').replace(p,O)},nodeName:function(a,c){return a.nodeName&&a.nodeName.toLowerCase()===c.toLowerCase()},each:function(a,c){var g,k=0;if(V(a))for(g=a.length;g>k&&!1!==c.call(a[k],k,a[k]);k++);else for(k in a)if(!1===c.call(a[k],k,a[k]))break;return a},trim:function(a){return null==a?'':(a+'').replace(q,'')},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,
141
141
  a,g);var k=c.length;for(g=g?0>g?Math.max(0,k+g):g:0;k>g;g++)if(g in c&&c[g]===a)return g}return-1},merge:function(a,c){for(var g=+c.length,k=0,r=a.length;g>k;)a[r++]=c[k++];if(g!==g)for(;void 0!==c[k];)a[r++]=c[k++];return a.length=r,a},grep:function(a,c,g){for(var k=[],r=0,C=a.length,J=!g;C>r;r++)g=!c(a[r],r),g!==J&&k.push(a[r]);return k},map:function(a,c,g){var k,r=0,C=[];if(V(a))for(k=a.length;k>r;r++){var J=c(a[r],r,g);null!=J&&C.push(J)}else for(r in a)J=c(a[r],r,g),null!=J&&C.push(J);return Gb.apply([],
142
142
  C)},guid:1,proxy:function(a,c){var g,k,r;return'string'==typeof c&&(r=a[c],c=a,a=r),b.isFunction(a)?(g=eb.call(arguments,2),k=function(){return a.apply(c||this,g.concat(eb.call(arguments)))},k.guid=a.guid=a.guid||b.guid++,k):void 0},now:function(){return+new Date},support:e});'function'==typeof Symbol&&(b.fn[Symbol.iterator]=tb[Symbol.iterator]);b.each('Boolean Number String Function Array Date RegExp Object Error Symbol'.split(' '),function(a,c){ca['[object '+c+']']=c.toLowerCase()});var D=function(a){function c(L,
143
- da,oa,xa){var Ga,Ma,Sa,Za,Xa=da&&da.ownerDocument,kb=da?da.nodeType:9;if(oa=oa||[],'string'!=typeof L||!L||1!==kb&&9!==kb&&11!==kb)return oa;if(!xa&&((da?da.ownerDocument||da:$b)!==ub&&Bc(da),da=da||ub,ec)){if(11!==kb&&(Za=xd.exec(L)))if(Ga=Za[1])if(9===kb){if(!(Ma=da.getElementById(Ga)))return oa;if(Ma.id===Ga)return oa.push(Ma),oa}else{if(Xa&&(Ma=Xa.getElementById(Ga))&&nc(da,Ma)&&Ma.id===Ga)return oa.push(Ma),oa}else{if(Za[2])return Ac.apply(oa,da.getElementsByTagName(L)),oa;if((Ga=Za[3])&&Pb.getElementsByClassName&&
144
- da.getElementsByClassName)return Ac.apply(oa,da.getElementsByClassName(Ga)),oa}if(!(!Pb.qsa||ac[L+' ']||Tb&&Tb.test(L))){if(1!==kb){Xa=da;var ob=L}else if('object'!==da.nodeName.toLowerCase()){(Sa=da.getAttribute('id'))?Sa=Sa.replace(yd,'\\$&'):da.setAttribute('id',Sa=Cb);Za=Mc(L);Ga=Za.length;for(Ma=kd.test(Sa)?'#'+Sa:"[id='"+Sa+"']";Ga--;)Za[Ga]=Ma+' '+Va(Za[Ga]);ob=Za.join(',');Xa=Wc.test(L)&&ua(da.parentNode)||da}if(ob)try{return Ac.apply(oa,Xa.querySelectorAll(ob)),oa}catch(ib){}finally{Sa===
145
- Cb&&da.removeAttribute('id')}}}return gc(L.replace(Nc,'$1'),da,oa,xa)}function g(){function L(oa,xa){return da.push(oa+' ')>Fb.cacheLength&&delete L[da.shift()],L[oa+' ']=xa}var da=[];return L}function k(L){return L[Cb]=!0,L}function r(L){var da=ub.createElement('div');try{return!!L(da)}catch(oa){return!1}finally{da.parentNode&&da.parentNode.removeChild(da)}}function C(L,da){L=L.split('|');for(var oa=L.length;oa--;)Fb.attrHandle[L[oa]]=da}function J(L,da){var oa=da&&L,xa=oa&&1===L.nodeType&&1===da.nodeType&&
146
- (~da.sourceIndex||-2147483648)-(~L.sourceIndex||-2147483648);if(xa)return xa;if(oa)for(;oa=oa.nextSibling;)if(oa===da)return-1;return L?1:-1}function Z(L){return function(da){return'input'===da.nodeName.toLowerCase()&&da.type===L}}function pa(L){return function(da){var oa=da.nodeName.toLowerCase();return('input'===oa||'button'===oa)&&da.type===L}}function Ca(L){return k(function(da){return da=+da,k(function(oa,xa){for(var Ga,Ma=L([],oa.length,da),Sa=Ma.length;Sa--;)oa[Ga=Ma[Sa]]&&(oa[Ga]=!(xa[Ga]=
147
- oa[Ga]))})})}function ua(L){return L&&'undefined'!=typeof L.getElementsByTagName&&L}function Ra(){}function Va(L){for(var da=0,oa=L.length,xa='';oa>da;da++)xa+=L[da].value;return xa}function zb(L,da,oa){var xa=da.dir,Ga=oa&&'parentNode'===xa,Ma=Qb++;return da.first?function(Sa,Za,Xa){for(;Sa=Sa[xa];)if(1===Sa.nodeType||Ga)return L(Sa,Za,Xa)}:function(Sa,Za,Xa){var kb,ob,ib,Lb=[Wb,Ma];if(Xa)for(;Sa=Sa[xa];){if((1===Sa.nodeType||Ga)&&L(Sa,Za,Xa))return!0}else for(;Sa=Sa[xa];)if(1===Sa.nodeType||Ga){if(ib=
148
- Sa[Cb]||(Sa[Cb]={}),ob=ib[Sa.uniqueID]||(ib[Sa.uniqueID]={}),(kb=ob[xa])&&kb[0]===Wb&&kb[1]===Ma)return Lb[2]=kb[2];if(ob[xa]=Lb,Lb[2]=L(Sa,Za,Xa))return!0}}}function ab(L){return 1<L.length?function(da,oa,xa){for(var Ga=L.length;Ga--;)if(!L[Ga](da,oa,xa))return!1;return!0}:L[0]}function Jb(L,da,oa,xa,Ga){for(var Ma,Sa=[],Za=0,Xa=L.length,kb=null!=da;Xa>Za;Za++)(Ma=L[Za])&&(oa&&!oa(Ma,xa,Ga)||(Sa.push(Ma),kb&&da.push(Za)));return Sa}function jc(L,da,oa,xa,Ga,Ma){return xa&&!xa[Cb]&&(xa=jc(xa)),Ga&&
149
- !Ga[Cb]&&(Ga=jc(Ga,Ma)),k(function(Sa,Za,Xa,kb){var ob,ib=[],Lb=[],bc=Za.length,Yb;if(!(Yb=Sa)){Yb=da||'*';for(var vb=Xa.nodeType?[Xa]:Xa,tc=[],hc=0,qc=vb.length;qc>hc;hc++)c(Yb,vb[hc],tc);Yb=tc}Yb=!L||!Sa&&da?Yb:Jb(Yb,ib,L,Xa,kb);vb=oa?Ga||(Sa?L:bc||xa)?[]:Za:Yb;if(oa&&oa(Yb,vb,Xa,kb),xa){var cc=Jb(vb,Lb);xa(cc,[],Xa,kb);for(Xa=cc.length;Xa--;)(ob=cc[Xa])&&(vb[Lb[Xa]]=!(Yb[Lb[Xa]]=ob))}if(Sa){if(Ga||L){if(Ga){cc=[];for(Xa=vb.length;Xa--;)(ob=vb[Xa])&&cc.push(Yb[Xa]=ob);Ga(null,vb=[],cc,kb)}for(Xa=
150
- vb.length;Xa--;)(ob=vb[Xa])&&-1<(cc=Ga?Cc(Sa,ob):ib[Xa])&&(Sa[cc]=!(Za[cc]=ob))}}else vb=Jb(vb===Za?vb.splice(bc,vb.length):vb),Ga?Ga(null,Za,vb,kb):Ac.apply(Za,vb)})}function Gc(L){var da,oa,xa=L.length,Ga=Fb.relative[L[0].type];var Ma=Ga||Fb.relative[' '];for(var Sa=Ga?1:0,Za=zb(function(ob){return ob===da},Ma,!0),Xa=zb(function(ob){return-1<Cc(da,ob)},Ma,!0),kb=[function(ob,ib,Lb){ob=!Ga&&(Lb||ib!==Db)||((da=ib).nodeType?Za(ob,ib,Lb):Xa(ob,ib,Lb));return da=null,ob}];xa>Sa;Sa++)if(Ma=Fb.relative[L[Sa].type])kb=
151
- [zb(ab(kb),Ma)];else{if(Ma=Fb.filter[L[Sa].type].apply(null,L[Sa].matches),Ma[Cb]){for(oa=++Sa;xa>oa&&!Fb.relative[L[oa].type];oa++);return jc(1<Sa&&ab(kb),1<Sa&&Va(L.slice(0,Sa-1).concat({value:' '===L[Sa-2].type?'*':''})).replace(Nc,'$1'),Ma,oa>Sa&&Gc(L.slice(Sa,oa)),xa>oa&&Gc(L=L.slice(oa)),xa>oa&&Va(L))}kb.push(Ma)}return ab(kb)}function kc(L,da){var oa=0<da.length,xa=0<L.length,Ga=function(Ma,Sa,Za,Xa,kb){var ob,ib,Lb=0,bc='0',Yb=Ma&&[],vb=[],tc=Db,hc=Ma||xa&&Fb.find.TAG('*',kb),qc=Wb+=null==
152
- tc?1:Math.random()||.1,cc=hc.length;for(kb&&(Db=Sa===ub||Sa||kb);bc!==cc&&null!=(ob=hc[bc]);bc++){if(xa&&ob){var Xc=0;for(Sa||ob.ownerDocument===ub||(Bc(ob),Za=!ec);ib=L[Xc++];)if(ib(ob,Sa||ub,Za)){Xa.push(ob);break}kb&&(Wb=qc)}oa&&((ob=!ib&&ob)&&Lb--,Ma&&Yb.push(ob))}if(Lb+=bc,oa&&bc!==Lb){for(Xc=0;ib=da[Xc++];)ib(Yb,vb,Sa,Za);if(Ma){if(0<Lb)for(;bc--;)Yb[bc]||vb[bc]||(vb[bc]=Yc.call(Xa));vb=Jb(vb)}Ac.apply(Xa,vb);kb&&!Ma&&0<vb.length&&1<Lb+da.length&&c.uniqueSort(Xa)}return kb&&(Wb=qc,Db=tc),Yb};
153
- return oa?k(Ga):Ga}var wc,wb,gc,Db,Ob,Rb,ub,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,da){return L===da&&(Rb=!0),0},vc={}.hasOwnProperty,lc=[],Yc=lc.pop,zd=lc.push,Ac=lc.push,ld=lc.slice,Cc=function(L,da){for(var oa=0,xa=L.length;xa>oa;oa++)if(L[oa]===da)return oa;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]*'),
143
+ da,oa,ya){var Ga,Ma,Sa,Za,Xa=da&&da.ownerDocument,kb=da?da.nodeType:9;if(oa=oa||[],'string'!=typeof L||!L||1!==kb&&9!==kb&&11!==kb)return oa;if(!ya&&((da?da.ownerDocument||da:$b)!==ub&&Bc(da),da=da||ub,ec)){if(11!==kb&&(Za=xd.exec(L)))if(Ga=Za[1])if(9===kb){if(!(Ma=da.getElementById(Ga)))return oa;if(Ma.id===Ga)return oa.push(Ma),oa}else{if(Xa&&(Ma=Xa.getElementById(Ga))&&nc(da,Ma)&&Ma.id===Ga)return oa.push(Ma),oa}else{if(Za[2])return Ac.apply(oa,da.getElementsByTagName(L)),oa;if((Ga=Za[3])&&Pb.getElementsByClassName&&
144
+ da.getElementsByClassName)return Ac.apply(oa,da.getElementsByClassName(Ga)),oa}if(!(!Pb.qsa||ac[L+' ']||Tb&&Tb.test(L))){if(1!==kb){Xa=da;var ob=L}else if('object'!==da.nodeName.toLowerCase()){(Sa=da.getAttribute('id'))?Sa=Sa.replace(yd,'\\$&'):da.setAttribute('id',Sa=Cb);Za=Mc(L);Ga=Za.length;for(Ma=kd.test(Sa)?'#'+Sa:"[id='"+Sa+"']";Ga--;)Za[Ga]=Ma+' '+Va(Za[Ga]);ob=Za.join(',');Xa=Wc.test(L)&&va(da.parentNode)||da}if(ob)try{return Ac.apply(oa,Xa.querySelectorAll(ob)),oa}catch(ib){}finally{Sa===
145
+ Cb&&da.removeAttribute('id')}}}return gc(L.replace(Nc,'$1'),da,oa,ya)}function g(){function L(oa,ya){return da.push(oa+' ')>Fb.cacheLength&&delete L[da.shift()],L[oa+' ']=ya}var da=[];return L}function k(L){return L[Cb]=!0,L}function r(L){var da=ub.createElement('div');try{return!!L(da)}catch(oa){return!1}finally{da.parentNode&&da.parentNode.removeChild(da)}}function C(L,da){L=L.split('|');for(var oa=L.length;oa--;)Fb.attrHandle[L[oa]]=da}function J(L,da){var oa=da&&L,ya=oa&&1===L.nodeType&&1===da.nodeType&&
146
+ (~da.sourceIndex||-2147483648)-(~L.sourceIndex||-2147483648);if(ya)return ya;if(oa)for(;oa=oa.nextSibling;)if(oa===da)return-1;return L?1:-1}function Z(L){return function(da){return'input'===da.nodeName.toLowerCase()&&da.type===L}}function pa(L){return function(da){var oa=da.nodeName.toLowerCase();return('input'===oa||'button'===oa)&&da.type===L}}function Ca(L){return k(function(da){return da=+da,k(function(oa,ya){for(var Ga,Ma=L([],oa.length,da),Sa=Ma.length;Sa--;)oa[Ga=Ma[Sa]]&&(oa[Ga]=!(ya[Ga]=
147
+ oa[Ga]))})})}function va(L){return L&&'undefined'!=typeof L.getElementsByTagName&&L}function Ra(){}function Va(L){for(var da=0,oa=L.length,ya='';oa>da;da++)ya+=L[da].value;return ya}function zb(L,da,oa){var ya=da.dir,Ga=oa&&'parentNode'===ya,Ma=Qb++;return da.first?function(Sa,Za,Xa){for(;Sa=Sa[ya];)if(1===Sa.nodeType||Ga)return L(Sa,Za,Xa)}:function(Sa,Za,Xa){var kb,ob,ib,Lb=[Wb,Ma];if(Xa)for(;Sa=Sa[ya];){if((1===Sa.nodeType||Ga)&&L(Sa,Za,Xa))return!0}else for(;Sa=Sa[ya];)if(1===Sa.nodeType||Ga){if(ib=
148
+ 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,Za,Xa))return!0}}}function ab(L){return 1<L.length?function(da,oa,ya){for(var Ga=L.length;Ga--;)if(!L[Ga](da,oa,ya))return!1;return!0}:L[0]}function Jb(L,da,oa,ya,Ga){for(var Ma,Sa=[],Za=0,Xa=L.length,kb=null!=da;Xa>Za;Za++)(Ma=L[Za])&&(oa&&!oa(Ma,ya,Ga)||(Sa.push(Ma),kb&&da.push(Za)));return Sa}function jc(L,da,oa,ya,Ga,Ma){return ya&&!ya[Cb]&&(ya=jc(ya)),Ga&&
149
+ !Ga[Cb]&&(Ga=jc(Ga,Ma)),k(function(Sa,Za,Xa,kb){var ob,ib=[],Lb=[],bc=Za.length,Yb;if(!(Yb=Sa)){Yb=da||'*';for(var vb=Xa.nodeType?[Xa]:Xa,tc=[],hc=0,qc=vb.length;qc>hc;hc++)c(Yb,vb[hc],tc);Yb=tc}Yb=!L||!Sa&&da?Yb:Jb(Yb,ib,L,Xa,kb);vb=oa?Ga||(Sa?L:bc||ya)?[]:Za:Yb;if(oa&&oa(Yb,vb,Xa,kb),ya){var cc=Jb(vb,Lb);ya(cc,[],Xa,kb);for(Xa=cc.length;Xa--;)(ob=cc[Xa])&&(vb[Lb[Xa]]=!(Yb[Lb[Xa]]=ob))}if(Sa){if(Ga||L){if(Ga){cc=[];for(Xa=vb.length;Xa--;)(ob=vb[Xa])&&cc.push(Yb[Xa]=ob);Ga(null,vb=[],cc,kb)}for(Xa=
150
+ vb.length;Xa--;)(ob=vb[Xa])&&-1<(cc=Ga?Cc(Sa,ob):ib[Xa])&&(Sa[cc]=!(Za[cc]=ob))}}else vb=Jb(vb===Za?vb.splice(bc,vb.length):vb),Ga?Ga(null,Za,vb,kb):Ac.apply(Za,vb)})}function Gc(L){var da,oa,ya=L.length,Ga=Fb.relative[L[0].type];var Ma=Ga||Fb.relative[' '];for(var Sa=Ga?1:0,Za=zb(function(ob){return ob===da},Ma,!0),Xa=zb(function(ob){return-1<Cc(da,ob)},Ma,!0),kb=[function(ob,ib,Lb){ob=!Ga&&(Lb||ib!==Db)||((da=ib).nodeType?Za(ob,ib,Lb):Xa(ob,ib,Lb));return da=null,ob}];ya>Sa;Sa++)if(Ma=Fb.relative[L[Sa].type])kb=
151
+ [zb(ab(kb),Ma)];else{if(Ma=Fb.filter[L[Sa].type].apply(null,L[Sa].matches),Ma[Cb]){for(oa=++Sa;ya>oa&&!Fb.relative[L[oa].type];oa++);return jc(1<Sa&&ab(kb),1<Sa&&Va(L.slice(0,Sa-1).concat({value:' '===L[Sa-2].type?'*':''})).replace(Nc,'$1'),Ma,oa>Sa&&Gc(L.slice(Sa,oa)),ya>oa&&Gc(L=L.slice(oa)),ya>oa&&Va(L))}kb.push(Ma)}return ab(kb)}function kc(L,da){var oa=0<da.length,ya=0<L.length,Ga=function(Ma,Sa,Za,Xa,kb){var ob,ib,Lb=0,bc='0',Yb=Ma&&[],vb=[],tc=Db,hc=Ma||ya&&Fb.find.TAG('*',kb),qc=Wb+=null==
152
+ tc?1:Math.random()||.1,cc=hc.length;for(kb&&(Db=Sa===ub||Sa||kb);bc!==cc&&null!=(ob=hc[bc]);bc++){if(ya&&ob){var Xc=0;for(Sa||ob.ownerDocument===ub||(Bc(ob),Za=!ec);ib=L[Xc++];)if(ib(ob,Sa||ub,Za)){Xa.push(ob);break}kb&&(Wb=qc)}oa&&((ob=!ib&&ob)&&Lb--,Ma&&Yb.push(ob))}if(Lb+=bc,oa&&bc!==Lb){for(Xc=0;ib=da[Xc++];)ib(Yb,vb,Sa,Za);if(Ma){if(0<Lb)for(;bc--;)Yb[bc]||vb[bc]||(vb[bc]=Yc.call(Xa));vb=Jb(vb)}Ac.apply(Xa,vb);kb&&!Ma&&0<vb.length&&1<Lb+da.length&&c.uniqueSort(Xa)}return kb&&(Wb=qc,Db=tc),Yb};
153
+ return oa?k(Ga):Ga}var wc,wb,gc,Db,Ob,Rb,ub,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,da){return L===da&&(Rb=!0),0},vc={}.hasOwnProperty,lc=[],Yc=lc.pop,zd=lc.push,Ac=lc.push,ld=lc.slice,Cc=function(L,da){for(var oa=0,ya=L.length;ya>oa;oa++)if(L[oa]===da)return oa;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]*'),
154
154
  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]*\\])*)|.*)\\)|)'),
155
155
  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]*\\])*)|.*)\\)|)'),
156
156
  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]*\\)|)(?=[^-]|$)',
157
157
  '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,da,oa){L='0x'+da-65536;return L!==L||oa?da: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?
158
- function(da,oa){zd.apply(da,ld.call(oa))}:function(da,oa){for(var xa=da.length,Ga=0;da[xa++]=oa[Ga++];);da.length=xa-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 da,oa;L=L?L.ownerDocument||L:$b;return L!==ub&&9===L.nodeType&&L.documentElement?(ub=L,ic=ub.documentElement,ec=!Hd(ub),(oa=ub.defaultView)&&oa.top!==oa&&(oa.addEventListener?oa.addEventListener('unload',md,!1):oa.attachEvent&&
159
- oa.attachEvent('onunload',md)),Pb.attributes=r(function(xa){return xa.className='i',!xa.getAttribute('className')}),Pb.getElementsByTagName=r(function(xa){return xa.appendChild(ub.createComment('')),!xa.getElementsByTagName('*').length}),Pb.getElementsByClassName=Kc.test(ub.getElementsByClassName),Pb.getById=r(function(xa){return ic.appendChild(xa).id=Cb,!ub.getElementsByName||!ub.getElementsByName(Cb).length}),Pb.getById?(Fb.find.ID=function(xa,Ga){if('undefined'!=typeof Ga.getElementById&&ec)return(xa=
160
- Ga.getElementById(xa))?[xa]:[]},Fb.filter.ID=function(xa){var Ga=xa.replace(xc,yc);return function(Ma){return Ma.getAttribute('id')===Ga}}):(delete Fb.find.ID,Fb.filter.ID=function(xa){var Ga=xa.replace(xc,yc);return function(Ma){return(Ma='undefined'!=typeof Ma.getAttributeNode&&Ma.getAttributeNode('id'))&&Ma.value===Ga}}),Fb.find.TAG=Pb.getElementsByTagName?function(xa,Ga){return'undefined'!=typeof Ga.getElementsByTagName?Ga.getElementsByTagName(xa):Pb.qsa?Ga.querySelectorAll(xa):void 0}:function(xa,
161
- Ga){var Ma=[],Sa=0;Ga=Ga.getElementsByTagName(xa);if('*'===xa){for(;xa=Ga[Sa++];)1===xa.nodeType&&Ma.push(xa);return Ma}return Ga},Fb.find.CLASS=Pb.getElementsByClassName&&function(xa,Ga){return'undefined'!=typeof Ga.getElementsByClassName&&ec?Ga.getElementsByClassName(xa):void 0},dc=[],Tb=[],(Pb.qsa=Kc.test(ub.querySelectorAll))&&(r(function(xa){ic.appendChild(xa).innerHTML="<a id='"+Cb+"'></a><select id='"+Cb+"-\r\\' msallowcapture=''><option selected=''></option></select>";xa.querySelectorAll("[msallowcapture^='']").length&&
162
- Tb.push('[*^$]=[\\x20\\t\\r\\n\\f]*(?:\'\'|"")');xa.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)');xa.querySelectorAll('[id~='+Cb+'-]').length||Tb.push('~=');xa.querySelectorAll(':checked').length||Tb.push(':checked');xa.querySelectorAll('a#'+Cb+'+*').length||Tb.push('.#.+[+~]')}),r(function(xa){var Ga=ub.createElement('input');Ga.setAttribute('type',
163
- 'hidden');xa.appendChild(Ga).setAttribute('name','D');xa.querySelectorAll('[name=d]').length&&Tb.push('name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=');xa.querySelectorAll(':enabled').length||Tb.push(':enabled',':disabled');xa.querySelectorAll('*,:x');Tb.push(',.*:')})),(Pb.matchesSelector=Kc.test(Sb=ic.matches||ic.webkitMatchesSelector||ic.mozMatchesSelector||ic.oMatchesSelector||ic.msMatchesSelector))&&r(function(xa){Pb.disconnectedMatch=Sb.call(xa,'div');Sb.call(xa,"[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]*\\])*)|.*)\\)|)')}),
164
- Tb=Tb.length&&new RegExp(Tb.join('|')),dc=dc.length&&new RegExp(dc.join('|')),da=Kc.test(ic.compareDocumentPosition),nc=da||Kc.test(ic.contains)?function(xa,Ga){var Ma=9===xa.nodeType?xa.documentElement:xa;Ga=Ga&&Ga.parentNode;return xa===Ga||!(!Ga||1!==Ga.nodeType||!(Ma.contains?Ma.contains(Ga):xa.compareDocumentPosition&&16&xa.compareDocumentPosition(Ga)))}:function(xa,Ga){if(Ga)for(;Ga=Ga.parentNode;)if(Ga===xa)return!0;return!1},uc=da?function(xa,Ga){if(xa===Ga)return Rb=!0,0;var Ma=!xa.compareDocumentPosition-
165
- !Ga.compareDocumentPosition;return Ma?Ma:(Ma=(xa.ownerDocument||xa)===(Ga.ownerDocument||Ga)?xa.compareDocumentPosition(Ga):1,1&Ma||!Pb.sortDetached&&Ga.compareDocumentPosition(xa)===Ma?xa===ub||xa.ownerDocument===$b&&nc($b,xa)?-1:Ga===ub||Ga.ownerDocument===$b&&nc($b,Ga)?1:Ob?Cc(Ob,xa)-Cc(Ob,Ga):0:4&Ma?-1:1)}:function(xa,Ga){if(xa===Ga)return Rb=!0,0;var Ma=0,Sa=xa.parentNode,Za=Ga.parentNode,Xa=[xa],kb=[Ga];if(!Sa||!Za)return xa===ub?-1:Ga===ub?1:Sa?-1:Za?1:Ob?Cc(Ob,xa)-Cc(Ob,Ga):0;if(Sa===Za)return J(xa,
166
- Ga);for(;xa=xa.parentNode;)Xa.unshift(xa);for(xa=Ga;xa=xa.parentNode;)kb.unshift(xa);for(;Xa[Ma]===kb[Ma];)Ma++;return Ma?J(Xa[Ma],kb[Ma]):Xa[Ma]===$b?-1:kb[Ma]===$b?1:0},ub):ub};c.matches=function(L,da){return c(L,null,null,da)};c.matchesSelector=function(L,da){if((L.ownerDocument||L)!==ub&&Bc(L),da=da.replace(Dd,"='$1']"),!(!Pb.matchesSelector||!ec||ac[da+' ']||dc&&dc.test(da)||Tb&&Tb.test(da)))try{var oa=Sb.call(L,da);if(oa||Pb.disconnectedMatch||L.document&&11!==L.document.nodeType)return oa}catch(xa){}return 0<
167
- c(da,ub,null,[L]).length};c.contains=function(L,da){return(L.ownerDocument||L)!==ub&&Bc(L),nc(L,da)};c.attr=function(L,da){(L.ownerDocument||L)!==ub&&Bc(L);var oa=Fb.attrHandle[da.toLowerCase()];oa=oa&&vc.call(Fb.attrHandle,da.toLowerCase())?oa(L,da,!ec):void 0;return void 0!==oa?oa:Pb.attributes||!ec?L.getAttribute(da):(oa=L.getAttributeNode(da))&&oa.specified?oa.value:null};c.error=function(L){throw Error('Syntax error, unrecognized expression: '+L);};c.uniqueSort=function(L){var da,oa=[],xa=0,
168
- Ga=0;if(Rb=!Pb.detectDuplicates,Ob=!Pb.sortStable&&L.slice(0),L.sort(uc),Rb){for(;da=L[Ga++];)da===L[Ga]&&(xa=oa.push(Ga));for(;xa--;)L.splice(oa[xa],1)}return Ob=null,L};var Zc=c.getText=function(L){var da,oa='',xa=0;if(da=L.nodeType)if(1===da||9===da||11===da){if('string'==typeof L.textContent)return L.textContent;for(L=L.firstChild;L;L=L.nextSibling)oa+=Zc(L)}else{if(3===da||4===da)return L.nodeValue}else for(;da=L[xa++];)oa+=Zc(da);return oa};var Fb=c.selectors={cacheLength:50,createPseudo:k,
158
+ function(da,oa){zd.apply(da,ld.call(oa))}:function(da,oa){for(var ya=da.length,Ga=0;da[ya++]=oa[Ga++];);da.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 da,oa;L=L?L.ownerDocument||L:$b;return L!==ub&&9===L.nodeType&&L.documentElement?(ub=L,ic=ub.documentElement,ec=!Hd(ub),(oa=ub.defaultView)&&oa.top!==oa&&(oa.addEventListener?oa.addEventListener('unload',md,!1):oa.attachEvent&&
159
+ oa.attachEvent('onunload',md)),Pb.attributes=r(function(ya){return ya.className='i',!ya.getAttribute('className')}),Pb.getElementsByTagName=r(function(ya){return ya.appendChild(ub.createComment('')),!ya.getElementsByTagName('*').length}),Pb.getElementsByClassName=Kc.test(ub.getElementsByClassName),Pb.getById=r(function(ya){return ic.appendChild(ya).id=Cb,!ub.getElementsByName||!ub.getElementsByName(Cb).length}),Pb.getById?(Fb.find.ID=function(ya,Ga){if('undefined'!=typeof Ga.getElementById&&ec)return(ya=
160
+ Ga.getElementById(ya))?[ya]:[]},Fb.filter.ID=function(ya){var Ga=ya.replace(xc,yc);return function(Ma){return Ma.getAttribute('id')===Ga}}):(delete Fb.find.ID,Fb.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}}),Fb.find.TAG=Pb.getElementsByTagName?function(ya,Ga){return'undefined'!=typeof Ga.getElementsByTagName?Ga.getElementsByTagName(ya):Pb.qsa?Ga.querySelectorAll(ya):void 0}:function(ya,
161
+ 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},Fb.find.CLASS=Pb.getElementsByClassName&&function(ya,Ga){return'undefined'!=typeof Ga.getElementsByClassName&&ec?Ga.getElementsByClassName(ya):void 0},dc=[],Tb=[],(Pb.qsa=Kc.test(ub.querySelectorAll))&&(r(function(ya){ic.appendChild(ya).innerHTML="<a id='"+Cb+"'></a><select id='"+Cb+"-\r\\' msallowcapture=''><option selected=''></option></select>";ya.querySelectorAll("[msallowcapture^='']").length&&
162
+ 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('.#.+[+~]')}),r(function(ya){var Ga=ub.createElement('input');Ga.setAttribute('type',
163
+ '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))&&r(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]*\\])*)|.*)\\)|)')}),
164
+ Tb=Tb.length&&new RegExp(Tb.join('|')),dc=dc.length&&new RegExp(dc.join('|')),da=Kc.test(ic.compareDocumentPosition),nc=da||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=da?function(ya,Ga){if(ya===Ga)return Rb=!0,0;var Ma=!ya.compareDocumentPosition-
165
+ !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===ub||ya.ownerDocument===$b&&nc($b,ya)?-1:Ga===ub||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,Za=Ga.parentNode,Xa=[ya],kb=[Ga];if(!Sa||!Za)return ya===ub?-1:Ga===ub?1:Sa?-1:Za?1:Ob?Cc(Ob,ya)-Cc(Ob,Ga):0;if(Sa===Za)return J(ya,
166
+ 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?J(Xa[Ma],kb[Ma]):Xa[Ma]===$b?-1:kb[Ma]===$b?1:0},ub):ub};c.matches=function(L,da){return c(L,null,null,da)};c.matchesSelector=function(L,da){if((L.ownerDocument||L)!==ub&&Bc(L),da=da.replace(Dd,"='$1']"),!(!Pb.matchesSelector||!ec||ac[da+' ']||dc&&dc.test(da)||Tb&&Tb.test(da)))try{var oa=Sb.call(L,da);if(oa||Pb.disconnectedMatch||L.document&&11!==L.document.nodeType)return oa}catch(ya){}return 0<
167
+ c(da,ub,null,[L]).length};c.contains=function(L,da){return(L.ownerDocument||L)!==ub&&Bc(L),nc(L,da)};c.attr=function(L,da){(L.ownerDocument||L)!==ub&&Bc(L);var oa=Fb.attrHandle[da.toLowerCase()];oa=oa&&vc.call(Fb.attrHandle,da.toLowerCase())?oa(L,da,!ec):void 0;return void 0!==oa?oa:Pb.attributes||!ec?L.getAttribute(da):(oa=L.getAttributeNode(da))&&oa.specified?oa.value:null};c.error=function(L){throw Error('Syntax error, unrecognized expression: '+L);};c.uniqueSort=function(L){var da,oa=[],ya=0,
168
+ Ga=0;if(Rb=!Pb.detectDuplicates,Ob=!Pb.sortStable&&L.slice(0),L.sort(uc),Rb){for(;da=L[Ga++];)da===L[Ga]&&(ya=oa.push(Ga));for(;ya--;)L.splice(oa[ya],1)}return Ob=null,L};var Zc=c.getText=function(L){var da,oa='',ya=0;if(da=L.nodeType)if(1===da||9===da||11===da){if('string'==typeof L.textContent)return L.textContent;for(L=L.firstChild;L;L=L.nextSibling)oa+=Zc(L)}else{if(3===da||4===da)return L.nodeValue}else for(;da=L[ya++];)oa+=Zc(da);return oa};var Fb=c.selectors={cacheLength:50,createPseudo:k,
169
169
  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]&&
170
170
  c.error(L[0]),L},PSEUDO:function(L){var da,oa=!L[6]&&L[2];return Oc.CHILD.test(L[0])?null:(L[3]?L[2]=L[4]||L[5]||'':oa&&Ed.test(oa)&&(da=Mc(oa,!0))&&(da=oa.indexOf(')',oa.length-da)-oa.length)&&(L[0]=L[0].slice(0,da),L[2]=oa.slice(0,da)),L.slice(0,3))}},filter:{TAG:function(L){var da=L.replace(xc,yc).toLowerCase();return'*'===L?function(){return!0}:function(oa){return oa.nodeName&&oa.nodeName.toLowerCase()===da}},CLASS:function(L){var da=Hc[L+' '];return da||(da=new RegExp('(^|[\\x20\\t\\r\\n\\f])'+
171
- L+'([\\x20\\t\\r\\n\\f]|$)'),Hc(L,function(oa){return da.test('string'==typeof oa.className&&oa.className||'undefined'!=typeof oa.getAttribute&&oa.getAttribute('class')||'')}))},ATTR:function(L,da,oa){return function(xa){xa=c.attr(xa,L);return null==xa?'!='===da:da?(xa+='','='===da?xa===oa:'!='===da?xa!==oa:'^='===da?oa&&0===xa.indexOf(oa):'*='===da?oa&&-1<xa.indexOf(oa):'$='===da?oa&&xa.slice(-oa.length)===oa:'~='===da?-1<(' '+xa.replace(Ad,' ')+' ').indexOf(oa):'|='===da?xa===oa||xa.slice(0,oa.length+
172
- 1)===oa+'-':!1):!0}},CHILD:function(L,da,oa,xa,Ga){var Ma='nth'!==L.slice(0,3),Sa='last'!==L.slice(-4),Za='of-type'===da;return 1===xa&&0===Ga?function(Xa){return!!Xa.parentNode}:function(Xa,kb,ob){var ib,Lb;kb=Ma!==Sa?'nextSibling':'previousSibling';var bc=Xa.parentNode,Yb=Za&&Xa.nodeName.toLowerCase();ob=!ob&&!Za;var vb=!1;if(bc){if(Ma){for(;kb;){for(ib=Xa;ib=ib[kb];)if(Za?ib.nodeName.toLowerCase()===Yb:1===ib.nodeType)return!1;var tc=kb='only'===L&&!tc&&'nextSibling'}return!0}if(tc=[Sa?bc.firstChild:
171
+ L+'([\\x20\\t\\r\\n\\f]|$)'),Hc(L,function(oa){return da.test('string'==typeof oa.className&&oa.className||'undefined'!=typeof oa.getAttribute&&oa.getAttribute('class')||'')}))},ATTR:function(L,da,oa){return function(ya){ya=c.attr(ya,L);return null==ya?'!='===da:da?(ya+='','='===da?ya===oa:'!='===da?ya!==oa:'^='===da?oa&&0===ya.indexOf(oa):'*='===da?oa&&-1<ya.indexOf(oa):'$='===da?oa&&ya.slice(-oa.length)===oa:'~='===da?-1<(' '+ya.replace(Ad,' ')+' ').indexOf(oa):'|='===da?ya===oa||ya.slice(0,oa.length+
172
+ 1)===oa+'-':!1):!0}},CHILD:function(L,da,oa,ya,Ga){var Ma='nth'!==L.slice(0,3),Sa='last'!==L.slice(-4),Za='of-type'===da;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=Za&&Xa.nodeName.toLowerCase();ob=!ob&&!Za;var vb=!1;if(bc){if(Ma){for(;kb;){for(ib=Xa;ib=ib[kb];)if(Za?ib.nodeName.toLowerCase()===Yb:1===ib.nodeType)return!1;var tc=kb='only'===L&&!tc&&'nextSibling'}return!0}if(tc=[Sa?bc.firstChild:
173
173
  bc.lastChild],Sa&&ob){ib=bc;var hc=ib[Cb]||(ib[Cb]={});var qc=hc[ib.uniqueID]||(hc[ib.uniqueID]={});var cc=qc[L]||[];vb=(Lb=cc[0]===Wb&&cc[1])&&cc[2];for(ib=Lb&&bc.childNodes[Lb];ib=++Lb&&ib&&ib[kb]||(vb=Lb=0)||tc.pop();)if(1===ib.nodeType&&++vb&&ib===Xa){qc[L]=[Wb,Lb,vb];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],vb=Lb),!1===vb)for(;(ib=++Lb&&ib&&ib[kb]||(vb=Lb=0)||tc.pop())&&((Za?ib.nodeName.toLowerCase()!==Yb:1!==
174
- ib.nodeType)||!++vb||(ob&&(hc=ib[Cb]||(ib[Cb]={}),qc=hc[ib.uniqueID]||(hc[ib.uniqueID]={}),qc[L]=[Wb,vb]),ib!==Xa)););return vb-=Ga,vb===xa||0===vb%xa&&0<=vb/xa}}},PSEUDO:function(L,da){var oa,xa=Fb.pseudos[L]||Fb.setFilters[L.toLowerCase()]||c.error('unsupported pseudo: '+L);return xa[Cb]?xa(da):1<xa.length?(oa=[L,L,'',da],Fb.setFilters.hasOwnProperty(L.toLowerCase())?k(function(Ga,Ma){for(var Sa,Za=xa(Ga,da),Xa=Za.length;Xa--;)Sa=Cc(Ga,Za[Xa]),Ga[Sa]=!(Ma[Sa]=Za[Xa])}):function(Ga){return xa(Ga,
175
- 0,oa)}):xa}},pseudos:{not:k(function(L){var da=[],oa=[],xa=wb(L.replace(Nc,'$1'));return xa[Cb]?k(function(Ga,Ma,Sa,Za){var Xa;Sa=xa(Ga,null,Za,[]);for(Za=Ga.length;Za--;)(Xa=Sa[Za])&&(Ga[Za]=!(Ma[Za]=Xa))}):function(Ga,Ma,Sa){return da[0]=Ga,xa(da,null,Sa,oa),da[0]=null,!oa.pop()}}),has:k(function(L){return function(da){return 0<c(L,da).length}}),contains:k(function(L){return L=L.replace(xc,yc),function(da){return-1<(da.textContent||da.innerText||Zc(da)).indexOf(L)}}),lang:k(function(L){return kd.test(L||
174
+ ib.nodeType)||!++vb||(ob&&(hc=ib[Cb]||(ib[Cb]={}),qc=hc[ib.uniqueID]||(hc[ib.uniqueID]={}),qc[L]=[Wb,vb]),ib!==Xa)););return vb-=Ga,vb===ya||0===vb%ya&&0<=vb/ya}}},PSEUDO:function(L,da){var oa,ya=Fb.pseudos[L]||Fb.setFilters[L.toLowerCase()]||c.error('unsupported pseudo: '+L);return ya[Cb]?ya(da):1<ya.length?(oa=[L,L,'',da],Fb.setFilters.hasOwnProperty(L.toLowerCase())?k(function(Ga,Ma){for(var Sa,Za=ya(Ga,da),Xa=Za.length;Xa--;)Sa=Cc(Ga,Za[Xa]),Ga[Sa]=!(Ma[Sa]=Za[Xa])}):function(Ga){return ya(Ga,
175
+ 0,oa)}):ya}},pseudos:{not:k(function(L){var da=[],oa=[],ya=wb(L.replace(Nc,'$1'));return ya[Cb]?k(function(Ga,Ma,Sa,Za){var Xa;Sa=ya(Ga,null,Za,[]);for(Za=Ga.length;Za--;)(Xa=Sa[Za])&&(Ga[Za]=!(Ma[Za]=Xa))}):function(Ga,Ma,Sa){return da[0]=Ga,ya(da,null,Sa,oa),da[0]=null,!oa.pop()}}),has:k(function(L){return function(da){return 0<c(L,da).length}}),contains:k(function(L){return L=L.replace(xc,yc),function(da){return-1<(da.textContent||da.innerText||Zc(da)).indexOf(L)}}),lang:k(function(L){return kd.test(L||
176
176
  '')||c.error('unsupported lang: '+L),L=L.replace(xc,yc).toLowerCase(),function(da){var oa;do if(oa=ec?da.lang:da.getAttribute('xml:lang')||da.getAttribute('lang'))return oa=oa.toLowerCase(),oa===L||0===oa.indexOf(L+'-');while((da=da.parentNode)&&1===da.nodeType);return!1}}),target:function(L){var da=a.location&&a.location.hash;return da&&da.slice(1)===L.id},root:function(L){return L===ic},focus:function(L){return L===ub.activeElement&&(!ub.hasFocus||ub.hasFocus())&&!!(L.type||L.href||~L.tabIndex)},
177
177
  enabled:function(L){return!1===L.disabled},disabled:function(L){return!0===L.disabled},checked:function(L){var da=L.nodeName.toLowerCase();return'input'===da&&!!L.checked||'option'===da&&!!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!Fb.pseudos.empty(L)},header:function(L){return Gd.test(L.nodeName)},input:function(L){return Fd.test(L.nodeName)},
178
178
  button:function(L){var da=L.nodeName.toLowerCase();return'input'===da&&'button'===L.type||'button'===da},text:function(L){var da;return'input'===L.nodeName.toLowerCase()&&'text'===L.type&&(null==(da=L.getAttribute('type'))||'text'===da.toLowerCase())},first:Ca(function(){return[0]}),last:Ca(function(L,da){return[da-1]}),eq:Ca(function(L,da,oa){return[0>oa?oa+da:oa]}),even:Ca(function(L,da){for(var oa=0;da>oa;oa+=2)L.push(oa);return L}),odd:Ca(function(L,da){for(var oa=1;da>oa;oa+=2)L.push(oa);return L}),
179
- lt:Ca(function(L,da,oa){for(da=0>oa?oa+da:oa;0<=--da;)L.push(da);return L}),gt:Ca(function(L,da,oa){for(oa=0>oa?oa+da:oa;++oa<da;)L.push(oa);return L})}};Fb.pseudos.nth=Fb.pseudos.eq;for(wc in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Fb.pseudos[wc]=Z(wc);for(wc in{submit:!0,reset:!0})Fb.pseudos[wc]=pa(wc);Ra.prototype=Fb.filters=Fb.pseudos;Fb.setFilters=new Ra;var Mc=c.tokenize=function(L,da){var oa,xa,Ga,Ma,Sa;if(Ma=oc[L+' '])return da?0:Ma.slice(0);Ma=L;var Za=[];for(Sa=Fb.preFilter;Ma;){Xa&&
180
- !(oa=Bd.exec(Ma))||(oa&&(Ma=Ma.slice(oa[0].length)||Ma),Za.push(xa=[]));var Xa=!1;(oa=Cd.exec(Ma))&&(Xa=oa.shift(),xa.push({value:Xa,type:oa[0].replace(Nc,' ')}),Ma=Ma.slice(Xa.length));for(Ga in Fb.filter)!(oa=Oc[Ga].exec(Ma))||Sa[Ga]&&!(oa=Sa[Ga](oa))||(Xa=oa.shift(),xa.push({value:Xa,type:Ga,matches:oa}),Ma=Ma.slice(Xa.length));if(!Xa)break}return da?Ma.length:Ma?c.error(L):oc(L,Za).slice(0)};return wb=c.compile=function(L,da){var oa,xa=[],Ga=[],Ma=ac[L+' '];if(!Ma){da||=Mc(L);for(oa=da.length;oa--;)Ma=
181
- Gc(da[oa]),Ma[Cb]?xa.push(Ma):Ga.push(Ma);Ma=ac(L,kc(Ga,xa));Ma.selector=L}return Ma},gc=c.select=function(L,da,oa,xa){var Ga,Ma,Sa,Za,Xa,kb='function'==typeof L&&L,ob=!xa&&Mc(L=kb.selector||L);if(oa=oa||[],1===ob.length){if(Ma=ob[0]=ob[0].slice(0),2<Ma.length&&'ID'===(Sa=Ma[0]).type&&Pb.getById&&9===da.nodeType&&ec&&Fb.relative[Ma[1].type]){if(da=(Fb.find.ID(Sa.matches[0].replace(xc,yc),da)||[])[0],!da)return oa;kb&&(da=da.parentNode);L=L.slice(Ma.shift().value.length)}for(Ga=Oc.needsContext.test(L)?
182
- 0:Ma.length;Ga--&&(Sa=Ma[Ga],!Fb.relative[Za=Sa.type]);)if((Xa=Fb.find[Za])&&(xa=Xa(Sa.matches[0].replace(xc,yc),Wc.test(Ma[0].type)&&ua(da.parentNode)||da))){if(Ma.splice(Ga,1),L=xa.length&&Va(Ma),!L)return Ac.apply(oa,xa),oa;break}}return(kb||wb(L,ob))(xa,da,!ec,oa,!da||Wc.test(L)&&ua(da.parentNode)||da),oa},Pb.sortStable=Cb.split('').sort(uc).join('')===Cb,Pb.detectDuplicates=!!Rb,Bc(),Pb.sortDetached=r(function(L){return 1&L.compareDocumentPosition(ub.createElement('div'))}),r(function(L){return L.innerHTML=
179
+ lt:Ca(function(L,da,oa){for(da=0>oa?oa+da:oa;0<=--da;)L.push(da);return L}),gt:Ca(function(L,da,oa){for(oa=0>oa?oa+da:oa;++oa<da;)L.push(oa);return L})}};Fb.pseudos.nth=Fb.pseudos.eq;for(wc in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Fb.pseudos[wc]=Z(wc);for(wc in{submit:!0,reset:!0})Fb.pseudos[wc]=pa(wc);Ra.prototype=Fb.filters=Fb.pseudos;Fb.setFilters=new Ra;var Mc=c.tokenize=function(L,da){var oa,ya,Ga,Ma,Sa;if(Ma=oc[L+' '])return da?0:Ma.slice(0);Ma=L;var Za=[];for(Sa=Fb.preFilter;Ma;){Xa&&
180
+ !(oa=Bd.exec(Ma))||(oa&&(Ma=Ma.slice(oa[0].length)||Ma),Za.push(ya=[]));var Xa=!1;(oa=Cd.exec(Ma))&&(Xa=oa.shift(),ya.push({value:Xa,type:oa[0].replace(Nc,' ')}),Ma=Ma.slice(Xa.length));for(Ga in Fb.filter)!(oa=Oc[Ga].exec(Ma))||Sa[Ga]&&!(oa=Sa[Ga](oa))||(Xa=oa.shift(),ya.push({value:Xa,type:Ga,matches:oa}),Ma=Ma.slice(Xa.length));if(!Xa)break}return da?Ma.length:Ma?c.error(L):oc(L,Za).slice(0)};return wb=c.compile=function(L,da){var oa,ya=[],Ga=[],Ma=ac[L+' '];if(!Ma){da||=Mc(L);for(oa=da.length;oa--;)Ma=
181
+ Gc(da[oa]),Ma[Cb]?ya.push(Ma):Ga.push(Ma);Ma=ac(L,kc(Ga,ya));Ma.selector=L}return Ma},gc=c.select=function(L,da,oa,ya){var Ga,Ma,Sa,Za,Xa,kb='function'==typeof L&&L,ob=!ya&&Mc(L=kb.selector||L);if(oa=oa||[],1===ob.length){if(Ma=ob[0]=ob[0].slice(0),2<Ma.length&&'ID'===(Sa=Ma[0]).type&&Pb.getById&&9===da.nodeType&&ec&&Fb.relative[Ma[1].type]){if(da=(Fb.find.ID(Sa.matches[0].replace(xc,yc),da)||[])[0],!da)return oa;kb&&(da=da.parentNode);L=L.slice(Ma.shift().value.length)}for(Ga=Oc.needsContext.test(L)?
182
+ 0:Ma.length;Ga--&&(Sa=Ma[Ga],!Fb.relative[Za=Sa.type]);)if((Xa=Fb.find[Za])&&(ya=Xa(Sa.matches[0].replace(xc,yc),Wc.test(Ma[0].type)&&va(da.parentNode)||da))){if(Ma.splice(Ga,1),L=ya.length&&Va(Ma),!L)return Ac.apply(oa,ya),oa;break}}return(kb||wb(L,ob))(ya,da,!ec,oa,!da||Wc.test(L)&&va(da.parentNode)||da),oa},Pb.sortStable=Cb.split('').sort(uc).join('')===Cb,Pb.detectDuplicates=!!Rb,Bc(),Pb.sortDetached=r(function(L){return 1&L.compareDocumentPosition(ub.createElement('div'))}),r(function(L){return L.innerHTML=
183
183
  "<a href='#'></a>",'#'===L.firstChild.getAttribute('href')})||C('type|href|height|width',function(L,da,oa){return oa?void 0:L.getAttribute(da,'type'===da.toLowerCase()?1:2)}),Pb.attributes&&r(function(L){return L.innerHTML='<input/>',L.firstChild.setAttribute('value',''),''===L.firstChild.getAttribute('value')})||C('value',function(L,da,oa){return oa||'input'!==L.nodeName.toLowerCase()?void 0:L.defaultValue}),r(function(L){return null==L.getAttribute('disabled')})||C('checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',
184
- function(L,da,oa){var xa;return oa?void 0:!0===L[da]?da.toLowerCase():(xa=L.getAttributeNode(da))&&xa.specified?xa.value:null}),c}(A);b.find=D;b.expr=D.selectors;b.expr[':']=b.expr.pseudos;b.uniqueSort=b.unique=D.uniqueSort;b.text=D.getText;b.isXMLDoc=D.isXML;b.contains=D.contains;var aa=function(a,c,g){for(var k=[],r=void 0!==g;(a=a[c])&&9!==a.nodeType;)if(1===a.nodeType){if(r&&b(a).is(g))break;k.push(a)}return k},Aa=function(a,c){for(var g=[];a;a=a.nextSibling)1===a.nodeType&&a!==c&&g.push(a);return g},
184
+ function(L,da,oa){var ya;return oa?void 0:!0===L[da]?da.toLowerCase():(ya=L.getAttributeNode(da))&&ya.specified?ya.value:null}),c}(A);b.find=D;b.expr=D.selectors;b.expr[':']=b.expr.pseudos;b.uniqueSort=b.unique=D.uniqueSort;b.text=D.getText;b.isXMLDoc=D.isXML;b.contains=D.contains;var aa=function(a,c,g){for(var k=[],r=void 0!==g;(a=a[c])&&9!==a.nodeType;)if(1===a.nodeType){if(r&&b(a).is(g))break;k.push(a)}return k},Aa=function(a,c){for(var g=[];a;a=a.nextSibling)1===a.nodeType&&a!==c&&g.push(a);return g},
185
185
  ba=b.expr.match.needsContext,ra=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ba=/^.[^:#\[\.,]*$/;b.filter=function(a,c,g){var k=c[0];return g&&(a=':not('+a+')'),1===c.length&&1===k.nodeType?b.find.matchesSelector(k,a)?[k]:[]:b.find.matches(a,b.grep(c,function(r){return 1===r.nodeType}))};b.fn.extend({find:function(a){var c,g=[],k=this,r=k.length;if('string'!=typeof a)return this.pushStack(b(a).filter(function(){for(c=0;r>c;c++)if(b.contains(k[c],this))return!0}));for(c=0;r>c;c++)b.find(a,k[c],g);return g=this.pushStack(1<
186
186
  r?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 H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(b.fn.init=function(a,c,g){var k,r;if(!a)return this;if(g=g||la,'string'==typeof a){if(k='<'===a.charAt(0)&&'>'===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:H.exec(a),!k||!k[1]&&c)return!c||
187
187
  c.jquery?(c||g).find(a):this.constructor(c).find(a);if(k[1]){if(c=c instanceof b?c[0]:c,b.merge(this,b.parseHTML(k[1],c&&c.nodeType?c.ownerDocument||c:La,!0)),ra.test(k[1])&&b.isPlainObject(c))for(k in c)b.isFunction(this[k])?this[k](c[k]):this.attr(k,c[k]);return this}if(r=La.getElementById(k[2]),r&&r.parentNode){if(r.id!==k[2])return la.find(a);this.length=1;this[0]=r}return this.context=La,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):b.isFunction(a)?'undefined'!=
@@ -189,11 +189,11 @@ typeof g.ready?g.ready(a):a(b):(void 0!==a.selector&&(this.selector=a.selector,t
189
189
  this[k];g&&g!==c;g=g.parentNode)if(11>g.nodeType&&(J?-1<J.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))}});
190
190
  b.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return aa(a,'parentNode')},parentsUntil:function(a,c,g){return aa(a,'parentNode',g)},next:function(a){return S(a,'nextSibling')},prev:function(a){return S(a,'previousSibling')},nextAll:function(a){return aa(a,'nextSibling')},prevAll:function(a){return aa(a,'previousSibling')},nextUntil:function(a,c,g){return aa(a,'nextSibling',g)},prevUntil:function(a,c,g){return aa(a,'previousSibling',g)},siblings:function(a){return Aa((a.parentNode||
191
191
  {}).firstChild,a)},children:function(a){return Aa(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,k){var r=b.map(this,c,g);return'Until'!==a.slice(-5)&&(k=g),k&&'string'==typeof k&&(r=b.filter(k,r)),1<this.length&&(Y[a]||(r=b.uniqueSort(r)),wa.test(a)&&(r=r.reverse())),this.pushStack(r)}});var ma=/\S+/g;b.Callbacks=function(a){a='string'==typeof a?N(a):b.extend({},a);var c,g,k,
192
- r,C=[],J=[],Z=-1,pa=function(){r=a.once;for(k=c=!0;J.length;Z=-1)for(g=J.shift();++Z<C.length;)!1===C[Z].apply(g[0],g[1])&&a.stopOnFalse&&(Z=C.length,g=!1);a.memory||(g=!1);c=!1;r&&(C=g?[]:'')},Ca={add:function(){return C&&(g&&!c&&(Z=C.length-1,J.push(g)),function Va(Ra){b.each(Ra,function(zb,ab){b.isFunction(ab)?a.unique&&Ca.has(ab)||C.push(ab):ab&&ab.length&&'string'!==b.type(ab)&&Va(ab)})}(arguments),g&&!c&&pa()),this},remove:function(){return b.each(arguments,function(ua,Ra){for(var Va;-1<(Va=
193
- b.inArray(Ra,C,Va));)C.splice(Va,1),Z>=Va&&Z--}),this},has:function(ua){return ua?-1<b.inArray(ua,C):0<C.length},empty:function(){return C&&=[],this},disable:function(){return r=J=[],C=g='',this},disabled:function(){return!C},lock:function(){return r=!0,g||Ca.disable(),this},locked:function(){return!!r},fireWith:function(ua,Ra){return r||(Ra=Ra||[],Ra=[ua,Ra.slice?Ra.slice():Ra],J.push(Ra),c||pa()),this},fire:function(){return Ca.fireWith(this,arguments),this},fired:function(){return!!k}};return Ca};
194
- 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',k={state:function(){return g},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var C=arguments;return b.Deferred(function(J){b.each(c,function(Z,pa){var Ca=b.isFunction(C[Z])&&C[Z];r[pa[1]](function(){var ua=Ca&&Ca.apply(this,arguments);ua&&b.isFunction(ua.promise)?
195
- ua.promise().progress(J.notify).done(J.resolve).fail(J.reject):J[pa[0]+'With'](this===k?J.promise():this,Ca?[ua]:arguments)})});C=null}).promise()},promise:function(C){return null!=C?b.extend(C,k):k}},r={};return k.pipe=k.then,b.each(c,function(C,J){var Z=J[2],pa=J[3];k[J[1]]=Z.add;pa&&Z.add(function(){g=pa},c[1^C][2].disable,c[2][2].lock);r[J[0]]=function(){return r[J[0]+'With'](this===r?k:this,arguments),this};r[J[0]+'With']=Z.fireWith}),k.promise(r),a&&a.call(r,r),r},when:function(a){var c=0,g=
196
- eb.call(arguments),k=g.length,r=1!==k||a&&b.isFunction(a.promise)?k:0,C=1===r?a:b.Deferred(),J=function(ua,Ra,Va){return function(zb){Ra[ua]=this;Va[ua]=1<arguments.length?eb.call(arguments):zb;Va===pa?C.notifyWith(Ra,Va):--r||C.resolveWith(Ra,Va)}},Z;if(1<k){var pa=Array(k);var Ca=Array(k);for(Z=Array(k);k>c;c++)g[c]&&b.isFunction(g[c].promise)?g[c].promise().progress(J(c,Ca,pa)).done(J(c,Z,g)).fail(C.reject):--r}return r||C.resolveWith(Z,g),C.promise()}});var Ka;b.fn.ready=function(a){return b.ready.promise().done(a),
192
+ r,C=[],J=[],Z=-1,pa=function(){r=a.once;for(k=c=!0;J.length;Z=-1)for(g=J.shift();++Z<C.length;)!1===C[Z].apply(g[0],g[1])&&a.stopOnFalse&&(Z=C.length,g=!1);a.memory||(g=!1);c=!1;r&&(C=g?[]:'')},Ca={add:function(){return C&&(g&&!c&&(Z=C.length-1,J.push(g)),function Va(Ra){b.each(Ra,function(zb,ab){b.isFunction(ab)?a.unique&&Ca.has(ab)||C.push(ab):ab&&ab.length&&'string'!==b.type(ab)&&Va(ab)})}(arguments),g&&!c&&pa()),this},remove:function(){return b.each(arguments,function(va,Ra){for(var Va;-1<(Va=
193
+ b.inArray(Ra,C,Va));)C.splice(Va,1),Z>=Va&&Z--}),this},has:function(va){return va?-1<b.inArray(va,C):0<C.length},empty:function(){return C&&=[],this},disable:function(){return r=J=[],C=g='',this},disabled:function(){return!C},lock:function(){return r=!0,g||Ca.disable(),this},locked:function(){return!!r},fireWith:function(va,Ra){return r||(Ra=Ra||[],Ra=[va,Ra.slice?Ra.slice():Ra],J.push(Ra),c||pa()),this},fire:function(){return Ca.fireWith(this,arguments),this},fired:function(){return!!k}};return Ca};
194
+ 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',k={state:function(){return g},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var C=arguments;return b.Deferred(function(J){b.each(c,function(Z,pa){var Ca=b.isFunction(C[Z])&&C[Z];r[pa[1]](function(){var va=Ca&&Ca.apply(this,arguments);va&&b.isFunction(va.promise)?
195
+ va.promise().progress(J.notify).done(J.resolve).fail(J.reject):J[pa[0]+'With'](this===k?J.promise():this,Ca?[va]:arguments)})});C=null}).promise()},promise:function(C){return null!=C?b.extend(C,k):k}},r={};return k.pipe=k.then,b.each(c,function(C,J){var Z=J[2],pa=J[3];k[J[1]]=Z.add;pa&&Z.add(function(){g=pa},c[1^C][2].disable,c[2][2].lock);r[J[0]]=function(){return r[J[0]+'With'](this===r?k:this,arguments),this};r[J[0]+'With']=Z.fireWith}),k.promise(r),a&&a.call(r,r),r},when:function(a){var c=0,g=
196
+ eb.call(arguments),k=g.length,r=1!==k||a&&b.isFunction(a.promise)?k:0,C=1===r?a:b.Deferred(),J=function(va,Ra,Va){return function(zb){Ra[va]=this;Va[va]=1<arguments.length?eb.call(arguments):zb;Va===pa?C.notifyWith(Ra,Va):--r||C.resolveWith(Ra,Va)}},Z;if(1<k){var pa=Array(k);var Ca=Array(k);for(Z=Array(k);k>c;c++)g[c]&&b.isFunction(g[c].promise)?g[c].promise().progress(J(c,Ca,pa)).done(J(c,Z,g)).fail(C.reject):--r}return r||C.resolveWith(Z,g),C.promise()}});var Ka;b.fn.ready=function(a){return b.ready.promise().done(a),
197
197
  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||(Ka.resolveWith(La,[b]),b.fn.triggerHandler&&(b(La).triggerHandler('ready'),b(La).off('ready'))))}});b.ready.promise=function(a){if(!Ka)if(Ka=b.Deferred(),'complete'===La.readyState||'loading'!==La.readyState&&!La.documentElement.doScroll)A.setTimeout(b.ready);else if(La.addEventListener)La.addEventListener('DOMContentLoaded',
198
198
  Q),A.addEventListener('load',Q);else{La.attachEvent('onreadystatechange',Q);A.attachEvent('onload',Q);var c=!1;try{c=null==A.frameElement&&La.documentElement}catch(g){}c&&c.doScroll&&!function k(){if(!b.isReady){try{c.doScroll('left')}catch(r){return A.setTimeout(k,50)}ha();b.ready()}}()}return Ka.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,k;(g=La.getElementsByTagName('body')[0])&&g.style&&(c=La.createElement('div'),
199
199
  k=La.createElement('div'),k.style.cssText='position:absolute;border:0;width:0;height:0;top:0;left:-9999px',g.appendChild(k).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(k))});(function(){var a=La.createElement('div');e.deleteExpando=!0;try{delete a.test}catch(c){e.deleteExpando=!1}})();var $a=function(a){var c=b.noData[(a.nodeName+' ').toLowerCase()],
@@ -203,16 +203,16 @@ c,g){var k;return a?(c=(c||'fx')+'queue',k=b._data(a,c),g&&(!k||b.isArray(g)?k=b
203
203
  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 k=b.queue(this,a,c);b._queueHooks(this,a);'fx'===a&&'inprogress'!==k[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,k=1,r=b.Deferred(),C=this,J=this.length,Z=function(){--k||
204
204
  r.resolveWith(C,[C])};'string'!=typeof a&&(c=a,a=void 0);for(a=a||'fx';J--;)(g=b._data(C[J],a+'queueHooks'))&&g.empty&&(k++,g.empty.add(Z));return Z(),r.promise(c)}});(function(){var a;e.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var c,g,k;return g=La.getElementsByTagName('body')[0],g&&g.style?(c=La.createElement('div'),k=La.createElement('div'),k.style.cssText='position:absolute;border:0;width:0;height:0;top:0;left:-9999px',g.appendChild(k).appendChild(c),'undefined'!=typeof c.style.zoom&&
205
205
  (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(La.createElement('div')).style.width='5px',a=3!==c.offsetWidth),g.removeChild(k),a):void 0}})();var hb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Hb=new RegExp('^(?:([+-])=|)('+hb+')([a-z%]*)$','i'),Ua=['Top','Right','Bottom','Left'],cb=function(a,c){return a=c||a,'none'===b.css(a,'display')||!b.contains(a.ownerDocument,a)},
206
- fa=function(a,c,g,k,r,C,J){var Z=0,pa=a.length,Ca=null==g;if('object'===b.type(g))for(Z in r=!0,g)fa(a,c,Z,g[Z],!0,C,J);else if(void 0!==k&&(r=!0,b.isFunction(k)||(J=!0),Ca&&(J?(c.call(a,k),c=null):(Ca=c,c=function(ua,Ra,Va){return Ca.call(b(ua),Va)})),c))for(;pa>Z;Z++)c(a[Z],g,J?k:k.call(a[Z],Z,c(a[Z],g)));return r?a:Ca?c.call(a):pa?c(a[0],g):C},X=/^(?:checkbox|radio)$/i,ja=/<([\w:-]+)/,ta=/^$|\/(?:java|ecma)script/i,Na=/^\s+/;!function(){var a=La.createElement('div'),c=La.createDocumentFragment(),
206
+ fa=function(a,c,g,k,r,C,J){var Z=0,pa=a.length,Ca=null==g;if('object'===b.type(g))for(Z in r=!0,g)fa(a,c,Z,g[Z],!0,C,J);else if(void 0!==k&&(r=!0,b.isFunction(k)||(J=!0),Ca&&(J?(c.call(a,k),c=null):(Ca=c,c=function(va,Ra,Va){return Ca.call(b(va),Va)})),c))for(;pa>Z;Z++)c(a[Z],g,J?k:k.call(a[Z],Z,c(a[Z],g)));return r?a:Ca?c.call(a):pa?c(a[0],g):C},X=/^(?:checkbox|radio)$/i,ja=/<([\w:-]+)/,ta=/^$|\/(?:java|ecma)script/i,Na=/^\s+/;!function(){var a=La.createElement('div'),c=La.createDocumentFragment(),
207
207
  g=La.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>'!==La.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;
208
208
  c.appendChild(a);g=La.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>'],
209
209
  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 fb=/<|&#?\w+;/,Pa=/<tbody/i;!function(){var a,c=La.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)}}();
210
- var sb=/^(?:input|select|textarea)$/i,jb=/^key/,db=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gb=/^(?:focusinfocus|focusoutblur)$/,rb=/^([^.]*)(?:\.(.+)|)/;b.event={global:{},add:function(a,c,g,k,r){var C,J,Z,pa,Ca,ua,Ra,Va;if(J=b._data(a)){g.handler&&(Z=g,g=Z.handler,r=Z.selector);g.guid||(g.guid=b.guid++);(C=J.events)||(C=J.events={});(Ca=J.handle)||(Ca=J.handle=function(Jb){return'undefined'==typeof b||Jb&&b.event.triggered===Jb.type?void 0:b.event.dispatch.apply(Ca.elem,arguments)},Ca.elem=
211
- a);c=(c||'').match(ma)||[''];for(J=c.length;J--;){var zb=rb.exec(c[J])||[];var ab=Va=zb[1];zb=(zb[2]||'').split('.').sort();ab&&(pa=b.event.special[ab]||{},ab=(r?pa.delegateType:pa.bindType)||ab,pa=b.event.special[ab]||{},ua=b.extend({type:ab,origType:Va,data:k,handler:g,guid:g.guid,selector:r,needsContext:r&&b.expr.match.needsContext.test(r),namespace:zb.join('.')},Z),(Ra=C[ab])||(Ra=C[ab]=[],Ra.delegateCount=0,pa.setup&&!1!==pa.setup.call(a,k,zb,Ca)||(a.addEventListener?a.addEventListener(ab,Ca,
212
- !1):a.attachEvent&&a.attachEvent('on'+ab,Ca))),pa.add&&(pa.add.call(a,ua),ua.handler.guid||(ua.handler.guid=g.guid)),r?Ra.splice(Ra.delegateCount++,0,ua):Ra.push(ua),b.event.global[ab]=!0)}a=null}},remove:function(a,c,g,k,r){var C,J,Z,pa,Ca,ua,Ra,Va,zb=b.hasData(a)&&b._data(a);if(zb&&(Ca=zb.events)){c=(c||'').match(ma)||[''];for(pa=c.length;pa--;)if(J=rb.exec(c[pa])||[],ua=Va=J[1],Ra=(J[2]||'').split('.').sort(),ua){var ab=b.event.special[ua]||{};ua=(k?ab.delegateType:ab.bindType)||ua;var Jb=Ca[ua]||
213
- [];J=J[2]&&new RegExp('(^|\\.)'+Ra.join('\\.(?:.*\\.|)')+'(\\.|$)');for(Z=C=Jb.length;C--;){var jc=Jb[C];!r&&Va!==jc.origType||g&&g.guid!==jc.guid||J&&!J.test(jc.namespace)||k&&k!==jc.selector&&('**'!==k||!jc.selector)||(Jb.splice(C,1),jc.selector&&Jb.delegateCount--,ab.remove&&ab.remove.call(a,jc))}Z&&!Jb.length&&(ab.teardown&&!1!==ab.teardown.call(a,Ra,zb.handle)||b.removeEvent(a,ua,zb.handle),delete Ca[ua])}else for(ua in Ca)b.event.remove(a,ua+c[pa],g,k,!0);b.isEmptyObject(Ca)&&(delete zb.handle,
214
- b._removeData(a,'events'))}},trigger:function(a,c,g,k){var r,C,J,Z,pa=[g||La],Ca=h.call(a,'type')?a.type:a;var ua=h.call(a,'namespace')?a.namespace.split('.'):[];if(J=r=g=g||La,3!==g.nodeType&&8!==g.nodeType&&!gb.test(Ca+b.event.triggered)&&(-1<Ca.indexOf('.')&&(ua=Ca.split('.'),Ca=ua.shift(),ua.sort()),C=0>Ca.indexOf(':')&&'on'+Ca,a=a[b.expando]?a:new b.Event(Ca,'object'==typeof a&&a),a.isTrigger=k?2:3,a.namespace=ua.join('.'),a.rnamespace=a.namespace?new RegExp('(^|\\.)'+ua.join('\\.(?:.*\\.|)')+
215
- '(\\.|$)'):null,a.result=void 0,a.target||(a.target=g),c=null==c?[a]:b.makeArray(c,[a]),Z=b.event.special[Ca]||{},k||!Z.trigger||!1!==Z.trigger.apply(g,c))){if(!k&&!Z.noBubble&&!b.isWindow(g)){var Ra=Z.delegateType||Ca;for(gb.test(Ra+Ca)||(J=J.parentNode);J;J=J.parentNode)pa.push(J),r=J;r===(g.ownerDocument||La)&&pa.push(r.defaultView||r.parentWindow||A)}for(ua=0;(J=pa[ua++])&&!a.isPropagationStopped();)a.type=1<ua?Ra:Z.bindType||Ca,(r=(b._data(J,'events')||{})[a.type]&&b._data(J,'handle'))&&r.apply(J,
210
+ var sb=/^(?:input|select|textarea)$/i,jb=/^key/,db=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gb=/^(?:focusinfocus|focusoutblur)$/,rb=/^([^.]*)(?:\.(.+)|)/;b.event={global:{},add:function(a,c,g,k,r){var C,J,Z,pa,Ca,va,Ra,Va;if(J=b._data(a)){g.handler&&(Z=g,g=Z.handler,r=Z.selector);g.guid||(g.guid=b.guid++);(C=J.events)||(C=J.events={});(Ca=J.handle)||(Ca=J.handle=function(Jb){return'undefined'==typeof b||Jb&&b.event.triggered===Jb.type?void 0:b.event.dispatch.apply(Ca.elem,arguments)},Ca.elem=
211
+ a);c=(c||'').match(ma)||[''];for(J=c.length;J--;){var zb=rb.exec(c[J])||[];var ab=Va=zb[1];zb=(zb[2]||'').split('.').sort();ab&&(pa=b.event.special[ab]||{},ab=(r?pa.delegateType:pa.bindType)||ab,pa=b.event.special[ab]||{},va=b.extend({type:ab,origType:Va,data:k,handler:g,guid:g.guid,selector:r,needsContext:r&&b.expr.match.needsContext.test(r),namespace:zb.join('.')},Z),(Ra=C[ab])||(Ra=C[ab]=[],Ra.delegateCount=0,pa.setup&&!1!==pa.setup.call(a,k,zb,Ca)||(a.addEventListener?a.addEventListener(ab,Ca,
212
+ !1):a.attachEvent&&a.attachEvent('on'+ab,Ca))),pa.add&&(pa.add.call(a,va),va.handler.guid||(va.handler.guid=g.guid)),r?Ra.splice(Ra.delegateCount++,0,va):Ra.push(va),b.event.global[ab]=!0)}a=null}},remove:function(a,c,g,k,r){var C,J,Z,pa,Ca,va,Ra,Va,zb=b.hasData(a)&&b._data(a);if(zb&&(Ca=zb.events)){c=(c||'').match(ma)||[''];for(pa=c.length;pa--;)if(J=rb.exec(c[pa])||[],va=Va=J[1],Ra=(J[2]||'').split('.').sort(),va){var ab=b.event.special[va]||{};va=(k?ab.delegateType:ab.bindType)||va;var Jb=Ca[va]||
213
+ [];J=J[2]&&new RegExp('(^|\\.)'+Ra.join('\\.(?:.*\\.|)')+'(\\.|$)');for(Z=C=Jb.length;C--;){var jc=Jb[C];!r&&Va!==jc.origType||g&&g.guid!==jc.guid||J&&!J.test(jc.namespace)||k&&k!==jc.selector&&('**'!==k||!jc.selector)||(Jb.splice(C,1),jc.selector&&Jb.delegateCount--,ab.remove&&ab.remove.call(a,jc))}Z&&!Jb.length&&(ab.teardown&&!1!==ab.teardown.call(a,Ra,zb.handle)||b.removeEvent(a,va,zb.handle),delete Ca[va])}else for(va in Ca)b.event.remove(a,va+c[pa],g,k,!0);b.isEmptyObject(Ca)&&(delete zb.handle,
214
+ b._removeData(a,'events'))}},trigger:function(a,c,g,k){var r,C,J,Z,pa=[g||La],Ca=h.call(a,'type')?a.type:a;var va=h.call(a,'namespace')?a.namespace.split('.'):[];if(J=r=g=g||La,3!==g.nodeType&&8!==g.nodeType&&!gb.test(Ca+b.event.triggered)&&(-1<Ca.indexOf('.')&&(va=Ca.split('.'),Ca=va.shift(),va.sort()),C=0>Ca.indexOf(':')&&'on'+Ca,a=a[b.expando]?a:new b.Event(Ca,'object'==typeof a&&a),a.isTrigger=k?2:3,a.namespace=va.join('.'),a.rnamespace=a.namespace?new RegExp('(^|\\.)'+va.join('\\.(?:.*\\.|)')+
215
+ '(\\.|$)'):null,a.result=void 0,a.target||(a.target=g),c=null==c?[a]:b.makeArray(c,[a]),Z=b.event.special[Ca]||{},k||!Z.trigger||!1!==Z.trigger.apply(g,c))){if(!k&&!Z.noBubble&&!b.isWindow(g)){var Ra=Z.delegateType||Ca;for(gb.test(Ra+Ca)||(J=J.parentNode);J;J=J.parentNode)pa.push(J),r=J;r===(g.ownerDocument||La)&&pa.push(r.defaultView||r.parentWindow||A)}for(va=0;(J=pa[va++])&&!a.isPropagationStopped();)a.type=1<va?Ra:Z.bindType||Ca,(r=(b._data(J,'events')||{})[a.type]&&b._data(J,'handle'))&&r.apply(J,
216
216
  c),(r=C&&J[C])&&r.apply&&$a(J)&&(a.result=r.apply(J,c),!1===a.result&&a.preventDefault());if(a.type=Ca,!(k||a.isDefaultPrevented()||Z._default&&!1!==Z._default.apply(pa.pop(),c))&&$a(g)&&C&&g[Ca]&&!b.isWindow(g)){(r=g[C])&&(g[C]=null);b.event.triggered=Ca;try{g[Ca]()}catch(Va){}b.event.triggered=void 0;r&&(g[C]=r)}return a.result}},dispatch:function(a){a=b.event.fix(a);var c,g,k,r,C=eb.call(arguments);var J=(b._data(this,'events')||{})[a.type]||[];var Z=b.event.special[a.type]||{};if(C[0]=a,a.delegateTarget=
217
217
  this,!Z.preDispatch||!1!==Z.preDispatch.call(this,a)){var pa=b.event.handlers.call(this,a,J);for(J=0;(k=pa[J++])&&!a.isPropagationStopped();)for(a.currentTarget=k.elem,c=0;(r=k.handlers[c++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,g=((b.event.special[r.origType]||{}).handle||r.handler).apply(k.elem,C),void 0!==g&&!1===(a.result=g)&&(a.preventDefault(),a.stopPropagation()));return Z.postDispatch&&Z.postDispatch.call(this,a),
218
218
  a.result}},handlers:function(a,c){var g,k=[],r=c.delegateCount,C=a.target;if(r&&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 J=[];for(g=0;r>g;g++){var Z=c[g];var pa=Z.selector+' ';void 0===J[pa]&&(J[pa]=Z.needsContext?-1<b(pa,this).index(C):b.find(pa,this,null,[C]).length);J[pa]&&J.push(Z)}J.length&&k.push({elem:C,handlers:J})}return r<c.length&&k.push({elem:this,handlers:c.slice(r)}),k},fix:function(a){if(a[b.expando])return a;
@@ -228,22 +228,22 @@ this.type||(b.event.add(this,'propertychange._change',function(a){'checked'===a.
228
228
  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'),!sb.test(this.nodeName)}});e.focusin||b.each({focus:'focusin',blur:'focusout'},function(a,c){var g=function(k){b.event.simulate(c,k.target,b.event.fix(k))};b.event.special[c]={setup:function(){var k=this.ownerDocument||this,r=b._data(k,
229
229
  c);r||k.addEventListener(a,g,!0);b._data(k,c,(r||0)+1)},teardown:function(){var k=this.ownerDocument||this,r=b._data(k,c)-1;r?b._data(k,c,r):(k.removeEventListener(a,g,!0),b._removeData(k,c))}}});b.fn.extend({on:function(a,c,g,k){return F(this,a,c,g,k)},one:function(a,c,g,k){return F(this,a,c,g,k,1)},off:function(a,c,g){var k,r;if(a&&a.preventDefault&&a.handleObj)return k=a.handleObj,b(a.delegateTarget).off(k.namespace?k.origType+'.'+k.namespace:k.origType,k.selector,k.handler),this;if('object'==
230
230
  typeof a){for(r in a)this.off(r,c,a[r]);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/>]',
231
- '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=va(La).appendChild(La.createElement('div'));b.extend({htmlPrefilter:function(a){return a.replace(Eb,'<$1></$2>')},clone:function(a,c,g){var k,r,C,J=b.contains(a.ownerDocument,a);if(e.html5Clone||b.isXMLDoc(a)||!Mb.test('<'+a.nodeName+'>')?r=a.cloneNode(!0):(Dc.innerHTML=a.outerHTML,Dc.removeChild(r=
232
- Dc.firstChild)),!(e.noCloneEvent&&e.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||b.isXMLDoc(a))){var Z=P(r);var pa=P(a);for(C=0;null!=(k=pa[C]);++C)if(Z[C]){var Ca=void 0,ua,Ra=k,Va=Z[C];if(1===Va.nodeType){if(ua=Va.nodeName.toLowerCase(),!e.noCloneEvent&&Va[b.expando]){k=b._data(Va);for(Ca in k.events)b.removeEvent(Va,Ca,k.handle);Va.removeAttribute(b.expando)}'script'===ua&&Va.text!==Ra.text?(u(Va).text=Ra.text,G(Va)):'object'===ua?(Va.parentNode&&(Va.outerHTML=Ra.outerHTML),e.html5Clone&&Ra.innerHTML&&
233
- !b.trim(Va.innerHTML)&&(Va.innerHTML=Ra.innerHTML)):'input'===ua&&X.test(Ra.type)?(Va.defaultChecked=Va.checked=Ra.checked,Va.value!==Ra.value&&(Va.value=Ra.value)):'option'===ua?Va.defaultSelected=Va.selected=Ra.defaultSelected:'input'!==ua&&'textarea'!==ua||(Va.defaultValue=Ra.defaultValue)}}}if(c)if(g)for(pa=pa||P(a),Z=Z||P(r),C=0;null!=(k=pa[C]);C++)M(k,Z[C]);else M(a,r);return Z=P(r,'script'),0<Z.length&&K(Z,!J&&P(a,'script')),r},cleanData:function(a,c){for(var g,k,r,C,J=0,Z=b.expando,pa=b.cache,
234
- Ca=e.attributes,ua=b.event.special;null!=(g=a[J]);J++)if((c||$a(g))&&(r=g[Z],C=r&&pa[r])){if(C.events)for(k in C.events)ua[k]?b.event.remove(g,k):b.removeEvent(g,k,C.handle);pa[r]&&(delete pa[r],Ca||'undefined'==typeof g.removeAttribute?g[Z]=void 0:g.removeAttribute(Z),tb.push(r))}}});b.fn.extend({domManip:U,detach:function(a){return qa(this,a,!0)},remove:function(a){return qa(this,a)},text:function(a){return fa(this,function(c){return void 0===c?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||
231
+ '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=ua(La).appendChild(La.createElement('div'));b.extend({htmlPrefilter:function(a){return a.replace(Eb,'<$1></$2>')},clone:function(a,c,g){var k,r,C,J=b.contains(a.ownerDocument,a);if(e.html5Clone||b.isXMLDoc(a)||!Mb.test('<'+a.nodeName+'>')?r=a.cloneNode(!0):(Dc.innerHTML=a.outerHTML,Dc.removeChild(r=
232
+ Dc.firstChild)),!(e.noCloneEvent&&e.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||b.isXMLDoc(a))){var Z=P(r);var pa=P(a);for(C=0;null!=(k=pa[C]);++C)if(Z[C]){var Ca=void 0,va,Ra=k,Va=Z[C];if(1===Va.nodeType){if(va=Va.nodeName.toLowerCase(),!e.noCloneEvent&&Va[b.expando]){k=b._data(Va);for(Ca in k.events)b.removeEvent(Va,Ca,k.handle);Va.removeAttribute(b.expando)}'script'===va&&Va.text!==Ra.text?(u(Va).text=Ra.text,G(Va)):'object'===va?(Va.parentNode&&(Va.outerHTML=Ra.outerHTML),e.html5Clone&&Ra.innerHTML&&
233
+ !b.trim(Va.innerHTML)&&(Va.innerHTML=Ra.innerHTML)):'input'===va&&X.test(Ra.type)?(Va.defaultChecked=Va.checked=Ra.checked,Va.value!==Ra.value&&(Va.value=Ra.value)):'option'===va?Va.defaultSelected=Va.selected=Ra.defaultSelected:'input'!==va&&'textarea'!==va||(Va.defaultValue=Ra.defaultValue)}}}if(c)if(g)for(pa=pa||P(a),Z=Z||P(r),C=0;null!=(k=pa[C]);C++)M(k,Z[C]);else M(a,r);return Z=P(r,'script'),0<Z.length&&K(Z,!J&&P(a,'script')),r},cleanData:function(a,c){for(var g,k,r,C,J=0,Z=b.expando,pa=b.cache,
234
+ Ca=e.attributes,va=b.event.special;null!=(g=a[J]);J++)if((c||$a(g))&&(r=g[Z],C=r&&pa[r])){if(C.events)for(k in C.events)va[k]?b.event.remove(g,k):b.removeEvent(g,k,C.handle);pa[r]&&(delete pa[r],Ca||'undefined'==typeof g.removeAttribute?g[Z]=void 0:g.removeAttribute(Z),tb.push(r))}}});b.fn.extend({domManip:U,detach:function(a){return qa(this,a,!0)},remove:function(a){return qa(this,a)},text:function(a){return fa(this,function(c){return void 0===c?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||
235
235
  La).createTextNode(c))},null,a,arguments.length)},append:function(){return U(this,arguments,function(a){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||w(this,a).appendChild(a)})},prepend:function(){return U(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var c=w(this,a);c.insertBefore(a,c.firstChild)}})},before:function(){return U(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return U(this,arguments,
236
236
  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(P(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 fa(this,function(c){var g=this[0]||{},k=0,r=this.length;if(void 0===c)return 1===g.nodeType?
237
237
  g.innerHTML.replace(lb,''):void 0;if(!('string'!=typeof c||Ib.test(c)||!e.htmlSerialize&&Mb.test(c)||!e.leadingWhitespace&&Na.test(c)||Wa[(ja.exec(c)||['',''])[1].toLowerCase()])){c=b.htmlPrefilter(c);try{for(;r>k;k++)g=this[k]||{},1===g.nodeType&&(b.cleanData(P(g,!1)),g.innerHTML=c);g=0}catch(C){}}g&&this.empty().append(c)},null,a,arguments.length)},replaceWith:function(){var a=[];return U(this,arguments,function(c){var g=this.parentNode;0>b.inArray(this,a)&&(b.cleanData(P(this)),g&&g.replaceChild(c,
238
238
  this))},a)}});b.each({appendTo:'append',prependTo:'prepend',insertBefore:'before',insertAfter:'after',replaceAll:'replaceWith'},function(a,c){b.fn[a]=function(g){for(var k=0,r=[],C=b(g),J=C.length-1;J>=k;k++)g=k===J?this:this.clone(!0),b(C[k])[c](g),Ub.apply(r,g.get());return this.pushStack(r)}});var fc,Nb={HTML:'block',BODY:'block'},Pc=/^margin/,mc=new RegExp('^('+hb+')(?!px)[a-z%]+$','i'),Lc=function(a,c,g,k){var r,C={};for(r in c)C[r]=a.style[r],a.style[r]=c[r];g=g.apply(a,k||[]);for(r in c)a.style[r]=
239
239
  C[r];return g},Qc=La.documentElement;!function(){var a,c,g,k,r,C,J=La.createElement('div'),Z=La.createElement('div');if(Z.style){Z.style.cssText='float:left;opacity:.5';e.opacity='0.5'===Z.style.opacity;e.cssFloat=!!Z.style.cssFloat;Z.style.backgroundClip='content-box';Z.cloneNode(!0).style.backgroundClip='';e.clearCloneStyle='content-box'===Z.style.backgroundClip;J=La.createElement('div');J.style.cssText='border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute';
240
- Z.innerHTML='';J.appendChild(Z);e.boxSizing=''===Z.style.boxSizing||''===Z.style.MozBoxSizing||''===Z.style.WebkitBoxSizing;b.extend(e,{reliableHiddenOffsets:function(){return null==a&&pa(),k},boxSizingReliable:function(){return null==a&&pa(),g},pixelMarginRight:function(){return null==a&&pa(),c},pixelPosition:function(){return null==a&&pa(),a},reliableMarginRight:function(){return null==a&&pa(),r},reliableMarginLeft:function(){return null==a&&pa(),C}});function pa(){var Ca,ua,Ra=La.documentElement;
241
- Ra.appendChild(J);Z.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=r=!0;A.getComputedStyle&&(ua=A.getComputedStyle(Z),a='1%'!==(ua||{}).top,C='2px'===(ua||{}).marginLeft,g='4px'===(ua||{width:'4px'}).width,Z.style.marginRight='50%',c='4px'===(ua||{marginRight:'4px'}).marginRight,Ca=Z.appendChild(La.createElement('div')),Ca.style.cssText=Z.style.cssText='-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0',
240
+ Z.innerHTML='';J.appendChild(Z);e.boxSizing=''===Z.style.boxSizing||''===Z.style.MozBoxSizing||''===Z.style.WebkitBoxSizing;b.extend(e,{reliableHiddenOffsets:function(){return null==a&&pa(),k},boxSizingReliable:function(){return null==a&&pa(),g},pixelMarginRight:function(){return null==a&&pa(),c},pixelPosition:function(){return null==a&&pa(),a},reliableMarginRight:function(){return null==a&&pa(),r},reliableMarginLeft:function(){return null==a&&pa(),C}});function pa(){var Ca,va,Ra=La.documentElement;
241
+ Ra.appendChild(J);Z.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=r=!0;A.getComputedStyle&&(va=A.getComputedStyle(Z),a='1%'!==(va||{}).top,C='2px'===(va||{}).marginLeft,g='4px'===(va||{width:'4px'}).width,Z.style.marginRight='50%',c='4px'===(va||{marginRight:'4px'}).marginRight,Ca=Z.appendChild(La.createElement('div')),Ca.style.cssText=Z.style.cssText='-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0',
242
242
  Ca.style.marginRight=Ca.style.width='0',Z.style.width='1px',r=!parseFloat((A.getComputedStyle(Ca)||{}).marginRight),Z.removeChild(Ca));Z.style.display='none';(k=0===Z.getClientRects().length)&&(Z.style.display='',Z.innerHTML='<table><tr><td></td><td>t</td></tr></table>',Z.childNodes[0].style.borderCollapse='separate',Ca=Z.getElementsByTagName('td'),Ca[0].style.cssText='margin:0;border:0;padding:0;display:none',k=0===Ca[0].offsetHeight,k&&(Ca[0].style.display='',Ca[1].style.display='none',k=0===Ca[0].offsetHeight));
243
243
  Ra.removeChild(J)}}}();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 k,r,C,J,Z=a.style;return g=g||rc(a),J=g?g.getPropertyValue(c)||g[c]:void 0,''!==J&&void 0!==J||b.contains(a.ownerDocument,a)||(J=b.style(a,c)),g&&!e.pixelMarginRight()&&mc.test(J)&&Pc.test(c)&&(k=Z.width,r=Z.minWidth,C=Z.maxWidth,Z.minWidth=Z.maxWidth=Z.width=J,J=g.width,Z.width=k,Z.minWidth=r,Z.maxWidth=
244
244
  C),void 0===J?J:J+''}):Qc.currentStyle&&(rc=function(a){return a.currentStyle},sc=function(a,c,g){var k,r,C,J,Z=a.style;return g=g||rc(a),J=g?g[c]:void 0,null==J&&Z&&Z[c]&&(J=Z[c]),mc.test(J)&&!Rc.test(c)&&(k=Z.left,r=a.runtimeStyle,C=r&&r.left,C&&(r.left=a.currentStyle.left),Z.left='fontSize'===c?'1em':J,J=Z.pixelLeft+'px',Z.left=k,C&&(r.left=C)),void 0===J?J:J+''||'auto'});var $c=/alpha\([^)]*\)/i,Id=/opacity\s*=\s*([^)]*)/i,Jd=/^(none|table(?!-c[ea]).+)/,vd=new RegExp('^('+hb+')(.*)$','i'),Kd=
245
245
  {position:'absolute',visibility:'hidden',display:'block'},nd={letterSpacing:'0',fontWeight:'400'},jd=['Webkit','O','Moz','ms'],hd=La.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,
246
- c,g,k){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var r,C,J,Z=b.camelCase(c),pa=a.style;if(c=b.cssProps[Z]||(b.cssProps[Z]=ea(Z)||Z),J=b.cssHooks[c]||b.cssHooks[Z],void 0===g)return J&&'get'in J&&void 0!==(r=J.get(a,!1,k))?r:pa[c];if(C=typeof g,'string'===C&&(r=Hb.exec(g))&&r[1]&&(g=ya(a,c,r),C='number'),null!=g&&g===g&&('number'===C&&(g+=r&&r[3]||(b.cssNumber[Z]?'':'px')),e.clearCloneStyle||''!==g||0!==c.indexOf('background')||(pa[c]='inherit'),!(J&&'set'in J&&void 0===(g=J.set(a,g,k)))))try{pa[c]=
246
+ c,g,k){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var r,C,J,Z=b.camelCase(c),pa=a.style;if(c=b.cssProps[Z]||(b.cssProps[Z]=ea(Z)||Z),J=b.cssHooks[c]||b.cssHooks[Z],void 0===g)return J&&'get'in J&&void 0!==(r=J.get(a,!1,k))?r:pa[c];if(C=typeof g,'string'===C&&(r=Hb.exec(g))&&r[1]&&(g=xa(a,c,r),C='number'),null!=g&&g===g&&('number'===C&&(g+=r&&r[3]||(b.cssNumber[Z]?'':'px')),e.clearCloneStyle||''!==g||0!==c.indexOf('background')||(pa[c]='inherit'),!(J&&'set'in J&&void 0===(g=J.set(a,g,k)))))try{pa[c]=
247
247
  g}catch(Ca){}}},css:function(a,c,g,k){var r,C,J,Z=b.camelCase(c);return c=b.cssProps[Z]||(b.cssProps[Z]=ea(Z)||Z),J=b.cssHooks[c]||b.cssHooks[Z],J&&'get'in J&&(C=J.get(a,!0,g)),void 0===C&&(C=sc(a,c,k)),'normal'===C&&c in nd&&(C=nd[c]),''===g||g?(r=parseFloat(C),!0===g||isFinite(r)?r||0:C):C}});b.each(['height','width'],function(a,c){b.cssHooks[c]={get:function(g,k,r){return k?Jd.test(b.css(g,'display'))&&0===g.offsetWidth?Lc(g,Kd,function(){return Da(g,c,r)}):Da(g,c,r):void 0},set:function(g,k,r){var C=
248
248
  r&&rc(g);return na(g,k,r?sa(g,c,r,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 k=b.isNumeric(c)?'alpha(opacity='+100*c+')':'',r=a&&a.filter||g.filter||'';g.zoom=1;(1<=c||''===c)&&''===b.trim(r.replace($c,''))&&g.removeAttribute&&(g.removeAttribute('filter'),''===
249
249
  c||a&&!a.filter)||(g.filter=$c.test(r)?r.replace($c,k):r+' '+k)}});b.cssHooks.marginRight=ia(e.reliableMarginRight,function(a,c){return c?Lc(a,{display:'inline-block'},sc,[a,'marginRight']):void 0});b.cssHooks.marginLeft=ia(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,10 +251,10 @@ c){b.cssHooks[a+c]={expand:function(g){var k=0,r={};for(g='string'==typeof g?g.s
251
251
  typeof a?a?this.show():this.hide():this.each(function(){cb(this)?b(this).show():b(this).hide()})}});b.Tween=Qa;Qa.prototype={constructor:Qa,init:function(a,c,g,k,r,C){this.elem=a;this.prop=g;this.easing=r||b.easing._default;this.options=c;this.start=this.now=this.cur();this.end=k;this.unit=C||(b.cssNumber[g]?'':'px')},cur:function(){var a=Qa.propHooks[this.prop];return a&&a.get?a.get(this):Qa.propHooks._default.get(this)},run:function(a){var c,g=Qa.propHooks[this.prop];return this.options.duration?
252
252
  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):Qa.propHooks._default.set(this),this}};Qa.prototype.init.prototype=Qa.prototype;Qa.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]?
253
253
  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)}}};Qa.propHooks.scrollTop=Qa.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=Qa.prototype.init;b.fx.step={};var Fc,ad,Ld=/^(?:toggle|show|hide)$/,Md=/queueHooks$/;b.Animation=b.extend(Fa,
254
- {tweeners:{'*':[function(a,c){var g=this.createTween(a,c);return ya(g.elem,a,Hb.exec(c),g),g}]},tweener:function(a,c){b.isFunction(a)?(c=a,a=['*']):a=a.match(ma);for(var g,k=0,r=a.length;r>k;k++)g=a[k],Fa.tweeners[g]=Fa.tweeners[g]||[],Fa.tweeners[g].unshift(c)},prefilters:[function(a,c,g){var k,r,C,J,Z,pa,Ca,ua=this,Ra={},Va=a.style,zb=a.nodeType&&cb(a),ab=b._data(a,'fxshow');g.queue||(J=b._queueHooks(a,'fx'),null==J.unqueued&&(J.unqueued=0,Z=J.empty.fire,J.empty.fire=function(){J.unqueued||Z()}),
255
- J.unqueued++,ua.always(function(){ua.always(function(){J.unqueued--;b.queue(a,'fx').length||J.empty.fire()})}));1===a.nodeType&&('height'in c||'width'in c)&&(g.overflow=[Va.overflow,Va.overflowX,Va.overflowY],pa=b.css(a,'display'),Ca='none'===pa?b._data(a,'olddisplay')||W(a.nodeName):pa,'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()||ua.always(function(){Va.overflow=
256
- g.overflow[0];Va.overflowX=g.overflow[1];Va.overflowY=g.overflow[2]}));for(k in c)if(r=c[k],Ld.exec(r)){if(delete c[k],C=C||'toggle'===r,r===(zb?'hide':'show')){if('show'!==r||!ab||void 0===ab[k])continue;zb=!0}Ra[k]=ab&&ab[k]||b.style(a,k)}else pa=void 0;if(b.isEmptyObject(Ra))'inline'===('none'===pa?W(a.nodeName):pa)&&(Va.display=pa);else for(k in ab?'hidden'in ab&&(zb=ab.hidden):ab=b._data(a,'fxshow',{}),C&&(ab.hidden=!zb),zb?b(a).show():ua.done(function(){b(a).hide()}),ua.done(function(){var Jb;
257
- b._removeData(a,'fxshow');for(Jb in Ra)b.style(a,Jb,Ra[Jb])}),Ra)c=Ha(zb?ab[k]:0,k,ua),k in ab||(ab[k]=c.start,zb&&(c.end=c.start,c.start='width'===k||'height'===k?1:0))}],prefilter:function(a,c){c?Fa.prefilters.unshift(a):Fa.prefilters.push(a)}});b.speed=function(a,c,g){var k=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 k.duration=b.fx.off?0:'number'==typeof k.duration?k.duration:k.duration in b.fx.speeds?b.fx.speeds[k.duration]:
254
+ {tweeners:{'*':[function(a,c){var g=this.createTween(a,c);return xa(g.elem,a,Hb.exec(c),g),g}]},tweener:function(a,c){b.isFunction(a)?(c=a,a=['*']):a=a.match(ma);for(var g,k=0,r=a.length;r>k;k++)g=a[k],Fa.tweeners[g]=Fa.tweeners[g]||[],Fa.tweeners[g].unshift(c)},prefilters:[function(a,c,g){var k,r,C,J,Z,pa,Ca,va=this,Ra={},Va=a.style,zb=a.nodeType&&cb(a),ab=b._data(a,'fxshow');g.queue||(J=b._queueHooks(a,'fx'),null==J.unqueued&&(J.unqueued=0,Z=J.empty.fire,J.empty.fire=function(){J.unqueued||Z()}),
255
+ J.unqueued++,va.always(function(){va.always(function(){J.unqueued--;b.queue(a,'fx').length||J.empty.fire()})}));1===a.nodeType&&('height'in c||'width'in c)&&(g.overflow=[Va.overflow,Va.overflowX,Va.overflowY],pa=b.css(a,'display'),Ca='none'===pa?b._data(a,'olddisplay')||W(a.nodeName):pa,'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()||va.always(function(){Va.overflow=
256
+ g.overflow[0];Va.overflowX=g.overflow[1];Va.overflowY=g.overflow[2]}));for(k in c)if(r=c[k],Ld.exec(r)){if(delete c[k],C=C||'toggle'===r,r===(zb?'hide':'show')){if('show'!==r||!ab||void 0===ab[k])continue;zb=!0}Ra[k]=ab&&ab[k]||b.style(a,k)}else pa=void 0;if(b.isEmptyObject(Ra))'inline'===('none'===pa?W(a.nodeName):pa)&&(Va.display=pa);else for(k in ab?'hidden'in ab&&(zb=ab.hidden):ab=b._data(a,'fxshow',{}),C&&(ab.hidden=!zb),zb?b(a).show():va.done(function(){b(a).hide()}),va.done(function(){var Jb;
257
+ b._removeData(a,'fxshow');for(Jb in Ra)b.style(a,Jb,Ra[Jb])}),Ra)c=Ha(zb?ab[k]:0,k,va),k in ab||(ab[k]=c.start,zb&&(c.end=c.start,c.start='width'===k||'height'===k?1:0))}],prefilter:function(a,c){c?Fa.prefilters.unshift(a):Fa.prefilters.push(a)}});b.speed=function(a,c,g){var k=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 k.duration=b.fx.off?0:'number'==typeof k.duration?k.duration:k.duration in b.fx.speeds?b.fx.speeds[k.duration]:
258
258
  b.fx.speeds._default,null!=k.queue&&!0!==k.queue||(k.queue='fx'),k.old=k.complete,k.complete=function(){b.isFunction(k.old)&&k.old.call(this);k.queue&&b.dequeue(this,k.queue)},k};b.fn.extend({fadeTo:function(a,c,g,k){return this.filter(cb).css('opacity',0).show().end().animate({opacity:c},a,g,k)},animate:function(a,c,g,k){var r=b.isEmptyObject(a),C=b.speed(c,g,k);c=function(){var J=Fa(this,b.extend({},a),C);(r||b._data(this,'finish'))&&J.stop(!0)};return c.finish=c,r||!1===C.queue?this.each(c):this.queue(C.queue,
259
259
  c)},stop:function(a,c,g){var k=function(r){var C=r.stop;delete r.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 r=!0,C=null!=a&&a+'queueHooks',J=b.timers,Z=b._data(this);if(C)Z[C]&&Z[C].stop&&k(Z[C]);else for(C in Z)Z[C]&&Z[C].stop&&Md.test(C)&&k(Z[C]);for(C=J.length;C--;)J[C].elem!==this||null!=a&&J[C].queue!==a||(J[C].anim.stop(g),r=!1,J.splice(C,1));!r&&g||b.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||'fx'),this.each(function(){var c=
260
260
  b._data(this),g=c[a+'queue'];var k=c[a+'queueHooks'];var r=b.timers,C=g?g.length:0;c.finish=!0;b.queue(this,a,[]);k&&k.stop&&k.stop.call(this,!0);for(k=r.length;k--;)r[k].elem===this&&r[k].queue===a&&(r[k].anim.stop(!0),r.splice(k,1));for(k=0;C>k;k++)g[k]&&g[k].finish&&g[k].finish.call(this);delete c.finish})}});b.each(['toggle','show','hide'],function(a,c){var g=b.fn[c];b.fn[c]=function(k,r,C){return null==k||'boolean'==typeof k?g.apply(this,arguments):this.animate(Ia(c,!0),k,r,C)}});b.each({slideDown:Ia('show'),
@@ -278,37 +278,37 @@ b.attr(g,'class',k)}return this},toggleClass:function(a,c){var g=typeof a;return
278
278
  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,k=b.trim(a+'');return k&&!b.trim(k.replace(Td,function(r,C,J,Z){return c&&C&&(g=0),0===g?r:(c=J||C,g+=!Z-!J,'')}))?Function('return '+k)():b.error('Invalid JSON: '+a)};b.parseXML=function(a){var c,
279
279
  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(k){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('*'),
280
280
  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',
281
- 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?bb(bb(a,b.ajaxSettings),c):bb(b.ajaxSettings,a)},ajaxPrefilter:Ya(qd),ajaxTransport:Ya(Vc),ajax:function(a,c){function g(Db,Ob,Rb,ub){var ic,ec,Tb,dc=Ob;if(2!==kc){kc=2;J&&A.clearTimeout(J);pa=void 0;C=ub||'';wb.readyState=0<Db?4:0;ub=200<=Db&&300>Db||304===Db;if(Rb){var Sb=ua;for(var nc=wb,Cb,$b,Wb,Qb,
282
- 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=ua;Cb=Sb;$b=wb;Wb=ub;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=
281
+ 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?bb(bb(a,b.ajaxSettings),c):bb(b.ajaxSettings,a)},ajaxPrefilter:Ya(qd),ajaxTransport:Ya(Vc),ajax:function(a,c){function g(Db,Ob,Rb,ub){var ic,ec,Tb,dc=Ob;if(2!==kc){kc=2;J&&A.clearTimeout(J);pa=void 0;C=ub||'';wb.readyState=0<Db?4:0;ub=200<=Db&&300>Db||304===Db;if(Rb){var Sb=va;for(var nc=wb,Cb,$b,Wb,Qb,
282
+ 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=va;Cb=Sb;$b=wb;Wb=ub;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=
283
283
  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 '+
284
- vc+' to '+Qb};break a}}lc={state:'success',data:Cb}}Sb=lc;ub?(ua.ifModified&&(Tb=wb.getResponseHeader('Last-Modified'),Tb&&(b.lastModified[gc]=Tb),Tb=wb.getResponseHeader('etag'),Tb&&(b.etag[gc]=Tb)),204===Db||'HEAD'===ua.type?dc='nocontent':304===Db?dc='notmodified':(dc=Sb.state,ic=Sb.data,ec=Sb.error,ub=!ec)):(ec=dc,!Db&&dc||(dc='error',0>Db&&(Db=0)));wb.status=Db;wb.statusText=(Ob||dc)+'';ub?zb.resolveWith(Ra,[ic,dc,wb]):zb.rejectWith(Ra,[wb,dc,ec]);wb.statusCode(Jb);Jb=void 0;Z&&Va.trigger(ub?
285
- 'ajaxSuccess':'ajaxError',[wb,ua,ub?ic:ec]);ab.fireWith(Ra,[wb,dc]);Z&&(Va.trigger('ajaxComplete',[wb,ua]),--b.active||b.event.trigger('ajaxStop'))}}'object'==typeof a&&(c=a,a=void 0);c=c||{};var k,r,C,J,Z,pa,Ca,ua=b.ajaxSetup({},c),Ra=ua.context||ua,Va=ua.context&&(Ra.nodeType||Ra.jquery)?b(Ra):b.event,zb=b.Deferred(),ab=b.Callbacks('once memory'),Jb=ua.statusCode||{},jc={},Gc={},kc=0,wc='canceled',wb={readyState:0,getResponseHeader:function(Db){var Ob;if(2===kc){if(!Ca)for(Ca={};Ob=Vd.exec(C);)Ca[Ob[1].toLowerCase()]=
286
- 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||(ua.mimeType=Db),this},statusCode:function(Db){var Ob;if(Db)if(2>kc)for(Ob in Db)Jb[Ob]=[Jb[Ob],Db[Ob]];else wb.always(Db[wb.status]);return this},abort:function(Db){Db=Db||wc;return pa&&pa.abort(Db),g(0,Db),this}};if(zb.promise(wb).complete=ab.add,
287
- wb.success=wb.done,wb.error=wb.fail,ua.url=((a||ua.url||fd)+'').replace(Ud,'').replace(Xd,Jc[1]+'//'),ua.type=c.method||c.type||ua.method||ua.type,ua.dataTypes=b.trim(ua.dataType||'*').toLowerCase().match(ma)||[''],null==ua.crossDomain&&(k=pd.exec(ua.url.toLowerCase()),ua.crossDomain=!(!k||k[1]===Jc[1]&&k[2]===Jc[2]&&(k[3]||('http:'===k[1]?'80':'443'))===(Jc[3]||('http:'===Jc[1]?'80':'443')))),ua.data&&ua.processData&&'string'!=typeof ua.data&&(ua.data=b.param(ua.data,ua.traditional)),pb(qd,ua,c,
288
- wb),2===kc)return wb;(Z=b.event&&ua.global)&&0===b.active++&&b.event.trigger('ajaxStart');ua.type=ua.type.toUpperCase();ua.hasContent=!Wd.test(ua.type);var gc=ua.url;ua.hasContent||(ua.data&&(gc=ua.url+=(ed.test(gc)?'&':'?')+ua.data,delete ua.data),!1===ua.cache&&(ua.url=od.test(gc)?gc.replace(od,'$1_='+dd++):gc+(ed.test(gc)?'&':'?')+'_='+dd++));ua.ifModified&&(b.lastModified[gc]&&wb.setRequestHeader('If-Modified-Since',b.lastModified[gc]),b.etag[gc]&&wb.setRequestHeader('If-None-Match',b.etag[gc]));
289
- (ua.data&&ua.hasContent&&!1!==ua.contentType||c.contentType)&&wb.setRequestHeader('Content-Type',ua.contentType);wb.setRequestHeader('Accept',ua.dataTypes[0]&&ua.accepts[ua.dataTypes[0]]?ua.accepts[ua.dataTypes[0]]+('*'!==ua.dataTypes[0]?', '+rd+'; q=0.01':''):ua.accepts['*']);for(r in ua.headers)wb.setRequestHeader(r,ua.headers[r]);if(ua.beforeSend&&(!1===ua.beforeSend.call(Ra,wb,ua)||2===kc))return wb.abort();wc='abort';for(r in{success:1,error:1,complete:1})wb[r](ua[r]);if(pa=pb(Vc,ua,c,wb)){if(wb.readyState=
290
- 1,Z&&Va.trigger('ajaxSend',[wb,ua]),2===kc)return wb;ua.async&&0<ua.timeout&&(J=A.setTimeout(function(){wb.abort('timeout')},ua.timeout));try{kc=1,pa.send(jc,g)}catch(Db){if(!(2>kc))throw Db;g(-1,Db)}}else g(-1,'No Transport');return wb},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,k,r,C){return b.isFunction(k)&&(C=C||r,r=k,k=void 0),b.ajax(b.extend({url:g,type:c,dataType:C,data:k,
284
+ vc+' to '+Qb};break a}}lc={state:'success',data:Cb}}Sb=lc;ub?(va.ifModified&&(Tb=wb.getResponseHeader('Last-Modified'),Tb&&(b.lastModified[gc]=Tb),Tb=wb.getResponseHeader('etag'),Tb&&(b.etag[gc]=Tb)),204===Db||'HEAD'===va.type?dc='nocontent':304===Db?dc='notmodified':(dc=Sb.state,ic=Sb.data,ec=Sb.error,ub=!ec)):(ec=dc,!Db&&dc||(dc='error',0>Db&&(Db=0)));wb.status=Db;wb.statusText=(Ob||dc)+'';ub?zb.resolveWith(Ra,[ic,dc,wb]):zb.rejectWith(Ra,[wb,dc,ec]);wb.statusCode(Jb);Jb=void 0;Z&&Va.trigger(ub?
285
+ 'ajaxSuccess':'ajaxError',[wb,va,ub?ic:ec]);ab.fireWith(Ra,[wb,dc]);Z&&(Va.trigger('ajaxComplete',[wb,va]),--b.active||b.event.trigger('ajaxStop'))}}'object'==typeof a&&(c=a,a=void 0);c=c||{};var k,r,C,J,Z,pa,Ca,va=b.ajaxSetup({},c),Ra=va.context||va,Va=va.context&&(Ra.nodeType||Ra.jquery)?b(Ra):b.event,zb=b.Deferred(),ab=b.Callbacks('once memory'),Jb=va.statusCode||{},jc={},Gc={},kc=0,wc='canceled',wb={readyState:0,getResponseHeader:function(Db){var Ob;if(2===kc){if(!Ca)for(Ca={};Ob=Vd.exec(C);)Ca[Ob[1].toLowerCase()]=
286
+ 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||(va.mimeType=Db),this},statusCode:function(Db){var Ob;if(Db)if(2>kc)for(Ob in Db)Jb[Ob]=[Jb[Ob],Db[Ob]];else wb.always(Db[wb.status]);return this},abort:function(Db){Db=Db||wc;return pa&&pa.abort(Db),g(0,Db),this}};if(zb.promise(wb).complete=ab.add,
287
+ wb.success=wb.done,wb.error=wb.fail,va.url=((a||va.url||fd)+'').replace(Ud,'').replace(Xd,Jc[1]+'//'),va.type=c.method||c.type||va.method||va.type,va.dataTypes=b.trim(va.dataType||'*').toLowerCase().match(ma)||[''],null==va.crossDomain&&(k=pd.exec(va.url.toLowerCase()),va.crossDomain=!(!k||k[1]===Jc[1]&&k[2]===Jc[2]&&(k[3]||('http:'===k[1]?'80':'443'))===(Jc[3]||('http:'===Jc[1]?'80':'443')))),va.data&&va.processData&&'string'!=typeof va.data&&(va.data=b.param(va.data,va.traditional)),pb(qd,va,c,
288
+ wb),2===kc)return wb;(Z=b.event&&va.global)&&0===b.active++&&b.event.trigger('ajaxStart');va.type=va.type.toUpperCase();va.hasContent=!Wd.test(va.type);var gc=va.url;va.hasContent||(va.data&&(gc=va.url+=(ed.test(gc)?'&':'?')+va.data,delete va.data),!1===va.cache&&(va.url=od.test(gc)?gc.replace(od,'$1_='+dd++):gc+(ed.test(gc)?'&':'?')+'_='+dd++));va.ifModified&&(b.lastModified[gc]&&wb.setRequestHeader('If-Modified-Since',b.lastModified[gc]),b.etag[gc]&&wb.setRequestHeader('If-None-Match',b.etag[gc]));
289
+ (va.data&&va.hasContent&&!1!==va.contentType||c.contentType)&&wb.setRequestHeader('Content-Type',va.contentType);wb.setRequestHeader('Accept',va.dataTypes[0]&&va.accepts[va.dataTypes[0]]?va.accepts[va.dataTypes[0]]+('*'!==va.dataTypes[0]?', '+rd+'; q=0.01':''):va.accepts['*']);for(r in va.headers)wb.setRequestHeader(r,va.headers[r]);if(va.beforeSend&&(!1===va.beforeSend.call(Ra,wb,va)||2===kc))return wb.abort();wc='abort';for(r in{success:1,error:1,complete:1})wb[r](va[r]);if(pa=pb(Vc,va,c,wb)){if(wb.readyState=
290
+ 1,Z&&Va.trigger('ajaxSend',[wb,va]),2===kc)return wb;va.async&&0<va.timeout&&(J=A.setTimeout(function(){wb.abort('timeout')},va.timeout));try{kc=1,pa.send(jc,g)}catch(Db){if(!(2>kc))throw Db;g(-1,Db)}}else g(-1,'No Transport');return wb},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,k,r,C){return b.isFunction(k)&&(C=C||r,r=k,k=void 0),b.ajax(b.extend({url:g,type:c,dataType:C,data:k,
291
291
  success:r},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)?
292
292
  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:
293
293
  qb(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,k=[],r=function(C,J){J=b.isFunction(J)?J():null==J?'':J;k[k.length]=encodeURIComponent(C)+'='+encodeURIComponent(J)};if(void 0===c&&(c=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(a)||a.jquery&&!b.isPlainObject(a))b.each(a,function(){r(this.name,this.value)});else for(g in a)Vb(g,
294
294
  a[g],c,r);return k.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||!X.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,
295
295
  '\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<La.documentMode?xb():/^(get|post|head|put|delete|options)$/i.test(this.type)&&xb()||nb()}:xb;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,
296
296
  k){var r,C=a.xhr(),J=++ae;if(C.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(r in a.xhrFields)C[r]=a.xhrFields[r];a.mimeType&&C.overrideMimeType&&C.overrideMimeType(a.mimeType);a.crossDomain||g['X-Requested-With']||(g['X-Requested-With']='XMLHttpRequest');for(r in g)void 0!==g[r]&&C.setRequestHeader(r,g[r]+'');C.send(a.hasContent&&a.data||null);c=function(Z,pa){if(c&&(pa||4===C.readyState))if(delete Tc[J],c=void 0,C.onreadystatechange=b.noop,pa)4!==C.readyState&&C.abort();else{var Ca=
297
- {};var ua=C.status;'string'==typeof C.responseText&&(Ca.text=C.responseText);try{var Ra=C.statusText}catch(Va){Ra=''}ua||!a.isLocal||a.crossDomain?1223===ua&&(ua=204):ua=Ca.text?200:404}Ca&&k(ua,Ra,Ca,C.getAllResponseHeaders())};a.async?4===C.readyState?A.setTimeout(c):C.onreadystatechange=Tc[J]=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/},
297
+ {};var va=C.status;'string'==typeof C.responseText&&(Ca.text=C.responseText);try{var Ra=C.statusText}catch(Va){Ra=''}va||!a.isLocal||a.crossDomain?1223===va&&(va=204):va=Ca.text?200:404}Ca&&k(va,Ra,Ca,C.getAllResponseHeaders())};a.async?4===C.readyState?A.setTimeout(c):C.onreadystatechange=Tc[J]=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/},
298
298
  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=La.head||b('head')[0]||La.documentElement;return{send:function(k,r){c=La.createElement('script');c.async=!0;a.scriptCharset&&(c.charset=a.scriptCharset);c.src=a.url;c.onload=c.onreadystatechange=function(C,J){(J||!c.readyState||/loaded|complete/.test(c.readyState))&&
299
299
  (c.onload=c.onreadystatechange=null,c.parentNode&&c.parentNode.removeChild(c),c=null,J||r(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 k,r,C,J=!1!==a.jsonp&&(gd.test(a.url)?'url':'string'==typeof a.data&&0===(a.contentType||'').indexOf('application/x-www-form-urlencoded')&&
300
300
  gd.test(a.data)&&'data');return J||'jsonp'===a.dataTypes[0]?(k=a.jsonpCallback=b.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,J?a[J]=a[J].replace(gd,'$1'+k):!1!==a.jsonp&&(a.url+=(ed.test(a.url)?'&':'?')+a.jsonp+'='+k),a.converters['script json']=function(){return C||b.error(k+' was not called'),C[0]},a.dataTypes[0]='json',r=A[k],A[k]=function(){C=arguments},g.always(function(){void 0===r?b(A).removeProp(k):A[k]=r;a[k]&&(a.jsonpCallback=c.jsonpCallback,td.push(k));C&&b.isFunction(r)&&
301
301
  r(C[0]);C=r=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||La;var k=ra.exec(a);g=!g&&[];return k?[c.createElement(k[1])]:(k=E([a],c,g),g&&g.length&&b(g).remove(),b.merge([],k.childNodes))};var ud=b.fn.load;b.fn.load=function(a,c,g){if('string'!=typeof a&&ud)return ud.apply(this,arguments);var k,r,C,J=this,Z=a.indexOf(' ');return-1<Z&&(k=b.trim(a.slice(Z,a.length)),a=a.slice(0,Z)),b.isFunction(c)?(g=c,c=void 0):c&&
302
302
  'object'==typeof c&&(r='POST'),0<J.length&&b.ajax({url:a,type:r||'GET',dataType:'html',data:c}).done(function(pa){C=arguments;J.html(k?b('<div>').append(b.parseHTML(pa)).find(k):pa)}).always(g&&function(pa,Ca){J.each(function(){g.apply(this,C||[pa.responseText,Ca,pa])})}),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===
303
- c.elem}).length};b.offset={setOffset:function(a,c,g){var k,r,C,J=b.css(a,'position'),Z=b(a),pa={};'static'===J&&(a.style.position='relative');var Ca=Z.offset();var ua=b.css(a,'top');var Ra=b.css(a,'left');('absolute'===J||'fixed'===J)&&-1<b.inArray('auto',[ua,Ra])?(k=Z.position(),C=k.top,r=k.left):(C=parseFloat(ua)||0,r=parseFloat(Ra)||0);b.isFunction(c)&&(c=c.call(a,g,b.extend({},Ca)));null!=c.top&&(pa.top=c.top-Ca.top+C);null!=c.left&&(pa.left=c.left-Ca.left+r);'using'in c?c.using.call(a,pa):Z.css(pa)}};
303
+ c.elem}).length};b.offset={setOffset:function(a,c,g){var k,r,C,J=b.css(a,'position'),Z=b(a),pa={};'static'===J&&(a.style.position='relative');var Ca=Z.offset();var va=b.css(a,'top');var Ra=b.css(a,'left');('absolute'===J||'fixed'===J)&&-1<b.inArray('auto',[va,Ra])?(k=Z.position(),C=k.top,r=k.left):(C=parseFloat(va)||0,r=parseFloat(Ra)||0);b.isFunction(c)&&(c=c.call(a,g,b.extend({},Ca)));null!=c.top&&(pa.top=c.top-Ca.top+C);null!=c.left&&(pa.left=c.left-Ca.left+r);'using'in c?c.using.call(a,pa):Z.css(pa)}};
304
304
  b.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(J){b.offset.setOffset(this,a,J)});var c,g,k={top:0,left:0},r=this[0],C=r&&r.ownerDocument;if(C)return c=C.documentElement,b.contains(c,r)?('undefined'!=typeof r.getBoundingClientRect&&(k=r.getBoundingClientRect()),g=yb(C),{top:k.top+(g.pageYOffset||c.scrollTop)-(c.clientTop||0),left:k.left+(g.pageXOffset||c.scrollLeft)-(c.clientLeft||0)}):k},position:function(){if(this[0]){var a,c,g={top:0,left:0},k=this[0];
305
305
  return'fixed'===b.css(k,'position')?c=k.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(k,'marginTop',!0),left:c.left-g.left-b.css(k,'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',
306
306
  scrollTop:'pageYOffset'},function(a,c){var g=/Y/.test(c);b.fn[a]=function(k){return fa(this,function(r,C,J){var Z=yb(r);return void 0===J?Z?c in Z?Z[c]:Z.document.documentElement[C]:r[C]:void(Z?Z.scrollTo(g?b(Z).scrollLeft():J,g?J:b(Z).scrollTop()):r[C]=J)},a,k,arguments.length,null)}});b.each(['top','left'],function(a,c){b.cssHooks[c]=ia(e.pixelPosition,function(g,k){return k?(k=sc(g,c),mc.test(k)?b(g).position()[c]+'px':k):void 0})});b.each({Height:'height',Width:'width'},function(a,c){b.each({padding:'inner'+
307
- a,content:c,'':'outer'+a},function(g,k){b.fn[k]=function(r,C){var J=arguments.length&&(g||'boolean'!=typeof r),Z=g||(!0===r||!0===C?'margin':'border');return fa(this,function(pa,Ca,ua){var Ra;return b.isWindow(pa)?pa.document.documentElement['client'+a]:9===pa.nodeType?(Ra=pa.documentElement,Math.max(pa.body['scroll'+a],Ra['scroll'+a],pa.body['offset'+a],Ra['offset'+a],Ra['client'+a])):void 0===ua?b.css(pa,Ca,Z):b.style(pa,Ca,ua,Z)},c,J?r:void 0,J,null)}})});b.fn.extend({bind:function(a,c,g){return this.on(a,
307
+ a,content:c,'':'outer'+a},function(g,k){b.fn[k]=function(r,C){var J=arguments.length&&(g||'boolean'!=typeof r),Z=g||(!0===r||!0===C?'margin':'border');return fa(this,function(pa,Ca,va){var Ra;return b.isWindow(pa)?pa.document.documentElement['client'+a]:9===pa.nodeType?(Ra=pa.documentElement,Math.max(pa.body['scroll'+a],Ra['scroll'+a],pa.body['offset'+a],Ra['offset'+a],Ra['client'+a])):void 0===va?b.css(pa,Ca,Z):b.style(pa,Ca,va,Z)},c,J?r:void 0,J,null)}})});b.fn.extend({bind:function(a,c,g){return this.on(a,
308
308
  null,c,g)},unbind:function(a,c){return this.off(a,null,c)},delegate:function(a,c,g,k){return this.on(c,a,g,k)},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},R||(A.jQuery=A.$=b),b});
309
309
  if('undefined'!==typeof module&&module.exports)var lib=require('../../index');
310
310
  function Collection(A,R){var V='undefined'!==typeof module&&module.exports?!1:!0,ka=V?require('vendor/uuid'):require('uuid'),S=V?require('lib/merge'):require('../../../lib/merge'),N={isCaseSensitive:{false:{re:'^%s$',modifiers:'i'},true:{re:'^%s$'}}},ha=!1,Q=!1,T=null;V={useLocalStorage:!1,locale:'en',searchOptionRules:N};R='object'==typeof R?S(R,V):V;var v=['not null'],I=function(B){try{return eval(B)}catch(E){throw Error('Could not evaluate condition `'+B+'`.\n'+E.stack);}};if('undefined'==typeof A||
311
- ''==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 x=[],ya=V=0,va=A.length;ya<va;++ya)A[ya]||(A[ya]={}),A[ya]._uuid=ka.v4(),x[V]=A[ya]._uuid,++V;var P=A;P.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,E=arguments.length;if(1==
311
+ ''==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 x=[],xa=V=0,ua=A.length;xa<ua;++xa)A[xa]||(A[xa]={}),A[xa]._uuid=ka.v4(),x[V]=A[xa]._uuid,++V;var P=A;P.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,E=arguments.length;if(1==
312
312
  arguments.length){if('object'!=typeof arguments[0])throw Error('searchOption must be an object');for(var n in arguments[0])if('undefined'==typeof N[n])throw Error(arguments[1]+' is not an allowed searchOption !');T=arguments[0]}else for(T||={};B<E;++B){if('undefined'==typeof N[arguments[1]])throw Error(arguments[1]+' is not an allowed searchOption !');'undefined'==typeof T[arguments[0]]&&(T[arguments[0]]={});/true|false/i.test(arguments[2])?T[arguments[0]][arguments[1]]=/true/i.test(arguments[2])?
313
313
  !0:!1:T[arguments[0]][arguments[1]]=arguments[2]}return P};P.find=function(){ha=!1;'boolean'==typeof arguments[arguments.length-1]&&(ha=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);var B=null,E=null,n=null;try{B=JSON.stringify(arguments),E=JSON.parse(B),n=E.count()}catch(na){throw Error('filter must be an object\n'+na.stack);}if('undefined'!=typeof E&&0<n){1<n&&(ha=!0);n=B=null;var y=0,z=Array.isArray(this)?this:JSON.clone(A),F=[],w='',u=null,G=T,M=R.searchOptionRules,
314
314
  U=null,qa=[],Ea=function(na,sa,Da,Qa,Ja){if(null===na&&null===Da)++Qa;else if(na&&-1<v.indexOf(w)&&'not null'==w&&'undefined'!=typeof Da&&'object'!==typeof Da&&'null'!=Da&&'undefined'!=Da)0>F.indexOf(Da)&&++Qa;else if('undefined'!=typeof Da&&'object'!==typeof Da&&/(<|>|=)/.test(na)&&!/undefined|function/.test(typeof Da))sa=na,Ja=Da+na,'string'==typeof na&&'string'==typeof Da&&(Ja=na.replace(/^(<=|>=|!==|!=|===|!==)/g,''),'string'!=typeof Da||/^"(.*)"$/.test(Ja)||(na=na.replace(Ja,'"'+Ja+'"')),Ja=
@@ -340,14 +340,14 @@ function FormValidatorUtil(A,R,V,ka){var S='undefined'!==typeof module&&module.e
340
340
  '%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',
341
341
  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',
342
342
  query:'Must be a valid response',isApiError:'Condition not satisfied'}},v=null;if(A)v=N(JSON.clone(A),v),T.data=N(JSON.clone(A),T.data);else throw Error('missing data param');var I=function(n,y){var z=null;for(let F in ka)if(ka[F].name===y){z=(new DOMParser).parseFromString(n.innerHTML,'text/html').getElementById(ka[F].id);break}if(z)return z;throw Error('Field `'+y+'` not found in fieldsSet');},x=function(n){var y;var z='';var F=n.length;for(y=0;y<F;){var w=n[y++];switch(w>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:z+=
343
- String.fromCharCode(w);break;case 12:case 13:var u=n[y++];z+=String.fromCharCode((w&31)<<6|u&63);break;case 14:u=n[y++];var G=n[y++];z+=String.fromCharCode((w&15)<<12|(u&63)<<6|(G&63)<<0)}}return z},ya=function(n,y){y=n.match(/\{\{([^{{}}]+)\}\}/g);for(let z=0,F=y.length;z<F;z++){let w=y[z].replace(/\[/g,'["').replace(/\]/g,'"]').replace(/\{|\}/g,'').trim();try{w=eval('data.'+w).replace(/^"|"$/g,''),n=n.replace(new RegExp(y[z].replace(/\{|\[|\]|\}/g,'\\$&'),'g'),w)}catch(u){}}return n},va=function(n,
343
+ String.fromCharCode(w);break;case 12:case 13:var u=n[y++];z+=String.fromCharCode((w&31)<<6|u&63);break;case 14:u=n[y++];var G=n[y++];z+=String.fromCharCode((w&15)<<12|(u&63)<<6|(G&63)<<0)}}return z},xa=function(n,y){y=n.match(/\{\{([^{{}}]+)\}\}/g);for(let z=0,F=y.length;z<F;z++){let w=y[z].replace(/\[/g,'["').replace(/\]/g,'"]').replace(/\{|\}/g,'').trim();try{w=eval('data.'+w).replace(/^"|"$/g,''),n=n.replace(new RegExp(y[z].replace(/\{|\[|\]|\}/g,'\\$&'),'g'),w)}catch(u){}}return n},ua=function(n,
344
344
  y){var z=v[this.name].errors||{},F=this.target.id||this.target.getAttribute('id');if(v.isValid()){var w=this.target.dataset.ginaFormValidatorTestedValue;console.debug('[ '+this.name+' ]','TESTED VALUE -> '+this.value+' vs '+w);F='asyncCompleted.'+F;var u=this.target.form.getAttribute('id'),G='undefined'!=typeof gina.validator&&'undefined'!=typeof gina.validator.$forms[u]&&'undefined'!=typeof gina.validator.$forms[u].cachedErrors?gina.validator.$forms[u].cachedErrors:null;if(!w||'undefined'==typeof w||
345
345
  w!==this.value)this.target.dataset.ginaFormValidatorTestedValue=this.value,G&&'undefined'!=typeof G[this.name]&&'undefined'!=typeof G[this.name].query&&(delete G[this.name].query,'undefined'!=typeof gina.validator.$forms[u]&&'undefined'!=typeof gina.validator.$forms[u].errors&&delete gina.validator.$forms[u].errors.query);else if(w===this.value){var M=!1;G&&'undefined'!=typeof G[this.name]&&'undefined'!=typeof G[this.name].query&&'undefined'!=typeof G[this.name].query[this.value]&&(this.error=y=G[this.name].query[this.value].slice(0),
346
346
  M=!0);z.query=E(this.error||y||T.errorLabels.query,this);console.debug('[2] potential cached error detected !! ',M,G,' vs ',z.query);M&&(this.errors=z,this.valid=!1);'undefined'!=typeof gina.events[F]&&triggerEvent(gina,this.target,F,v[this.name]);return v[this.name]}var U=null,qa=this;if(window.XMLHttpRequest)U=new XMLHttpRequest;else if(window.ActiveXObject)try{U=new ActiveXObject('Msxml2.XMLHTTP')}catch(za){try{U=new ActiveXObject('Microsoft.XMLHTTP')}catch(na){}}y={isSynchrone:!1,headers:{}};
347
347
  w=n.data||null;z=null;F=/^true$/i.test(this.target.form.dataset.ginaFormLiveCheckEnabled)?!0:!1;z=JSON.stringify(w);if(/\$/.test(z)){w=z.match(/\$[-_\[\]a-z 0-9]+/g)||[];u=G=null;for(let za=0,na=w.length;za<na;za++)u=w[za].replace(/\$/g,''),re=new RegExp('\\'+w[za].replace(/\[|\]/g,'\\$&'),'g'),G=T.data[u]||null,!G&&F&&(G=I(this.target.form,u).value),z=z.replace(re,G)}w=z.replace(/\\"/g,'');var Ea='undefined'==typeof n.validIf?!0:n.validIf;y=N(y,n,V);delete y.data;delete y.validIf;z=y.headers['Content-Type'];
348
348
  var W=null;F=this.target.getAttribute('id');if(!/^http/.test(y.url)&&/@/.test(y.url))try{M=ha.getRoute(y.url),y.url=M.toUrl()}catch(za){throw za;}if(y.withCredentials){if('withCredentials'in U)y.isSynchrone?U.open(y.method,y.url,y.isSynchrone):U.open(y.method,y.url);else if('undefined'!=typeof XDomainRequest)U=new XDomainRequest,U.open(y.method,y.url);else throw U=null,W='CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ',Error(W);U.responseType='undefined'!=
349
349
  typeof y.responseType?y.responseType:'';U.withCredentials=!0}else y.isSynchrone?U.open(y.method,y.url,y.isSynchrone):U.open(y.method,y.url);for(var ia in y.headers)'Content-Type'==ia&&'undefined'!=typeof z&&null!=z&&''!=z||U.setRequestHeader(ia,y.headers[ia]);'undefined'!=typeof z&&null!=z&&''!=z&&U.setRequestHeader('Content-Type',z);var ea=function(za){qa.value=T.data[qa.name]=qa.value?qa.value.toLowerCase():qa.value;var na=za.isValid||!1;na=Ea!=na?!1:!0;v[qa.name].valid=na;var sa=v[qa.name].errors||
350
- {},Da='undefined'!=typeof za.error&&'undefined'!=typeof za.fields?za.fields:{};if(0<Da.count()&&!na||!na){if(!na){var Qa=null;'undefined'!=typeof Da[qa.name]?T.errorLabels.query=ya(Da[qa.name],n.data):'undefined'!=typeof za.error&&/^5/.test(za.status)&&(Qa=za.error);var Ja='undefined'!=typeof n.error?n.error:null;sa.query=E(Qa||qa.error||Ja||T.errorLabels.query,qa);console.debug('[1] query error detected !! ',za,Da,sa.query)}sa.query||''!=qa.value||(na=!0)}na&&'undefined'!=typeof sa.query&&delete sa.query;
350
+ {},Da='undefined'!=typeof za.error&&'undefined'!=typeof za.fields?za.fields:{};if(0<Da.count()&&!na||!na){if(!na){var Qa=null;'undefined'!=typeof Da[qa.name]?T.errorLabels.query=xa(Da[qa.name],n.data):'undefined'!=typeof za.error&&/^5/.test(za.status)&&(Qa=za.error);var Ja='undefined'!=typeof n.error?n.error:null;sa.query=E(Qa||qa.error||Ja||T.errorLabels.query,qa);console.debug('[1] query error detected !! ',za,Da,sa.query)}sa.query||''!=qa.value||(na=!0)}na&&'undefined'!=typeof sa.query&&delete sa.query;
351
351
  qa.valid=na;za=gina.validator.$forms[qa.target.form.getAttribute('id')].cachedErrors||{};0<sa.count()?(qa.errors=sa,'undefined'==typeof v[qa.name].errors&&(v[qa.name].errors={}),v[qa.name].errors=N(v[qa.name].errors,sa),'undefined'!=typeof sa.query&&sa.query&&('undefined'==typeof za[qa.name]&&(za[qa.name]={}),'undefined'==typeof za[qa.name].query&&(za[qa.name].query={}),za[qa.name].query[qa.value]=sa.query.slice(0)),sa=qa.target.getAttribute('data-gina-form-errors'),/query/.test(sa)||qa.target.setAttribute('data-gina-form-errors',
352
352
  sa&&''!=sa?sa+' query':'query')):'undefined'!=typeof za[qa.name]&&'undefined'!=typeof za[qa.name].query&&'undefined'!=typeof za[qa.name].query[qa.value]&&delete za[qa.name].query[qa.value];sa=qa.target.id||qa.target.getAttribute('id');console.debug('prematurely completed event `asyncCompleted.'+sa+'`');return triggerEvent(gina,qa.target,'asyncCompleted.'+sa,v[qa.name])};U&&(U.onerror=function(za,na){console.debug('query error [2] detected !! ',na,'Transaction error: might be due to the server CORS settings.\nPlease, check the console for more details.');
353
353
  isOnException=!0;za=this.getResponseHeader('Content-Type');if(/\/json/.test(za))za=JSON.parse(this.responseText),'undefined'==typeof za.status&&(za.status=this.status);else if(za={status:U.status,message:''},/^(\{|\[)/.test(U.responseText))try{za=N(za,JSON.parse(U.responseText))}catch(sa){za=N(za,sa)}return ea(za)},U.onload=function(){try{W=this.responseText;var za=this.getResponseHeader('Content-Type');if(/\/json/.test(za))W=JSON.parse(this.responseText),'undefined'==typeof W.status&&(W.status=this.status);
@@ -356,7 +356,7 @@ getConfig(U,'app');try{w.bundle!==M&&(u=getConfig(U,'app').proxy[M])}catch(ea){t
356
356
  Ea.host,n.port=Ea.port[Ea.server.protocol][Ea.server.scheme],n.protocol=Ea.server.protocol,n.rejectUnauthorized=!1),u={ca:n.ca,hostname:n.hostname,port:n.port,path:n.path},'undefined'!=typeof n.protocol&&(u.protocol=n.protocol),'undefined'!=typeof n.rejectUnauthorized&&(u.rejectUnauthorized=n.rejectUnauthorized));G={method:qa.method,requirements:qa.requirements,namespace:qa.namespace||void 0,url:decodeURI(qa.url),rule:G+'@'+M,param:JSON.clone(qa.param),middleware:JSON.clone(qa.middleware),bundle:qa.bundle,
357
357
  isXMLRequest:y.isXMLRequest,isWithCredentials:y.isWithCredentials};M=G.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=N(M,G);Ea=JSON.clone(Ea);M.conf=Ea;M.conf.content.routing[M.rule].param=G.param;M.template&&'undefined'==typeof M.template.ginaLoader&&(M.template.ginaLoader=M.conf.content.templates._common.ginaLoader);M.conf.content.routing[M.rule].param=G.param;delete M.middleware;
358
358
  delete M.param;delete M.requirements;Ea=new (require(_(GINA_FRAMEWORK_DIR+'/core/controller/controller.js'),!0))(M);Ea.name=qa.param.control;Ea.setOptions(y,z,F,M);y='object'==typeof n.data&&0<n.data.count()?n.data:{};if(/^get|delete|put$/i.test(n.method)){z=0;for(let ea in y)'object'==typeof y[ea]&&encodeRFC5987ValueChars(JSON.stringify(y[ea])),z++}u.method=n.method;u.path=qa.url;n=require('util').promisify;var W={isValid:!1},ia=!1;await n(Ea.query)(u,y).then(function(ea){W=ea}).catch(function(ea){ia=
359
- ea});ia&&(console.error(ia),W.error=ia);return W},K=null;K=S?va:P;var B=function(n,y){var z=null,F=null;'undefined'==typeof v[n]&&'undefined'!=typeof y&&(v[n]=z=y);if('object'==typeof v[n])try{z=JSON.parse(JSON.stringify(v[n]))}catch(w){z=v[n]}else z=v[n];F='';S&&'undefined'!=typeof R&&(F=R[n].getAttribute('data-gina-form-field-label')||'');v[n]={target:S&&'undefined'!=typeof R?R[n]:null,name:n,value:z,valid:!1,label:F,exclude:!1};v[n].is=function(w,u,G){var M=!1,U='undefined'!=typeof window&&'undefined'!=
359
+ ea});ia&&(console.error(ia),W.error=ia);return W},K=null;K=S?ua:P;var B=function(n,y){var z=null,F=null;'undefined'==typeof v[n]&&'undefined'!=typeof y&&(v[n]=z=y);if('object'==typeof v[n])try{z=JSON.parse(JSON.stringify(v[n]))}catch(w){z=v[n]}else z=v[n];F='';S&&'undefined'!=typeof R&&(F=R[n].getAttribute('data-gina-form-field-label')||'');v[n]={target:S&&'undefined'!=typeof R?R[n]:null,name:n,value:z,valid:!1,label:F,exclude:!1};v[n].is=function(w,u,G){var M=!1,U='undefined'!=typeof window&&'undefined'!=
360
360
  typeof window._currentValidatorAlias?window._currentValidatorAlias:'is';'undefined'!=typeof window&&window._currentValidatorAlias&&delete window._currentValidatorAlias;var qa=v[this.name].errors||{};T.data[this.name]=v[this.name].value;'undefined'==typeof qa.isRequired&&''==this.value&&!/^false$/i.test(this.value)&&0!=this.value||!qa.isRequired&&''==this.value&&!/^false$/i.test(this.value)&&0!=this.value?M=!0:qa.isRequired||'string'!=typeof this.value||''!=this.value||(M=!0);if(!M&&/^(true|false)$/i.test(w))M=
361
361
  w;else if(!M){var Ea=null,W=null;if(/[!=>><a-z 0-9]+/i.test(w)){if((W=w.match(/\${0}[-_,.\[\]a-z0-9]+/ig))&&0<W.length){for(var ia=0,ea=W.length;ia<ea;++ia)'undefined'!=typeof v[W[ia]]&&W[ia]&&(Ea=new RegExp('\\$'+W[ia]+'(?!\\S+)','g'),w=''==v[W[ia]].value?w.replace(Ea,'""'):'string'==typeof v[W[ia]].value?w.replace(Ea,'"'+v[W[ia]].value+'"'):w.replace(Ea,v[W[ia]].value));try{w=w.replace(/(\(|\)|return)/g,''),M=/^\//.test(w)?eval(w+'.test("'+this.value+'")'):eval(w)}catch(za){throw Error(za.stack||
362
362
  za.message);}}}else if(w instanceof RegExp)M=w.test(this.value)?!0:!1;else if('boolean'==typeof w)M=w?!0:!1;else try{/\/(.*)\//.test(w)?(Ea=w.match(/\/(.*)\//).pop(),W=w.replace('/'+Ea+'/',''),M=(new RegExp(Ea,W)).test(this.value)):M=eval(w)}catch(za){throw Error(za.stack||za.message);}}M?M&&'undefined'!=typeof qa[U]&&delete qa[U]:(qa[U]=E(this.error||u||T.errorLabels[U],this),'undefined'!=typeof G&&(qa.stack=G));this.valid=M;0<qa.count()&&(this.errors=qa);return v[this.name]};v[n].set=function(w){this.value=
@@ -383,45 +383,46 @@ y+')\n//# sourceURL='+w+'.js')}catch(w){throw Error('[UserFormValidator] Could n
383
383
  v.toData=function(){if(0<T.excluded.length)for(var n=0,y=T.excluded.length;n<y;++n)'undefined'!=typeof T.data[T.excluded[n]]&&delete T.data[T.excluded[n]];return T.data};var E=function(n,y){var z=n.match(/%[a-z]+/gi);if(z)for(var F=0,w=z.length;F<w;++F)n=n.replace(new RegExp(z[F],'g'),y[T.keys[z[F]]]);return n};v.setErrorLabels=function(n){'undefined'!=typeof n&&(T.errorLabels=N(n,T.errorLabels))};return v}
384
384
  'undefined'!==typeof module&&module.exports?module.exports=FormValidatorUtil:'function'===typeof define&&define.amd&&define('lib/form-validator',[],function(){return FormValidatorUtil});
385
385
  function Routing(){var A='undefined'!==typeof module&&module.exports?!1:!0,R={allowedMethods:['get','post','put','delete'],reservedParams:['controle','file','title','namespace','path'],notFound:{}};R.allowedMethodsString=R.allowedMethods.join(',');var V=null,ka=null,S=null;A?(ka&&'function'==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')||
386
- getContext('gina').plugins,S=V.Validator);R.getUrlProps=function(v,I){var x={};if(A){var ya=window.gina.config;x.hostname=ya.hostname;'undefined'!=typeof v&&(v=this.getRoute('webroot@'+v),x.hostname=v.hostname,x.host=v.host,x.webroot=v.webroot)}else ya=getContext('gina').config,'undefined'!=typeof getContext('argvFilename')&&(ya.getRouting=getContext('gina').Config.instance.getRouting),'undefined'==typeof v&&(v=ya.bundle),'undefined'==typeof I&&(I=ya.env),x.hostname=ya.envConf[v][I].hostname,x.host=
387
- ya.envConf[v][I].host,x.webroot=ya.envConf[v][I].server.webroot;return x};R.compareUrls=async function(v,I,x,ya,va){'undefined'==typeof x&&(x={routing:{}});if(/,/.test(I)){var P=0;I=I.split(/,/g);for(var K=I.length,B={past:!1,request:x};P<K&&!B.past;)B=await N(v,I[P],x,ya,va),++P;return B}return await N(v,I,x,ya,va)};var N=async function(v,I,x,ya,va){var P=null;try{P=v.url.split(/\//)}catch(U){console.warn(U),P=['']}I=I.split(/\//);var K=0,B=0,E=I.length,n=0,y={},z=0,F=x.method.toLowerCase(),w='get';
388
- try{w=v.method.toLowerCase()}catch(U){}var u=!1;if('undefined'!=typeof v.requirements&&/get|delete/i.test(F)&&'undefined'!=typeof x[F]||'undefined'!=typeof v.requirements&&/get/i.test(F)&&/delete/i.test(w)){/get/i.test(F)&&/delete/i.test(w)&&(F=w);if(/^(delete)$/i.test(F)&&P.length===I.length){'undefined'==typeof x[F]&&(x[F]={});for(let U=0,qa=I.length;U<qa;U++)if(P[U]===I[U])++n;else if(w=I[U].substring(1),'undefined'!=typeof v.requirements[w]){w=v.requirements[w];if(/^\//.test(w))w=w.substring(1,
389
- w.lastIndexOf('/')-1);else if(/^validator::/.test(w)&&await ha(I[U],P[U],v,x,ya,va)){++n;continue}/^:/.test(I[U])&&'undefined'!=typeof w&&(new RegExp(w)).test(P[U])&&(++n,x[F][I[U].substring(1)]=P[U])}u=!0}for(var G in x[F])'undefined'!=typeof v.requirements[G]&&0>I.indexOf(':'+G)&&(I[B]=':'+G,++B,P[K]=x[F][G],++K,u||P.length!==I.length||++E)}if(!u&&P.length===I.length)for(;z<E;++z)P[z]===I[z]?++n:n==z&&/:/.test(I[z])&&await ha(I[z],P[z],v,x,ya,va)&&++n;if('undefined'!=typeof v.requirements&&F==v.method.toLowerCase()&&
390
- !u&&n>=E)for(G=Object.getOwnPropertyNames(v.requirements),K=0,I.join(',').match(/:[-_a-z0-9]+/g);K<G.length;){B=G[K];if('undefined'==typeof v.param[B]&&/^validator::/i.test(v.requirements[B])){if(I.length!=P.length)break;var M=I.join(',').match(/:[-_a-z0-9]+/g);let U=v.requirements[B];z={};w={};u={};try{w=JSON.parse(U.split(/::/).splice(1)[0].replace(/([^:"\s+](\w+)):/g,'"$1":').replace(/([^:"\s+](\w+))\s+:/g,'"$1":'))}catch(qa){throw qa;}if('undefined'!=typeof w.query&&'undefined'!=typeof w.query.data){z=
391
- w.query.data;for(let qa in z)0>M.indexOf(z[qa])&&delete z[qa];for(let qa=0,Ea=I.length;qa<Ea;qa++)/^:/.test(I[qa])&&(M=I[qa].replace(/^:/,''),''!=M&&'undefined'!=typeof P[qa]&&(z[M]=P[qa],'undefined'==typeof x.params[M]&&(x.params[M]=P[qa])))}z=ka(z,JSON.clone(x[F])||{});'undefined'==typeof z[B]&&(z[B]=null);u[B]=w;_validator=A?new S(z):new S('routing',z,null,u);if(0==w.count()){console.error('Route validation failed '+v.rule);--n;K++;continue}for(let qa in w)if('undefined'!=typeof w[qa].data&&(w[qa].data=
392
- z),u=Array.isArray(w[qa])?await _validator[B][qa].apply(_validator[B],w[qa]):await _validator[B][qa](w[qa],x,ya,va),!u.isValid&&(--n,'undefined'!=typeof u.error))throw u.error;}K++}y.past=n===E?!0:!1;y.past&&(x.routing=T(v,x[F]),y.request=x);return y},ha=async function(v,I,x,ya,va,P){var K=-1,B=v.match(/:\w+/g);K=new RegExp(v,'g');var E=null,n=null,y=null;E=!1;var z=E=n=n=null,F=null,w=ya.method.toLowerCase();if(!B.length)return!1;x.param.path&&K.test(x.param.path)&&(x.param.path=x.param.path.replace(K,
393
- I));x.param.namespace&&K.test(x.param.namespace)&&(x.param.namespace=x.param.namespace.replace(K,I));'undefined'!=typeof x.param.file&&/:/.test(x.param.file)&&(E=new RegExp('(:'+v+'/|:'+v+'$)','g'),Q.variable=I,x.param.file=x.param.file.replace(E,Q),E=null);x.param.title&&K.test(x.param.title)&&(x.param.title=x.param.title.replace(K,I));if(1==B.length){E=new RegExp(B[0]);K=-1<B.indexOf(v)?B.indexOf(v):!1;!1===K&&v.match(E)&&(K=0);if(!1===K)return K;if(x.method.toLowerCase()!==w)return!1;'undefined'==
394
- typeof ya[w]&&(ya[w]={});y=B[K].substring(1);K=x.requirements[y];if(/^\//.test(K))E=K.match(/\/(.*)\//).pop(),n=K.replace('/'+E+'/',''),E=(new RegExp(E,n)).test(I);else if(/^validator::/.test(K)&&I){n={};E={};z={};F='';v.replace(new RegExp('[^'+y+']','g'),function(qa){F+=qa});n[y]=I.replace(new RegExp(F,'g'),'');try{E=JSON.parse(K.split(/::/).splice(1)[0].replace(/([^:"\s+](\w+)):/g,'"$1":').replace(/([^:"\s+](\w+))\s+:/g,'"$1":'))}catch(qa){throw qa;}'undefined'!=typeof E.query&&'undefined'!=typeof E.query.data&&
395
- v==E.query.data[Object.keys(E.query.data)[0]]&&(E.query.data[Object.keys(E.query.data)[0]]=n[y],ya.params[y]=n[y]);z[y]=E;n=new S('routing',n,null,z);if(0==E.count())return console.error('Route validation failed '+x.rule),!1;for(var u in E)Array.isArray(E[u])?await n[y][u].apply(n[y],E[u]):await n[y][u](E[u],ya,va,P);E=n.isValid()}else E=(new RegExp(x.requirements[y])).test(I);if('undefined'!=typeof x.param[y]&&'undefined'!=typeof x.requirements&&'undefined'!=typeof x.requirements[y]&&'undefined'!=
396
- typeof ya.params&&E)return ya.params[y]=I,'undefined'==typeof ya[w][y]&&(ya[w][y]=I),!0}else{va=x.url;P=ya.url;w={};z='';var G=!1,M=0;u=0;for(var U=P.length;u<U;++u)if(P.charAt(u)!=va.charAt(M)||G){if(''==z)G=!0,z+=P.charAt(u);else if(u>va.indexOf(B[0])+B[0].length){K=x.requirements[B[0]];I=z.substring(0,z.length);if(/^\//.test(K))E=K.match(/\/(.*)\//).pop(),n=K.replace('/'+E+'/',''),E=(new RegExp(E,n)).test(I);else if(/^validator::/.test(K)){n={};E={};z={};F='';v.replace(new RegExp('[^'+y[0]+']',
397
- 'g'),function(qa){F+=qa});n[y[0]]=I.replace(new RegExp(F,'g'),'');E=JSON.parse(K.split(/::/).splice(1)[0].replace(/([^\W+ true false])+(\w+)/g,'"$&"'));z[y[0]]=E;n=new S('routing',n,null,z);for(let qa in E)if(Array.isArray(E[qa]))n[y[0]][qa].apply(n[y[0]],E[qa]);else n[y[0]][qa](E[qa]);E=n.isValid()}else E=(new RegExp(x.requirements[y[0]])).test(I);if(E)w[B[0].substring(1)]=I;else return!1;z='';G=!1;M=va.indexOf(B[0])+B[0].length;--u;B.splice(0,1)}else z+=P.charAt(u),++M;if(u==U-1)if(K=x.requirements[B[0]],
398
- I=z.substring(0,z.length),/^\//.test(K)?(E=K.match(/\/(.*)\//).pop(),n=K.replace('/'+E+'/',''),E=(new RegExp(E,n)).test(I)):E=(new RegExp(x.requirements[y])).test(I),E)w[B[0].substring(1)]=I;else return!1}else++M;if(w.count()==B.length){y=null;for(y in w)ya.params[y]=w[y];return!0}}return!1},Q=function(v){return/\/$/.test(v)?Q.variable+'/':Q.variable},T=function(v,I){var x=null,ya,va=v.url,P=null;for(P in v.param)if(('undefined'==typeof I||'undefined'!=typeof I[P])&&/^:/.test(v.param[P])){var K=v.param[P].substring(1);
399
- if('undefined'!=typeof I&&'undefined'!=typeof I[K]){var B=new RegExp('(:'+K+'/|:'+K+'$)','g');'undefined'!=typeof v.param.path&&/:/.test(v.param.path)&&(v.param.path=v.param.path.replace(B,I[K]));'undefined'!=typeof v.param.title&&/:/.test(v.param.title)&&(v.param.title=v.param.title.replace(B,I[K]));'undefined'!=typeof v.param.namespace&&/:/.test(v.param.namespace)&&(v.param.namespace=v.param.namespace.replace(B,I[K]));'undefined'!=typeof v.param.file&&/:/.test(v.param.file)&&(Q.variable=I[K],v.param.file=
400
- v.param.file.replace(B,Q));if(/,/.test(v.url)){x=v.url.split(/,/g);var E=0;for(ya=x.length;E<ya;++E)Q.variable=I[K],x[E]=x[E].replace(B,Q);v.url=x.join(',')}else Q.variable=I[K],v.url=v.url.replace(B,Q)}}if(x){E=0;ya=x.length;va=va.split(/,/g);var n=0;for(v.urlIndex=0;E<ya;++E)if(x=0,B=va[0].match(/:[-_a-z0-9]+/ig)){P=0;for(K=B.length;P<K;P++){var y=B[P].substring(1);'undefined'!=typeof I[y]&&I[y]&&x++}x>n&&(n=x,v.urlIndex=E)}}return v};R.getRoute=function(v,I,x){var ya=null,va=!1;A?(window.location.port||
401
- window.location.hostname!=window.gina.config.hostname.replace(/^(https|http|wss|ws):\/\//,'').replace(/:\d+$/,'')||(va=!0,window.gina.config.hostname=window.gina.config.hostname.replace(/^(https|http|wss|ws):\/\//,'').replace(/:\d+$/,'')),ya=window.gina.config):(ya=getContext('gina').config,'undefined'!=typeof getContext('argvFilename')&&(ya.getRouting=getContext('gina').Config.instance.getRouting),va=getContext('isProxyHost'));var P=ya.env||GINA_ENV,K=null,B=ya.bundle;/@/.test(v)||'undefined'==typeof B||
402
- null==B||(v=v.toLowerCase(),v+='@'+B);if(/@/.test(v)){var E=v.replace(/(.*):\/\//,'').split(/@/);B=E[1];/\/(.*)$/.test(v)&&(K=v.replace(/(.*):\/\//,'').split(/\/(.*)$/)[1],B=B.replace(/\/(.*)$/,''),P=K||P);v=E[0].toLowerCase()+'@'+B}B=ya.getRouting(B,P);if('undefined'==typeof B[v])throw Error('[ RoutingHelper::getRouting(rule, params) ] : `'+v+'` not found !');K=JSON.clone(B[v]);E=null;K=T(K,I);(K.isProxyHost=va)?(K.proxy_hostname=A?window.location.protocol+'//'+document.location.hostname:process.gina.PROXY_HOSTNAME||
403
- ya.envConf._proxyHostname,K.proxy_host=K.proxy_hostname.replace(/^(https|http):\/\//,'')):A||'undefined'==typeof process.gina.PROXY_HOSTNAME||(K.proxy_hostname=process.gina.PROXY_HOSTNAME,K.proxy_host=K.proxy_hostname.replace(/^(https|http):\/\//,''));/,/.test(K.url)&&('undefined'!=typeof K.urlIndex&&(x=K.urlIndex,delete K.urlIndex),x='undefined'!=typeof x?x:0,K.url=K.url.split(/,/g)[x]);/\/$/.test(K.url)&&'/'!=K.url&&(K.url=K.url.substring(0,K.url.length-1));if(/GET/i.test(K.method)&&'undefined'!=
404
- typeof I){x='?';ya=B[v].url;va=[];B=0;for(let n in K.param)-1<R.reservedParams.indexOf(n)||(new RegExp(K.param[n])).test(ya)||'undefined'==typeof I[n]||(x+=n+'='+encodeRFC5987ValueChars(I[n])+'&',va[B]=I[n],++B);for(let n in I)-1<R.reservedParams.indexOf(n)||'undefined'!=typeof K.requirements[n]||-1<va.indexOf(n)||(x='object'==typeof I[n]?x+(n+'='+encodeRFC5987ValueChars(JSON.stringify(I[n]))+'&'):x+(n+'='+I[n]+'&'));B=va=ya=null;1<x.length&&(x=x.substring(0,x.length-1),K.url+=x);x=null}K.toUrl=function(n){var y=
405
- null;/^redirect$/i.test(this.param.control)&&(y=R.getUrlProps(this.bundle,P||GINA_ENV));var z=this.webroot||y.webroot;y=''+this.hostname||''+y.hostname;var F=''+this.url;this.isProxyHost&&(y=''+this.proxy_hostname);this.url='undefined'!=typeof n&&/^true$/i.test(n)?F.replace(new RegExp('^'+z),'/'):F.replace(new RegExp('^('+z+'|/$)'),z);return y+this.url};K.request=function(n,y){var z=null,F=null;'function'==typeof arguments[arguments.length-1]&&(z=arguments[arguments.length-1]);'object'==typeof arguments[2]&&
406
- (F=arguments[2]);var w=this.webroot||F.webroot,u=this.hostname||F.hostname;F='undefined'!=typeof n&&1==n?path.replace(w,'/'):this.url||F.url;/^\//.test(F)&&(F=u+F);u=/^https/.test(u)?'https':'http';A?window.open(F,'undefined'!=typeof y&&'undefined'!=typeof y.target?y.target:'_self'):('undefined'==typeof y.agent&&(y.agent=!1),u=require(''+u),w=function(G){var M='',U=!1;G.on('data',function(qa){M+=qa});G.on('error',function(qa){U='Failed to get mail content';qa&&'undefined'!=typeof qa.stack?U+=qa.stack:
407
- 'string'==typeof qa&&(U+='\n'+qa)});G.on('end',function(){if(/^\{/.test(M))try{M=JSON.parse(M),'undefined'!=typeof M.error&&(U=JSON.clone(M),M=null)}catch(qa){U=qa}U?z(U):z(!1,M)})},z?u.get(F,y,w):u.get(F,y))};!/:/.test(K.url)||/:d+\//.test(K.url)||/:\/\//.test(K.url)||(I=K.url.match(/(:(.*)\/|:(.*)$)/g).map(function(n){return n.replace(/\//g,'')}).join(', '),E='[ RoutingHelper::getRoute(rule[, bundle, method]) ] : route [ %r ] param placeholder not defined: `'+K.url+'` !\n Check your route description to compare requirements against param variables [ '+
408
- I+']',E=E.replace(/%r/,v),v=Error(E),console.warn(v),E=v=I=null);return K};R.getRouteByUrl=function(v,I,x,ya,va){2==arguments.length&&'undefined'!=typeof arguments[1]&&arguments[1]&&-1<R.allowedMethods.indexOf(arguments[1].toLowerCase())&&(x=arguments[1],I=void 0);var P=null,K=null,B=null,E=null,n=null,y=null;if(/#/.test(v)&&1<v.length){var z=v.split(/#/);v=z[0];n='#'+z[1];z=null}1==arguments.length&&'undefined'!=typeof arguments[0]&&(/^(https|http)/i.test(v)||/^\//.test(v)||(v='/'+v),P='/'+v.split(/\//g)[1],
409
- A&&(E=gina.config.reverseRouting,B=gina.config.routing),'undefined'!=typeof E[P]&&(z=B[E[P]],I=z.bundle,P=z.webroot,y=z.hostname,z=null));va='boolean'!=typeof arguments[arguments.length-1]?!1:arguments[arguments.length-1];var F=!1,w=null,u=null,G=w=u=null;z='undefined'!=typeof x?!0:!1;A?(w=window.gina.config,I='undefined'!=typeof I?I:w.bundle,u=w.env,B=B||w.getRouting(I),E=E||w.reverseRouting,isXMLRequest='undefined'!=typeof isXMLRequest?isXMLRequest:!1,y=y||w.hostname,P=P||w.webroot,ya={routing:{},
410
- method:x,params:{},url:v},I&&(ya.bundle=I)):(w=getContext('gina').config,I='undefined'!=typeof I?I:w.bundle,u=w.env,B=w.getRouting(I),y=w.envConf[I][u].hostname,P=w.envConf[I][u].server.webroot,ya||={routing:{},isXMLRequest:!1,method:'undefined'!=typeof x?x.toLowerCase():'get',params:{},url:v},va&&(ya.method=x),isXMLRequest=ya.isXMLRequest||!1);u=v.replace(new RegExp('^('+y+'|'+y.replace(/:\d+/,'')+')'),'');'undefined'==typeof ya.routing.path&&(ya.routing.path=decodeURI(u));x='undefined'!=typeof x?
411
- x.toLowerCase():'get';z&&(ya.originalMethod=ya.method,ya.method=x,ya.routing.path=decodeURI(u));ya.method||(ya.method=x);w={};P=new RegExp(x,'i');E=null;var M;for(M in B){if('undefined'==typeof B[M].param)break;if(B[M].bundle==I&&(E=B[M].method,/,/.test(E)&&P.test(E)&&(E=ya.method),'undefined'==typeof B[M].method||P.test(E))){w={method:E,requirements:B[M].requirements,namespace:B[M].namespace||void 0,url:decodeURI(u),rule:B[M].originalRule||M,param:B[M].param,middleware:JSON.clone(B[M].middleware),
412
- bundle:B[M].bundle,isXMLRequest};try{if(G=R.compareUrls(w,B[M].url,ya),G.past){K=JSON.clone(B[M]);K.name=M;F=!0;G={};break}}catch(U){throw Error('Route [ '+M+' ] needs your attention.\n'+U.stack);}}}if(F)return/\/$/.test(v)&&'/'!=v&&(v=v.substring(0,v.length-1)),n&&(v+=n),K.url=v,K.toUrl=function(U){var qa=this.webroot,Ea=this.hostname,W=this.url;this.url='undefined'!=typeof U&&1==U?W.replace(qa,'/'):W;return Ea+this.url},K;if(A){n=!1;if('#'==v&&/GET/i.test(x)&&z||/^404:/.test(v))v=location.pathname,
386
+ getContext('gina').plugins,S=V.Validator);R.getUrlProps=function(v,I){var x={};if(A){var xa=window.gina.config;x.hostname=xa.hostname;'undefined'!=typeof v&&(v=this.getRoute('webroot@'+v),x.hostname=v.hostname,x.host=v.host,x.webroot=v.webroot)}else xa=getContext('gina').config,'undefined'!=typeof getContext('argvFilename')&&(xa.getRouting=getContext('gina').Config.instance.getRouting),'undefined'==typeof v&&(v=xa.bundle),'undefined'==typeof I&&(I=xa.env),x.hostname=xa.envConf[v][I].hostname,x.host=
387
+ xa.envConf[v][I].host,x.webroot=xa.envConf[v][I].server.webroot,console.debug('[self.getUrlProps][isProxyHost = '+getContext('isProxyHost')+'] hostname ',xa.envConf[v][I].hostname,vs,process.gina.PROXY_HOSTNAME);return x};R.compareUrls=async function(v,I,x,xa,ua){'undefined'==typeof x&&(x={routing:{}});if(/,/.test(I)){var P=0;I=I.split(/,/g);for(var K=I.length,B={past:!1,request:x};P<K&&!B.past;)B=await N(v,I[P],x,xa,ua),++P;return B}return await N(v,I,x,xa,ua)};var N=async function(v,I,x,xa,ua){var P=
388
+ null;try{P=v.url.split(/\//)}catch(U){console.warn(U),P=['']}I=I.split(/\//);var K=0,B=0,E=I.length,n=0,y={},z=0,F=x.method.toLowerCase(),w='get';try{w=v.method.toLowerCase()}catch(U){}var u=!1;if('undefined'!=typeof v.requirements&&/get|delete/i.test(F)&&'undefined'!=typeof x[F]||'undefined'!=typeof v.requirements&&/get/i.test(F)&&/delete/i.test(w)){/get/i.test(F)&&/delete/i.test(w)&&(F=w);if(/^(delete)$/i.test(F)&&P.length===I.length){'undefined'==typeof x[F]&&(x[F]={});for(let U=0,qa=I.length;U<
389
+ qa;U++)if(P[U]===I[U])++n;else if(w=I[U].substring(1),'undefined'!=typeof v.requirements[w]){w=v.requirements[w];if(/^\//.test(w))w=w.substring(1,w.lastIndexOf('/')-1);else if(/^validator::/.test(w)&&await ha(I[U],P[U],v,x,xa,ua)){++n;continue}/^:/.test(I[U])&&'undefined'!=typeof w&&(new RegExp(w)).test(P[U])&&(++n,x[F][I[U].substring(1)]=P[U])}u=!0}for(var G in x[F])'undefined'!=typeof v.requirements[G]&&0>I.indexOf(':'+G)&&(I[B]=':'+G,++B,P[K]=x[F][G],++K,u||P.length!==I.length||++E)}if(!u&&P.length===
390
+ I.length)for(;z<E;++z)P[z]===I[z]?++n:n==z&&/:/.test(I[z])&&await ha(I[z],P[z],v,x,xa,ua)&&++n;if('undefined'!=typeof v.requirements&&F==v.method.toLowerCase()&&!u&&n>=E)for(G=Object.getOwnPropertyNames(v.requirements),K=0,I.join(',').match(/:[-_a-z0-9]+/g);K<G.length;){B=G[K];if('undefined'==typeof v.param[B]&&/^validator::/i.test(v.requirements[B])){if(I.length!=P.length)break;var M=I.join(',').match(/:[-_a-z0-9]+/g);let U=v.requirements[B];z={};w={};u={};try{w=JSON.parse(U.split(/::/).splice(1)[0].replace(/([^:"\s+](\w+)):/g,
391
+ '"$1":').replace(/([^:"\s+](\w+))\s+:/g,'"$1":'))}catch(qa){throw qa;}if('undefined'!=typeof w.query&&'undefined'!=typeof w.query.data){z=w.query.data;for(let qa in z)0>M.indexOf(z[qa])&&delete z[qa];for(let qa=0,Ea=I.length;qa<Ea;qa++)/^:/.test(I[qa])&&(M=I[qa].replace(/^:/,''),''!=M&&'undefined'!=typeof P[qa]&&(z[M]=P[qa],'undefined'==typeof x.params[M]&&(x.params[M]=P[qa])))}z=ka(z,JSON.clone(x[F])||{});'undefined'==typeof z[B]&&(z[B]=null);u[B]=w;_validator=A?new S(z):new S('routing',z,null,u);
392
+ if(0==w.count()){console.error('Route validation failed '+v.rule);--n;K++;continue}for(let qa in w)if('undefined'!=typeof w[qa].data&&(w[qa].data=z),u=Array.isArray(w[qa])?await _validator[B][qa].apply(_validator[B],w[qa]):await _validator[B][qa](w[qa],x,xa,ua),!u.isValid&&(--n,'undefined'!=typeof u.error))throw u.error;}K++}y.past=n===E?!0:!1;y.past&&(x.routing=T(v,x[F]),y.request=x);return y},ha=async function(v,I,x,xa,ua,P){var K=-1,B=v.match(/:\w+/g);K=new RegExp(v,'g');var E=null,n=null,y=null;
393
+ E=!1;var z=E=n=n=null,F=null,w=xa.method.toLowerCase();if(!B.length)return!1;x.param.path&&K.test(x.param.path)&&(x.param.path=x.param.path.replace(K,I));x.param.namespace&&K.test(x.param.namespace)&&(x.param.namespace=x.param.namespace.replace(K,I));'undefined'!=typeof x.param.file&&/:/.test(x.param.file)&&(E=new RegExp('(:'+v+'/|:'+v+'$)','g'),Q.variable=I,x.param.file=x.param.file.replace(E,Q),E=null);x.param.title&&K.test(x.param.title)&&(x.param.title=x.param.title.replace(K,I));if(1==B.length){E=
394
+ new RegExp(B[0]);K=-1<B.indexOf(v)?B.indexOf(v):!1;!1===K&&v.match(E)&&(K=0);if(!1===K)return K;if(x.method.toLowerCase()!==w)return!1;'undefined'==typeof xa[w]&&(xa[w]={});y=B[K].substring(1);K=x.requirements[y];if(/^\//.test(K))E=K.match(/\/(.*)\//).pop(),n=K.replace('/'+E+'/',''),E=(new RegExp(E,n)).test(I);else if(/^validator::/.test(K)&&I){n={};E={};z={};F='';v.replace(new RegExp('[^'+y+']','g'),function(qa){F+=qa});n[y]=I.replace(new RegExp(F,'g'),'');try{E=JSON.parse(K.split(/::/).splice(1)[0].replace(/([^:"\s+](\w+)):/g,
395
+ '"$1":').replace(/([^:"\s+](\w+))\s+:/g,'"$1":'))}catch(qa){throw qa;}'undefined'!=typeof E.query&&'undefined'!=typeof E.query.data&&v==E.query.data[Object.keys(E.query.data)[0]]&&(E.query.data[Object.keys(E.query.data)[0]]=n[y],xa.params[y]=n[y]);z[y]=E;n=new S('routing',n,null,z);if(0==E.count())return console.error('Route validation failed '+x.rule),!1;for(var u in E)Array.isArray(E[u])?await n[y][u].apply(n[y],E[u]):await n[y][u](E[u],xa,ua,P);E=n.isValid()}else E=(new RegExp(x.requirements[y])).test(I);
396
+ if('undefined'!=typeof x.param[y]&&'undefined'!=typeof x.requirements&&'undefined'!=typeof x.requirements[y]&&'undefined'!=typeof xa.params&&E)return xa.params[y]=I,'undefined'==typeof xa[w][y]&&(xa[w][y]=I),!0}else{ua=x.url;P=xa.url;w={};z='';var G=!1,M=0;u=0;for(var U=P.length;u<U;++u)if(P.charAt(u)!=ua.charAt(M)||G){if(''==z)G=!0,z+=P.charAt(u);else if(u>ua.indexOf(B[0])+B[0].length){K=x.requirements[B[0]];I=z.substring(0,z.length);if(/^\//.test(K))E=K.match(/\/(.*)\//).pop(),n=K.replace('/'+E+
397
+ '/',''),E=(new RegExp(E,n)).test(I);else if(/^validator::/.test(K)){n={};E={};z={};F='';v.replace(new RegExp('[^'+y[0]+']','g'),function(qa){F+=qa});n[y[0]]=I.replace(new RegExp(F,'g'),'');E=JSON.parse(K.split(/::/).splice(1)[0].replace(/([^\W+ true false])+(\w+)/g,'"$&"'));z[y[0]]=E;n=new S('routing',n,null,z);for(let qa in E)if(Array.isArray(E[qa]))n[y[0]][qa].apply(n[y[0]],E[qa]);else n[y[0]][qa](E[qa]);E=n.isValid()}else E=(new RegExp(x.requirements[y[0]])).test(I);if(E)w[B[0].substring(1)]=I;
398
+ else return!1;z='';G=!1;M=ua.indexOf(B[0])+B[0].length;--u;B.splice(0,1)}else z+=P.charAt(u),++M;if(u==U-1)if(K=x.requirements[B[0]],I=z.substring(0,z.length),/^\//.test(K)?(E=K.match(/\/(.*)\//).pop(),n=K.replace('/'+E+'/',''),E=(new RegExp(E,n)).test(I)):E=(new RegExp(x.requirements[y])).test(I),E)w[B[0].substring(1)]=I;else return!1}else++M;if(w.count()==B.length){y=null;for(y in w)xa.params[y]=w[y];return!0}}return!1},Q=function(v){return/\/$/.test(v)?Q.variable+'/':Q.variable},T=function(v,I){var x=
399
+ null,xa,ua=v.url,P=null;for(P in v.param)if(('undefined'==typeof I||'undefined'!=typeof I[P])&&/^:/.test(v.param[P])){var K=v.param[P].substring(1);if('undefined'!=typeof I&&'undefined'!=typeof I[K]){var B=new RegExp('(:'+K+'/|:'+K+'$)','g');'undefined'!=typeof v.param.path&&/:/.test(v.param.path)&&(v.param.path=v.param.path.replace(B,I[K]));'undefined'!=typeof v.param.title&&/:/.test(v.param.title)&&(v.param.title=v.param.title.replace(B,I[K]));'undefined'!=typeof v.param.namespace&&/:/.test(v.param.namespace)&&
400
+ (v.param.namespace=v.param.namespace.replace(B,I[K]));'undefined'!=typeof v.param.file&&/:/.test(v.param.file)&&(Q.variable=I[K],v.param.file=v.param.file.replace(B,Q));if(/,/.test(v.url)){x=v.url.split(/,/g);var E=0;for(xa=x.length;E<xa;++E)Q.variable=I[K],x[E]=x[E].replace(B,Q);v.url=x.join(',')}else Q.variable=I[K],v.url=v.url.replace(B,Q)}}if(x){E=0;xa=x.length;ua=ua.split(/,/g);var n=0;for(v.urlIndex=0;E<xa;++E)if(x=0,B=ua[0].match(/:[-_a-z0-9]+/ig)){P=0;for(K=B.length;P<K;P++){var y=B[P].substring(1);
401
+ 'undefined'!=typeof I[y]&&I[y]&&x++}x>n&&(n=x,v.urlIndex=E)}}return v};R.getRoute=function(v,I,x){var xa=null,ua=!1;A?(window.location.port||window.location.hostname!=window.gina.config.hostname.replace(/^(https|http|wss|ws):\/\//,'').replace(/:\d+$/,'')||(ua=!0,window.gina.config.hostname=window.gina.config.hostname.replace(/^(https|http|wss|ws):\/\//,'').replace(/:\d+$/,'')),xa=window.gina.config):(xa=getContext('gina').config,'undefined'!=typeof getContext('argvFilename')&&(xa.getRouting=getContext('gina').Config.instance.getRouting),
402
+ ua=getContext('isProxyHost'));var P=xa.env||GINA_ENV,K=null,B=xa.bundle;/@/.test(v)||'undefined'==typeof B||null==B||(v=v.toLowerCase(),v+='@'+B);if(/@/.test(v)){var E=v.replace(/(.*):\/\//,'').split(/@/);B=E[1];/\/(.*)$/.test(v)&&(K=v.replace(/(.*):\/\//,'').split(/\/(.*)$/)[1],B=B.replace(/\/(.*)$/,''),P=K||P);v=E[0].toLowerCase()+'@'+B}B=xa.getRouting(B,P);if('undefined'==typeof B[v])throw Error('[ RoutingHelper::getRouting(rule, params) ] : `'+v+'` not found !');K=JSON.clone(B[v]);E=null;K=T(K,
403
+ I);(K.isProxyHost=ua)?(A?K.proxy_hostname=window.location.protocol+'//'+document.location.hostname:(K.proxy_hostname=process.gina.PROXY_HOSTNAME||xa.envConf._proxyHostname,console.debug('[getRoute#1]['+ua+'] process.gina.PROXY_HOSTNAME ('+process.gina.PROXY_HOSTNAME+') VS config.envConf._proxyHostname ('+xa.envConf._proxyHostname+')')),K.proxy_host=K.proxy_hostname.replace(/^(https|http):\/\//,'')):A||'undefined'==typeof process.gina.PROXY_HOSTNAME||(K.proxy_hostname=process.gina.PROXY_HOSTNAME,K.proxy_host=
404
+ K.proxy_hostname.replace(/^(https|http):\/\//,''),console.debug('[getRoute#2]['+ua+'] process.gina.PROXY_HOSTNAME ('+process.gina.PROXY_HOSTNAME+') VS config.envConf._proxyHostname ('+xa.envConf._proxyHostname+')'));/,/.test(K.url)&&('undefined'!=typeof K.urlIndex&&(x=K.urlIndex,delete K.urlIndex),x='undefined'!=typeof x?x:0,K.url=K.url.split(/,/g)[x]);/\/$/.test(K.url)&&'/'!=K.url&&(K.url=K.url.substring(0,K.url.length-1));if(/GET/i.test(K.method)&&'undefined'!=typeof I){x='?';xa=B[v].url;ua=[];
405
+ B=0;for(let n in K.param)-1<R.reservedParams.indexOf(n)||(new RegExp(K.param[n])).test(xa)||'undefined'==typeof I[n]||(x+=n+'='+encodeRFC5987ValueChars(I[n])+'&',ua[B]=I[n],++B);for(let n in I)-1<R.reservedParams.indexOf(n)||'undefined'!=typeof K.requirements[n]||-1<ua.indexOf(n)||(x='object'==typeof I[n]?x+(n+'='+encodeRFC5987ValueChars(JSON.stringify(I[n]))+'&'):x+(n+'='+I[n]+'&'));B=ua=xa=null;1<x.length&&(x=x.substring(0,x.length-1),K.url+=x);x=null}K.toUrl=function(n){var y=null;/^redirect$/i.test(this.param.control)&&
406
+ (y=R.getUrlProps(this.bundle,P||GINA_ENV));var z=this.webroot||y.webroot;y=''+this.hostname||''+y.hostname;var F=''+this.url;this.isProxyHost&&(y=''+this.proxy_hostname);this.url='undefined'!=typeof n&&/^true$/i.test(n)?F.replace(new RegExp('^'+z),'/'):F.replace(new RegExp('^('+z+'|/$)'),z);return y+this.url};K.request=function(n,y){var z=null,F=null;'function'==typeof arguments[arguments.length-1]&&(z=arguments[arguments.length-1]);'object'==typeof arguments[2]&&(F=arguments[2]);var w=this.webroot||
407
+ F.webroot,u=this.hostname||F.hostname;F='undefined'!=typeof n&&1==n?path.replace(w,'/'):this.url||F.url;/^\//.test(F)&&(F=u+F);u=/^https/.test(u)?'https':'http';A?window.open(F,'undefined'!=typeof y&&'undefined'!=typeof y.target?y.target:'_self'):('undefined'==typeof y.agent&&(y.agent=!1),u=require(''+u),w=function(G){var M='',U=!1;G.on('data',function(qa){M+=qa});G.on('error',function(qa){U='Failed to get mail content';qa&&'undefined'!=typeof qa.stack?U+=qa.stack:'string'==typeof qa&&(U+='\n'+qa)});
408
+ G.on('end',function(){if(/^\{/.test(M))try{M=JSON.parse(M),'undefined'!=typeof M.error&&(U=JSON.clone(M),M=null)}catch(qa){U=qa}U?z(U):z(!1,M)})},z?u.get(F,y,w):u.get(F,y))};!/:/.test(K.url)||/:d+\//.test(K.url)||/:\/\//.test(K.url)||(I=K.url.match(/(:(.*)\/|:(.*)$)/g).map(function(n){return n.replace(/\//g,'')}).join(', '),E='[ RoutingHelper::getRoute(rule[, bundle, method]) ] : route [ %r ] param placeholder not defined: `'+K.url+'` !\n Check your route description to compare requirements against param variables [ '+
409
+ I+']',E=E.replace(/%r/,v),v=Error(E),console.warn(v),E=v=I=null);return K};R.getRouteByUrl=function(v,I,x,xa,ua){2==arguments.length&&'undefined'!=typeof arguments[1]&&arguments[1]&&-1<R.allowedMethods.indexOf(arguments[1].toLowerCase())&&(x=arguments[1],I=void 0);var P=null,K=null,B=null,E=null,n=null,y=null;if(/#/.test(v)&&1<v.length){var z=v.split(/#/);v=z[0];n='#'+z[1];z=null}1==arguments.length&&'undefined'!=typeof arguments[0]&&(/^(https|http)/i.test(v)||/^\//.test(v)||(v='/'+v),P='/'+v.split(/\//g)[1],
410
+ A&&(E=gina.config.reverseRouting,B=gina.config.routing),'undefined'!=typeof E[P]&&(z=B[E[P]],I=z.bundle,P=z.webroot,y=z.hostname,z=null));ua='boolean'!=typeof arguments[arguments.length-1]?!1:arguments[arguments.length-1];var F=!1,w=null,u=null,G=w=u=null;z='undefined'!=typeof x?!0:!1;A?(w=window.gina.config,I='undefined'!=typeof I?I:w.bundle,u=w.env,B=B||w.getRouting(I),E=E||w.reverseRouting,isXMLRequest='undefined'!=typeof isXMLRequest?isXMLRequest:!1,y=y||w.hostname,P=P||w.webroot,xa={routing:{},
411
+ method:x,params:{},url:v},I&&(xa.bundle=I)):(w=getContext('gina').config,I='undefined'!=typeof I?I:w.bundle,u=w.env,B=w.getRouting(I),y=w.envConf[I][u].hostname,P=w.envConf[I][u].server.webroot,xa||={routing:{},isXMLRequest:!1,method:'undefined'!=typeof x?x.toLowerCase():'get',params:{},url:v},ua&&(xa.method=x),isXMLRequest=xa.isXMLRequest||!1);u=v.replace(new RegExp('^('+y+'|'+y.replace(/:\d+/,'')+')'),'');'undefined'==typeof xa.routing.path&&(xa.routing.path=decodeURI(u));x='undefined'!=typeof x?
412
+ x.toLowerCase():'get';z&&(xa.originalMethod=xa.method,xa.method=x,xa.routing.path=decodeURI(u));xa.method||(xa.method=x);w={};P=new RegExp(x,'i');E=null;var M;for(M in B){if('undefined'==typeof B[M].param)break;if(B[M].bundle==I&&(E=B[M].method,/,/.test(E)&&P.test(E)&&(E=xa.method),'undefined'==typeof B[M].method||P.test(E))){w={method:E,requirements:B[M].requirements,namespace:B[M].namespace||void 0,url:decodeURI(u),rule:B[M].originalRule||M,param:B[M].param,middleware:JSON.clone(B[M].middleware),
413
+ bundle:B[M].bundle,isXMLRequest};try{if(G=R.compareUrls(w,B[M].url,xa),G.past){K=JSON.clone(B[M]);K.name=M;F=!0;G={};break}}catch(U){throw Error('Route [ '+M+' ] needs your attention.\n'+U.stack);}}}if(F)return/\/$/.test(v)&&'/'!=v&&(v=v.substring(0,v.length-1)),n&&(v+=n),K.url=v,K.toUrl=function(U){var qa=this.webroot,Ea=this.hostname,W=this.url;this.url='undefined'!=typeof U&&1==U?W.replace(qa,'/'):W;return Ea+this.url},K;if(A){n=!1;if('#'==v&&/GET/i.test(x)&&z||/^404:/.test(v))v=location.pathname,
413
414
  n=!0;'undefined'==typeof R.notFound&&(R.notFound={});B=null;K='[ RoutingHelper::getRouteByUrl(rule[, bundle, method]) ] : route [ %r ] is called but not found inside your view: `'+v+'` !';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,'')+'::'),K=K.replace(/%r/,
414
- B.replace(/404:\s+/,'')),'undefined'==typeof R.notFound[B]?R.notFound[B]={count:1,message:K}:z&&'undefined'!=typeof R.notFound[B]&&++R.notFound[B].count,!1;if((n=gina.config.reverseRouting[v]||null)&&'undefined'!=typeof n&&n.split(/@(.+)$/)[1]==I)return B=n,'undefined'==typeof R.notFound[B]?(K=K.replace(/%r/,x.toUpperCase()+'::'+n),R.notFound[B]={count:1,message:K}):z&&'undefined'!=typeof R.notFound[B]&&++R.notFound[B].count,!1;B=R.compareUrls(w,v,ya)||null;B.past&&z&&(B=x.toUpperCase()+'::'+B.request.routing.rule,
415
+ B.replace(/404:\s+/,'')),'undefined'==typeof R.notFound[B]?R.notFound[B]={count:1,message:K}:z&&'undefined'!=typeof R.notFound[B]&&++R.notFound[B].count,!1;if((n=gina.config.reverseRouting[v]||null)&&'undefined'!=typeof n&&n.split(/@(.+)$/)[1]==I)return B=n,'undefined'==typeof R.notFound[B]?(K=K.replace(/%r/,x.toUpperCase()+'::'+n),R.notFound[B]={count:1,message:K}):z&&'undefined'!=typeof R.notFound[B]&&++R.notFound[B].count,!1;B=R.compareUrls(w,v,xa)||null;B.past&&z&&(B=x.toUpperCase()+'::'+B.request.routing.rule,
415
416
  'undefined'==typeof R.notFound[B]?K=K.replace(/%r/,B):++R.notFound[B].count);return!1}console.warn(Error('[ RoutingHelper::getRouteByUrl(rule[, bundle, method, request]) ] : route not found for url: `'+v+'` !').stack);return!1};return R}'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()});
416
- function StoragePlugin(A){function R(K){I=JSON.parse(T.getItem(this.bucket));'undefined'==typeof I[K]&&(I[K]=[],T.setItem(this.bucket,JSON.stringify(I)),I=JSON.parse(T.getItem(this.bucket)));v[K]={_collection:K,_bucket:this.bucket};v[K]=ka(v[K],va);return v[K]}function V(K){if('object'!==typeof K)throw Error('filter must be an object');var B=I[this._collection],E=K.count(),n=0,y=null;if(0==E)return null;for(var z in B)for(var F in K){var w='boolean'!=typeof K[F]?K[F].toLocaleLowerCase():K[F];K[F]&&
417
+ function StoragePlugin(A){function R(K){I=JSON.parse(T.getItem(this.bucket));'undefined'==typeof I[K]&&(I[K]=[],T.setItem(this.bucket,JSON.stringify(I)),I=JSON.parse(T.getItem(this.bucket)));v[K]={_collection:K,_bucket:this.bucket};v[K]=ka(v[K],ua);return v[K]}function V(K){if('object'!==typeof K)throw Error('filter must be an object');var B=I[this._collection],E=K.count(),n=0,y=null;if(0==E)return null;for(var z in B)for(var F in K){var w='boolean'!=typeof K[F]?K[F].toLocaleLowerCase():K[F];K[F]&&
417
418
  -1<x.indexOf(w)&&'not null'==w&&'undefined'!=typeof B[z][F]&&'object'!==typeof B[z][F]&&B[z][F]===K[F]&&'null'!=B[z][F]&&'undefined'!=B[z][F]?0>y.indexOf(B[z][F])&&(++n,n===E&&(y=B[z],y._index=z,y._collection=this._collection,y._bucket=this._bucket)):'undefined'!=typeof B[z][F]&&'object'!==typeof B[z][F]&&B[z][F]===K[F]&&(++n,n===E&&(y=B[z],y._index=z,y._collection=this._collection,y._bucket=this._bucket,y._filter=K))}y&&(y.save=P);return y}var ka=ka||require('lib/merge');R=R||require('lib/collection');
418
- var S=S||require('vendor/uuid'),N=N||require('helpers/dateFormat'),ha={bucket:'default'},Q={},T=null,v={},I={},x=['not null'],ya={bucket:void 0,drop:function(){T.removeItem(ha.bucket);Q=null;for(var K in this)delete this[K];return Q},Collection:R},va={insert:function(K){K._id=S.v1();K._createdAt=(new Date).format('isoDateTime');K._updatedAt=(new Date).format('isoDateTime');I[this._collection][I[this._collection].length]=K;T.setItem(this._bucket,JSON.stringify(I))},find:function(K,B){if(!K)return I[this._collection];
419
+ var S=S||require('vendor/uuid'),N=N||require('helpers/dateFormat'),ha={bucket:'default'},Q={},T=null,v={},I={},x=['not null'],xa={bucket:void 0,drop:function(){T.removeItem(ha.bucket);Q=null;for(var K in this)delete this[K];return Q},Collection:R},ua={insert:function(K){K._id=S.v1();K._createdAt=(new Date).format('isoDateTime');K._updatedAt=(new Date).format('isoDateTime');I[this._collection][I[this._collection].length]=K;T.setItem(this._bucket,JSON.stringify(I))},find:function(K,B){if(!K)return I[this._collection];
419
420
  if('object'!==typeof K)throw Error('filter must be an object');B=I[this._collection];K.count();var E=0,n=[],y;for(y in B)for(var z in K){var F='boolean'!=typeof K[z]?K[z].toLocaleLowerCase():K[z];K[z]&&-1<x.indexOf(F)&&'not null'==F&&'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[E]=B[y][z],++E):'undefined'!=typeof B[y][z]&&'object'!==typeof B[y][z]&&B[y][z]===K[z]&&(n[E]=B[y],++E)}return n},findOne:V,update:null,'delete':function(K){if('object'!==
420
421
  typeof K)throw Error('filter must be an object');var B=JSON.clone(I[this._collection]),E=0,n=[],y;for(y in B)for(var z in K)K[z]&&-1<x.indexOf(K[z].toLocaleLowerCase())&&'not null'==K[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[E]=B[y][z],delete I[this._collection][y][z],++E):'undefined'!=typeof B[y][z]&&'object'!==typeof B[y][z]&&B[y][z]===K[z]&&(n[E]=B[y],I[this._collection].splice(y,1),++E);return 0<n.length?
421
422
  (T.setItem(this._bucket,JSON.stringify(I)),!0):!1},drop:function(K){if('undefined'==typeof I[this._collection])throw Error('Collection `'+K+'` not found');delete v[this._collection];delete I[this._collection];T.setItem(this._bucket,JSON.stringify(I))}},P=function(K){K=K||!1;try{var B=JSON.clone(I),E=this._index,n=this._collection,y=this._bucket,z=this._filter;this._updatedAt=(new Date).format('isoDateTime');B[n][E]=ka(B[n][E],this,!0);delete B[n][E]._index;delete B[n][E]._collection;delete B[n][E]._bucket;
422
423
  delete B[n][E].save;delete B[n][E]._filter;if(K&&'object'==typeof B[n][E]){var F=function(u,G){for(var M=0,U=u.length;M<U;++M)'object'!=typeof G[M]||'undefined'==typeof u[M]||Array.isArray(u[M])?Array.isArray(u[M])?F(u[M],G[M]):'undefined'==typeof u[M]&&delete G[M]:w(u[M],G[M]);return G},w=function(u,G){for(var M in G)'object'!=typeof G[M]||'undefined'==typeof u[M]||Array.isArray(u[M])?Array.isArray(u[M])?F(u[M],G[M]):'undefined'==typeof u[M]&&delete G[M]:w(u[M],G[M]);return G};Array.isArray(B[n][E])?
423
424
  B[n][E]=F(this,B[n][E]):'object'==typeof B[n][E]?B[n][E]=w(this,B[n][E]):'undefined'==typeof this[prop]&&delete B[n][E]}I[n][E]=B[n][E];T.setItem(y,JSON.stringify(I));return V(z)}catch(u){throw u;}};(function(K){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'!=
424
- typeof K&&'undefined'!=typeof K)throw Error('`options` must be an object');'undefined'==typeof K&&(K={});ha=ka(K,ha);T=window.localStorage;K=ha.bucket;if(!T.getItem(K)&&void 0!=K)T.setItem(K,JSON.stringify(I));else if(void 0==K)throw Error('`bucket` name cannot be undefined');Q.bucket=K;Q=ka(Q,ya)})(A);return Q}
425
+ typeof K&&'undefined'!=typeof K)throw Error('`options` must be an object');'undefined'==typeof K&&(K={});ha=ka(K,ha);T=window.localStorage;K=ha.bucket;if(!T.getItem(K)&&void 0!=K)T.setItem(K,JSON.stringify(I));else if(void 0==K)throw Error('`bucket` name cannot be undefined');Q.bucket=K;Q=ka(Q,xa)})(A);return Q}
425
426
  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,R){A.parentNode.insertBefore(R,A.nextSibling)}
426
427
  function getElementsByAttribute(A){for(var R=[],V=0,ka=document.getElementsByTagName('*'),S=0,N=ka.length;S<N;++S)null!==ka[S].getAttribute(A)&&(R[V]=ka[S],++V);return R}
427
428
  (function(A){var R=A.prototype,V=R.parseFromString;try{if((new A).parseFromString('','text/html'))return}catch(ka){}R.parseFromString=function(ka,S){if(/^\s*text\/html\s*(?:;|$)/i.test(S)){var N=document.implementation.createHTMLDocument('');-1<ka.toLowerCase().indexOf('<!doctype')?N.documentElement.innerHTML=ka:N.body.innerHTML=ka;return N}return V.apply(this,arguments)}})(DOMParser);define('utils/dom',function(){});
@@ -433,14 +434,14 @@ function DataHelper(){encodeRFC5987ValueChars=function(V){return encodeURICompon
433
434
  []:{}):V[ka[S]]=/^\d+$/.test(ka[S+1])?[]:{};if(S==ka.length-1){N='undefined'!=typeof N?N:'';Array.isArray(V[ka[S]])?V[ka[S]].push(N):V[ka[S]]=N;break}else/^\d+$/.test(ka[S])&&!Array.isArray(V)&&(V=[]),'undefined'==typeof V[T]&&(V[T]=null),R(V[T],ka,S+1,N)}}return V}}'undefined'!==typeof module&&module.exports?module.exports=DataHelper:'function'===typeof define&&define.amd&&define('utils/data',[],function(){return DataHelper()});
434
435
  function ValidatorPlugin(A,R,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,N=null;if(S)require('utils/events'),registerEvents(this.plugin,ka),require('utils/dom'),require('utils/effects'),require('utils/data'),N=gina.config.envIsDev;else{if(N=/^true$/i.test(process.env.NODE_ENV_IS_DEV)?!0:!1)delete require.cache[require.resolve('./form-validator')],
435
436
  delete require.cache[require.resolve('../../../../../helpers/data')];require('../../../../../helpers/data')}var ha=S?require('vendor/uuid'):require('uuid'),Q=S?require('lib/merge'):require('../../../../../lib/merge'),T=S?require('lib/inherits'):require('../../../../../lib/inherits'),v=S?require('lib/form-validator'):require('./form-validator'),I=S?require('lib/routing'):require('../../../../../lib/routing'),x={id:'validator-'+ha.v4(),plugin:this.plugin,on:S?on:null,eventData:{},target:S?document:
436
- null,errors:{},initialized:!1,isReady:!1,rules:{},$forms:{},getFormById:null,validateFormById:null,setOptions:null,resetErrorsDisplay:null,resetFields:null},ya={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},va={},P={},K=null,B={url:'',method:'GET',isSynchrone:!1,
437
+ null,errors:{},initialized:!1,isReady:!1,rules:{},$forms:{},getFormById:null,validateFormById:null,setOptions:null,resetErrorsDisplay:null,resetFields:null},xa={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},ua={},P={},K=null,B={url:'',method:'GET',isSynchrone:!1,
437
438
  withCredentials:!1,withRateLimit:!0,headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','X-Requested-With':'XMLHttpRequest'}},E=function(l,h,e){e='undefined'!=typeof e?{id:e}:null;var b={},q;for(q in h)b[q]=h[q];if('undefined'!=typeof l&&0<l.count()){try{Ja(l,''),Da(l)}catch(m){throw m;}return ca(e,b,null,x.rules)}return new v(b)},n=function(l){B=l=Q(l,B);return this},y=function(l){var h=null;if(!x.$forms)throw Error('`$forms` collection not found');if('undefined'==typeof l)throw Error('[ FormValidator::getFormById(formId) ] `formId` is missing');
438
- l=l.replace(/#/,'');if(null!=document.getElementById(l)&&'undefined'==typeof x.$forms[l]){var e=document.getElementById(l),b,q=typeof(0<va.count())?va:x.rules;e.getAttribute?(id=e.getAttribute('id')||'form.'+ha.v4(),id!==e.getAttribute('id')&&e.setAttribute('id',id)):(id='form.'+ha.v4(),e.setAttribute('id',id));e.id=ya.id=id;if('undefined'!=typeof e.id&&'null'!=e.id&&''!=e.id){ya.target=e;x.$forms[e.id]=Q({},ya);if(b=e.getAttribute('data-gina-form-rule')){b=b.replace(/\-|\//g,'.');if('undefined'==
439
- typeof q[b])throw Error('['+e.id+'] no rule found with key: `null`');b=q[b]}'string'==typeof e.id&&'undefined'!=typeof q[e.id.replace(/\-/g,'.')]?$target=x.$forms[e.id].target:'object'==typeof e.id?(delete x.$forms[e.id],q=e.attributes.getNamedItem('id').nodeValue||'form.'+ha.v4(),e.setAttribute('id',q),e.id=q,ya.target=e,x.$forms[q]=Q({},ya),$target=x.$forms[q].target):$target=x.$forms[e.id].target;b?tb($target,b):tb($target)}}'undefined'!=typeof x.$forms[l]&&(x.$forms[l].withUserBindings=!0,h='undefined'!=
439
+ l=l.replace(/#/,'');if(null!=document.getElementById(l)&&'undefined'==typeof x.$forms[l]){var e=document.getElementById(l),b,q=typeof(0<ua.count())?ua:x.rules;e.getAttribute?(id=e.getAttribute('id')||'form.'+ha.v4(),id!==e.getAttribute('id')&&e.setAttribute('id',id)):(id='form.'+ha.v4(),e.setAttribute('id',id));e.id=xa.id=id;if('undefined'!=typeof e.id&&'null'!=e.id&&''!=e.id){xa.target=e;x.$forms[e.id]=Q({},xa);if(b=e.getAttribute('data-gina-form-rule')){b=b.replace(/\-|\//g,'.');if('undefined'==
440
+ typeof q[b])throw Error('['+e.id+'] no rule found with key: `null`');b=q[b]}'string'==typeof e.id&&'undefined'!=typeof q[e.id.replace(/\-/g,'.')]?$target=x.$forms[e.id].target:'object'==typeof e.id?(delete x.$forms[e.id],q=e.attributes.getNamedItem('id').nodeValue||'form.'+ha.v4(),e.setAttribute('id',q),e.id=q,xa.target=e,x.$forms[q]=Q({},xa),$target=x.$forms[q].target):$target=x.$forms[e.id].target;b?tb($target,b):tb($target)}}'undefined'!=typeof x.$forms[l]&&(x.$forms[l].withUserBindings=!0,h='undefined'!=
440
441
  typeof this.$forms&&'undefined'==typeof this.$forms[l]?this.$forms[l]=x.$forms[l]:x.$forms[l]);if(!h)throw Error('Validator::getFormById(...) exception: could not retrieve form `'+l+'`');h.binded||(tb(h.target),h=x.$forms[l]);N&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.errors||(gina.forms.errors={}),e={id:l,rules:x.$forms[l].rules},'undefined'!=typeof x.$forms[l].errors&&(e.errors=x.$forms[l].errors),window.ginaToolbar.update('forms',e));return h},z=function(){var l=
441
- !1,h=null;gina.hasPopinHandler&&gina.popinIsBinded&&(h=gina.popin.getActivePopin());h&&h.isOpen&&(l=!0);return l},F=function(l,h){var e=typeof(0<va.count())?va:x.rules;if(!x.$forms)throw Error('`$forms` collection not found');if('undefined'!=typeof l&&'undefined'!=typeof x.$forms[l])return x.$forms[l];if('undefined'==typeof l)if('undefined'!=typeof this.id&&''!=this.id&&null!=this.id)l=this.id;else throw Error('[ FormValidator::validateFormById(formId, customRule) ] `formId` is missing');if('string'==
442
+ !1,h=null;gina.hasPopinHandler&&gina.popinIsBinded&&(h=gina.popin.getActivePopin());h&&h.isOpen&&(l=!0);return l},F=function(l,h){var e=typeof(0<ua.count())?ua:x.rules;if(!x.$forms)throw Error('`$forms` collection not found');if('undefined'!=typeof l&&'undefined'!=typeof x.$forms[l])return x.$forms[l];if('undefined'==typeof l)if('undefined'!=typeof this.id&&''!=this.id&&null!=this.id)l=this.id;else throw Error('[ FormValidator::validateFormById(formId, customRule) ] `formId` is missing');if('string'==
442
443
  typeof l)l=l.replace(/#/,'');else{if('object'!=typeof l||Array.isArray(l))throw Error('[ FormValidator::validateFormById(formId[, customRule]) ] `formId` should be a `string`');var b=l.form;l=b.getAttribute('id')||'form.'+ha.v4();b.setAttribute('id',l)}var q=document.getElementsByTagName('form');for(var m={},p=0,O=q.length;p<O;++p)b=q[p].getAttribute('id')||null,'undefined'==typeof m[b]?m[b]=!0:'undefined'==typeof x.$forms[b]||x.$forms[b].warned||(gina.popinIsBinded?console.warn('Popin/Validator::bindForm($target, customRule): `'+
443
- 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.'),x.$forms[b].warned=!0);if('undefined'!=typeof this.$forms&&'undefined'!=typeof x.$forms[l])q=this.$forms[l]=x.$forms[l];else{b=document.getElementById(l);ya.id=l;ya.target=b;q=this.$forms[l]=x.$forms[l]=Q({},ya);if('undefined'==
444
+ 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.'),x.$forms[b].warned=!0);if('undefined'!=typeof this.$forms&&'undefined'!=typeof x.$forms[l])q=this.$forms[l]=x.$forms[l];else{b=document.getElementById(l);xa.id=l;xa.target=b;q=this.$forms[l]=x.$forms[l]=Q({},xa);if('undefined'==
444
445
  typeof h)if(m=l.replace(/\-/g,'.'),'undefined'!=typeof e)q.rule=Ia(m);else{if('undefined'!=typeof q.target&&null!==q.target&&q.target.getAttribute('data-gina-form-rule'))if(m=q.target.getAttribute('data-gina-form-rule').replace(/\-|\//g,'.'),'undefined'!=typeof e)q.rule=Ia(m);else throw Error('[ FormValidator::validateFormById(formId) ] using `data-gina-form-rule` on form `'+q.target+'`: no matching rule found');}else if(m=h.replace(/\-|\//g,'.'),'undefined'!=typeof e)q.rule=Ia(m);else throw Error('[ FormValidator::validateFormById(formId, customRule) ] `'+
445
446
  h+'` is not a valid rule');b&&'undefined'!=typeof this.isPopinContext&&/true/i.test(this.isPopinContext)&&(b.isPopinContext=this.isPopinContext);b&&!q.binded&&tb(b,m)}if(!q)throw Error('[ FormValidator::validateFormById(formId, customRule) ] `'+l+'` not found');return q||null},w=function(l){var h=l.form.id||l.form.getAttribute('id'),e=l.name||l.form.getAttribute('name'),b=document.activeElement.name;if(!/^true$/i.test(x.$forms[h].isValidating)){var q=l.parentNode;l=!1;var m=q.getElementsByTagName('div');
446
447
  /form\-item\-warning/.test(q.className)&&b!=e?q.className=q.className.replace(/form\-item\-warning/,'form-item-error'):/form\-item\-error/.test(q.className)&&b==e&&(q.className=q.className.replace(/form\-item\-error/,'form-item-warning'),l=!0);if(!/^true$/i.test(x.$forms[h].isValidating)||l)for(h=0,e=m.length;h<e;++h)if(/form\-item\-error\-message/.test(m[h].className)){m[h].className=l?m[h].className+' hidden':m[h].className.replace(/(\s+hidden|hidden)/,'');break}}},u={},G=function(l,h,e,b){if(N)var q=
@@ -493,12 +494,12 @@ delete x.$forms[e];removeListener(gina,b.currentTarget,b.type);removeListener(gi
493
494
  0<l[b][p].conditions.length)for(h=0,e=l[b][p].conditions.length;h<e;)'undefined'!=typeof l[b][p].conditions[h].rules&&0==l[b][p].conditions[h].rules.count()&&(l[b][p].conditions.splice(h,1),e--,h--),h++}},Da=function(l){var h=JSON.stringify(l),e=h.match(/("@import\s+[-_a-z A-Z 0-9/.]+")/g)||[],b=[];for(let O=0,D=e.length;O<D;O++)0>b.indexOf(e[O])&&b.push(e[O]);e=b;b=h.match(/("_merging(.*))(\s+:|:)(.*)(",|")/g);x.rules||(x.rules={});if(e&&0<e.length){l={};for(let O=0,D=e.length;O<D;++O){var q=e[O].replace(/(@import\s+|"|')/g,
494
495
  '');var m=q.replace(/(@import\s+|"|')/g,'').split(/\s/g);for(let aa=0,Aa=m.length;aa<Aa;++aa){var p=m[aa].replace(/\//g,'.').replace(/\-/g,'.');'undefined'!=typeof x.rules[p]?(p=JSON.stringify(x.rules[p]),p=JSON.parse(p),p._comment='undefined'!=typeof p._comment?p._comment+'\n':'',p._comment+='Imported from `'+q+'`',p=JSON.stringify(p),h=h.replace(new RegExp(e[O],'g'),p),x.rules=JSON.parse(JSON.stringify(x.rules).replace(new RegExp(e[O],'g'),'{}'))):console.warn('[formValidator:rules] <@import error> on `'+
495
496
  e[O]+'`: rule `'+m[aa]+'` not found. Ignoring.')}m=new RegExp(e[O]);if(q=b&&m.test(b.join())?!0:!1)for(let aa=0,Aa=b.length;aa<Aa;aa++)if(m.test(b[aa])){q=JSON.stringify(l);q=q.substring(1,q.length-1);aa<Aa-1&&(q+=',');try{h=h.replace(new RegExp(b[aa],'g'),q),x.rules=JSON.parse(JSON.stringify(x.rules).replace(new RegExp(b[aa],'g'),'{}'))}catch(ba){throw ba;}}l={}}l=JSON.parse(h);Ja(l,'');try{sa()}catch(O){console.error(O.stack)}}return l},Qa=function(l){gina.hasValidator?(x=Q(x,gina.validator),x.on('init',
496
- function(h){x.isReady=!0;triggerEvent(gina,x.target,'ready.'+x.id,x)})):(x.target=document,x.setOptions=n,x.getFormById=y,x.validateFormById=F,x.resetErrorsDisplay=M,x.resetFields=U,x.handleErrorsDisplay=G,x.send=Ea,x.on('init',function(h){if('undefined'!=typeof l&&l.count())try{Ja(l,''),l=Da(l),gina.forms.rules='undefined'!=typeof gina.forms.rules&&gina.forms.rules?Q(gina.forms.rules,l,!0):l,x.rules=Q(x.rules,JSON.clone(gina.forms.rules),!0)}catch(O){throw O;}va.count()||(va=JSON.clone(x.rules));
497
- ya.setOptions=n;ya.getFormById=y;ya.validateFormById=F;ya.resetErrorsDisplay=M;ya.resetFields=U;ya.handleErrorsDisplay=G;ya.submit=qa;ya.send=Ea;ya.unbind=nb;ya.bind=tb;ya.reBind=xb;ya.destroy=na;h=0;for(var e=document.getElementsByTagName('form'),b=0,q=e.length;b<q;++b){if(e[b].getAttribute){var m=e[b].getAttribute('id')||'form.'+ha.v4();m!==e[b].getAttribute('id')&&e[b].setAttribute('id',m)}else m='form.'+ha.v4(),e[b].setAttribute('id',m);ya.id=m;ya.target=e[b];x.$forms[m]=Q({},ya);var p=e[b].getAttribute('data-gina-form-rule');
498
- if(p){p=p.replace(/\-|\//g,'.');'undefined'!=typeof l&&(x.$forms[m].rules[p]=x.rules[p]=va[p]=Q(JSON.clone(eval('gina.forms.rules.'+p)),x.rules[p]));if('undefined'==typeof va[p])throw Error('['+m+'] no rule found with key: `'+p+'`. Please check if json is not malformed @ /forms/rules/'+p.replace(/\./g,'/')+'.json');p=x.rules[p]}'string'==typeof m&&'undefined'!=typeof va[m.replace(/\-/g,'.')]||'object'==typeof p?(m=x.$forms[m].target,p?tb(m,p):tb(m),++h):('object'==typeof e[b].id?(delete x.$forms[e[b].id],
499
- m=e[b].attributes.getNamedItem('id').nodeValue||'form.'+ha.v4(),e[b].setAttribute('id',m),e[b].id=m,ya.target=e[b],x.$forms[m]=Q({},ya),m=x.$forms[m].target):m=x.$forms[e[b].id].target,p?tb(m,p):tb(m))}if(window.XMLHttpRequest)K=new XMLHttpRequest;else if(window.ActiveXObject)try{K=new ActiveXObject('Msxml2.XMLHTTP')}catch(O){try{K=new ActiveXObject('Microsoft.XMLHTTP')}catch(D){}}x.isReady=!0;gina.hasValidator=!0;gina.validator=x;triggerEvent(gina,x.target,'ready.'+x.id,x)}));x.initialized=!0;return x},
500
- Ja=function(l,h){var e;for(e in l)if('object'==typeof l[e]&&'undefined'==typeof x.rules[h+e]){var b=e;/\[|\]/.test(e)&&(b=e.replace(/\[/g,'.').replace(/\]/g,''));x.rules[h+b]=l[e];Ja(l[e],h+b+'.')}},Ia=function(l){if('undefined'!=typeof va[l])return va[l];var h=null;if('undefined'==typeof x.rules[l]){if(Ja(va,''),va=Da(va),h=va[l],!h)return{}}else h=x.rules[l];h=JSON.clone(h);var e=new RegExp('^'+l),b=new RegExp('^'+l+'.'),q=null,m=function(O,D,aa,Aa,ba,ra,Ba){if(D.length){var H=Object.getOwnPropertyNames(O)[0],
501
- la=D[0];la=''==ba?ba+=la:ba+'['+la+']';1==D.length&&(O[H]=Q(O[H],aa,!0));D.splice(0,1);la==H?m(O[H],D,aa,Aa,la,ra,Ba):'undefined'!=typeof O[H]?m(O[H],D,aa,Aa,la,ra,Ba):m(O,D,aa,Aa,ba,ra,Ba)}},p;for(p in x.rules)p!=l&&e.test(p)&&(q=p.replace(b,''),/\./.test(q)&&(q=q.split(/\./g),m(h,q,x.rules[p],h,'',0,h.count()-1)));return va[l]=h},Ha=formatDataFromString,mb=function(l){var h=x.$forms[l.form.getAttribute('id')],e=/^true$/i.test(l.disabled)?!0:!1;e&&'undefined'!=typeof h.rule&&'undefined'!=typeof h.rule[l.name]&&
497
+ function(h){x.isReady=!0;triggerEvent(gina,x.target,'ready.'+x.id,x)})):(x.target=document,x.setOptions=n,x.getFormById=y,x.validateFormById=F,x.resetErrorsDisplay=M,x.resetFields=U,x.handleErrorsDisplay=G,x.send=Ea,x.on('init',function(h){if('undefined'!=typeof l&&l.count())try{Ja(l,''),l=Da(l),gina.forms.rules='undefined'!=typeof gina.forms.rules&&gina.forms.rules?Q(gina.forms.rules,l,!0):l,x.rules=Q(x.rules,JSON.clone(gina.forms.rules),!0)}catch(O){throw O;}ua.count()||(ua=JSON.clone(x.rules));
498
+ xa.setOptions=n;xa.getFormById=y;xa.validateFormById=F;xa.resetErrorsDisplay=M;xa.resetFields=U;xa.handleErrorsDisplay=G;xa.submit=qa;xa.send=Ea;xa.unbind=nb;xa.bind=tb;xa.reBind=xb;xa.destroy=na;h=0;for(var e=document.getElementsByTagName('form'),b=0,q=e.length;b<q;++b){if(e[b].getAttribute){var m=e[b].getAttribute('id')||'form.'+ha.v4();m!==e[b].getAttribute('id')&&e[b].setAttribute('id',m)}else m='form.'+ha.v4(),e[b].setAttribute('id',m);xa.id=m;xa.target=e[b];x.$forms[m]=Q({},xa);var p=e[b].getAttribute('data-gina-form-rule');
499
+ if(p){p=p.replace(/\-|\//g,'.');'undefined'!=typeof l&&(x.$forms[m].rules[p]=x.rules[p]=ua[p]=Q(JSON.clone(eval('gina.forms.rules.'+p)),x.rules[p]));if('undefined'==typeof ua[p])throw Error('['+m+'] no rule found with key: `'+p+'`. Please check if json is not malformed @ /forms/rules/'+p.replace(/\./g,'/')+'.json');p=x.rules[p]}'string'==typeof m&&'undefined'!=typeof ua[m.replace(/\-/g,'.')]||'object'==typeof p?(m=x.$forms[m].target,p?tb(m,p):tb(m),++h):('object'==typeof e[b].id?(delete x.$forms[e[b].id],
500
+ m=e[b].attributes.getNamedItem('id').nodeValue||'form.'+ha.v4(),e[b].setAttribute('id',m),e[b].id=m,xa.target=e[b],x.$forms[m]=Q({},xa),m=x.$forms[m].target):m=x.$forms[e[b].id].target,p?tb(m,p):tb(m))}if(window.XMLHttpRequest)K=new XMLHttpRequest;else if(window.ActiveXObject)try{K=new ActiveXObject('Msxml2.XMLHTTP')}catch(O){try{K=new ActiveXObject('Microsoft.XMLHTTP')}catch(D){}}x.isReady=!0;gina.hasValidator=!0;gina.validator=x;triggerEvent(gina,x.target,'ready.'+x.id,x)}));x.initialized=!0;return x},
501
+ Ja=function(l,h){var e;for(e in l)if('object'==typeof l[e]&&'undefined'==typeof x.rules[h+e]){var b=e;/\[|\]/.test(e)&&(b=e.replace(/\[/g,'.').replace(/\]/g,''));x.rules[h+b]=l[e];Ja(l[e],h+b+'.')}},Ia=function(l){if('undefined'!=typeof ua[l])return ua[l];var h=null;if('undefined'==typeof x.rules[l]){if(Ja(ua,''),ua=Da(ua),h=ua[l],!h)return{}}else h=x.rules[l];h=JSON.clone(h);var e=new RegExp('^'+l),b=new RegExp('^'+l+'.'),q=null,m=function(O,D,aa,Aa,ba,ra,Ba){if(D.length){var H=Object.getOwnPropertyNames(O)[0],
502
+ la=D[0];la=''==ba?ba+=la:ba+'['+la+']';1==D.length&&(O[H]=Q(O[H],aa,!0));D.splice(0,1);la==H?m(O[H],D,aa,Aa,la,ra,Ba):'undefined'!=typeof O[H]?m(O[H],D,aa,Aa,la,ra,Ba):m(O,D,aa,Aa,ba,ra,Ba)}},p;for(p in x.rules)p!=l&&e.test(p)&&(q=p.replace(b,''),/\./.test(q)&&(q=q.split(/\./g),m(h,q,x.rules[p],h,'',0,h.count()-1)));return ua[l]=h},Ha=formatDataFromString,mb=function(l){var h=x.$forms[l.form.getAttribute('id')],e=/^true$/i.test(l.disabled)?!0:!1;e&&'undefined'!=typeof h.rule&&'undefined'!=typeof h.rule[l.name]&&
502
503
  'undefined'!=typeof h.rule[l.name].exclude&&/^false$/i.test(h.rule[l.name].exclude)&&(e=!1);if(/^(radio|text|hidden|password|number|date|email)$/i.test(l.type)&&!e){var b=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,'value'),q=b.set;b.set=function(m){Object.defineProperty(this,'value',{set:q});var p='change.'+this.id;m===this.value&&m===this.defaultValue||m===this.value||(this.value=m,console.debug('Value set: '+m),'undefined'!=typeof gina.events[p]&&(console.debug('trigger event on: ',
503
504
  this.name,p),triggerEvent(gina,this,p,m)));Object.defineProperty(this,'value',b)};Object.defineProperty(l,'value',b)}},Fa=function(l,h,e,b){'undefined'==typeof b&&(b=!1);var q=l.rules,m=x.$forms[h.form.getAttribute('id')],p=/^true$/i.test(h.disabled)?!0:!1;p&&'undefined'!=typeof m.rule&&'undefined'!=typeof m.rule[h.name]&&'undefined'!=typeof m.rule[h.name].exclude&&/^false$/i.test(m.rule[h.name].exclude)&&(p=!1);if(/^(radio|checkbox|text|hidden|password|number|date|email)$/i.test(h.type)&&!p||b&&
504
505
  !p){b=h.name;m=q[b]||null;if(!m&&(yb(q,h),'undefined'==typeof q[b]))return;if(l.target.dataset.ginaFormLiveCheckEnabled&&m&&(b=[],m=null,p=0,/^(radio|checkbox)$/i.test(h.type)?m=/^(radio|checkbox)$/i.test(h.type)?'changed.'+h.id:'change.'+h.id:(addEventListener(gina,h,'focusout.'+h.id,function(D){D.preventDefault();clearTimeout(e)}),m='change.'+h.id,'undefined'==typeof gina.events[m]&&(b[p]=m,++p),m='keyup.'+h.id,'undefined'==typeof gina.events[m]&&(b[p]=m,++p),m='focusin.'+h.id,'undefined'==typeof gina.events[m]&&
@@ -523,7 +524,7 @@ removeListener(gina,h,'success.'+e+'.hform');h.target.getAttribute('data-gina-fo
523
524
  if(0<e.length)for(let p=0,O=e.length;p<O;++p)if(/^(hidden)$/i.test(e[p].type)||l.push(e[p]),/^(file)$/i.test(e[p].type)){var b=e[p].getAttribute('data-gina-form-virtual');if(b){var q=y(b).target;if(q){l.push(q);for(let D=0,aa=ka.length;D<aa;D++){var m=ka[D];'undefined'!=typeof gina.events[m+'.'+b+'.hform']&&gina.events[m+'.'+b+'.hform']==b&&removeListener(gina,q,m+'.'+b+'.hform')}}}}else for(let D=0,aa=ka.length;D<aa;D++)b=ka[D]+'.'+e[p].id,'undefined'!=typeof gina.events[b]&&gina.events[b]==e[p].id&&
524
525
  removeListener(gina,e[p],b),b=ka[D],'undefined'!=typeof gina.events[b]&&gina.events[b]==e[p].id&&removeListener(gina,e[p],b),b=e[p].id,'undefined'!=typeof gina.events[b]&&gina.events[b]==e[p].id&&removeListener(gina,e[p],b);e=h.target.getElementsByTagName('textarea');if(0<e.length)for(let p=0,O=e.length;p<O;++p)l.push(e[p]);e=h.target.getElementsByTagName('form');if(0<e.length)for(let p=0,O=e.length;p<O;++p)l.push(e[p]);l.push(h.target);for(let p=0,O=l.length;p<O;++p){e=l[p];b=e.getAttribute('id');
525
526
  for(let D=0,aa=ka.length;D<aa;D++)m=q=ka[D],'undefined'!=typeof gina.events[m]&&gina.events[m]==b&&removeListener(gina,e,m),m=b,'undefined'!=typeof gina.events[m]&&gina.events[m]==b&&removeListener(gina,e,m),m=q+'.'+b,'undefined'!=typeof gina.events[m]&&gina.events[m]==b&&removeListener(gina,e,m),m=q+'.'+b,'undefined'!=typeof gina.events[m]&&gina.events[m]==m&&removeListener(gina,e,m),m=q+'.'+b+'.hform','undefined'!=typeof gina.events[m]&&gina.events[m]==b&&removeListener(gina,e,m)}evt=null;h.binded=
526
- !1;return h},yb=function(l,h){h=h.name;if(!l[h])for(let e in l)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))){l[h]=l[e];break}},tb=function(l,h){var e=null,b=null,q=typeof(0<va.count())?va:x.rules;b='undefined'==typeof l&&'undefined'!=typeof this.target&&/FORM/i.test(this.target.tagName)||!/object/i.test(typeof l)?this.target.id||this.target.getAttribute('id'):/string/i.test(typeof l)?
527
+ !1;return h},yb=function(l,h){h=h.name;if(!l[h])for(let e in l)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))){l[h]=l[e];break}},tb=function(l,h){var e=null,b=null,q=typeof(0<ua.count())?ua:x.rules;b='undefined'==typeof l&&'undefined'!=typeof this.target&&/FORM/i.test(this.target.tagName)||!/object/i.test(typeof l)?this.target.id||this.target.getAttribute('id'):/string/i.test(typeof l)?
527
528
  l:l.getAttribute('id');try{if('undefined'!=typeof x.$forms[b]){e=x.$forms[b];if('undefined'==typeof e.target)throw Error('Validator::bindForm($target, customRule): `$target` must be a DOM element\n');l=e.target}else throw Error('form instance `'+b+'` not found');}catch(fa){throw Error('Validator::bindForm($target, customRule) could not bind form `'+l+'`\n'+fa.stack);}console.debug('binding for: '+b);var m=!1,p=null,O='',D=null;'undefined'!=typeof h||'string'==typeof b&&'undefined'!=typeof q[b.replace(/\-|\//g,
528
529
  '.')]?(m=!0,p=h&&'object'==typeof h?h:h&&'string'==typeof h&&'undefined'!=typeof q[h.replace(/\-|\//g,'.')]?Ia(h.replace(/\-|\//g,'.')):Ia(b.replace(/\-|\//g,'.')),e.rules=p,N&&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&&0<e.rules.count()?e.target.dataset.ginaFormLiveCheckEnabled=!0:e.target.dataset.ginaFormLiveCheckEnabled=
529
530
  'undefined'!=typeof e.target.dataset.ginaFormLiveCheckEnabled?/^true$/i.test(e.target.dataset.ginaFormLiveCheckEnabled)?!0:!1:!1;e.fieldsSet||(e.fieldsSet={});D=null;l.getElementsByTagName('a');h=l.getElementsByTagName('input');var aa=l.getElementsByTagName('textarea');D=l.getElementsByTagName('select');var Aa={},ba=[],ra={},Ba=null,H={},la=null,wa=null;for(let fa=0,X=aa.length;fa<X;++fa)yb(e.rules,aa[fa]),wa=aa[fa].getAttribute('id'),wa&&''!=wa||(wa='textareas.'+ha.v4(),aa[fa].setAttribute('id',
@@ -602,10 +603,10 @@ jb[Kb].rules[Eb],'undefined'==typeof X[Eb]&&'undefined'!=typeof ja[Eb]&&'undefin
602
603
  S&&ja[Pa].setAttribute('data-gina-form-errors',Ta[Pa].substring(0,Ta[Pa].length-1))}try{O=Ha(Ka.toData()),N&&S&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.validated||(gina.forms.validated={}),gina.forms.validated[p]||(gina.forms.validated[p]={}),window.ginaToolbar.update('forms',{id:p,validated:O}))}catch(Kb){throw Kb;}Aa=!0;if(!D&&0>=H)if('undefined'!=typeof Na&&'function'===typeof Na)Na._errors=Ka.getErrors(),Na._data=Ka.toData(),triggerEvent(gina,Ua,'validated.'+p,
603
604
  Na);else return D=!0,{isValid:Ka.isValid,error:cb,data:O}}};S&&addListener(gina,l,m,function(Ua){Ua.preventDefault();if(!D){D=!0;Aa=!1;H=0;var cb=Ua.detail,fa=cb._data||Ka.toData(),X=cb._errors||Ka.getErrors()||null;console.debug('instance errors: ',x.$forms[p].errors,' VS cbErrors: ',X,Ka.isValid(),' VS d.getErrors(): ',Ka.getErrors());0<X.count()&&Ka.isValid()&&(Ka.isValid=function(){return!1});cb({isValid:Ka.isValid,error:X,data:Ha(fa)});removeListener(gina,Ua.target,'validated.'+Ua.target.id)}});
604
605
  if(S)Hb(l,Ab,$a,h,e,b,q,0);else return Hb(l,Ab,$a,h,e,b,q,0)};return S?Qa(A):E(A,R,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});
605
- define('gina/toolbar','require jquery vendor/uuid lib/collection lib/routing gina/storage gina/validator'.split(' '),function(A){var R=A('jquery');R.noConflict();var V=A('lib/routing');A('lib/collection');var ka=A('gina/storage');return function(){var S=null,N=!1,ha=!1,Q=!1,T,v=(new ka({bucket:'gina'})).Collection('plugin'),I=null,x=null,ya=!1,va=null,P=null,K=null,B=null,E=null,n='',y=null,z=null,F=null,w='',u=null,G=0,M=0,U=0,qa='',Ea={},W=null,ia=null,ea=null,za=null,na=null,sa=null,Da=null,Qa=
606
- null,Ja=null,Ia=null,Ha=null,mb=null,Fa=null,Oa=null,Ya=function(){I=R('#gina-toolbar');if(!I.length)return!1;va=I.find('.gina-toolbar-tab > a');P=R('#gina-toolbar-toggle');K=R('#gina-toolbar-panels');B=K.find('.gina-toolbar-panel');y=R('#gina-toolbar-vposition');z=R('#gina-toolbar-hposition');F=y.add(z);u=R('#gina-toolbar-width');I.find('.gina-toolbar-main');W=R('#gina-toolbar-json');ia=R('#gina-toolbar-gina-json');ea=R('#gina-toolbar-toggle-code-raw');$forms=R('form:not(.gina-toolbar-options, .gina-toolbar-content)');
606
+ define('gina/toolbar','require jquery vendor/uuid lib/collection lib/routing gina/storage gina/validator'.split(' '),function(A){var R=A('jquery');R.noConflict();var V=A('lib/routing');A('lib/collection');var ka=A('gina/storage');return function(){var S=null,N=!1,ha=!1,Q=!1,T,v=(new ka({bucket:'gina'})).Collection('plugin'),I=null,x=null,xa=!1,ua=null,P=null,K=null,B=null,E=null,n='',y=null,z=null,F=null,w='',u=null,G=0,M=0,U=0,qa='',Ea={},W=null,ia=null,ea=null,za=null,na=null,sa=null,Da=null,Qa=
607
+ null,Ja=null,Ia=null,Ha=null,mb=null,Fa=null,Oa=null,Ya=function(){I=R('#gina-toolbar');if(!I.length)return!1;ua=I.find('.gina-toolbar-tab > a');P=R('#gina-toolbar-toggle');K=R('#gina-toolbar-panels');B=K.find('.gina-toolbar-panel');y=R('#gina-toolbar-vposition');z=R('#gina-toolbar-hposition');F=y.add(z);u=R('#gina-toolbar-width');I.find('.gina-toolbar-main');W=R('#gina-toolbar-json');ia=R('#gina-toolbar-gina-json');ea=R('#gina-toolbar-toggle-code-raw');$forms=R('form:not(.gina-toolbar-options, .gina-toolbar-content)');
607
608
  Ja=R('#gina-toolbar-data-html');Ia=R('#gina-toolbar-view-html');Ha=R('#gina-toolbar-forms-html');Qa=R('#gina-toolbar-configuration-environment-html');mb=R('#gina-toolbar-code-toggle');I.prepend('<textarea class="gina-toolbar-copy"></textarea>');Fa=I.find('.gina-toolbar-copy');x=v.findOne({_name:'toolbar'});x||(x={_name:'toolbar',_version:'1.0.3',_description:'Toolbar settings',_licence:'MIT',_author:[{name:'Fabrice Delaneau',company:'Freelancer'},{name:'Martin-Luther Etouman',company:'Rhinostone'}],
608
- position:'top-right',width:'30',panelId:'#gina-toolbar-data',isCollapsed:!0,isUnfolded:[],debug:{forms:{active:!1,strategy:'frontend'}}},v.insert(x),x=v.findOne({_name:'toolbar'}));'1.0.3'!=x._version&&('1.0.1'>x._version&&(x.isUnfolded||(x.isUnfolded=[]),void 0!=x.codeFolding&&delete x.codeFolding),'undefined'==typeof x.isUnfolded||Array.isArray(x.isUnfolded)||(x.isUnfolded=[]),x._version='1.0.3',x.save(!0));w=x.position;G=x.width;n=x.panelId;ya=x.isCollapsed;I.removeClass('gina-toolbar-hidden');
609
+ position:'top-right',width:'30',panelId:'#gina-toolbar-data',isCollapsed:!0,isUnfolded:[],debug:{forms:{active:!1,strategy:'frontend'}}},v.insert(x),x=v.findOne({_name:'toolbar'}));'1.0.3'!=x._version&&('1.0.1'>x._version&&(x.isUnfolded||(x.isUnfolded=[]),void 0!=x.codeFolding&&delete x.codeFolding),'undefined'==typeof x.isUnfolded||Array.isArray(x.isUnfolded)||(x.isUnfolded=[]),x._version='1.0.3',x.save(!0));w=x.position;G=x.width;n=x.panelId;xa=x.isCollapsed;I.removeClass('gina-toolbar-hidden');
609
610
  qb()},pb=function(q,m,p){var O=null,D=null;try{D=W?W.text():'',''==D||'null'==D?W.text('{}'):(na=JSON.parse(D),Da=JSON.parse(ia.text()),W.text(''),za||(za={jsonObject:JSON.clone(na),ginaJsonObject:JSON.clone(Da)},sa={}))}catch(H){console.error('Could not load ['+(q?' [ '+q+' ] ':' ')+'] json\n'+H.message+'\n'+H.stack);return}if(na){m&&!p?(na[q]||(na[q]={}),na[q]=Da[q]=m):'data-xhr'==q&&!m&&na['data-xhr']?delete na['data-xhr']:p&&(na=m,Da=p);b(na,'');Da.environment&&(delete Da.environment.routing,
610
611
  delete Da.environment.reverseRouting,delete Da.environment.forms);na.environment&&(delete na.environment.routing,delete na.environment.reverseRouting,delete na.environment.forms);Qa.html(eb(na.environment,Da.environment));O=na.data;var aa=na.view;p=na.forms;var Aa=Da.data,ba=Da.view;D=Da.forms;ha=T=!1;var ra=null,Ba=!1;/^(view-xhr)$/.test(q)&&(ra=!0,aa=na[q],ba=Da[q],O=na['data-xhr'],Aa=Da['data-xhr']);if(!q||/^(data)$/.test(q))Ja.html('<ul class="gina-toolbar-code">'+eb(O,Aa,null,ra)+'</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>'),
611
612
  Ia.html(Ub(aa,ba,null,ra,Ia)),O=$forms,Ha.html(''),Ha.html(ca(p,D,Ha,0,O,O.length,ra)),Ha.find('div.gina-toolbar-section > h2').off('click').on('click',function(H){H.preventDefault();R(this).parent().find('ul').first().slideToggle()});if(/^(data-xhr|view-xhr)$/.test(q)){if('undefined'==typeof na[q]||!na[q]||'null'==na[q])return!1;ra=!0;Ba='undefined'!=typeof na[q].isXHRViewData?!0:Ba;Ba||/^(view-xhr)$/.test(q)||'undefined'==typeof na['el-xhr']||(sa.data=JSON.clone(na[q]));Ba&&delete na[q].isXHRViewData;
@@ -614,9 +615,9 @@ ra)),Ha.find('div.gina-toolbar-section > h2').off('click').on('click',function(H
614
615
  0<m.errors.count()&&l(m.id,'errors',m.errors,ra),'undefined'!=typeof m.sent&&l(m.id,'sent',m.sent,ra));x.currentFile=na.file;x.currentFile||(x.currentFile=na.file);na.file==x.currentFile&&R(document).ready(function(){ha?(N=!0,0<x.isUnfolded.length&&!T&&(T=!0,setTimeout(function(){0<x.isUnfolded.length&&bb(x.isUnfolded,x.isUnfolded.length,0)},200))):ra?(N=!0,0<x.isUnfolded.length&&!T&&(T=!0,bb(x.isUnfolded,x.isUnfolded.length,0))):(N=!1,setTimeout(function(){0<x.isUnfolded.length&&bb(x.isUnfolded,
615
616
  x.isUnfolded.length,0)},200))})}if(!q||'el-xhr'==q&&!Q)Q=q&&'el-xhr'==q?!0:!1,pc(q)},bb=function(q,m,p){if(p==m)return!1;var O=q[p],D=null;N&&/^xhr-/.test(O)?(O=O.replace(/^xhr-/,''),D=R('.gina-toolbar-xhr-folding-state-'+O)):D=R('.gina-toolbar-folding-state-'+O);yb(D,function(){p+=1;bb(q,m,p)})},qb=function(){Ja.add(Ia).off('click','a').on('click','a',function(m){m.preventDefault();yb(R(this),null,!0)}).add(Ha).off('click','a').on('click','a',function(m){m.preventDefault();yb(R(this),null,!0)});
616
617
  Qa.add(Ia).off('click','a').on('click','a',function(m){m.preventDefault();yb(R(this),null,!0)}).add(Ha).off('click','a').on('click','a',function(m){m.preventDefault();yb(R(this),null,!0)});mb.off('click').on('click',function(m){m.preventDefault();yb('all',null,!0)});Ja.add(Ia,Ha).off('click','.gina-toolbar-value').on('click','.gina-toolbar-value',function(m){m.preventDefault();try{Oa=R(this).text(),Fa.text(Oa),Fa.select(),document.execCommand('copy',!1,null),Fa.blur()}catch(p){alert('Please press Ctrl/Cmd+C to copy the value')}});
617
- ea.off('click').on('click',function(m){na&&window.open('','JSON RAW','width=400,height=100').document.write(JSON.stringify(na.data))});va.off('click').on('click',function(m){m.preventDefault();va.removeClass('gina-toolbar-active');B.removeClass('gina-toolbar-active');R(this).addClass('gina-toolbar-active');n=R(this).attr('href');E=R(n).addClass('gina-toolbar-active');x.panelId=n;x.save()});P.off('click').on('click',function(m){m.preventDefault();I.toggleClass('gina-toolbar-collapsed');ya=I.hasClass('gina-toolbar-collapsed');
618
- x.isCollapsed=ya;x.save()});F.off('change').on('change',function(m){m.preventDefault();m=y.val();var p=z.val();w=m+'-'+p;Vb(w);x.position=w;x.save()});u.off('change').on('change',function(m){m.preventDefault();G=u.val();xb(G);x.width=G;x.save()});R(window).off('resize').on('resize',function(){nb()});R('body').off('keypress').on('keypress',function(m){if(!/INPUT|TEXTAREA/.test(m.target.tagName)){qa=m.keyCode?m.keyCode:m.which?m.which:m.charCode;m=new Date;if('undefined'!=typeof Ea.keynum&&Ea.keynum==
619
- qa&&'undefined'!=typeof Ea.pressTime&&500>m.getTime()-Ea.pressTime)switch(qa){case 103:I.toggle()}Ea.pressTime=m.getTime();Ea.keynum=qa}});va.filter('[href="'+n+'"]').trigger('click');ya||R('#gina-toolbar-toggle').trigger('click');Vb(w);var q=w.split('-');y.val(q[0]);z.val(q[1]);xb(G);u.val(G);nb();q=W?W.text():'';/^\{\{ (.*) \}\}/.test(q)?e(q,pb):pb()},Vb=function(q){I.removeClass('gina-toolbar-top-left gina-toolbar-top-right gina-toolbar-bottom-left gina-toolbar-bottom-right').addClass('gina-toolbar-'+
618
+ ea.off('click').on('click',function(m){na&&window.open('','JSON RAW','width=400,height=100').document.write(JSON.stringify(na.data))});ua.off('click').on('click',function(m){m.preventDefault();ua.removeClass('gina-toolbar-active');B.removeClass('gina-toolbar-active');R(this).addClass('gina-toolbar-active');n=R(this).attr('href');E=R(n).addClass('gina-toolbar-active');x.panelId=n;x.save()});P.off('click').on('click',function(m){m.preventDefault();I.toggleClass('gina-toolbar-collapsed');xa=I.hasClass('gina-toolbar-collapsed');
619
+ x.isCollapsed=xa;x.save()});F.off('change').on('change',function(m){m.preventDefault();m=y.val();var p=z.val();w=m+'-'+p;Vb(w);x.position=w;x.save()});u.off('change').on('change',function(m){m.preventDefault();G=u.val();xb(G);x.width=G;x.save()});R(window).off('resize').on('resize',function(){nb()});R('body').off('keypress').on('keypress',function(m){if(!/INPUT|TEXTAREA/.test(m.target.tagName)){qa=m.keyCode?m.keyCode:m.which?m.which:m.charCode;m=new Date;if('undefined'!=typeof Ea.keynum&&Ea.keynum==
620
+ qa&&'undefined'!=typeof Ea.pressTime&&500>m.getTime()-Ea.pressTime)switch(qa){case 103:I.toggle()}Ea.pressTime=m.getTime();Ea.keynum=qa}});ua.filter('[href="'+n+'"]').trigger('click');xa||R('#gina-toolbar-toggle').trigger('click');Vb(w);var q=w.split('-');y.val(q[0]);z.val(q[1]);xb(G);u.val(G);nb();q=W?W.text():'';/^\{\{ (.*) \}\}/.test(q)?e(q,pb):pb()},Vb=function(q){I.removeClass('gina-toolbar-top-left gina-toolbar-top-right gina-toolbar-bottom-left gina-toolbar-bottom-right').addClass('gina-toolbar-'+
620
621
  q)},xb=function(q){I.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-'+q)},nb=function(){M=window.innerHeight-32;I.find('.gina-toolbar-main').css('max-height',M+'px');var q=E.find('.gina-toolbar-main'),m=q.find('.gina-toolbar-content');U=q.height();U==M?m.addClass('gina-toolbar-content-end'):m.removeClass('gina-toolbar-content-end')},yb=function(q,m,p){'undefined'==typeof p&&(p=!1);if(void 0!=
621
622
  q&&q.length&&'all'!=q){S=q.attr('class');var O=!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-/,''):(O=!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>x.isUnfolded.indexOf(S))x.isUnfolded.push(S),x.save(),q.hasClass('gina-toolbar-unfolded')||
622
623
  (q.addClass('gina-toolbar-unfolded'),q.next('ul').slideToggle('fast'));else if(-1<x.isUnfolded.indexOf(S)&&q.hasClass('gina-toolbar-unfolded')){for(var D=new RegExp('^('+S+')'),aa=0,Aa=x.isUnfolded.length;aa<Aa;++aa)D.test(x.isUnfolded[aa])&&(!ha&&p||ha&&O||p)&&(x.isUnfolded.splice(aa,1),--aa);x.save(!0);0>x.isUnfolded.indexOf(S)&&(q.removeClass('gina-toolbar-unfolded'),q.next('ul').slideToggle('fast'))}else q.addClass('gina-toolbar-unfolded'),q.next('ul').slideToggle('fast')}'undefined'!=typeof m&&
@@ -654,20 +655,20 @@ Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto_
654
655
  'function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&'function'==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?'symbol':typeof l},Q(ca)}function T(ca){var l='function'==typeof Map?new Map:void 0;return T=function(h){function e(){return function(b,q,m){if(N())return Reflect.construct.apply(null,arguments);var p=[null];p.push.apply(p,q);p=new (b.bind.apply(b,p));return m&&ha(p,m.prototype),p}(h,arguments,ka(this).constructor)}if(null===
655
656
  h||!function(b){try{return-1!==Function.toString.call(b).indexOf('[native code]')}catch(q){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!==l){if(l.has(h))return l.get(h);l.set(h,e)}return e.prototype=Object.create(h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),ha(e,h)},T(ca)}function v(ca){return ca instanceof Uint8Array?ca:ca instanceof ArrayBuffer?new Uint8Array(ca):
656
657
  new Uint8Array(ca.buffer,ca.byteOffset,ca.byteLength)}function I(){return new TransformStream({transform:function(ca,l){!function(h,e){M&&h.data instanceof Blob?h.data.arrayBuffer().then(v).then(e):U&&(h.data instanceof ArrayBuffer||qa(h.data))?e(v(h.data)):Ea(h,!1,function(b){u||=new TextEncoder;e(u.encode(b))})}(ca,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 q=new DataView(b.buffer);q.setUint8(0,126);
657
- q.setUint16(1,e)}else b=new Uint8Array(9),q=new DataView(b.buffer),q.setUint8(0,127),q.setBigUint64(1,BigInt(e));ca.data&&'string'!=typeof ca.data&&(b[0]|=128);l.enqueue(b);l.enqueue(h)})}})}function x(ca){return ca.reduce(function(l,h){return l+h.length},0)}function ya(ca,l){if(ca[0].length===l)return ca.shift();for(var h=new Uint8Array(l),e=0,b=0;b<l;b++)h[b]=ca[0][e++],e===ca[0].length&&(ca.shift(),e=0);return ca.length&&e<ca[0].length&&(ca[0]=ca[0].slice(e)),h}function va(ca){if(ca){for(var l in va.prototype)ca[l]=
658
- va.prototype[l];return ca}}function P(ca){for(var l=arguments.length,h=Array(1<l?l-1:0),e=1;e<l;e++)h[e-1]=arguments[e];return h.reduce(function(b,q){return ca.hasOwnProperty(q)&&(b[q]=ca[q]),b},{})}function K(ca,l){l.useNativeTimers?(ca.setTimeoutFn=Ha.bind(Ia),ca.clearTimeoutFn=mb.bind(Ia)):(ca.setTimeoutFn=Ia.setTimeout.bind(Ia),ca.clearTimeoutFn=Ia.clearTimeout.bind(Ia))}function B(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function E(){}function n(){for(var ca in bb.requests)bb.requests.hasOwnProperty(ca)&&
658
+ q.setUint16(1,e)}else b=new Uint8Array(9),q=new DataView(b.buffer),q.setUint8(0,127),q.setBigUint64(1,BigInt(e));ca.data&&'string'!=typeof ca.data&&(b[0]|=128);l.enqueue(b);l.enqueue(h)})}})}function x(ca){return ca.reduce(function(l,h){return l+h.length},0)}function xa(ca,l){if(ca[0].length===l)return ca.shift();for(var h=new Uint8Array(l),e=0,b=0;b<l;b++)h[b]=ca[0][e++],e===ca[0].length&&(ca.shift(),e=0);return ca.length&&e<ca[0].length&&(ca[0]=ca[0].slice(e)),h}function ua(ca){if(ca){for(var l in ua.prototype)ca[l]=
659
+ ua.prototype[l];return ca}}function P(ca){for(var l=arguments.length,h=Array(1<l?l-1:0),e=1;e<l;e++)h[e-1]=arguments[e];return h.reduce(function(b,q){return ca.hasOwnProperty(q)&&(b[q]=ca[q]),b},{})}function K(ca,l){l.useNativeTimers?(ca.setTimeoutFn=Ha.bind(Ia),ca.clearTimeoutFn=mb.bind(Ia)):(ca.setTimeoutFn=Ia.setTimeout.bind(Ia),ca.clearTimeoutFn=Ia.clearTimeout.bind(Ia))}function B(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function E(){}function n(){for(var ca in bb.requests)bb.requests.hasOwnProperty(ca)&&
659
660
  bb.requests[ca].abort()}function y(ca){ca=ca.xdomain;try{if('undefined'!=typeof XMLHttpRequest&&(!ca||pb))return new XMLHttpRequest}catch(l){}if(!ca)try{return new (Ia[['Active'].concat('Object').join('X')])('Microsoft.XMLHTTP')}catch(l){}}function z(ca){if(8E3<ca.length)throw'URI too long';var l=ca,h=ca.indexOf('['),e=ca.indexOf(']');-1!=h&&-1!=e&&(ca=ca.substring(0,h)+ca.substring(h,e).replace(/:/g,';')+ca.substring(e,ca.length));var b,q;ca=tb.exec(ca||'');for(var m={},p=14;p--;)m[La[p]]=ca[p]||
660
661
  '';return-1!=h&&-1!=e&&(m.source=l,m.host=m.host.substring(1,m.host.length-1).replace(/;/g,':'),m.authority=m.authority.replace('[','').replace(']','').replace(/;/g,':'),m.ipv6uri=!0),m.pathNames=function(O,D){O=D.replace(/\/{2,9}/g,'/').split('/');'/'!=D.slice(0,1)&&0!==D.length||O.splice(0,1);'/'==D.slice(-1)&&O.splice(O.length-1,1);return O}(0,m.path),m.queryKey=(b=m.query,q={},b.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(O,D,aa){D&&(q[D]=aa)}),q),m}var F=Object.create(null);F.open='0';F.close=
661
662
  '1';F.ping='2';F.pong='3';F.message='4';F.upgrade='5';F.noop='6';var w=Object.create(null);Object.keys(F).forEach(function(ca){w[F[ca]]=ca});for(var u,G={type:'error',data:'parser error'},M='function'==typeof Blob||'undefined'!=typeof Blob&&'[object BlobConstructor]'===Object.prototype.toString.call(Blob),U='function'==typeof ArrayBuffer,qa=function(ca){return'function'==typeof ArrayBuffer.isView?ArrayBuffer.isView(ca):ca&&ca.buffer instanceof ArrayBuffer},Ea=function(ca,l,h){var e=ca.type;ca=ca.data;
662
663
  return M&&ca instanceof Blob?l?h(ca):W(ca,h):U&&(ca instanceof ArrayBuffer||qa(ca))?l?h(ca):W(new Blob([ca]),h):h(F[e]+(ca||''))},W=function(ca,l){var h=new FileReader;return h.onload=function(){var e=h.result.split(',')[1];l('b'+(e||''))},h.readAsDataURL(ca)},ia='undefined'==typeof Uint8Array?[]:new Uint8Array(256),ea=0;64>ea;ea++)ia['ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charCodeAt(ea)]=ea;var za,na='function'==typeof ArrayBuffer,sa=function(ca,l){if('string'!=typeof ca)return{type:'message',
663
664
  data:Da(ca,l)};var h=ca.charAt(0);if('b'===h){ca=ca.substring(1);if(na){var e=.75*ca.length;h=ca.length;var b=0;'='===ca[ca.length-1]&&(e--,'='===ca[ca.length-2]&&e--);var q=new ArrayBuffer(e),m=new Uint8Array(q);for(e=0;e<h;e+=4){var p=ia[ca.charCodeAt(e)];var O=ia[ca.charCodeAt(e+1)];var D=ia[ca.charCodeAt(e+2)];var aa=ia[ca.charCodeAt(e+3)];m[b++]=p<<2|O>>4;m[b++]=(15&O)<<4|D>>2;m[b++]=(3&D)<<6|63&aa}l=Da(q,l)}else l={base64:!0,data:ca};l={type:'message',data:l}}else l=w[h]?1<ca.length?{type:w[h],
664
- data:ca.substring(1)}:{type:w[h]}:G;return l},Da=function(ca,l){return'blob'===l?ca instanceof Blob?ca:new Blob([ca]):ca instanceof ArrayBuffer?ca:ca.buffer},Qa=String.fromCharCode(30);va.prototype.on=va.prototype.addEventListener=function(ca,l){return this.t=this.t||{},(this.t['$'+ca]=this.t['$'+ca]||[]).push(l),this};va.prototype.once=function(ca,l){function h(){this.off(ca,h);l.apply(this,arguments)}return h.fn=l,this.on(ca,h),this};va.prototype.off=va.prototype.removeListener=va.prototype.removeAllListeners=
665
- va.prototype.removeEventListener=function(ca,l){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var h,e=this.t['$'+ca];if(!e)return this;if(1==arguments.length)return delete this.t['$'+ca],this;for(var b=0;b<e.length;b++)if((h=e[b])===l||h.fn===l){e.splice(b,1);break}return 0===e.length&&delete this.t['$'+ca],this};va.prototype.emit=function(ca){this.t=this.t||{};for(var l=Array(arguments.length-1),h=this.t['$'+ca],e=1;e<arguments.length;e++)l[e-1]=arguments[e];if(h){e=0;for(var b=
666
- (h=h.slice(0)).length;e<b;++e)h[e].apply(this,l)}return this};va.prototype.emitReserved=va.prototype.emit;va.prototype.listeners=function(ca){return this.t=this.t||{},this.t['$'+ca]||[]};va.prototype.hasListeners=function(ca){return!!this.listeners(ca).length};var Ja='function'==typeof Promise&&'function'==typeof Promise.resolve?function(ca){return Promise.resolve().then(ca)}:function(ca,l){return l(ca,0)},Ia='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return this')(),
665
+ data:ca.substring(1)}:{type:w[h]}:G;return l},Da=function(ca,l){return'blob'===l?ca instanceof Blob?ca:new Blob([ca]):ca instanceof ArrayBuffer?ca:ca.buffer},Qa=String.fromCharCode(30);ua.prototype.on=ua.prototype.addEventListener=function(ca,l){return this.t=this.t||{},(this.t['$'+ca]=this.t['$'+ca]||[]).push(l),this};ua.prototype.once=function(ca,l){function h(){this.off(ca,h);l.apply(this,arguments)}return h.fn=l,this.on(ca,h),this};ua.prototype.off=ua.prototype.removeListener=ua.prototype.removeAllListeners=
666
+ ua.prototype.removeEventListener=function(ca,l){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var h,e=this.t['$'+ca];if(!e)return this;if(1==arguments.length)return delete this.t['$'+ca],this;for(var b=0;b<e.length;b++)if((h=e[b])===l||h.fn===l){e.splice(b,1);break}return 0===e.length&&delete this.t['$'+ca],this};ua.prototype.emit=function(ca){this.t=this.t||{};for(var l=Array(arguments.length-1),h=this.t['$'+ca],e=1;e<arguments.length;e++)l[e-1]=arguments[e];if(h){e=0;for(var b=
667
+ (h=h.slice(0)).length;e<b;++e)h[e].apply(this,l)}return this};ua.prototype.emitReserved=ua.prototype.emit;ua.prototype.listeners=function(ca){return this.t=this.t||{},this.t['$'+ca]||[]};ua.prototype.hasListeners=function(ca){return!!this.listeners(ca).length};var Ja='function'==typeof Promise&&'function'==typeof Promise.resolve?function(ca){return Promise.resolve().then(ca)}:function(ca,l){return l(ca,0)},Ia='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return this')(),
667
668
  Ha=Ia.setTimeout,mb=Ia.clearTimeout,Fa=function(ca){function l(h,e,b){var q;return(q=ca.call(this,h)||this).description=e,q.context=b,q.type='TransportError',q}return S(l,ca),l}(T(Error));ea=function(ca){function l(e){var b;return(b=ca.call(this)||this).writable=!1,K(b,e),b.opts=e,b.query=e.query,b.socket=e.socket,b.supportsBinary=!e.forceBase64,b}S(l,ca);var h=l.prototype;return h.onError=function(e,b,q){return ca.prototype.emitReserved.call(this,'error',new Fa(e,b,q)),this},h.open=function(){return this.readyState=
668
669
  '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;ca.prototype.emitReserved.call(this,'open')},h.onData=function(e){e=sa(e,this.socket.binaryType);this.onPacket(e)},h.onPacket=function(e){ca.prototype.emitReserved.call(this,'packet',e)},h.onClose=function(e){this.readyState='closed';
669
670
  ca.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='',q;for(q in e)e.hasOwnProperty(q)&&
670
- (b.length&&(b+='&'),b+=encodeURIComponent(q)+'='+encodeURIComponent(e[q]));e=b;return e.length?'?'+e:''},l}(va);var Oa=function(ca){function l(){var e;return(e=ca.apply(this,arguments)||this).h=!1,e}S(l,ca);var h=l.prototype;return h.doOpen=function(){this.p()},h.pause=function(e){var b=this;this.readyState='pausing';var q=function(){b.readyState='paused';e()};if(this.h||!this.writable){var m=0;this.h&&(m++,this.once('pollComplete',function(){--m||q()}));this.writable||(m++,this.once('drain',function(){--m||
671
+ (b.length&&(b+='&'),b+=encodeURIComponent(q)+'='+encodeURIComponent(e[q]));e=b;return e.length?'?'+e:''},l}(ua);var Oa=function(ca){function l(){var e;return(e=ca.apply(this,arguments)||this).h=!1,e}S(l,ca);var h=l.prototype;return h.doOpen=function(){this.p()},h.pause=function(e){var b=this;this.readyState='pausing';var q=function(){b.readyState='paused';e()};if(this.h||!this.writable){var m=0;this.h&&(m++,this.once('pollComplete',function(){--m||q()}));this.writable||(m++,this.once('drain',function(){--m||
671
672
  q()}))}else q()},h.p=function(){this.h=!0;this.doPoll();this.emitReserved('poll')},h.onData=function(e){var b=this;(function(q,m){q=q.split(Qa);for(var p=[],O=0;O<q.length;O++){var D=sa(q[O],m);if(p.push(D),'error'===D.type)break}return p})(e,this.socket.binaryType).forEach(function(q){if('opening'===b.readyState&&'open'===q.type&&b.onOpen(),'close'===q.type)return b.onClose({description:'transport closed by the server'}),!1;b.onPacket(q)});'closed'!==this.readyState&&(this.h=!1,this.emitReserved('pollComplete'),
672
673
  '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(q,m){var p=q.length,O=Array(p),D=0;q.forEach(function(aa,Aa){Ea(aa,!1,function(ba){O[Aa]=ba;++D===p&&m(O.join(Qa))})})})(e,function(q){b.doWrite(q,function(){b.writable=!0;b.emitReserved('drain')})})},h.uri=function(){var e=this.opts.secure?'https':'http',b=this.query||{};return!1!==
673
674
  this.opts.timestampRequests&&(b[this.opts.timestampParam]=B()),this.supportsBinary||b.sid||(b.b64=1),this.createUri(e,b)},R(l,[{key:'name',get:function(){return'polling'}}])}(ea),Ya=!1;try{Ya='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest}catch(ca){}var pb=Ya;Oa=function(ca){function l(e){var b;if(b=ca.call(this,e)||this,'undefined'!=typeof location){var q='https:'===location.protocol,m=location.port;m||=q?'443':'80';b.xd='undefined'!=typeof location&&e.hostname!==location.hostname||
@@ -675,14 +676,14 @@ m!==e.port}return b}S(l,ca);var h=l.prototype;return h.doWrite=function(e,b){var
675
676
  b,m.k=void 0!==q.data?q.data:null,m.A(),m}S(l,ca);var h=l.prototype;return h.A=function(){var e,b=this,q=P(this.l,'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');q.xdomain=!!this.l.xd;var m=this.j=this.createRequest(q);try{m.open(this.v,this.m,!0);try{if(this.l.extraHeaders)for(var p in m.setDisableHeaderCheck&&m.setDisableHeaderCheck(!0),this.l.extraHeaders)this.l.extraHeaders.hasOwnProperty(p)&&m.setRequestHeader(p,this.l.extraHeaders[p])}catch(O){}if('POST'===
676
677
  this.v)try{m.setRequestHeader('Content-type','text/plain;charset=UTF-8')}catch(O){}try{m.setRequestHeader('Accept','*/*')}catch(O){}null===(e=this.l.cookieJar)||void 0===e||e.addCookies(m);'withCredentials'in m&&(m.withCredentials=this.l.withCredentials);this.l.requestTimeout&&(m.timeout=this.l.requestTimeout);m.onreadystatechange=function(){var O;3!==m.readyState||null!==(O=b.l.cookieJar)&&void 0!==O&&O.parseCookies(m.getResponseHeader('set-cookie'));4===m.readyState&&(200===m.status||1223===m.status?
677
678
  b.B():b.setTimeoutFn(function(){b.O('number'==typeof m.status?m.status:0)},0))};m.send(this.k)}catch(O){return void this.setTimeoutFn(function(){b.O(O)},0)}'undefined'!=typeof document&&(this.U=l.requestsCount++,l.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=E,e)try{this.j.abort()}catch(b){}'undefined'!=typeof document&&delete l.requests[this.U];this.j=null}},h.B=function(){var e=
678
- this.j.responseText;null!==e&&(this.emitReserved('data',e),this.emitReserved('success'),this.T())},h.abort=function(){this.T()},l}(va);if(bb.requestsCount=0,bb.requests={},'undefined'!=typeof document)'function'==typeof attachEvent?attachEvent('onunload',n):'function'==typeof addEventListener&&addEventListener('onpagehide'in Ia?'pagehide':'unload',n,!1);var qb,Vb=(qb=y({xdomain:!1}))&&null!==qb.responseType;qb=function(ca){function l(h){var e=ca.call(this,h)||this;h=h&&h.forceBase64;return e.supportsBinary=
679
+ this.j.responseText;null!==e&&(this.emitReserved('data',e),this.emitReserved('success'),this.T())},h.abort=function(){this.T()},l}(ua);if(bb.requestsCount=0,bb.requests={},'undefined'!=typeof document)'function'==typeof attachEvent?attachEvent('onunload',n):'function'==typeof addEventListener&&addEventListener('onpagehide'in Ia?'pagehide':'unload',n,!1);var qb,Vb=(qb=y({xdomain:!1}))&&null!==qb.responseType;qb=function(ca){function l(h){var e=ca.call(this,h)||this;h=h&&h.forceBase64;return e.supportsBinary=
679
680
  Vb&&!h,e}return S(l,ca),l.prototype.request=function(){var h=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return V(h,{xd:this.xd},this.opts),new bb(y,this.uri(),h)},l}(Oa);var xb='undefined'!=typeof navigator&&'string'==typeof navigator.product&&'reactnative'===navigator.product.toLowerCase();Oa=function(ca){function l(){return ca.apply(this,arguments)||this}S(l,ca);var h=l.prototype;return h.doOpen=function(){var e=this.uri(),b=this.opts.protocols,q=xb?{}:P(this.opts,'agent','perMessageDeflate',
680
681
  'pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this.opts.extraHeaders&&(q.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,b,q)}catch(m){return this.emitReserved('error',m)}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',
681
682
  context:b})};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 q=function(){var p=e[m],O=m===e.length-1;Ea(p,b.supportsBinary,function(D){try{b.doWrite(p,D)}catch(aa){}O&&Ja(function(){b.writable=!0;b.emitReserved('drain')},b.setTimeoutFn)})},m=0;m<e.length;m++)q()},h.doClose=function(){void 0!==this.ws&&(this.ws.onerror=function(){},this.ws.close(),this.ws=null)},h.uri=
682
683
  function(){var e=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)},R(l,[{key:'name',get:function(){return'websocket'}}])}(ea);var nb=Ia.WebSocket||Ia.MozWebSocket;Oa=function(ca){function l(){return ca.apply(this,arguments)||this}S(l,ca);var h=l.prototype;return h.createSocket=function(e,b,q){return xb?new nb(e,b,q):b?new nb(e,b):new nb(e)},h.doWrite=function(e,b){this.ws.send(b)},
683
684
  l}(Oa);ea=function(ca){function l(){return ca.apply(this,arguments)||this}S(l,ca);var h=l.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 q=function(p,O){za||=new TextDecoder;var D=[],aa=
684
- 0,Aa=-1,ba=!1;return new TransformStream({transform:function(ra,Ba){for(D.push(ra);;){if(0===aa){if(1>x(D))break;ra=ya(D,1);ba=!(128&~ra[0]);Aa=127&ra[0];aa=126>Aa?3:126===Aa?1:2}else if(1===aa){if(2>x(D))break;ra=ya(D,2);Aa=(new DataView(ra.buffer,ra.byteOffset,ra.length)).getUint16(0);aa=3}else if(2===aa){if(8>x(D))break;ra=ya(D,8);ra=new DataView(ra.buffer,ra.byteOffset,ra.length);var H=ra.getUint32(0);if(H>Math.pow(2,21)-1){Ba.enqueue(G);break}Aa=H*Math.pow(2,32)+ra.getUint32(4);aa=3}else{if(x(D)<
685
- Aa)break;ra=ya(D,Aa);Ba.enqueue(sa(ba?ra:za.decode(ra),O));aa=0}if(0===Aa||Aa>p){Ba.enqueue(G);break}}}})}(Number.MAX_SAFE_INTEGER,e.socket.binaryType),m=b.readable.pipeThrough(q).getReader();q=I();q.readable.pipeTo(b.writable);e.C=q.writable.getWriter();!function O(){m.read().then(function(D){var aa=D.value;D.done||(e.onPacket(aa),O())}).catch(function(D){})}();b={type:'open'};e.query.sid&&(b.data='{"sid":"'.concat(e.query.sid,'"}'));e.C.write(b).then(function(){return e.onOpen()})})})},h.write=
685
+ 0,Aa=-1,ba=!1;return new TransformStream({transform:function(ra,Ba){for(D.push(ra);;){if(0===aa){if(1>x(D))break;ra=xa(D,1);ba=!(128&~ra[0]);Aa=127&ra[0];aa=126>Aa?3:126===Aa?1:2}else if(1===aa){if(2>x(D))break;ra=xa(D,2);Aa=(new DataView(ra.buffer,ra.byteOffset,ra.length)).getUint16(0);aa=3}else if(2===aa){if(8>x(D))break;ra=xa(D,8);ra=new DataView(ra.buffer,ra.byteOffset,ra.length);var H=ra.getUint32(0);if(H>Math.pow(2,21)-1){Ba.enqueue(G);break}Aa=H*Math.pow(2,32)+ra.getUint32(4);aa=3}else{if(x(D)<
686
+ Aa)break;ra=xa(D,Aa);Ba.enqueue(sa(ba?ra:za.decode(ra),O));aa=0}if(0===Aa||Aa>p){Ba.enqueue(G);break}}}})}(Number.MAX_SAFE_INTEGER,e.socket.binaryType),m=b.readable.pipeThrough(q).getReader();q=I();q.readable.pipeTo(b.writable);e.C=q.writable.getWriter();!function O(){m.read().then(function(D){var aa=D.value;D.done||(e.onPacket(aa),O())}).catch(function(D){})}();b={type:'open'};e.query.sid&&(b.data='{"sid":"'.concat(e.query.sid,'"}'));e.C.write(b).then(function(){return e.onOpen()})})})},h.write=
686
687
  function(e){var b=this;this.writable=!1;for(var q=function(){var p=m===e.length-1;b.C.write(e[m]).then(function(){p&&Ja(function(){b.writable=!0;b.emitReserved('drain')},b.setTimeoutFn)})},m=0;m<e.length;m++)q()},h.doClose=function(){var e;null===(e=this.M)||void 0===e||e.close()},R(l,[{key:'name',get:function(){return'webtransport'}}])}(ea);var yb={websocket:Oa,webtransport:ea,polling:qb},tb=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,
687
688
  La='source protocol authority userInfo user password host port relative path directory file query anchor'.split(' '),eb='function'==typeof addEventListener&&'function'==typeof removeEventListener,Gb=[];eb&&addEventListener('offline',function(){Gb.forEach(function(ca){return ca()})},!1);var Ub=function(ca){function l(e,b){var q;((q=ca.call(this)||this).binaryType='arraybuffer',q.writeBuffer=[],q.L=0,q.R=-1,q.D=-1,q.P=-1,q.I=1/0,e&&'object'===Q(e)&&(b=e,e=null),e)?(e=z(e),b.hostname=e.host,b.secure=
688
689
  '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 K(q,b),q.secure=null!=b.secure?b.secure:'undefined'!=typeof location&&'https:'===location.protocol,b.hostname&&!b.port&&(b.port=q.secure?'443':'80'),q.hostname=b.hostname||('undefined'!=typeof location?location.hostname:'localhost'),q.port=b.port||('undefined'!=typeof location&&location.port?location.port:q.secure?'443':'80'),q.transports=[],q.$={},b.transports.forEach(function(m){var p=
@@ -696,7 +697,7 @@ this.Y();this.transport.send(e);this.L=e.length;this.emitReserved('flush')}},h.Y
696
697
  q);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,Ja(function(){e.V('ping timeout')},this.setTimeoutFn)),b},h.write=function(e,b,q){return this.J('message',e,b,q),this},h.send=function(e,b,q){return this.J('message',e,b,q),this},h.J=function(e,b,q,m){if('function'==typeof b&&(m=b,b=void 0),'function'==typeof q&&(m=q,q=null),'closing'!==this.readyState&&'closed'!==this.readyState)(q=q||{}).compress=!1!==q.compress,e={type:e,data:b,
697
698
  options:q},this.emitReserved('packetCreate',e),this.writeBuffer.push(e),m&&this.once('flush',m),this.flush()},h.close=function(){var e=this,b=function(){e.V('forced close');e.transport.close()},q=function O(){e.off('upgrade',O);e.off('upgradeError',O);b()},m=function(){e.once('upgrade',q);e.once('upgradeError',q)};return'opening'!==this.readyState&&'open'!==this.readyState||(this.readyState='closing',this.writeBuffer.length?this.once('drain',function(){e.upgrading?m():b()}):this.upgrading?m():b()),
698
699
  this},h.O=function(e){if(l.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(),eb&&(this.q&&removeEventListener('beforeunload',
699
- this.q,!1),this.N)){var q=Gb.indexOf(this.N);-1!==q&&Gb.splice(q,1)}this.readyState='closed';this.id=null;this.emitReserved('close',e,b);this.writeBuffer=[];this.L=0}},l}(va);Ub.protocol=4;var pc=function(ca){function l(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 yb[b]}).filter(function(b){return!!b})),
700
+ this.q,!1),this.N)){var q=Gb.indexOf(this.N);-1!==q&&Gb.splice(q,1)}this.readyState='closed';this.id=null;this.emitReserved('close',e,b);this.writeBuffer=[];this.L=0}},l}(ua);Ub.protocol=4;var pc=function(ca){function l(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 yb[b]}).filter(function(b){return!!b})),
700
701
  ca.call(this,h,e)||this}return S(l,ca),l}(function(ca){function l(){var e;return(e=ca.apply(this,arguments)||this)._=[],e}S(l,ca);var h=l.prototype;return h.onOpen=function(){if(ca.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(){aa||(aa=!0,ra(),D.close(),D=null)}function q(){ba('transport closed')}function m(){ba('socket closed')}function p(Ba){D&&Ba.name!==D.name&&b()}var O=this,D=this.createTransport(e),
701
702
  aa=!1;Ub.priorWebsocketSuccess=!1;var Aa=function(){aa||(D.send([{type:'ping',data:'probe'}]),D.once('packet',function(Ba){if(!aa)if('pong'===Ba.type&&'probe'===Ba.data){if(O.upgrading=!0,O.emitReserved('upgrading',D),D)Ub.priorWebsocketSuccess='websocket'===D.name,O.transport.pause(function(){aa||'closed'!==O.readyState&&(ra(),O.setTransport(D),D.send([{type:'upgrade'}]),O.emitReserved('upgrade',D),D=null,O.upgrading=!1,O.flush())})}else Ba=Error('probe error'),Ba.transport=D.name,O.emitReserved('upgradeError',
702
703
  Ba)}))},ba=function(Ba){Ba=Error('probe error: '+Ba);Ba.transport=D.name;b();O.emitReserved('upgradeError',Ba)},ra=function(){D.removeListener('open',Aa);D.removeListener('error',ba);D.removeListener('close',q);O.off('close',m);O.off('upgrading',p)};D.once('open',Aa);D.once('error',ba);D.once('close',q);this.once('close',m);this.once('upgrading',p);-1!==this._.indexOf('webtransport')&&'webtransport'!==e?this.setTimeoutFn(function(){aa||D.open()},200):D.open()},h.onHandshake=function(e){this._=this.nt(e.upgrades);
@@ -705,20 +706,20 @@ function BindingHelper(A){var R={};'undefined'!=typeof A&&(R=A);R.process=functi
705
706
  N.handler+'` could not be reached. You must expose it to the `window` do object before any call.');var Q=N.handler;delete N.handler;window[Q].apply(this,Object.values(N));N.handler=Q}else R[ha].apply(this,Object.values(N));N.call=ha}catch(T){console.error('BindingHelper encountered error while trying to execute `'+ha+'`'+T.stack||T)}R.process(V,ka,S+1)}};return R}define('helpers/binding',[],function(){return BindingHelper});
706
707
  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){}}
707
708
  function Domain(A,R){var V='undefined'!==typeof module&&module.exports?!1:!0,ka=!1,S='/_gina/assets/public_suffix_list.dat';V&&(ka=!!window.MSInputMethodContext&&!!document.documentMode,S=gina.config.webroot+S.substring(1));'function'==typeof A&&(R=A,A=void 0);var N={filename:'../dist/public_suffix_list.dat',url:S,alternativeUrl:'https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat',isCachingRequired:!1,isUpdating:!1};V||'undefined'==typeof A||'undefined'==typeof A.webroot||
708
- (N.url=A.webroot+S.substring(1));var ha=null,Q=null,T=function(va,P,K){if('undefined'==typeof P)P=N;else for(let B in N)'undefined'==typeof P[B]&&(P[B]=N[B]);V||(P.filename=__dirname+'/'+P.filename);V&&P.isCachingRequired&&(console.warn('[DOMAIN] `options.isCachingRequired` is only available for backend'),P.isCachingRequired=!1);ha=P;if(K)return v(P,function(B){B?K(B):(console.debug('[DOMAIN][CB] PSL Loaded'),K(B,va))});v(P);console.debug('[DOMAIN] PSL Loaded');return va};S=function(){};var v=async function(va,
709
- P){var K=V||va.isCachingRequired?va.url:va.filename,B='undefined'!=typeof va.isUpdating?va.isUpdating:!1,E=null;if(V)if(Q&&!B)P(!1);else if(window.fetch){E=B=null;try{B=await fetch(K),Q=E=await B.text()}catch(y){E=Error('[DOMAIN] Could not load PSL\n'+(y.stack||y.message||y));P(E);return}va.isUpdating=!1;P(!1)}else E=Error('[DOMAIN] Fetch API not supported'),P(E);else{K=!1;if('undefined'!=typeof fs.accessSync)try{fs.accessSync(va.filename,fs.constants.F_OK),K=!0}catch(y){K=!1;try{fs.lstatSync(va.filename).isSymbolicLink()&&
710
- (K=!0)}catch(z){}}else K=fs.existsSync(va.filename);K||(va.isCachingRequired=!0);if(va.isCachingRequired){K='curl -o '+va.filename+' '+va.url+' >/dev/null 2>&1';console.debug('[DOMAIN] Running: '+K);try{execSync(K)}catch(y){console.warn('[DOMAIN] could not fetch from `'+va.url+'`. Trying with `'+va.alternativeUrl+'`');K='curl -o '+va.filename+' '+va.alternativeUrl+' >/dev/null 2>&1';try{execSync(K)}catch(z){P(z);return}}var n=!1;nIntervId=setInterval(()=>{if('undefined'!=typeof fs.accessSync)try{fs.accessSync(va.filename,
711
- fs.constants.F_OK),n=!0}catch(y){n=!1;try{fs.lstatSync(va.filename).isSymbolicLink()&&(n=!0)}catch(z){}}else n=fs.existsSync(va.filename);n&&(clearInterval(nIntervId),Q=fs.readFileSync(va.filename).toString(),P(!1))},200)}try{Q=fs.readFileSync(va.filename).toString(),P&&P(!1)}catch(y){console.warn('[DOMAIN] could not read from `'+va.filename+'`'),v(A,P)}}},I=function(va){ha.isUpdating=!0;v(ha,va)},x=async function(va){va='undefined'!=typeof va&&''!=va?va:os.hostname();if(/\./.test(va))return va;console.debug('[DOMAIN][getFQDN] FQDN: '+
712
- va);var P=null,K=null;P=await promisify(dns.lookup)(va,{hints:dns.ADDRCONFIG||dns.V4MAPPED}).then(function(B){console.debug('[DOMAIN][getFQDN] IP: '+B.address);console.debug('[DOMAIN][getFQDN] FAMILY: '+B.family);return B}).catch(function(B){K=B});if(K)throw K;va=await promisify(dns.lookupService)(P.address,0).then(function(B){console.debug('[DOMAIN][getFQDN] FQDN: '+B.hostname);console.debug('[DOMAIN][getFQDN] Service: '+B.service);return B.hostname}).catch(function(B){});if(K)throw K;if(!/\./.test(va))throw Error('[DOMAIN][getFQDN] `'+
713
- va+'` is not a FQDN !');return va},ya={getRootDomain:function(va,P){'undefined'==typeof P&&(P=!1);va=va.trim();var K=!1,B=!1,E=va.replace(/^(.*):\/\/|\/(.*)/g,''),n=E.split(/\./g).reverse(),y=n.length?n.length-1:0,z=Q.replace(/\/\/\s*(.*)\n|^\s*\n/gm,'').split(/\n/).filter(function(F,w,u){/[^a-z 0-9.]+/.test(F)&&(F=F.replace(/[^a-z 0-9.]+/g,'').replace(/^\./g,''));return/\./.test(F)&&!K&&(new RegExp('.'+F+'$')).test(E)?(K=!0,y=F.split(/\./g).length,u.splice(0,u.length),!1):F});E=n[y];0<y&&(n=n.splice(0,
714
- y),B=n[0],/:(.*)$/.test(B)&&(B=B.replace(/:(.*)$/,'')),(B=K||!K&&-1<z.indexOf(B)?!0:!1)?1<y&&!K?(n.splice(2),E=n.reverse().join('.')):E+='.'+n.reverse().join('.'):1<y?(n.splice(2),E=n.reverse().join('.')):E+='.'+n.reverse().join('.'));/:(.*)$/.test(E)&&(E=E.replace(/:(.*)$/,''));console.debug('[DOMAIN] isSLD: '+K,va,' -> ',E);/^true$/i.test(P);return{value:E,isSLD:K,isRegisteredTldOrSld:B}}};V?ya.onReady=S:(ya.updatePSL=I,ya.getFQDN=x);return V&&ka&&!window.fetch?(ka=document.createElement('script'),
715
- 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(()=>T(ya,A,R),500)):T(ya,A,R)}'undefined'!==typeof module&&module.exports?module.exports=Domain:'function'===typeof define&&define.amd&&define('lib/domain',[],function(){return Domain});
716
- define('gina/link','require jquery vendor/uuid lib/domain lib/merge utils/events'.split(' '),function(A){A('jquery').noConflict();var R=A('vendor/uuid'),V=A('lib/domain'),ka=null,S=A('lib/merge');A('utils/events');return function(N){function ha(n,y){var z=B(n),F=z.id,w=document.getElementById(F)||null;(w.getAttribute('data-gina-link-event-on-success')||w.getAttribute('data-gina-link-event-on-error'))&&listenToXhrEvents(z);y='undefined'==typeof y?ya:S(y,ya);if(/^(http|https):/.test(n)&&!(new RegExp('^'+
709
+ (N.url=A.webroot+S.substring(1));var ha=null,Q=null,T=function(ua,P,K){if('undefined'==typeof P)P=N;else for(let B in N)'undefined'==typeof P[B]&&(P[B]=N[B]);V||(P.filename=__dirname+'/'+P.filename);V&&P.isCachingRequired&&(console.warn('[DOMAIN] `options.isCachingRequired` is only available for backend'),P.isCachingRequired=!1);ha=P;if(K)return v(P,function(B){B?K(B):(console.debug('[DOMAIN][CB] PSL Loaded'),K(B,ua))});v(P);console.debug('[DOMAIN] PSL Loaded');return ua};S=function(){};var v=async function(ua,
710
+ P){var K=V||ua.isCachingRequired?ua.url:ua.filename,B='undefined'!=typeof ua.isUpdating?ua.isUpdating:!1,E=null;if(V)if(Q&&!B)P(!1);else if(window.fetch){E=B=null;try{B=await fetch(K),Q=E=await B.text()}catch(y){E=Error('[DOMAIN] Could not load PSL\n'+(y.stack||y.message||y));P(E);return}ua.isUpdating=!1;P(!1)}else E=Error('[DOMAIN] Fetch API not supported'),P(E);else{K=!1;if('undefined'!=typeof fs.accessSync)try{fs.accessSync(ua.filename,fs.constants.F_OK),K=!0}catch(y){K=!1;try{fs.lstatSync(ua.filename).isSymbolicLink()&&
711
+ (K=!0)}catch(z){}}else K=fs.existsSync(ua.filename);K||(ua.isCachingRequired=!0);if(ua.isCachingRequired){K='curl -o '+ua.filename+' '+ua.url+' >/dev/null 2>&1';console.debug('[DOMAIN] Running: '+K);try{execSync(K)}catch(y){console.warn('[DOMAIN] could not fetch from `'+ua.url+'`. Trying with `'+ua.alternativeUrl+'`');K='curl -o '+ua.filename+' '+ua.alternativeUrl+' >/dev/null 2>&1';try{execSync(K)}catch(z){P(z);return}}var n=!1;nIntervId=setInterval(()=>{if('undefined'!=typeof fs.accessSync)try{fs.accessSync(ua.filename,
712
+ fs.constants.F_OK),n=!0}catch(y){n=!1;try{fs.lstatSync(ua.filename).isSymbolicLink()&&(n=!0)}catch(z){}}else n=fs.existsSync(ua.filename);n&&(clearInterval(nIntervId),Q=fs.readFileSync(ua.filename).toString(),P(!1))},200)}try{Q=fs.readFileSync(ua.filename).toString(),P&&P(!1)}catch(y){console.warn('[DOMAIN] could not read from `'+ua.filename+'`'),v(A,P)}}},I=function(ua){ha.isUpdating=!0;v(ha,ua)},x=async function(ua){ua='undefined'!=typeof ua&&''!=ua?ua:os.hostname();if(/\./.test(ua))return ua;console.debug('[DOMAIN][getFQDN] FQDN: '+
713
+ ua);var P=null,K=null;P=await promisify(dns.lookup)(ua,{hints:dns.ADDRCONFIG||dns.V4MAPPED}).then(function(B){console.debug('[DOMAIN][getFQDN] IP: '+B.address);console.debug('[DOMAIN][getFQDN] FAMILY: '+B.family);return B}).catch(function(B){K=B});if(K)throw K;ua=await promisify(dns.lookupService)(P.address,0).then(function(B){console.debug('[DOMAIN][getFQDN] FQDN: '+B.hostname);console.debug('[DOMAIN][getFQDN] Service: '+B.service);return B.hostname}).catch(function(B){});if(K)throw K;if(!/\./.test(ua))throw Error('[DOMAIN][getFQDN] `'+
714
+ ua+'` is not a FQDN !');return ua},xa={getRootDomain:function(ua,P){'undefined'==typeof P&&(P=!1);ua=ua.trim();var K=!1,B=!1,E=ua.replace(/^(.*):\/\/|\/(.*)/g,''),n=E.split(/\./g).reverse(),y=n.length?n.length-1:0,z=Q.replace(/\/\/\s*(.*)\n|^\s*\n/gm,'').split(/\n/).filter(function(F,w,u){/[^a-z 0-9.]+/.test(F)&&(F=F.replace(/[^a-z 0-9.]+/g,'').replace(/^\./g,''));return/\./.test(F)&&!K&&(new RegExp('.'+F+'$')).test(E)?(K=!0,y=F.split(/\./g).length,u.splice(0,u.length),!1):F});E=n[y];0<y&&(n=n.splice(0,
715
+ y),B=n[0],/:(.*)$/.test(B)&&(B=B.replace(/:(.*)$/,'')),(B=K||!K&&-1<z.indexOf(B)?!0:!1)?1<y&&!K?(n.splice(2),E=n.reverse().join('.')):E+='.'+n.reverse().join('.'):1<y?(n.splice(2),E=n.reverse().join('.')):E+='.'+n.reverse().join('.'));/:(.*)$/.test(E)&&(E=E.replace(/:(.*)$/,''));console.debug('[DOMAIN] isSLD: '+K,ua,' -> ',E);/^true$/i.test(P);return{value:E,isSLD:K,isRegisteredTldOrSld:B}}};V?xa.onReady=S:(xa.updatePSL=I,xa.getFQDN=x);return V&&ka&&!window.fetch?(ka=document.createElement('script'),
716
+ 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(()=>T(xa,A,R),500)):T(xa,A,R)}'undefined'!==typeof module&&module.exports?module.exports=Domain:'function'===typeof define&&define.amd&&define('lib/domain',[],function(){return Domain});
717
+ define('gina/link','require jquery vendor/uuid lib/domain lib/merge utils/events'.split(' '),function(A){A('jquery').noConflict();var R=A('vendor/uuid'),V=A('lib/domain'),ka=null,S=A('lib/merge');A('utils/events');return function(N){function ha(n,y){var z=B(n),F=z.id,w=document.getElementById(F)||null;(w.getAttribute('data-gina-link-event-on-success')||w.getAttribute('data-gina-link-event-on-error'))&&listenToXhrEvents(z);y='undefined'==typeof y?xa:S(y,xa);if(/^(http|https):/.test(n)&&!(new RegExp('^'+
717
718
  window.location.protocol+'//'+window.location.host)).test(n)){var u=ka.getRootDomain(window.location.hostname).value,G=ka.getRootDomain(n).value;u=u===G?!0:!1;gina.config.envIsDev&&(console.debug('Checking CORS from Popin plugin...TODO - local CORS Proxy'),console.debug('Is request from same domain ? ',u));u||(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 x?y.isSynchrone?x.open(y.method,
718
719
  y.url,y.isSynchrone):x.open(y.method,y.url):'undefined'!=typeof XDomainRequest?(x=new XDomainRequest,x.open(y.method,y.url)):(x=null,triggerEvent(gina,w,'error.'+F,'CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ')):y.isSynchrone?x.open(y.method,y.url,y.isSynchrone):x.open(y.method,y.url);if(!x)throw Error('No `xhr` object initiated');y.$link=z;handleXhr(x,w,y,A);x.send()}function Q(n,y){if('object'!=typeof y)throw Error('`options` must be an object');
719
- n.options=S(y,T.options);y=document.getElementById(n.id)||null;if('undefined'==typeof v.$links[n.id]){if(-1<va.indexOf(n.id))throw Error('`link '+n.id+'` already exists !');if(!gina.events[evt]){addListener(gina,y,evt,function(w){cancelEvent(w);w=K(w.target.id);var u=w.url;'undefined'==typeof w.options.isSynchrone&&(w.options.isSynchrone=!1);'undefined'==typeof w.options.withCredentials&&(w.options.withCredentials=!1);ha(u,w.options)});var z=y.childNodes,F=0;lLen=z.length;if(0<lLen)for(;F<lLen;++F)'undefined'!=
720
+ n.options=S(y,T.options);y=document.getElementById(n.id)||null;if('undefined'==typeof v.$links[n.id]){if(-1<ua.indexOf(n.id))throw Error('`link '+n.id+'` already exists !');if(!gina.events[evt]){addListener(gina,y,evt,function(w){cancelEvent(w);w=K(w.target.id);var u=w.url;'undefined'==typeof w.options.isSynchrone&&(w.options.isSynchrone=!1);'undefined'==typeof w.options.withCredentials&&(w.options.withCredentials=!1);ha(u,w.options)});var z=y.childNodes,F=0;lLen=z.length;if(0<lLen)for(;F<lLen;++F)'undefined'!=
720
721
  typeof z[F].tagName&&P(z[F],y,evt)}n.request=ha;n.getLinkById=K;n.getLinkByUrl=B;v.$links[n.id]=n}}this.plugin='link';registerEvents(this.plugin,'loaded ready open close destroy success error progress'.split(' '));var T={options:{url:void 0,'class':'gina-link-default'},authorizedEvents:['ready','success','error'],events:{}},v={plugin:this.plugin,id:'gina-links-'+R.v4(),on,eventData:{},$links:{},target:document,isReady:!1,initialized:!1},I={plugin:this.plugin,on,eventData:{},target:document,url:null,
721
- request:null,$forms:[]},x=null,ya={url:'',method:'GET',isSynchrone:!1,withCredentials:!0,headers:{'X-Requested-With':'XMLHttpRequest'}},va=[],P=function(n,y,z){addListener(gina,n,'click',function(F){cancelEvent(F);triggerEvent(gina,y,z)})},K=function(n){return'undefined'!=typeof v.$links[n]?v.$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},E=function(n,y){'undefined'==
722
+ request:null,$forms:[]},x=null,xa={url:'',method:'GET',isSynchrone:!1,withCredentials:!0,headers:{'X-Requested-With':'XMLHttpRequest'}},ua=[],P=function(n,y,z){addListener(gina,n,'click',function(F){cancelEvent(F);triggerEvent(gina,y,z)})},K=function(n){return'undefined'!=typeof v.$links[n]?v.$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},E=function(n,y){'undefined'==
722
723
  typeof n&&(n=v.target);var z,F=null;n=n.getElementsByTagName('a');for(var w=0,u=n.length;w<u;++w)if(((z=n[w].getAttribute('data-gina-link'))||''==z)&&!/^false$/i.test(z)){z=n[w];var G={type:'a',method:'GET'};var M=z.getAttribute('data-gina-link-url');G.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-'+v.id+'-'+R.v4();z.id=M;evt=G.id=M;z.setAttribute('id',evt);'A'==z.tagName&&
723
724
  (F=z.getAttribute('onclick'));F?'undefined'==typeof F||/return false/.test(F)||(F=/;$/.test(F)?F+'return false;':F+'; return false;',z.setAttribute('onclick',F)):z.setAttribute('onclick','return false;');'undefined'==typeof v.$links[G.id]&&(G.target=z,z=S(G,I),Q(z,y))}};ka||new V(function(n,y){if(n)throw n;ka=y});return function(n){v.bindLinks=E;v.request=ha;v.getLinkById=K;v.getLinkByUrl=B;v.on('init',function(y){if(window.XMLHttpRequest)x=new XMLHttpRequest;else if(window.ActiveXObject)try{x=new ActiveXObject('Msxml2.XMLHTTP')}catch(z){try{x=
724
725
  new ActiveXObject('Microsoft.XMLHTTP')}catch(F){}}evt='click';addListener(gina,v.target,evt,function(z){'undefined'==typeof z.target.id&&(z.target.setAttribute('id',evt+'.'+R.v4()),z.target.id=z.target.getAttribute('id'));if(/^link\.click\./.test(z.target.id)){cancelEvent(z);var F=z.target.id;(new RegExp('^link.click.gina-link-'+v.id)).test(F)&&triggerEvent(gina,z.target,F,z.detail)}});'undefined'==typeof n&&(n={});v.options=n;E(v.target,n);gina.linkIsBinded=!0;v.isReady=!0;gina.hasLinkHandler=!0;
@@ -746,11 +747,11 @@ typeof ea?ea=Ea:(W=Ea.withCredentials,ea=S(ea,Ea),ea.withCredentials=W);/^(http|
746
747
  Fa=/application\/json/.test(mb)?!0:!1,Oa=!0;Fa&&(Ha=JSON.parse(F.responseText),Ha.status=F.status,Ha.contentType=mb,Oa=!1);n.eventData.success=Ha;if(!Fa&&za.isOpen&&!za.hasForm||!Fa&&za.isOpen&&Oa)I(Ha,Oa);else{if(Fa&&'undefined'!=typeof Ha.location||Fa&&'undefined'!=typeof Ha.reload){mb=!1;'undefined'!=typeof Ha.isXhrRedirect&&/^true$/i.test(Ha.isXhrRedirect)&&(mb=!0);if('undefined'!=typeof Ha.location&&mb){if('undefined'!=typeof Ha.popin&&'undefined'!=typeof Ha.popin.close){za.isRedirecting=!1;
747
748
  za.close();var Ya=Ha.popin.reload?Ha.popin.reload:!1;Ha.popin.location||Ha.popin.url||(delete Ha.popin,Ya&&(Ha.popin={reload:Ya}))}Fa='_self';'undefined'!=typeof Ha.target&&(Ha.target='_'+Ha.target,Fa=Ha.target);if(/^_self$/.test(Fa))return Fa=null,Fa='undefined'!=typeof Ha.popin?Ha.popin.location||Ha.popin.url:Ha.location,za.load(za.name,Fa,za.options),setTimeout(function(pb){pb.isOpen||pb.open()},50,za);window.open(Ha.location,Fa);return}if('undefined'!=typeof Ha.location){document.location=Ha.location;
748
749
  return}if('undefined'!=typeof Ha.reload){document.location.reload();return}'undefined'!=typeof Ha.popin&&'undefined'!=typeof Ha.popin.close&&(za.isRedirecting=!1,K(za.name))}if(!Fa){GINA_ENV_IS_DEV&&T(Ha);triggerEvent(gina,sa,'loaded.'+na,Ha);return}GINA_ENV_IS_DEV&&T(Ha);triggerEvent(gina,$forms[0],'success.'+na,Ha)}GINA_ENV_IS_DEV&&T(Ha)}catch(pb){Ja=!1,Ha={status:422,error:pb.description||pb.stack},/application\/json/.test(F.getResponseHeader('Content-Type'))&&(Ha.error=JSON.parse(F.responseText),
749
- Ja=!0),n.eventData.error=Ha,GINA_ENV_IS_DEV&&T(Ha,Ja),triggerEvent(gina,sa,'error.'+na,Ha)}else Ja=!1,Ha={status:F.status,error:F.responseText},/application\/json/.test(F.getResponseHeader('Content-Type'))&&(Ha.error=JSON.parse(F.responseText),Ja=!0),n.eventData.error=Ha,GINA_ENV_IS_DEV&&T(Ha,Ja),triggerEvent(gina,sa,'error.'+na,Ha)};F.send();return{open:function(){var Ha=!1;addListener(gina,sa,'loaded.'+na,function(mb){mb.preventDefault();Ha||(Ha=!0,n.activePopinId=za.id,Q(mb,za),va(za.name))})}}}}
750
+ Ja=!0),n.eventData.error=Ha,GINA_ENV_IS_DEV&&T(Ha,Ja),triggerEvent(gina,sa,'error.'+na,Ha)}else Ja=!1,Ha={status:F.status,error:F.responseText},/application\/json/.test(F.getResponseHeader('Content-Type'))&&(Ha.error=JSON.parse(F.responseText),Ja=!0),n.eventData.error=Ha,GINA_ENV_IS_DEV&&T(Ha,Ja),triggerEvent(gina,sa,'error.'+na,Ha)};F.send();return{open:function(){var Ha=!1;addListener(gina,sa,'loaded.'+na,function(mb){mb.preventDefault();Ha||(Ha=!0,n.activePopinId=za.id,Q(mb,za),ua(za.name))})}}}}
750
751
  function I(W,ia){var ea=ha();if(ea){if(!ea.isOpen)throw Error('Popin `'+ea.name+'` is not open !');ea.isRedirecting='undefined'!=typeof ia?ia:!1;ia=ea.target;ia.innerHTML=W.trim();P(ea.name,!0);Q({target:ia,type:'loaded.'+ea.id},ea);if(!E.options.useDialogMode&&/safari/i.test(window.navigator.userAgent))for(W=document.getElementsByTagName('link'),ia=0;ia<W.length;ia++)if('stylesheet'==W[ia].getAttribute('rel')){var za=W[ia].getAttribute('href').split('?')[0];/gina\.min\.css|gina\.css/.test(za)&&(za=
751
- za+'?version='+(new Date).getMilliseconds(),W[ia].setAttribute('href',za))}ea.isRedirecting?triggerEvent(gina,n.target,'loaded.'+ea.id,ea):triggerEvent(gina,n.target,'open.'+ea.id,ea);if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar)try{ginaToolbar.update('el-xhr',ea.id)}catch(na){throw na;}}}function x(W){var ia=setupXhr();ia.open('GET',W,!0);ia.setRequestHeader('Content-Type','text/javascript');ia.onload=function(){eval(ia.response)};ia.send()}function ya(W){var ia=setupXhr();
752
- ia.open('GET',W,!0);ia.setRequestHeader('Content-Type','text/css');ia.onload=function(){eval(ia.response)};ia.send()}function va(W){var ia='undefined'!=typeof W?U(W):M(this.id);if(!ia)throw Error('Popin name `'+W+'` not found !');W=document.getElementById(ia.id);var ea=ia.parentScripts,za=W.getElementsByTagName('script'),na=ia.parentStyles,sa=W.getElementsByTagName('link'),Da=0,Qa=za.length,Ja=gina.config.hostname.replace(/(https|http|):\/\//,'').replace(/:\d+$/,'');for(Ja=new RegExp(Ja+':\\d+|'+
753
- Ja);Da<Qa;++Da){if('undefined'==typeof za[Da].src||''==za[Da].src)continue;let Ia=za[Da].src.replace(/(https|http|):\/\//,'').replace(Ja,'');-1<ea.indexOf(Ia)||x(za[Da].src)}Da=0;for(Qa=sa.length;Da<Qa;++Da)'undefined'!=typeof sa[Da].href&&''!=sa[Da].href&&(ea=sa[Da].href.replace(/(https|http|):\/\//,'').replace(Ja,''),-1<na.indexOf(ea)||ya(sa[Da].href));Q({target:W,type:'loaded.'+ia.id},ia);/gina-popin-is-active/.test(W.className)||(W.className+=' gina-popin-is-active');if(!E.options.useDialogMode||
752
+ za+'?version='+(new Date).getMilliseconds(),W[ia].setAttribute('href',za))}ea.isRedirecting?triggerEvent(gina,n.target,'loaded.'+ea.id,ea):triggerEvent(gina,n.target,'open.'+ea.id,ea);if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar)try{ginaToolbar.update('el-xhr',ea.id)}catch(na){throw na;}}}function x(W){var ia=setupXhr();ia.open('GET',W,!0);ia.setRequestHeader('Content-Type','text/javascript');ia.onload=function(){eval(ia.response)};ia.send()}function xa(W){var ia=setupXhr();
753
+ ia.open('GET',W,!0);ia.setRequestHeader('Content-Type','text/css');ia.onload=function(){eval(ia.response)};ia.send()}function ua(W){var ia='undefined'!=typeof W?U(W):M(this.id);if(!ia)throw Error('Popin name `'+W+'` not found !');W=document.getElementById(ia.id);var ea=ia.parentScripts,za=W.getElementsByTagName('script'),na=ia.parentStyles,sa=W.getElementsByTagName('link'),Da=0,Qa=za.length,Ja=gina.config.hostname.replace(/(https|http|):\/\//,'').replace(/:\d+$/,'');for(Ja=new RegExp(Ja+':\\d+|'+
754
+ Ja);Da<Qa;++Da){if('undefined'==typeof za[Da].src||''==za[Da].src)continue;let Ia=za[Da].src.replace(/(https|http|):\/\//,'').replace(Ja,'');-1<ea.indexOf(Ia)||x(za[Da].src)}Da=0;for(Qa=sa.length;Da<Qa;++Da)'undefined'!=typeof sa[Da].href&&''!=sa[Da].href&&(ea=sa[Da].href.replace(/(https|http|):\/\//,'').replace(Ja,''),-1<na.indexOf(ea)||xa(sa[Da].href));Q({target:W,type:'loaded.'+ia.id},ia);/gina-popin-is-active/.test(W.className)||(W.className+=' gina-popin-is-active');if(!E.options.useDialogMode||
754
755
  gina.config.envIsDev)/gina-popin-is-active/.test(n.target.firstChild.className)||(n.target.firstChild.className+=' gina-popin-is-active'),/gina-popin-is-active/.test(n.target.firstChild.className)&&removeListener(gina,n.target,'open.'+ia.id);E.options.useDialogMode&&!W.getAttribute('open')&&('function'===typeof W.showModal?gina.config.envIsDev?W.show():W.showModal():W.setAttribute('open',!0));ia.isOpen=!0;ia.target=W;n.activePopinId=ia.id;if(gina&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar)try{ginaToolbar.update('el-xhr',
755
756
  ia.id)}catch(Ia){throw Ia;}triggerEvent(gina,n.target,'open.'+ia.id,ia)}function P(W,ia){var ea='undefined'!=typeof W?U(W):ha();if(!ea&&'undefined'!=typeof W)throw Error('Popin `'+W+'` not found !');if('undefined'!=typeof ea&&null!=ea&&(W=ea.target,ia='undefined'!=typeof ia?ia:!1,null!=W&&/gina-popin-is-active/.test(W.className))){ia||(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/,
756
757
  ''),W.innerHTML='');if(z&&(ia=0,W=ea.$forms.length,z.$forms&&0<W))for(;ia<W;++ia)'undefined'!=typeof z.$forms[ea.$forms[ia]]&&z.$forms[ea.$forms[ia]].destroy(),ea.$forms.splice(ia,1);gina.popinIsBinded=!1;removeListener(gina,ea.target,'loaded.'+ea.id)}}function K(W){if('undefined'==typeof W&&/^true$/.test(this.isOpen)){W=this.name;var ia=this}else{ia=U(W)||ha();if(!ia)return;W=ia.name}if(!ia&&'undefined'!=typeof W)throw Error('Popin `'+W+'` not found !');if(ia.isOpen&&'undefined'!=typeof ia&&null!=
@@ -759,11 +760,11 @@ ia.$headers[W].id+'`\n'+za.stack)}ia.$headers=[]}triggerEvent(gina,ia.target,'cl
759
760
  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,F=null,w=[],u=function(){var W=document.createElement('div');W.id=n.id;W.setAttribute('id',n.id);W.setAttribute('class','gina-popins');if(!E.options.useDialogMode||gina.config.envIsDev){var ia=document.createElement('div');ia.setAttribute('id','gina-popins-overlay');ia.setAttribute('class','gina-popins-overlay');
760
761
  W.appendChild(ia)}document.body.appendChild(W);n.target=W;n.on=on;gina.popinContainer=n.id},G=function(W,ia,ea){addListener(gina,W,'click',function(za){cancelEvent(za);triggerEvent(gina,ia,ea)})},M=function(W){return'undefined'!=typeof n.$popins[W]?n.$popins[W]:null},U=function(W){var ia=null,ea;for(ea in n.$popins)if(n.$popins[ea].name===W){ia=n.$popins[ea];break}return ia},qa=function(W,ia){ia=getElementsByAttribute('data-gina-popin-name');var ea=null,za=null,na=null,sa=null,Da=null,Qa=null;Da=
761
762
  0;for(Qa=ia.length;Da<Qa;++Da){ea=ia[Da];za=ea.getAttribute('data-gina-popin-name');'A'==ea.tagName&&(na=ea.getAttribute('href'),''==na||'#'==na||/#/.test(na))&&(na=null);na||'undefined'==typeof ea.getAttribute('data-gina-popin-url')||(na=ea.getAttribute('data-gina-popin-url'));if(!na)throw Error('Found `data-gina-popin-name` without `url` !');ea.url||(ea.url=na);ea.popinName||(ea.popinName=za);if(za==W.name&&(sa='popin.click.gina-popin-'+n.id+'-'+R.v4()+'-'+za,ea.id=sa,ea.setAttribute('id',sa),!gina.events[sa])){addListener(gina,
762
- ea,sa,function(Ia){cancelEvent(Ia);var Ha=!1;addListener(gina,W.target,'loaded.'+W.id,function(Fa){Fa.preventDefault();Ha||(Ha=!0,console.debug('active popin should be ',W.id),gina.popin.activePopinId=W.id,Q(Fa,W),W.isOpen||va(W.name))});Ia={isSynchrone:!1,withCredentials:!1};Ia=S(W.options,Ia);var mb=this.getAttribute('data-gina-popin-url')||this.getAttribute('href');if(!mb)throw Error('Popin `url` not defined, please check value for `data-gina-popin-url`');v(W.name,mb,Ia)});za=ea.childNodes;var Ja=
763
+ ea,sa,function(Ia){cancelEvent(Ia);var Ha=!1;addListener(gina,W.target,'loaded.'+W.id,function(Fa){Fa.preventDefault();Ha||(Ha=!0,console.debug('active popin should be ',W.id),gina.popin.activePopinId=W.id,Q(Fa,W),W.isOpen||ua(W.name))});Ia={isSynchrone:!1,withCredentials:!1};Ia=S(W.options,Ia);var mb=this.getAttribute('data-gina-popin-url')||this.getAttribute('href');if(!mb)throw Error('Popin `url` not defined, please check value for `data-gina-popin-url`');v(W.name,mb,Ia)});za=ea.childNodes;var Ja=
763
764
  0;lLen=za.length;if(0<lLen)for(;Ja<lLen;++Ja)'undefined'!=typeof za[Ja].tagName&&G(za[Ja],ea,sa)}}sa='click';addListener(gina,document,sa,function(Ia){if(null!=Ia.target.getAttribute('disabled')&&'false'!=Ia.target.getAttribute('disabled'))return!1;'undefined'==typeof Ia.target.id&&(Ia.target.setAttribute('id',sa+'.'+R.v4()),Ia.target.id=Ia.target.getAttribute('id'));if(/^popin\.close\./.test(Ia.target.id)){cancelEvent(Ia);var Ha=Ia.target.id;triggerEvent(gina,Ia.target,Ha,Ia.detail)}/^popin\.click\./.test(Ia.target.id)&&
764
765
  (cancelEvent(Ia),Ha=Ia.target.id,(new RegExp('^popin.click.gina-popin-'+n.id)).test(Ha)&&triggerEvent(gina,Ia.target,Ha,Ia.detail))});gina.popinIsBinded=!1},Ea={url:'',method:'GET',isSynchrone:!1,withCredentials:!0,headers:{'X-Requested-With':'XMLHttpRequest'}};gina.hasPopinHandler?(n.target=document.getElementById(gina.popinContainer),n.on=on):u();ka||new V(function(W,ia){if(W)throw W;ka=ia});return function(W){n.getPopinById=M;n.getPopinByName=U;n.load=v;n.loadContent=I;n.getActivePopin=ha;n.open=
765
- va;n.close=K;addListener(gina,n.target,'init.'+n.id,function(ia){ia=null;if('undefined'==typeof n.$popins['gina-popin-'+n.id+'-'+W.name]){var ea=ia=S({},y);if('object'!=typeof W)throw Error('`options` must be an object');ea.options=S(W,E.options);ea.id='gina-popin-'+n.id+'-'+ea.options.name;if('undefined'==typeof n.$popins[ea.id]){if('string'!=typeof ea.options.name||''==ea.options.name)throw Error('`options.name` can not be left `empty` or `undefined`');if(-1<w.indexOf(ea.options.name))throw Error('`popin '+
766
- ea.options.name+'` already exists !');'undefined'!=typeof ea.options.validator&&(z=ea.options.validator,ea.validateFormById=z.validateFormById);ea.options['class']='gina-popin-container '+ea.options['class'];ea.name=ea.options.name;ea.target=n.target;ea.load=v;ea.loadContent=I;ea.open=va;ea.close=K;GINA_ENV_IS_DEV&&(ea.updateToolbar=T);ea.parentScripts=[];ea.parentStyles=[];var za=gina.config.hostname.replace(/(https|http|):\/\//,'').replace(/:\d+$/,'');za=new RegExp(za+':\\d+|'+za);var na=document.getElementsByTagName('script');
766
+ ua;n.close=K;addListener(gina,n.target,'init.'+n.id,function(ia){ia=null;if('undefined'==typeof n.$popins['gina-popin-'+n.id+'-'+W.name]){var ea=ia=S({},y);if('object'!=typeof W)throw Error('`options` must be an object');ea.options=S(W,E.options);ea.id='gina-popin-'+n.id+'-'+ea.options.name;if('undefined'==typeof n.$popins[ea.id]){if('string'!=typeof ea.options.name||''==ea.options.name)throw Error('`options.name` can not be left `empty` or `undefined`');if(-1<w.indexOf(ea.options.name))throw Error('`popin '+
767
+ ea.options.name+'` already exists !');'undefined'!=typeof ea.options.validator&&(z=ea.options.validator,ea.validateFormById=z.validateFormById);ea.options['class']='gina-popin-container '+ea.options['class'];ea.name=ea.options.name;ea.target=n.target;ea.load=v;ea.loadContent=I;ea.open=ua;ea.close=K;GINA_ENV_IS_DEV&&(ea.updateToolbar=T);ea.parentScripts=[];ea.parentStyles=[];var za=gina.config.hostname.replace(/(https|http|):\/\//,'').replace(/:\d+$/,'');za=new RegExp(za+':\\d+|'+za);var na=document.getElementsByTagName('script');
767
768
  for(let Da=0,Qa=na.length;Da<Qa;Da++)if(na[Da].src&&''!=na[Da].src){var sa=na[Da].src.replace(/(https|http|):\/\//,'').replace(za,'');ea.parentScripts[Da]=sa}na=document.getElementsByTagName('link');for(let Da=0,Qa=na.length;Da<Qa;Da++)'undefined'!=typeof na[Da].rel&&/stylesheet/i.test(na[Da].rel)&&(sa=na[Da].href.replace(/(https|http|):\/\//,'').replace(za,''),ea.parentStyles[Da]=sa);n.$popins[ea.id]=ea;if(window.XMLHttpRequest)F=new XMLHttpRequest;else if(window.ActiveXObject)try{F=new ActiveXObject('Msxml2.XMLHTTP')}catch(Da){try{F=
768
769
  new ActiveXObject('Microsoft.XMLHTTP')}catch(Qa){}}qa(ea)}}n.isReady=!0;gina.hasPopinHandler=!0;gina.popin=S(gina.popin,n);triggerEvent(gina,n.target,'ready.'+n.id,ia)});n.initialized=!0;return n}(N)}});
769
770
  'function'!==typeof Object.assign&&Object.defineProperty(Object,'assign',{value:function(A,R){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 N in S)Object.prototype.hasOwnProperty.call(S,N)&&(V[N]=S[N])}return V},writable:!0,configurable:!0});