Files larger than 1 MB are truncated. Click
here to display the full file (may cause the browser to become unresponsive) or use the
Open button to view outside of Swarm.
{"version":3,"sources":["vendor/ember-cli/vendor-prefix.js","vendor/loader/loader.js","vendor/ember/jquery/jquery.js","license.js","loader.js","@glimmer/node.js","@glimmer/reference.js","@glimmer/runtime.js","@glimmer/util.js","@glimmer/wire-format.js","backburner.js","container.js","dag-map.js","ember-application/index.js","ember-application/initializers/dom-templates.js","ember-application/system/application-instance.js","ember-application/system/application.js","ember-application/system/engine-instance.js","ember-application/system/engine-parent.js","ember-application/system/engine.js","ember-application/system/resolver.js","ember-application/utils/validate-type.js","ember-babel.js","ember-console.js","ember-debug/deprecate.js","ember-debug/error.js","ember-debug/features.js","ember-debug/handlers.js","ember-debug/index.js","ember-debug/testing.js","ember-debug/warn.js","ember-environment.js","ember-extension-support/container_debug_adapter.js","ember-extension-support/data_adapter.js","ember-extension-support/index.js","ember-glimmer/component-managers/abstract.js","ember-glimmer/component-managers/curly.js","ember-glimmer/component-managers/mount.js","ember-glimmer/component-managers/outlet.js","ember-glimmer/component-managers/render.js","ember-glimmer/component-managers/root.js","ember-glimmer/component.js","ember-glimmer/components/checkbox.js","ember-glimmer/components/link-to.js","ember-glimmer/components/text_area.js","ember-glimmer/components/text_field.js","ember-glimmer/dom.js","ember-glimmer/environment.js","ember-glimmer/helper.js","ember-glimmer/helpers/-class.js","ember-glimmer/helpers/-html-safe.js","ember-glimmer/helpers/-input-type.js","ember-glimmer/helpers/-normalize-class.js","ember-glimmer/helpers/action.js","ember-glimmer/helpers/component.js","ember-glimmer/helpers/concat.js","ember-glimmer/helpers/each-in.js","ember-glimmer/helpers/get.js","ember-glimmer/helpers/hash.js","ember-glimmer/helpers/if-unless.js","ember-glimmer/helpers/loc.js","ember-glimmer/helpers/log.js","ember-glimmer/helpers/mut.js","ember-glimmer/helpers/query-param.js","ember-glimmer/helpers/readonly.js","ember-glimmer/helpers/unbound.js","ember-glimmer/index.js","ember-glimmer/modifiers/action.js","ember-glimmer/protocol-for-url.js","ember-glimmer/renderer.js","ember-glimmer/setup-registry.js","ember-glimmer/syntax.js","ember-glimmer/syntax/-text-area.js","ember-glimmer/syntax/dynamic-component.js","ember-glimmer/syntax/input.js","ember-glimmer/syntax/mount.js","ember-glimmer/syntax/outlet.js","ember-glimmer/syntax/render.js","ember-glimmer/syntax/utils.js","ember-glimmer/template.js","ember-glimmer/template_registry.js","ember-glimmer/templates/component.js","ember-glimmer/templates/empty.js","ember-glimmer/templates/link-to.js","ember-glimmer/templates/outlet.js","ember-glimmer/templates/root.js","ember-glimmer/utils/bindings.js","ember-glimmer/utils/curly-component-state-bucket.js","ember-glimmer/utils/debug-stack.js","ember-glimmer/utils/iterable.js","ember-glimmer/utils/process-args.js","ember-glimmer/utils/references.js","ember-glimmer/utils/string.js","ember-glimmer/utils/to-bool.js","ember-glimmer/views/outlet.js","ember-metal.js","ember-routing/ext/controller.js","ember-routing/ext/run_loop.js","ember-routing/index.js","ember-routing/location/api.js","ember-routing/location/auto_location.js","ember-routing/location/hash_location.js","ember-routing/location/history_location.js","ember-routing/location/none_location.js","ember-routing/location/util.js","ember-routing/services/router.js","ember-routing/services/routing.js","ember-routing/system/cache.js","ember-routing/system/controller_for.js","ember-routing/system/dsl.js","ember-routing/system/generate_controller.js","ember-routing/system/query_params.js","ember-routing/system/route.js","ember-routing/system/router.js","ember-routing/system/router_state.js","ember-routing/utils.js","ember-runtime/compare.js","ember-runtime/computed/computed_macros.js","ember-runtime/computed/reduce_computed_macros.js","ember-runtime/controllers/controller.js","ember-runtime/copy.js","ember-runtime/ext/function.js","ember-runtime/ext/rsvp.js","ember-runtime/ext/string.js","ember-runtime/index.js","ember-runtime/inject.js","ember-runtime/is-equal.js","ember-runtime/mixins/-proxy.js","ember-runtime/mixins/action_handler.js","ember-runtime/mixins/array.js","ember-runtime/mixins/comparable.js","ember-runtime/mixins/container_proxy.js","ember-runtime/mixins/controller.js","ember-runtime/mixins/copyable.js","ember-runtime/mixins/enumerable.js","ember-runtime/mixins/evented.js","ember-runtime/mixins/freezable.js","ember-runtime/mixins/mutable_array.js","ember-runtime/mixins/mutable_enumerable.js","ember-runtime/mixins/observable.js","ember-runtime/mixins/promise_proxy.js","ember-runtime/mixins/registry_proxy.js","ember-runtime/mixins/target_action_support.js","ember-runtime/string_registry.js","ember-runtime/system/application.js","ember-runtime/system/array_proxy.js","ember-runtime/system/core_object.js","ember-runtime/system/lazy_load.js","ember-runtime/system/namespace.js","ember-runtime/system/native_array.js","ember-runtime/system/object.js","ember-runtime/system/object_proxy.js","ember-runtime/system/service.js","ember-runtime/system/string.js","ember-runtime/utils.js","ember-template-compiler/compat.js","ember-template-compiler/index.js","ember-template-compiler/plugins/assert-input-helper-without-block.js","ember-template-compiler/plugins/assert-reserved-named-arguments.js","ember-template-compiler/plugins/deprecate-render-model.js","ember-template-compiler/plugins/deprecate-render.js","ember-template-compiler/plugins/extract-pragma-tag.js","ember-template-compiler/plugins/index.js","ember-template-compiler/plugins/transform-action-syntax.js","ember-template-compiler/plugins/transform-angle-bracket-components.js","ember-template-compiler/plugins/transform-attrs-into-args.js","ember-template-compiler/plugins/transform-dot-component-invocation.js","ember-template-compiler/plugins/transform-each-in-into-each.js","ember-template-compiler/plugins/transform-has-block-syntax.js","ember-template-compiler/plugins/transform-inline-link-to.js","ember-template-compiler/plugins/transform-input-on-to-onEvent.js","ember-template-compiler/plugins/transform-input-type-syntax.js","ember-template-compiler/plugins/transform-old-binding-syntax.js","ember-template-compiler/plugins/transform-old-class-binding-syntax.js","ember-template-compiler/plugins/transform-quoted-bindings-into-just-bindings.js","ember-template-compiler/plugins/transform-top-level-components.js","ember-template-compiler/system/bootstrap.js","ember-template-compiler/system/calculate-location-display.js","ember-template-compiler/system/compile-options.js","ember-template-compiler/system/compile.js","ember-template-compiler/system/precompile.js","ember-testing/adapters/adapter.js","ember-testing/adapters/qunit.js","ember-testing/events.js","ember-testing/ext/application.js","ember-testing/ext/rsvp.js","ember-testing/helpers.js","ember-testing/helpers/and_then.js","ember-testing/helpers/click.js","ember-testing/helpers/current_path.js","ember-testing/helpers/current_route_name.js","ember-testing/helpers/current_url.js","ember-testing/helpers/fill_in.js","ember-testing/helpers/find.js","ember-testing/helpers/find_with_assert.js","ember-testing/helpers/key_event.js","ember-testing/helpers/pause_test.js","ember-testing/helpers/trigger_event.js","ember-testing/helpers/visit.js","ember-testing/helpers/wait.js","ember-testing/index.js","ember-testing/initializers.js","ember-testing/setup_for_testing.js","ember-testing/support.js","ember-testing/test.js","ember-testing/test/adapter.js","ember-testing/test/helpers.js","ember-testing/test/on_inject_helpers.js","ember-testing/test/pending_requests.js","ember-testing/test/promise.js","ember-testing/test/run.js","ember-testing/test/waiters.js","ember-utils.js","ember-views/compat/attrs.js","ember-views/compat/fallback-view-registry.js","ember-views/component_lookup.js","ember-views/index.js","ember-views/mixins/action_support.js","ember-views/mixins/child_views_support.js","ember-views/mixins/class_names_support.js","ember-views/mixins/text_support.js","ember-views/mixins/view_state_support.js","ember-views/mixins/view_support.js","ember-views/system/action_manager.js","ember-views/system/event_dispatcher.js","ember-views/system/ext.js","ember-views/system/jquery.js","ember-views/system/lookup_partial.js","ember-views/system/utils.js","ember-views/utils/lookup-component.js","ember-views/views/core_view.js","ember-views/views/states.js","ember-views/views/states/default.js","ember-views/views/states/destroying.js","ember-views/views/states/has_element.js","ember-views/views/states/in_dom.js","ember-views/views/states/pre_render.js","ember/features.js","ember/index.js","ember/version.js","handlebars.js","node-module.js","route-recognizer.js","router.js","rsvp.js","bootstrap","vendor/ember-cli-shims/deprecations.js","vendor/ember-cli-shims/app-shims.js","vendor/ember-resolver/legacy-shims.js","addon-tree-output/ember-ajax/-private/promise.js","addon-tree-output/ember-ajax/-private/utils/get-header.js","addon-tree-output/ember-ajax/-private/utils/is-fastboot.js","addon-tree-output/ember-ajax/-private/utils/is-string.js","addon-tree-output/ember-ajax/-private/utils/parse-response-headers.js","addon-tree-output/ember-ajax/-private/utils/url-helpers.js","addon-tree-output/ember-ajax/ajax-request.js","addon-tree-output/ember-ajax/errors.js","addon-tree-output/ember-ajax/index.js","addon-tree-output/ember-ajax/mixins/ajax-request.js","addon-tree-output/ember-ajax/mixins/ajax-support.js","addon-tree-output/ember-ajax/mixins/legacy/normalize-error-response.js","addon-tree-output/ember-ajax/raw.js","addon-tree-output/ember-ajax/request.js","addon-tree-output/ember-ajax/services/ajax.js","addon-tree-output/ember-ajax/utils/ajax.js","addon-tree-output/ember-cli-app-version/initializer-factory.js","addon-tree-output/ember-cli-app-version/utils/regexp.js","addon-tree-output/ember-inflector/index.js","addon-tree-output/ember-inflector/lib/ext/string.js","addon-tree-output/ember-inflector/lib/helpers/pluralize.js","addon-tree-output/ember-inflector/lib/helpers/singularize.js","addon-tree-output/ember-inflector/lib/system.js","addon-tree-output/ember-inflector/lib/system/inflections.js","addon-tree-output/ember-inflector/lib/system/inflector.js","addon-tree-output/ember-inflector/lib/system/string.js","addon-tree-output/ember-inflector/lib/utils/make-helper.js","addon-tree-output/ember-load-initializers/index.js","addon-tree-output/ember-resolver/features.js","addon-tree-output/ember-resolver/index.js","addon-tree-output/ember-resolver/resolver.js","addon-tree-output/ember-resolver/resolvers/classic/container-debug-adapter.js","addon-tree-output/ember-resolver/resolvers/classic/index.js","addon-tree-output/ember-resolver/utils/class-factory.js","addon-tree-output/ember-resolver/utils/make-dictionary.js","addon-tree-output/ember-welcome-page/components/welcome-page.js","addon-tree-output/ember-welcome-page/templates/components/welcome-page.js","addon-tree-output/modules/ember-data/-debug/index.js","addon-tree-output/modules/ember-data/-private.js","addon-tree-output/modules/ember-data/adapter.js","addon-tree-output/modules/ember-data/adapters/errors.js","addon-tree-output/modules/ember-data/adapters/json-api.js","addon-tree-output/modules/ember-data/adapters/rest.js","addon-tree-output/modules/ember-data/attr.js","addon-tree-output/modules/ember-data/index.js","addon-tree-output/modules/ember-data/initialize-store-service.js","addon-tree-output/modules/ember-data/model.js","addon-tree-output/modules/ember-data/relationships.js","addon-tree-output/modules/ember-data/serializer.js","addon-tree-output/modules/ember-data/serializers/embedded-records-mixin.js","addon-tree-output/modules/ember-data/serializers/json-api.js","addon-tree-output/modules/ember-data/serializers/json.js","addon-tree-output/modules/ember-data/serializers/rest.js","addon-tree-output/modules/ember-data/setup-container.js","addon-tree-output/modules/ember-data/store.js","addon-tree-output/modules/ember-data/transform.js","addon-tree-output/modules/ember-data/transforms/boolean.js","addon-tree-output/modules/ember-data/transforms/date.js","addon-tree-output/modules/ember-data/transforms/number.js","addon-tree-output/modules/ember-data/transforms/string.js","addon-tree-output/modules/ember-data/transforms/transform.js","addon-tree-output/modules/ember-data/version.js","vendor/ember-cli/vendor-suffix.js"],"sourcesContent":["window.EmberENV = {\"FEATURES\":{},\"EXTEND_PROTOTYPES\":{\"Date\":false}};\nvar runningTests = false;\n\n\n","var loader, define, requireModule, require, requirejs;\n\n(function (global) {\n 'use strict';\n\n function dict() {\n var obj = Object.create(null);\n obj['__'] = undefined;\n delete obj['__'];\n return obj;\n }\n\n // Save off the original values of these globals, so we can restore them if someone asks us to\n var oldGlobals = {\n loader: loader,\n define: define,\n requireModule: requireModule,\n require: require,\n requirejs: requirejs\n };\n\n requirejs = require = requireModule = function (id) {\n var pending = [];\n var mod = findModule(id, '(require)', pending);\n\n for (var i = pending.length - 1; i >= 0; i--) {\n pending[i].exports();\n }\n\n return mod.module.exports;\n };\n\n loader = {\n noConflict: function (aliases) {\n var oldName, newName;\n\n for (oldName in aliases) {\n if (aliases.hasOwnProperty(oldName)) {\n if (oldGlobals.hasOwnProperty(oldName)) {\n newName = aliases[oldName];\n\n global[newName] = global[oldName];\n global[oldName] = oldGlobals[oldName];\n }\n }\n }\n },\n // Option to enable or disable the generation of default exports\n makeDefaultExport: true\n };\n\n var registry = dict();\n var seen = dict();\n\n var uuid = 0;\n\n function unsupportedModule(length) {\n throw new Error('an unsupported module was defined, expected `define(id, deps, module)` instead got: `' + length + '` arguments to define`');\n }\n\n var defaultDeps = ['require', 'exports', 'module'];\n\n function Module(id, deps, callback, alias) {\n this.uuid = uuid++;\n this.id = id;\n this.deps = !deps.length && callback.length ? defaultDeps : deps;\n this.module = { exports: {} };\n this.callback = callback;\n this.hasExportsAsDep = false;\n this.isAlias = alias;\n this.reified = new Array(deps.length);\n\n /*\n Each module normally passes through these states, in order:\n new : initial state\n pending : this module is scheduled to be executed\n reifying : this module's dependencies are being executed\n reified : this module's dependencies finished executing successfully\n errored : this module's dependencies failed to execute\n finalized : this module executed successfully\n */\n this.state = 'new';\n }\n\n Module.prototype.makeDefaultExport = function () {\n var exports = this.module.exports;\n if (exports !== null && (typeof exports === 'object' || typeof exports === 'function') && exports['default'] === undefined && Object.isExtensible(exports)) {\n exports['default'] = exports;\n }\n };\n\n Module.prototype.exports = function () {\n // if finalized, there is no work to do. If reifying, there is a\n // circular dependency so we must return our (partial) exports.\n if (this.state === 'finalized' || this.state === 'reifying') {\n return this.module.exports;\n }\n\n\n if (loader.wrapModules) {\n this.callback = loader.wrapModules(this.id, this.callback);\n }\n\n this.reify();\n\n var result = this.callback.apply(this, this.reified);\n this.reified.length = 0;\n this.state = 'finalized';\n\n if (!(this.hasExportsAsDep && result === undefined)) {\n this.module.exports = result;\n }\n if (loader.makeDefaultExport) {\n this.makeDefaultExport();\n }\n return this.module.exports;\n };\n\n Module.prototype.unsee = function () {\n this.state = 'new';\n this.module = { exports: {} };\n };\n\n Module.prototype.reify = function () {\n if (this.state === 'reified') {\n return;\n }\n this.state = 'reifying';\n try {\n this.reified = this._reify();\n this.state = 'reified';\n } finally {\n if (this.state === 'reifying') {\n this.state = 'errored';\n }\n }\n };\n\n Module.prototype._reify = function () {\n var reified = this.reified.slice();\n for (var i = 0; i < reified.length; i++) {\n var mod = reified[i];\n reified[i] = mod.exports ? mod.exports : mod.module.exports();\n }\n return reified;\n };\n\n Module.prototype.findDeps = function (pending) {\n if (this.state !== 'new') {\n return;\n }\n\n this.state = 'pending';\n\n var deps = this.deps;\n\n for (var i = 0; i < deps.length; i++) {\n var dep = deps[i];\n var entry = this.reified[i] = { exports: undefined, module: undefined };\n if (dep === 'exports') {\n this.hasExportsAsDep = true;\n entry.exports = this.module.exports;\n } else if (dep === 'require') {\n entry.exports = this.makeRequire();\n } else if (dep === 'module') {\n entry.exports = this.module;\n } else {\n entry.module = findModule(resolve(dep, this.id), this.id, pending);\n }\n }\n };\n\n Module.prototype.makeRequire = function () {\n var id = this.id;\n var r = function (dep) {\n return require(resolve(dep, id));\n };\n r['default'] = r;\n r.moduleId = id;\n r.has = function (dep) {\n return has(resolve(dep, id));\n };\n return r;\n };\n\n define = function (id, deps, callback) {\n var module = registry[id];\n\n // If a module for this id has already been defined and is in any state\n // other than `new` (meaning it has been or is currently being required),\n // then we return early to avoid redefinition.\n if (module && module.state !== 'new') {\n return;\n }\n\n if (arguments.length < 2) {\n unsupportedModule(arguments.length);\n }\n\n if (!Array.isArray(deps)) {\n callback = deps;\n deps = [];\n }\n\n if (callback instanceof Alias) {\n registry[id] = new Module(callback.id, deps, callback, true);\n } else {\n registry[id] = new Module(id, deps, callback, false);\n }\n };\n\n define.exports = function (name, defaultExport) {\n var module = registry[name];\n\n // If a module for this name has already been defined and is in any state\n // other than `new` (meaning it has been or is currently being required),\n // then we return early to avoid redefinition.\n if (module && module.state !== 'new') {\n return;\n }\n\n module = new Module(name, [], noop, null);\n module.module.exports = defaultExport;\n module.state = 'finalized';\n registry[name] = module;\n\n return module;\n };\n\n function noop() {}\n // we don't support all of AMD\n // define.amd = {};\n\n function Alias(id) {\n this.id = id;\n }\n\n define.alias = function (id, target) {\n if (arguments.length === 2) {\n return define(target, new Alias(id));\n }\n\n return new Alias(id);\n };\n\n function missingModule(id, referrer) {\n throw new Error('Could not find module `' + id + '` imported from `' + referrer + '`');\n }\n\n function findModule(id, referrer, pending) {\n var mod = registry[id] || registry[id + '/index'];\n\n while (mod && mod.isAlias) {\n mod = registry[mod.id];\n }\n\n if (!mod) {\n missingModule(id, referrer);\n }\n\n if (pending && mod.state !== 'pending' && mod.state !== 'finalized') {\n mod.findDeps(pending);\n pending.push(mod);\n }\n return mod;\n }\n\n function resolve(child, id) {\n if (child.charAt(0) !== '.') {\n return child;\n }\n\n\n var parts = child.split('/');\n var nameParts = id.split('/');\n var parentBase = nameParts.slice(0, -1);\n\n for (var i = 0, l = parts.length; i < l; i++) {\n var part = parts[i];\n\n if (part === '..') {\n if (parentBase.length === 0) {\n throw new Error('Cannot access parent module of root');\n }\n parentBase.pop();\n } else if (part === '.') {\n continue;\n } else {\n parentBase.push(part);\n }\n }\n\n return parentBase.join('/');\n }\n\n function has(id) {\n return !!(registry[id] || registry[id + '/index']);\n }\n\n requirejs.entries = requirejs._eak_seen = registry;\n requirejs.has = has;\n requirejs.unsee = function (id) {\n findModule(id, '(unsee)', false).unsee();\n };\n\n requirejs.clear = function () {\n requirejs.entries = requirejs._eak_seen = registry = dict();\n seen = dict();\n };\n\n // This code primes the JS engine for good performance by warming the\n // JIT compiler for these functions.\n define('foo', function () {});\n define('foo/bar', [], function () {});\n define('foo/asdf', ['module', 'exports', 'require'], function (module, exports, require) {\n if (require.has('foo/bar')) {\n require('foo/bar');\n }\n });\n define('foo/baz', [], define.alias('foo'));\n define('foo/quz', define.alias('foo'));\n define.alias('foo', 'foo/qux');\n define('foo/bar', ['foo', './quz', './baz', './asdf', './bar', '../foo'], function () {});\n define('foo/main', ['foo/bar'], function () {});\n define.exports('foo/exports', {});\n\n require('foo/exports');\n require('foo/main');\n require.unsee('foo/bar');\n\n requirejs.clear();\n\n if (typeof exports === 'object' && typeof module === 'object' && module.exports) {\n module.exports = { require: require, define: define };\n }\n})(this);","/*!\n * jQuery JavaScript Library v3.3.1\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2018-01-20T17:24Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket #14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar document = window.document;\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar concat = arr.concat;\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n // Support: Chrome <=57, Firefox <=52\n // In some browsers, typeof returns \"function\" for HTML <object> elements\n // (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n // We don't want to classify *any* DOM node as a function.\n return typeof obj === \"function\" && typeof obj.nodeType !== \"number\";\n };\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, doc, node ) {\n\t\tdoc = doc || document;\n\n\t\tvar i,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\t\t\t\tif ( node[ i ] ) {\n\t\t\t\t\tscript[ i ] = node[ i ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\ttypeof obj;\n}\n/* global Symbol */\n// Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\n\n\n\nvar\n\tversion = \"3.3.1\",\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\treturn new jQuery.fn.init( selector, context );\n\t},\n\n\t// Support: Android <=4.0 only\n\t// Make sure we trim BOM and NBSP\n\trtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;\n\njQuery.fn = jQuery.prototype = {\n\n\t// The current version of jQuery being used\n\tjquery: version,\n\n\tconstructor: jQuery,\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\ttoArray: function() {\n\t\treturn slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\n\t\t// Return all the elements in a clean array\n\t\tif ( num == null ) {\n\t\t\treturn slice.call( this );\n\t\t}\n\n\t\t// Return just the one element from the set\n\t\treturn num < 0 ? this[ num + this.length ] : this[ num ];\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\teach: function( callback ) {\n\t\treturn jQuery.each( this, callback );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t} ) );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor();\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: arr.sort,\n\tsplice: arr.splice\n};\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[ 0 ] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\n\t\t// Skip the boolean and the target\n\t\ttarget = arguments[ i ] || {};\n\t\ti++;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !isFunction( target ) ) {\n\t\ttarget = {};\n\t}\n\n\t// Extend jQuery itself if only one argument is passed\n\tif ( i === length ) {\n\t\ttarget = this;\n\t\ti--;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\n\t\t// Only deal with non-null/undefined values\n\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tsrc = target[ name ];\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t( copyIsArray = Array.isArray( copy ) ) ) ) {\n\n\t\t\t\t\tif ( copyIsArray ) {\n\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\tclone = src && Array.isArray( src ) ? src : [];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src && jQuery.isPlainObject( src ) ? src : {};\n\t\t\t\t\t}\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\n\t},\n\n\tisEmptyObject: function( obj ) {\n\n\t\t/* eslint-disable no-unused-vars */\n\t\t// See https://github.com/eslint/eslint/issues/6125\n\t\tvar name;\n\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\t// Evaluates a script in a global context\n\tglobalEval: function( code ) {\n\t\tDOMEval( code );\n\t},\n\n\teach: function( obj, callback ) {\n\t\tvar length, i = 0;\n\n\t\tif ( isArrayLike( obj ) ) {\n\t\t\tlength = obj.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor ( i in obj ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\t// Support: Android <=4.0 only\n\ttrim: function( text ) {\n\t\treturn text == null ?\n\t\t\t\"\" :\n\t\t\t( text + \"\" ).replace( rtrim, \"\" );\n\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tpush.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t},\n\n\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t// push.apply(_, arraylike) throws on ancient WebKit\n\tmerge: function( first, second ) {\n\t\tvar len = +second.length,\n\t\t\tj = 0,\n\t\t\ti = first.length;\n\n\t\tfor ( ; j < len; j++ ) {\n\t\t\tfirst[ i++ ] = second[ j ];\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, invert ) {\n\t\tvar callbackInverse,\n\t\t\tmatches = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tcallbackExpect = !invert;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar length, value,\n\t\t\ti = 0,\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their new values\n\t\tif ( isArrayLike( elems ) ) {\n\t\t\tlength = elems.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn concat.apply( [], ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// jQuery.support is not used in Core but other projects attach their\n\t// properties to it so it needs to exist.\n\tsupport: support\n} );\n\nif ( typeof Symbol === \"function\" ) {\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n}\n\n// Populate the class2type map\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\nfunction( i, name ) {\n\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n} );\n\nfunction isArrayLike( obj ) {\n\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\n\t// `in` check used to prevent JIT error (gh-2145)\n\t// hasOwn isn't used here due to false negatives\n\t// regarding Nodelist length in IE\n\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\ttype = toType( obj );\n\n\tif ( isFunction( obj ) || isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\treturn type === \"array\" || length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n}\nvar Sizzle =\n/*!\n * Sizzle CSS Selector Engine v2.3.3\n * https://sizzlejs.com/\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license\n * http://jquery.org/license\n *\n * Date: 2016-08-08\n */\n(function( window ) {\n\nvar i,\n\tsupport,\n\tExpr,\n\tgetText,\n\tisXML,\n\ttokenize,\n\tcompile,\n\tselect,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\n\t// Local document vars\n\tsetDocument,\n\tdocument,\n\tdocElem,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\trbuggyMatches,\n\tmatches,\n\tcontains,\n\n\t// Instance-specific data\n\texpando = \"sizzle\" + 1 * new Date(),\n\tpreferredDoc = window.document,\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t}\n\t\treturn 0;\n\t},\n\n\t// Instance methods\n\thasOwn = ({}).hasOwnProperty,\n\tarr = [],\n\tpop = arr.pop,\n\tpush_native = arr.push,\n\tpush = arr.push,\n\tslice = arr.slice,\n\t// Use a stripped-down indexOf as it's faster than native\n\t// https://jsperf.com/thor-indexof-vs-for/5\n\tindexOf = function( list, elem ) {\n\t\tvar i = 0,\n\t\t\tlen = list.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( list[i] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\n\t// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier\n\tidentifier = \"(?:\\\\\\\\.|[\\\\w-]|[^\\0-\\\\xa0])+\",\n\n\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\t\t// Operator (capture 2)\n\t\t\"*([*^$|!~]?=)\" + whitespace +\n\t\t// \"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\"\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" + whitespace +\n\t\t\"*\\\\]\",\n\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\t\t// 2. simple (capture 6)\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\t\t// 3. anything else (capture 2)\n\t\t\".*\" +\n\t\t\")\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trcombinators = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace + \"*\" ),\n\n\trattributeQuotes = new RegExp( \"=\" + whitespace + \"*([^\\\\]'\\\"]*?)\" + whitespace + \"*\\\\]\", \"g\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" + whitespace +\n\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" + whitespace +\n\t\t\t\"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace + \"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" +\n\t\t\twhitespace + \"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trsibling = /[+~]/,\n\n\t// CSS escapes\n\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\([\\\\da-f]{1,6}\" + whitespace + \"?|(\" + whitespace + \")|.)\", \"ig\" ),\n\tfunescape = function( _, escaped, escapedWhitespace ) {\n\t\tvar high = \"0x\" + escaped - 0x10000;\n\t\t// NaN means non-codepoint\n\t\t// Support: Firefox<24\n\t\t// Workaround erroneous numeric interpretation of +\"0x\"\n\t\treturn high !== high || escapedWhitespace ?\n\t\t\tescaped :\n\t\t\thigh < 0 ?\n\t\t\t\t// BMP codepoint\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\t// Supplemental Plane codepoint (surrogate pair)\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// CSS string/identifier serialization\n\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\n\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,\n\tfcssescape = function( ch, asCodePoint ) {\n\t\tif ( asCodePoint ) {\n\n\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\t\tif ( ch === \"\\0\" ) {\n\t\t\t\treturn \"\\uFFFD\";\n\t\t\t}\n\n\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\t\treturn ch.slice( 0, -1 ) + \"\\\\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t\t}\n\n\t\t// Other potentially-special ASCII characters get backslash-escaped\n\t\treturn \"\\\\\" + ch;\n\t},\n\n\t// Used for iframes\n\t// See setDocument()\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tdisabledAncestor = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && (\"form\" in elem || \"label\" in elem);\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\n\n// Optimize for push.apply( _, NodeList )\ntry {\n\tpush.apply(\n\t\t(arr = slice.call( preferredDoc.childNodes )),\n\t\tpreferredDoc.childNodes\n\t);\n\t// Support: Android<4.0\n\t// Detect silently failing push.apply\n\tarr[ preferredDoc.childNodes.length ].nodeType;\n} catch ( e ) {\n\tpush = { apply: arr.length ?\n\n\t\t// Leverage slice if possible\n\t\tfunction( target, els ) {\n\t\t\tpush_native.apply( target, slice.call(els) );\n\t\t} :\n\n\t\t// Support: IE<9\n\t\t// Otherwise append directly\n\t\tfunction( target, els ) {\n\t\t\tvar j = target.length,\n\t\t\t\ti = 0;\n\t\t\t// Can't trust NodeList.length\n\t\t\twhile ( (target[j++] = els[i++]) ) {}\n\t\t\ttarget.length = j - 1;\n\t\t}\n\t};\n}\n\nfunction Sizzle( selector, context, results, seed ) {\n\tvar m, i, elem, nid, match, groups, newSelector,\n\t\tnewContext = context && context.ownerDocument,\n\n\t\t// nodeType defaults to 9, since context defaults to document\n\t\tnodeType = context ? context.nodeType : 9;\n\n\tresults = results || [];\n\n\t// Return early from calls with invalid selector or context\n\tif ( typeof selector !== \"string\" || !selector ||\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\treturn results;\n\t}\n\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\tif ( !seed ) {\n\n\t\tif ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {\n\t\t\tsetDocument( context );\n\t\t}\n\t\tcontext = context || document;\n\n\t\tif ( documentIsHTML ) {\n\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\tif ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {\n\n\t\t\t\t// ID selector\n\t\t\t\tif ( (m = match[1]) ) {\n\n\t\t\t\t\t// Document context\n\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\tif ( (elem = context.getElementById( m )) ) {\n\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Element context\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\tif ( newContext && (elem = newContext.getElementById( m )) &&\n\t\t\t\t\t\t\tcontains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Type selector\n\t\t\t\t} else if ( match[2] ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Class selector\n\t\t\t\t} else if ( (m = match[3]) && support.getElementsByClassName &&\n\t\t\t\t\tcontext.getElementsByClassName ) {\n\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Take advantage of querySelectorAll\n\t\t\tif ( support.qsa &&\n\t\t\t\t!compilerCache[ selector + \" \" ] &&\n\t\t\t\t(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {\n\n\t\t\t\tif ( nodeType !== 1 ) {\n\t\t\t\t\tnewContext = context;\n\t\t\t\t\tnewSelector = selector;\n\n\t\t\t\t// qSA looks outside Element context, which is not what we want\n\t\t\t\t// Thanks to Andrew Dupont for this workaround technique\n\t\t\t\t// Support: IE <=8\n\t\t\t\t// Exclude object elements\n\t\t\t\t} else if ( context.nodeName.toLowerCase() !== \"object\" ) {\n\n\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\tif ( (nid = context.getAttribute( \"id\" )) ) {\n\t\t\t\t\t\tnid = nid.replace( rcssescape, fcssescape );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontext.setAttribute( \"id\", (nid = expando) );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\ti = groups.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tgroups[i] = \"#\" + nid + \" \" + toSelector( groups[i] );\n\t\t\t\t\t}\n\t\t\t\t\tnewSelector = groups.join( \",\" );\n\n\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext;\n\t\t\t\t}\n\n\t\t\t\tif ( newSelector ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t\t);\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar keys = [];\n\n\tfunction cache( key, value ) {\n\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn (cache[ key + \" \" ] = value);\n\t}\n\treturn cache;\n}\n\n/**\n * Mark a function for special use by Sizzle\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */\nfunction assert( fn ) {\n\tvar el = document.createElement(\"fieldset\");\n\n\ttry {\n\t\treturn !!fn( el );\n\t} catch (e) {\n\t\treturn false;\n\t} finally {\n\t\t// Remove from its parent by default\n\t\tif ( el.parentNode ) {\n\t\t\tel.parentNode.removeChild( el );\n\t\t}\n\t\t// release memory in IE\n\t\tel = null;\n\t}\n}\n\n/**\n * Adds the same handler for all of the specified attrs\n * @param {String} attrs Pipe-separated list of attributes\n * @param {Function} handler The method that will be applied\n */\nfunction addHandle( attrs, handler ) {\n\tvar arr = attrs.split(\"|\"),\n\t\ti = arr.length;\n\n\twhile ( i-- ) {\n\t\tExpr.attrHandle[ arr[i] ] = handler;\n\t}\n}\n\n/**\n * Checks document order of two siblings\n * @param {Element} a\n * @param {Element} b\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n */\nfunction siblingCheck( a, b ) {\n\tvar cur = b && a,\n\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\t\t\ta.sourceIndex - b.sourceIndex;\n\n\t// Use IE sourceIndex if available on both nodes\n\tif ( diff ) {\n\t\treturn diff;\n\t}\n\n\t// Check if b follows a\n\tif ( cur ) {\n\t\twhile ( (cur = cur.nextSibling) ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn a ? 1 : -1;\n}\n\n/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"input\" && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */\nfunction createDisabledPseudo( disabled ) {\n\n\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\treturn function( elem ) {\n\n\t\t// Only certain elements can match :enabled or :disabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\tif ( \"form\" in elem ) {\n\n\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t// * option elements in a disabled optgroup\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t// All such elements have a \"form\" property.\n\t\t\tif ( elem.parentNode && elem.disabled === false ) {\n\n\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\tif ( \"label\" in elem ) {\n\t\t\t\t\tif ( \"label\" in elem.parentNode ) {\n\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 6 - 11\n\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\treturn elem.isDisabled === disabled ||\n\n\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\t/* jshint -W018 */\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\t\t\t\t\t\tdisabledAncestor( elem ) === disabled;\n\t\t\t}\n\n\t\t\treturn elem.disabled === disabled;\n\n\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t// even exist on them, let alone have a boolean value.\n\t\t} else if ( \"label\" in elem ) {\n\t\t\treturn elem.disabled === disabled;\n\t\t}\n\n\t\t// Remaining elements are neither :enabled nor :disabled\n\t\treturn false;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction(function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction(function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ (j = matchIndexes[i]) ] ) {\n\t\t\t\t\tseed[j] = !(matches[j] = seed[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t});\n}\n\n/**\n * Checks a node for validity as a Sizzle context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */\nfunction testContext( context ) {\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n}\n\n// Expose support vars for convenience\nsupport = Sizzle.support = {};\n\n/**\n * Detects XML nodes\n * @param {Element|Object} elem An element or a document\n * @returns {Boolean} True iff elem is a non-HTML XML node\n */\nisXML = Sizzle.isXML = function( elem ) {\n\t// documentElement is verified for cases where it doesn't yet exist\n\t// (such as loading iframes in IE - #4833)\n\tvar documentElement = elem && (elem.ownerDocument || elem).documentElement;\n\treturn documentElement ? documentElement.nodeName !== \"HTML\" : false;\n};\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nsetDocument = Sizzle.setDocument = function( node ) {\n\tvar hasCompare, subWindow,\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// Return early if doc is invalid or already selected\n\tif ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Update global variables\n\tdocument = doc;\n\tdocElem = document.documentElement;\n\tdocumentIsHTML = !isXML( document );\n\n\t// Support: IE 9-11, Edge\n\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\n\tif ( preferredDoc !== document &&\n\t\t(subWindow = document.defaultView) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 11, Edge\n\t\tif ( subWindow.addEventListener ) {\n\t\t\tsubWindow.addEventListener( \"unload\", unloadHandler, false );\n\n\t\t// Support: IE 9 - 10 only\n\t\t} else if ( subWindow.attachEvent ) {\n\t\t\tsubWindow.attachEvent( \"onunload\", unloadHandler );\n\t\t}\n\t}\n\n\t/* Attributes\n\t---------------------------------------------------------------------- */\n\n\t// Support: IE<8\n\t// Verify that getAttribute really returns attributes and not properties\n\t// (excepting IE8 booleans)\n\tsupport.attributes = assert(function( el ) {\n\t\tel.className = \"i\";\n\t\treturn !el.getAttribute(\"className\");\n\t});\n\n\t/* getElement(s)By*\n\t---------------------------------------------------------------------- */\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tsupport.getElementsByTagName = assert(function( el ) {\n\t\tel.appendChild( document.createComment(\"\") );\n\t\treturn !el.getElementsByTagName(\"*\").length;\n\t});\n\n\t// Support: IE<9\n\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\n\n\t// Support: IE<10\n\t// Check if getElementById returns elements by name\n\t// The broken getElementById methods don't pick up programmatically-set names,\n\t// so use a roundabout getElementsByName test\n\tsupport.getById = assert(function( el ) {\n\t\tdocElem.appendChild( el ).id = expando;\n\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\n\t});\n\n\t// ID filter and find\n\tif ( support.getById ) {\n\t\tExpr.filter[\"ID\"] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute(\"id\") === attrId;\n\t\t\t};\n\t\t};\n\t\tExpr.find[\"ID\"] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar elem = context.getElementById( id );\n\t\t\t\treturn elem ? [ elem ] : [];\n\t\t\t}\n\t\t};\n\t} else {\n\t\tExpr.filter[\"ID\"] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\telem.getAttributeNode(\"id\");\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\n\t\t// Support: IE 6 - 7 only\n\t\t// getElementById is not reliable as a find shortcut\n\t\tExpr.find[\"ID\"] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar node, i, elems,\n\t\t\t\t\telem = context.getElementById( id );\n\n\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\tnode = elem.getAttributeNode(\"id\");\n\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\telems = context.getElementsByName( id );\n\t\t\t\t\ti = 0;\n\t\t\t\t\twhile ( (elem = elems[i++]) ) {\n\t\t\t\t\t\tnode = elem.getAttributeNode(\"id\");\n\t\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t}\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find[\"TAG\"] = support.getElementsByTagName ?\n\t\tfunction( tag, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t} else if ( support.qsa ) {\n\t\t\t\treturn context.querySelectorAll( tag );\n\t\t\t}\n\t\t} :\n\n\t\tfunction( tag, context ) {\n\t\t\tvar elem,\n\t\t\t\ttmp = [],\n\t\t\t\ti = 0,\n\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( tag === \"*\" ) {\n\t\t\t\twhile ( (elem = results[i++]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t\treturn results;\n\t\t};\n\n\t// Class\n\tExpr.find[\"CLASS\"] = support.getElementsByClassName && function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t// QSA and matchesSelector support\n\n\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\trbuggyMatches = [];\n\n\t// qSa(:focus) reports false when true (Chrome 21)\n\t// We allow this because of a bug in IE8/9 that throws an error\n\t// whenever `document.activeElement` is accessed on an iframe\n\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t// See https://bugs.jquery.com/ticket/13378\n\trbuggyQSA = [];\n\n\tif ( (support.qsa = rnative.test( document.querySelectorAll )) ) {\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert(function( el ) {\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// https://bugs.jquery.com/ticket/12359\n\t\t\tdocElem.appendChild( el ).innerHTML = \"<a id='\" + expando + \"'></a>\" +\n\t\t\t\t\"<select id='\" + expando + \"-\\r\\\\' msallowcapture=''>\" +\n\t\t\t\t\"<option selected=''></option></select>\";\n\n\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\tif ( el.querySelectorAll(\"[msallowcapture^='']\").length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Support: IE8\n\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\tif ( !el.querySelectorAll(\"[selected]\").length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t\t}\n\n\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\t\trbuggyQSA.push(\"~=\");\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !el.querySelectorAll(\":checked\").length ) {\n\t\t\t\trbuggyQSA.push(\":checked\");\n\t\t\t}\n\n\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\t\trbuggyQSA.push(\".#.+[+~]\");\n\t\t\t}\n\t\t});\n\n\t\tassert(function( el ) {\n\t\t\tel.innerHTML = \"<a href='' disabled='disabled'></a>\" +\n\t\t\t\t\"<select disabled='disabled'><option/></select>\";\n\n\t\t\t// Support: Windows 8 Native Apps\n\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\tvar input = document.createElement(\"input\");\n\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t\t// Support: IE8\n\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\tif ( el.querySelectorAll(\"[name=d]\").length ) {\n\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( el.querySelectorAll(\":enabled\").length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: IE9-11+\n\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t\tdocElem.appendChild( el ).disabled = true;\n\t\t\tif ( el.querySelectorAll(\":disabled\").length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\tel.querySelectorAll(\"*,:x\");\n\t\t\trbuggyQSA.push(\",.*:\");\n\t\t});\n\t}\n\n\tif ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||\n\t\tdocElem.webkitMatchesSelector ||\n\t\tdocElem.mozMatchesSelector ||\n\t\tdocElem.oMatchesSelector ||\n\t\tdocElem.msMatchesSelector) )) ) {\n\n\t\tassert(function( el ) {\n\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t// on a disconnected node (IE 9)\n\t\t\tsupport.disconnectedMatch = matches.call( el, \"*\" );\n\n\t\t\t// This should fail with an exception\n\t\t\t// Gecko does not error, returns false instead\n\t\t\tmatches.call( el, \"[s!='']:x\" );\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t});\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join(\"|\") );\n\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join(\"|\") );\n\n\t/* Contains\n\t---------------------------------------------------------------------- */\n\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\n\t// Element contains another\n\t// Purposefully self-exclusive\n\t// As in, an element does not contain itself\n\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\t\tfunction( a, b ) {\n\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\tbup = b && b.parentNode;\n\t\t\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\t\t\t\tadown.contains ?\n\t\t\t\t\tadown.contains( bup ) :\n\t\t\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t\t\t));\n\t\t} :\n\t\tfunction( a, b ) {\n\t\t\tif ( b ) {\n\t\t\t\twhile ( (b = b.parentNode) ) {\n\t\t\t\t\tif ( b === a ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\n\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t// Document order sorting\n\tsortOrder = hasCompare ?\n\tfunction( a, b ) {\n\n\t\t// Flag for duplicate removal\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\tif ( compare ) {\n\t\t\treturn compare;\n\t\t}\n\n\t\t// Calculate position if both inputs belong to the same document\n\t\tcompare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?\n\t\t\ta.compareDocumentPosition( b ) :\n\n\t\t\t// Otherwise we know they are disconnected\n\t\t\t1;\n\n\t\t// Disconnected nodes\n\t\tif ( compare & 1 ||\n\t\t\t(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {\n\n\t\t\t// Choose the first element that is related to our preferred document\n\t\t\tif ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\t// Maintain original order\n\t\t\treturn sortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\t\t}\n\n\t\treturn compare & 4 ? -1 : 1;\n\t} :\n\tfunction( a, b ) {\n\t\t// Exit early if the nodes are identical\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\taup = a.parentNode,\n\t\t\tbup = b.parentNode,\n\t\t\tap = [ a ],\n\t\t\tbp = [ b ];\n\n\t\t// Parentless nodes are either documents or disconnected\n\t\tif ( !aup || !bup ) {\n\t\t\treturn a === document ? -1 :\n\t\t\t\tb === document ? 1 :\n\t\t\t\taup ? -1 :\n\t\t\t\tbup ? 1 :\n\t\t\t\tsortInput ?\n\t\t\t\t( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :\n\t\t\t\t0;\n\n\t\t// If the nodes are siblings, we can do a quick check\n\t\t} else if ( aup === bup ) {\n\t\t\treturn siblingCheck( a, b );\n\t\t}\n\n\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\tcur = a;\n\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\tap.unshift( cur );\n\t\t}\n\t\tcur = b;\n\t\twhile ( (cur = cur.parentNode) ) {\n\t\t\tbp.unshift( cur );\n\t\t}\n\n\t\t// Walk down the tree looking for a discrepancy\n\t\twhile ( ap[i] === bp[i] ) {\n\t\t\ti++;\n\t\t}\n\n\t\treturn i ?\n\t\t\t// Do a sibling check if the nodes have a common ancestor\n\t\t\tsiblingCheck( ap[i], bp[i] ) :\n\n\t\t\t// Otherwise nodes in our document sort first\n\t\t\tap[i] === preferredDoc ? -1 :\n\t\t\tbp[i] === preferredDoc ? 1 :\n\t\t\t0;\n\t};\n\n\treturn document;\n};\n\nSizzle.matches = function( expr, elements ) {\n\treturn Sizzle( expr, null, null, elements );\n};\n\nSizzle.matchesSelector = function( elem, expr ) {\n\t// Set document vars if needed\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\tsetDocument( elem );\n\t}\n\n\t// Make sure that attribute selectors are quoted\n\texpr = expr.replace( rattributeQuotes, \"='$1']\" );\n\n\tif ( support.matchesSelector && documentIsHTML &&\n\t\t!compilerCache[ expr + \" \" ] &&\n\t\t( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&\n\t\t( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {\n\n\t\ttry {\n\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\tif ( ret || support.disconnectedMatch ||\n\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} catch (e) {}\n\t}\n\n\treturn Sizzle( expr, document, null, [ elem ] ).length > 0;\n};\n\nSizzle.contains = function( context, elem ) {\n\t// Set document vars if needed\n\tif ( ( context.ownerDocument || context ) !== document ) {\n\t\tsetDocument( context );\n\t}\n\treturn contains( context, elem );\n};\n\nSizzle.attr = function( elem, name ) {\n\t// Set document vars if needed\n\tif ( ( elem.ownerDocument || elem ) !== document ) {\n\t\tsetDocument( elem );\n\t}\n\n\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\tundefined;\n\n\treturn val !== undefined ?\n\t\tval :\n\t\tsupport.attributes || !documentIsHTML ?\n\t\t\telem.getAttribute( name ) :\n\t\t\t(val = elem.getAttributeNode(name)) && val.specified ?\n\t\t\t\tval.value :\n\t\t\t\tnull;\n};\n\nSizzle.escape = function( sel ) {\n\treturn (sel + \"\").replace( rcssescape, fcssescape );\n};\n\nSizzle.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\n/**\n * Document sorting and removing duplicates\n * @param {ArrayLike} results\n */\nSizzle.uniqueSort = function( results ) {\n\tvar elem,\n\t\tduplicates = [],\n\t\tj = 0,\n\t\ti = 0;\n\n\t// Unless we *know* we can detect duplicates, assume their presence\n\thasDuplicate = !support.detectDuplicates;\n\tsortInput = !support.sortStable && results.slice( 0 );\n\tresults.sort( sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\twhile ( (elem = results[i++]) ) {\n\t\t\tif ( elem === results[ i ] ) {\n\t\t\t\tj = duplicates.push( i );\n\t\t\t}\n\t\t}\n\t\twhile ( j-- ) {\n\t\t\tresults.splice( duplicates[ j ], 1 );\n\t\t}\n\t}\n\n\t// Clear input after sorting to release objects\n\t// See https://github.com/jquery/sizzle/pull/225\n\tsortInput = null;\n\n\treturn results;\n};\n\n/**\n * Utility function for retrieving the text value of an array of DOM nodes\n * @param {Array|Element} elem\n */\ngetText = Sizzle.getText = function( elem ) {\n\tvar node,\n\t\tret = \"\",\n\t\ti = 0,\n\t\tnodeType = elem.nodeType;\n\n\tif ( !nodeType ) {\n\t\t// If no nodeType, this is expected to be an array\n\t\twhile ( (node = elem[i++]) ) {\n\t\t\t// Do not traverse comment nodes\n\t\t\tret += getText( node );\n\t\t}\n\t} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\n\t\t// Use textContent for elements\n\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\t\tif ( typeof elem.textContent === \"string\" ) {\n\t\t\treturn elem.textContent;\n\t\t} else {\n\t\t\t// Traverse its children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tret += getText( elem );\n\t\t\t}\n\t\t}\n\t} else if ( nodeType === 3 || nodeType === 4 ) {\n\t\treturn elem.nodeValue;\n\t}\n\t// Do not include comment or processing instruction nodes\n\n\treturn ret;\n};\n\nExpr = Sizzle.selectors = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\tattrHandle: {},\n\n\tfind: {},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\t\"ATTR\": function( match ) {\n\t\t\tmatch[1] = match[1].replace( runescape, funescape );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[3] = ( match[3] || match[4] || match[5] || \"\" ).replace( runescape, funescape );\n\n\t\t\tif ( match[2] === \"~=\" ) {\n\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\t\"CHILD\": function( match ) {\n\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\tmatch[1] = match[1].toLowerCase();\n\n\t\t\tif ( match[1].slice( 0, 3 ) === \"nth\" ) {\n\t\t\t\t// nth-* requires argument\n\t\t\t\tif ( !match[3] ) {\n\t\t\t\t\tSizzle.error( match[0] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === \"even\" || match[3] === \"odd\" ) );\n\t\t\t\tmatch[5] = +( ( match[7] + match[8] ) || match[3] === \"odd\" );\n\n\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[3] ) {\n\t\t\t\tSizzle.error( match[0] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\t\"PSEUDO\": function( match ) {\n\t\t\tvar excess,\n\t\t\t\tunquoted = !match[6] && match[2];\n\n\t\t\tif ( matchExpr[\"CHILD\"].test( match[0] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Accept quoted arguments as-is\n\t\t\tif ( match[3] ) {\n\t\t\t\tmatch[2] = match[4] || match[5] || \"\";\n\n\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t(excess = tokenize( unquoted, true )) &&\n\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t(excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length) ) {\n\n\t\t\t\t// excess is a negative index\n\t\t\t\tmatch[0] = match[0].slice( 0, excess );\n\t\t\t\tmatch[2] = unquoted.slice( 0, excess );\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\n\t\t\"TAG\": function( nodeNameSelector ) {\n\t\t\tvar nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn nodeNameSelector === \"*\" ?\n\t\t\t\tfunction() { return true; } :\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t\t};\n\t\t},\n\n\t\t\"CLASS\": function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t(pattern = new RegExp( \"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\" )) &&\n\t\t\t\tclassCache( className, function( elem ) {\n\t\t\t\t\treturn pattern.test( typeof elem.className === \"string\" && elem.className || typeof elem.getAttribute !== \"undefined\" && elem.getAttribute(\"class\") || \"\" );\n\t\t\t\t});\n\t\t},\n\n\t\t\"ATTR\": function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = Sizzle.attr( elem, name );\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\t\t\t\tif ( !operator ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tresult += \"\";\n\n\t\t\t\treturn operator === \"=\" ? result === check :\n\t\t\t\t\toperator === \"!=\" ? result !== check :\n\t\t\t\t\toperator === \"^=\" ? check && result.indexOf( check ) === 0 :\n\t\t\t\t\toperator === \"*=\" ? check && result.indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"$=\" ? check && result.slice( -check.length ) === check :\n\t\t\t\t\toperator === \"~=\" ? ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" ).indexOf( check ) > -1 :\n\t\t\t\t\toperator === \"|=\" ? result === check || result.slice( 0, check.length + 1 ) === check + \"-\" :\n\t\t\t\t\tfalse;\n\t\t\t};\n\t\t},\n\n\t\t\"CHILD\": function( type, what, argument, first, last ) {\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\tofType = what === \"of-type\";\n\n\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t} :\n\n\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\tvar cache, uniqueCache, outerCache, node, nodeIndex, start,\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\twhile ( (node = node[ dir ]) ) {\n\t\t\t\t\t\t\t\t\tif ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\n\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\tif ( forward && useCache ) {\n\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\n\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\tnode = parent;\n\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\t\tcache = uniqueCache[ type ] || [];\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\tif ( diff === false ) {\n\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\twhile ( (node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) || start.pop()) ) {\n\n\t\t\t\t\t\t\t\t\tif ( ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnode.nodeName.toLowerCase() === name :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\n\t\t\t\t\t\t\t\t\t\t++diff ) {\n\n\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] || (node[ expando ] = {});\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache = outerCache[ node.uniqueID ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t(outerCache[ node.uniqueID ] = {});\n\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t},\n\n\t\t\"PSEUDO\": function( pseudo, argument ) {\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\tSizzle.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as Sizzle does\n\t\t\tif ( fn[ expando ] ) {\n\t\t\t\treturn fn( argument );\n\t\t\t}\n\n\t\t\t// But maintain support for old signatures\n\t\t\tif ( fn.length > 1 ) {\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\tmarkFunction(function( seed, matches ) {\n\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tidx = indexOf( seed, matched[i] );\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[i] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}) :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn fn;\n\t\t}\n\t},\n\n\tpseudos: {\n\t\t// Potentially complex pseudos\n\t\t\"not\": markFunction(function( selector ) {\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar input = [],\n\t\t\t\tresults = [],\n\t\t\t\tmatcher = compile( selector.replace( rtrim, \"$1\" ) );\n\n\t\t\treturn matcher[ expando ] ?\n\t\t\t\tmarkFunction(function( seed, matches, context, xml ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( (elem = unmatched[i]) ) {\n\t\t\t\t\t\t\tseed[i] = !(matches[i] = elem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}) :\n\t\t\t\tfunction( elem, context, xml ) {\n\t\t\t\t\tinput[0] = elem;\n\t\t\t\t\tmatcher( input, null, xml, results );\n\t\t\t\t\t// Don't keep the element (issue #299)\n\t\t\t\t\tinput[0] = null;\n\t\t\t\t\treturn !results.pop();\n\t\t\t\t};\n\t\t}),\n\n\t\t\"has\": markFunction(function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn Sizzle( selector, elem ).length > 0;\n\t\t\t};\n\t\t}),\n\n\t\t\"contains\": markFunction(function( text ) {\n\t\t\ttext = text.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t}),\n\n\t\t// \"Whether an element is represented by a :lang() selector\n\t\t// is based solely on the element's language value\n\t\t// being equal to the identifier C,\n\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t// The identifier C does not have to be a valid language name.\"\n\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\"lang\": markFunction( function( lang ) {\n\t\t\t// lang value must be a valid identifier\n\t\t\tif ( !ridentifier.test(lang || \"\") ) {\n\t\t\t\tSizzle.error( \"unsupported lang: \" + lang );\n\t\t\t}\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\tvar elemLang;\n\t\t\t\tdo {\n\t\t\t\t\tif ( (elemLang = documentIsHTML ?\n\t\t\t\t\t\telem.lang :\n\t\t\t\t\t\telem.getAttribute(\"xml:lang\") || elem.getAttribute(\"lang\")) ) {\n\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t}\n\t\t\t\t} while ( (elem = elem.parentNode) && elem.nodeType === 1 );\n\t\t\t\treturn false;\n\t\t\t};\n\t\t}),\n\n\t\t// Miscellaneous\n\t\t\"target\": function( elem ) {\n\t\t\tvar hash = window.location && window.location.hash;\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t},\n\n\t\t\"root\": function( elem ) {\n\t\t\treturn elem === docElem;\n\t\t},\n\n\t\t\"focus\": function( elem ) {\n\t\t\treturn elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);\n\t\t},\n\n\t\t// Boolean properties\n\t\t\"enabled\": createDisabledPseudo( false ),\n\t\t\"disabled\": createDisabledPseudo( true ),\n\n\t\t\"checked\": function( elem ) {\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\treturn (nodeName === \"input\" && !!elem.checked) || (nodeName === \"option\" && !!elem.selected);\n\t\t},\n\n\t\t\"selected\": function( elem ) {\n\t\t\t// Accessing this property makes selected-by-default\n\t\t\t// options in Safari work properly\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t// Contents\n\t\t\"empty\": function( elem ) {\n\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t// but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tif ( elem.nodeType < 6 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t\"parent\": function( elem ) {\n\t\t\treturn !Expr.pseudos[\"empty\"]( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\t\"header\": function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\t\"input\": function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\t\"button\": function( elem ) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === \"button\" || name === \"button\";\n\t\t},\n\n\t\t\"text\": function( elem ) {\n\t\t\tvar attr;\n\t\t\treturn elem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\telem.type === \"text\" &&\n\n\t\t\t\t// Support: IE<8\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\n\t\t\t\t( (attr = elem.getAttribute(\"type\")) == null || attr.toLowerCase() === \"text\" );\n\t\t},\n\n\t\t// Position-in-collection\n\t\t\"first\": createPositionalPseudo(function() {\n\t\t\treturn [ 0 ];\n\t\t}),\n\n\t\t\"last\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t}),\n\n\t\t\"eq\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t}),\n\n\t\t\"even\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"odd\": createPositionalPseudo(function( matchIndexes, length ) {\n\t\t\tvar i = 1;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"lt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t}),\n\n\t\t\"gt\": createPositionalPseudo(function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t})\n\t}\n};\n\nExpr.pseudos[\"nth\"] = Expr.pseudos[\"eq\"];\n\n// Add button/input type pseudos\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\tExpr.pseudos[ i ] = createInputPseudo( i );\n}\nfor ( i in { submit: true, reset: true } ) {\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\n}\n\n// Easy API for creating new setFilters\nfunction setFilters() {}\nsetFilters.prototype = Expr.filters = Expr.pseudos;\nExpr.setFilters = new setFilters();\n\ntokenize = Sizzle.tokenize = function( selector, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, preFilters,\n\t\tcached = tokenCache[ selector + \" \" ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\tpreFilters = Expr.preFilter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || (match = rcomma.exec( soFar )) ) {\n\t\t\tif ( match ) {\n\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\tsoFar = soFar.slice( match[0].length ) || soFar;\n\t\t\t}\n\t\t\tgroups.push( (tokens = []) );\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( (match = rcombinators.exec( soFar )) ) {\n\t\t\tmatched = match.shift();\n\t\t\ttokens.push({\n\t\t\t\tvalue: matched,\n\t\t\t\t// Cast descendant combinators to space\n\t\t\t\ttype: match[0].replace( rtrim, \" \" )\n\t\t\t});\n\t\t\tsoFar = soFar.slice( matched.length );\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in Expr.filter ) {\n\t\t\tif ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||\n\t\t\t\t(match = preFilters[ type ]( match ))) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push({\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tmatches: match\n\t\t\t\t});\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\treturn parseOnly ?\n\t\tsoFar.length :\n\t\tsoFar ?\n\t\t\tSizzle.error( selector ) :\n\t\t\t// Cache the tokens\n\t\t\ttokenCache( selector, groups ).slice( 0 );\n};\n\nfunction toSelector( tokens ) {\n\tvar i = 0,\n\t\tlen = tokens.length,\n\t\tselector = \"\";\n\tfor ( ; i < len; i++ ) {\n\t\tselector += tokens[i].value;\n\t}\n\treturn selector;\n}\n\nfunction addCombinator( matcher, combinator, base ) {\n\tvar dir = combinator.dir,\n\t\tskip = combinator.next,\n\t\tkey = skip || dir,\n\t\tcheckNonElements = base && key === \"parentNode\",\n\t\tdoneName = done++;\n\n\treturn combinator.first ?\n\t\t// Check against closest ancestor/preceding element\n\t\tfunction( elem, context, xml ) {\n\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t} :\n\n\t\t// Check against all ancestor/preceding elements\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar oldCache, uniqueCache, outerCache,\n\t\t\t\tnewCache = [ dirruns, doneName ];\n\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\tif ( xml ) {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile ( (elem = elem[ dir ]) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\touterCache = elem[ expando ] || (elem[ expando ] = {});\n\n\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\tuniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});\n\n\t\t\t\t\t\tif ( skip && skip === elem.nodeName.toLowerCase() ) {\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\n\t\t\t\t\t\t} else if ( (oldCache = uniqueCache[ key ]) &&\n\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\n\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\treturn (newCache[ 2 ] = oldCache[ 2 ]);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\tuniqueCache[ key ] = newCache;\n\n\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\tif ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n}\n\nfunction elementMatcher( matchers ) {\n\treturn matchers.length > 1 ?\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar i = matchers.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( !matchers[i]( elem, context, xml ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} :\n\t\tmatchers[0];\n}\n\nfunction multipleContexts( selector, contexts, results ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tSizzle( selector, contexts[i], results );\n\t}\n\treturn results;\n}\n\nfunction condense( unmatched, map, filter, context, xml ) {\n\tvar elem,\n\t\tnewUnmatched = [],\n\t\ti = 0,\n\t\tlen = unmatched.length,\n\t\tmapped = map != null;\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( (elem = unmatched[i]) ) {\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\tif ( mapped ) {\n\t\t\t\t\tmap.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newUnmatched;\n}\n\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\tif ( postFilter && !postFilter[ expando ] ) {\n\t\tpostFilter = setMatcher( postFilter );\n\t}\n\tif ( postFinder && !postFinder[ expando ] ) {\n\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t}\n\treturn markFunction(function( seed, results, context, xml ) {\n\t\tvar temp, i, elem,\n\t\t\tpreMap = [],\n\t\t\tpostMap = [],\n\t\t\tpreexisting = results.length,\n\n\t\t\t// Get initial elements from seed or context\n\t\t\telems = seed || multipleContexts( selector || \"*\", context.nodeType ? [ context ] : context, [] ),\n\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\telems,\n\n\t\t\tmatcherOut = matcher ?\n\t\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\tpostFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t\t[] :\n\n\t\t\t\t\t// ...otherwise use results directly\n\t\t\t\t\tresults :\n\t\t\t\tmatcherIn;\n\n\t\t// Find primary matches\n\t\tif ( matcher ) {\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t}\n\n\t\t// Apply postFilter\n\t\tif ( postFilter ) {\n\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\ti = temp.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( (elem = temp[i]) ) {\n\t\t\t\t\tmatcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( seed ) {\n\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\tif ( postFinder ) {\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\ttemp = [];\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( (elem = matcherOut[i]) ) {\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\ttemp.push( (matcherIn[i] = elem) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpostFinder( null, (matcherOut = []), temp, xml );\n\t\t\t\t}\n\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\ti = matcherOut.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( (elem = matcherOut[i]) &&\n\t\t\t\t\t\t(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {\n\n\t\t\t\t\t\tseed[temp] = !(results[temp] = elem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Add elements to results, through postFinder if defined\n\t\t} else {\n\t\t\tmatcherOut = condense(\n\t\t\t\tmatcherOut === results ?\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\tmatcherOut\n\t\t\t);\n\t\t\tif ( postFinder ) {\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t} else {\n\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t}\n\t\t}\n\t});\n}\n\nfunction matcherFromTokens( tokens ) {\n\tvar checkContext, matcher, j,\n\t\tlen = tokens.length,\n\t\tleadingRelative = Expr.relative[ tokens[0].type ],\n\t\timplicitRelative = leadingRelative || Expr.relative[\" \"],\n\t\ti = leadingRelative ? 1 : 0,\n\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\treturn elem === checkContext;\n\t\t}, implicitRelative, true ),\n\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\treturn indexOf( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\n\t\t\tvar ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (\n\t\t\t\t(checkContext = context).nodeType ?\n\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\t\t\t// Avoid hanging onto element (issue #299)\n\t\t\tcheckContext = null;\n\t\t\treturn ret;\n\t\t} ];\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( (matcher = Expr.relative[ tokens[i].type ]) ) {\n\t\t\tmatchers = [ addCombinator(elementMatcher( matchers ), matcher) ];\n\t\t} else {\n\t\t\tmatcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );\n\n\t\t\t// Return special upon seeing a positional matcher\n\t\t\tif ( matcher[ expando ] ) {\n\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\tj = ++i;\n\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\tif ( Expr.relative[ tokens[j].type ] ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn setMatcher(\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\ti > 1 && toSelector(\n\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\t\ttokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" })\n\t\t\t\t\t).replace( rtrim, \"$1\" ),\n\t\t\t\t\tmatcher,\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\tj < len && matcherFromTokens( (tokens = tokens.slice( j )) ),\n\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t);\n\t\t\t}\n\t\t\tmatchers.push( matcher );\n\t\t}\n\t}\n\n\treturn elementMatcher( matchers );\n}\n\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\tvar bySet = setMatchers.length > 0,\n\t\tbyElement = elementMatchers.length > 0,\n\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\t\t\tvar elem, j, matcher,\n\t\t\t\tmatchedCount = 0,\n\t\t\t\ti = \"0\",\n\t\t\t\tunmatched = seed && [],\n\t\t\t\tsetMatched = [],\n\t\t\t\tcontextBackup = outermostContext,\n\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\telems = seed || byElement && Expr.find[\"TAG\"]( \"*\", outermost ),\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\tdirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),\n\t\t\t\tlen = elems.length;\n\n\t\t\tif ( outermost ) {\n\t\t\t\toutermostContext = context === document || context || outermost;\n\t\t\t}\n\n\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t// Support: IE<9, Safari\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching elements by id\n\t\t\tfor ( ; i !== len && (elem = elems[i]) != null; i++ ) {\n\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\tif ( !context && elem.ownerDocument !== document ) {\n\t\t\t\t\t\tsetDocument( elem );\n\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t}\n\t\t\t\t\twhile ( (matcher = elementMatchers[j++]) ) {\n\t\t\t\t\t\tif ( matcher( elem, context || document, xml) ) {\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\tif ( bySet ) {\n\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\tif ( (elem = !matcher && elem) ) {\n\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t// makes the latter nonnegative.\n\t\t\tmatchedCount += i;\n\n\t\t\t// Apply set filters to unmatched elements\n\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t// no element matchers and no seed.\n\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t// numerically zero.\n\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( (matcher = setMatchers[j++]) ) {\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t}\n\n\t\t\t\tif ( seed ) {\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( !(unmatched[i] || setMatched[i]) ) {\n\t\t\t\t\t\t\t\tsetMatched[i] = pop.call( results );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t}\n\n\t\t\t\t// Add matches to results\n\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\tSizzle.uniqueSort( results );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Override manipulation of globals by nested matchers\n\t\t\tif ( outermost ) {\n\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\toutermostContext = contextBackup;\n\t\t\t}\n\n\t\t\treturn unmatched;\n\t\t};\n\n\treturn bySet ?\n\t\tmarkFunction( superMatcher ) :\n\t\tsuperMatcher;\n}\n\ncompile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {\n\tvar i,\n\t\tsetMatchers = [],\n\t\telementMatchers = [],\n\t\tcached = compilerCache[ selector + \" \" ];\n\n\tif ( !cached ) {\n\t\t// Generate a function of recursive functions that can be used to check each element\n\t\tif ( !match ) {\n\t\t\tmatch = tokenize( selector );\n\t\t}\n\t\ti = match.length;\n\t\twhile ( i-- ) {\n\t\t\tcached = matcherFromTokens( match[i] );\n\t\t\tif ( cached[ expando ] ) {\n\t\t\t\tsetMatchers.push( cached );\n\t\t\t} else {\n\t\t\t\telementMatchers.push( cached );\n\t\t\t}\n\t\t}\n\n\t\t// Cache the compiled function\n\t\tcached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );\n\n\t\t// Save selector and tokenization\n\t\tcached.selector = selector;\n\t}\n\treturn cached;\n};\n\n/**\n * A low-level selection function that works with Sizzle's compiled\n * selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n * selector function built with Sizzle.compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */\nselect = Sizzle.select = function( selector, context, results, seed ) {\n\tvar i, tokens, token, type, find,\n\t\tcompiled = typeof selector === \"function\" && selector,\n\t\tmatch = !seed && tokenize( (selector = compiled.selector || selector) );\n\n\tresults = results || [];\n\n\t// Try to minimize operations if there is only one selector in the list and no seed\n\t// (the latter of which guarantees us context)\n\tif ( match.length === 1 ) {\n\n\t\t// Reduce context if the leading compound selector is an ID\n\t\ttokens = match[0] = match[0].slice( 0 );\n\t\tif ( tokens.length > 2 && (token = tokens[0]).type === \"ID\" &&\n\t\t\t\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {\n\n\t\t\tcontext = ( Expr.find[\"ID\"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];\n\t\t\tif ( !context ) {\n\t\t\t\treturn results;\n\n\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t} else if ( compiled ) {\n\t\t\t\tcontext = context.parentNode;\n\t\t\t}\n\n\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t}\n\n\t\t// Fetch a seed set for right-to-left matching\n\t\ti = matchExpr[\"needsContext\"].test( selector ) ? 0 : tokens.length;\n\t\twhile ( i-- ) {\n\t\t\ttoken = tokens[i];\n\n\t\t\t// Abort if we hit a combinator\n\t\t\tif ( Expr.relative[ (type = token.type) ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( (find = Expr.find[ type ]) ) {\n\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\tif ( (seed = find(\n\t\t\t\t\ttoken.matches[0].replace( runescape, funescape ),\n\t\t\t\t\trsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context\n\t\t\t\t)) ) {\n\n\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\tpush.apply( results, seed );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Compile and execute a filtering function if one is not provided\n\t// Provide `match` to avoid retokenization if we modified the selector above\n\t( compiled || compile( selector, match ) )(\n\t\tseed,\n\t\tcontext,\n\t\t!documentIsHTML,\n\t\tresults,\n\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\n\t);\n\treturn results;\n};\n\n// One-time assignments\n\n// Sort stability\nsupport.sortStable = expando.split(\"\").sort( sortOrder ).join(\"\") === expando;\n\n// Support: Chrome 14-35+\n// Always assume duplicates if they aren't passed to the comparison function\nsupport.detectDuplicates = !!hasDuplicate;\n\n// Initialize against the default document\nsetDocument();\n\n// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n// Detached nodes confoundingly follow *each other*\nsupport.sortDetached = assert(function( el ) {\n\t// Should return 1, but returns 4 (following)\n\treturn el.compareDocumentPosition( document.createElement(\"fieldset\") ) & 1;\n});\n\n// Support: IE<8\n// Prevent attribute/property \"interpolation\"\n// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\nif ( !assert(function( el ) {\n\tel.innerHTML = \"<a href='#'></a>\";\n\treturn el.firstChild.getAttribute(\"href\") === \"#\" ;\n}) ) {\n\taddHandle( \"type|href|height|width\", function( elem, name, isXML ) {\n\t\tif ( !isXML ) {\n\t\t\treturn elem.getAttribute( name, name.toLowerCase() === \"type\" ? 1 : 2 );\n\t\t}\n\t});\n}\n\n// Support: IE<9\n// Use defaultValue in place of getAttribute(\"value\")\nif ( !support.attributes || !assert(function( el ) {\n\tel.innerHTML = \"<input/>\";\n\tel.firstChild.setAttribute( \"value\", \"\" );\n\treturn el.firstChild.getAttribute( \"value\" ) === \"\";\n}) ) {\n\taddHandle( \"value\", function( elem, name, isXML ) {\n\t\tif ( !isXML && elem.nodeName.toLowerCase() === \"input\" ) {\n\t\t\treturn elem.defaultValue;\n\t\t}\n\t});\n}\n\n// Support: IE<9\n// Use getAttributeNode to fetch booleans when getAttribute lies\nif ( !assert(function( el ) {\n\treturn el.getAttribute(\"disabled\") == null;\n}) ) {\n\taddHandle( booleans, function( elem, name, isXML ) {\n\t\tvar val;\n\t\tif ( !isXML ) {\n\t\t\treturn elem[ name ] === true ? name.toLowerCase() :\n\t\t\t\t\t(val = elem.getAttributeNode( name )) && val.specified ?\n\t\t\t\t\tval.value :\n\t\t\t\tnull;\n\t\t}\n\t});\n}\n\nreturn Sizzle;\n\n})( window );\n\n\n\njQuery.find = Sizzle;\njQuery.expr = Sizzle.selectors;\n\n// Deprecated\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\njQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;\njQuery.text = Sizzle.getText;\njQuery.isXMLDoc = Sizzle.isXML;\njQuery.contains = Sizzle.contains;\njQuery.escapeSelector = Sizzle.escape;\n\n\n\n\nvar dir = function( elem, dir, until ) {\n\tvar matched = [],\n\t\ttruncate = until !== undefined;\n\n\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\n\t\tif ( elem.nodeType === 1 ) {\n\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmatched.push( elem );\n\t\t}\n\t}\n\treturn matched;\n};\n\n\nvar siblings = function( n, elem ) {\n\tvar matched = [];\n\n\tfor ( ; n; n = n.nextSibling ) {\n\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\tmatched.push( n );\n\t\t}\n\t}\n\n\treturn matched;\n};\n\n\nvar rneedsContext = jQuery.expr.match.needsContext;\n\n\n\nfunction nodeName( elem, name ) {\n\n return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\n};\nvar rsingleTag = ( /^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i );\n\n\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, not ) {\n\tif ( isFunction( qualifier ) ) {\n\t\treturn jQuery.grep( elements, function( elem, i ) {\n\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\t\t} );\n\t}\n\n\t// Single element\n\tif ( qualifier.nodeType ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( elem === qualifier ) !== not;\n\t\t} );\n\t}\n\n\t// Arraylike of elements (jQuery, arguments, Array)\n\tif ( typeof qualifier !== \"string\" ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\n\t\t} );\n\t}\n\n\t// Filtered directly for both simple and complex selectors\n\treturn jQuery.filter( qualifier, elements, not );\n}\n\njQuery.filter = function( expr, elems, not ) {\n\tvar elem = elems[ 0 ];\n\n\tif ( not ) {\n\t\texpr = \":not(\" + expr + \")\";\n\t}\n\n\tif ( elems.length === 1 && elem.nodeType === 1 ) {\n\t\treturn jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];\n\t}\n\n\treturn jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\t\treturn elem.nodeType === 1;\n\t} ) );\n};\n\njQuery.fn.extend( {\n\tfind: function( selector ) {\n\t\tvar i, ret,\n\t\t\tlen = this.length,\n\t\t\tself = this;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} ) );\n\t\t}\n\n\t\tret = this.pushStack( [] );\n\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\tjQuery.find( selector, self[ i ], ret );\n\t\t}\n\n\t\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\n\t},\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], false ) );\n\t},\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], true ) );\n\t},\n\tis: function( selector ) {\n\t\treturn !!winnow(\n\t\t\tthis,\n\n\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\t\t\t\tjQuery( selector ) :\n\t\t\t\tselector || [],\n\t\t\tfalse\n\t\t).length;\n\t}\n} );\n\n\n// Initialize a jQuery object\n\n\n// A central reference to the root jQuery(document)\nvar rootjQuery,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\n\t// Strict HTML recognition (#11290: must start with <)\n\t// Shortcut simple #id case for speed\n\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,\n\n\tinit = jQuery.fn.init = function( selector, context, root ) {\n\t\tvar match, elem;\n\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Method init() accepts an alternate rootjQuery\n\t\t// so migrate can support jQuery.sub (gh-2101)\n\t\troot = root || rootjQuery;\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector[ 0 ] === \"<\" &&\n\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\n\t\t\t\tselector.length >= 3 ) {\n\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[ 1 ] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\n\n\t\t\t\t\t// Option to run scripts is true for back-compat\n\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\tmatch[ 1 ],\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\ttrue\n\t\t\t\t\t) );\n\n\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tfor ( match in context ) {\n\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\tif ( isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this;\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[ 2 ] );\n\n\t\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t\t// Inject the element directly into the jQuery object\n\t\t\t\t\t\tthis[ 0 ] = elem;\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || root ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(DOMElement)\n\t\t} else if ( selector.nodeType ) {\n\t\t\tthis[ 0 ] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( isFunction( selector ) ) {\n\t\t\treturn root.ready !== undefined ?\n\t\t\t\troot.ready( selector ) :\n\n\t\t\t\t// Execute immediately if ready is not present\n\t\t\t\tselector( jQuery );\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t};\n\n// Give the init function the jQuery prototype for later instantiation\ninit.prototype = jQuery.fn;\n\n// Initialize central reference\nrootjQuery = jQuery( document );\n\n\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\n\t// Methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend( {\n\thas: function( target ) {\n\t\tvar targets = jQuery( target, this ),\n\t\t\tl = targets.length;\n\n\t\treturn this.filter( function() {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tmatched = [],\n\t\t\ttargets = typeof selectors !== \"string\" && jQuery( selectors );\n\n\t\t// Positional selectors never match, since there's no _selection_ context\n\t\tif ( !rneedsContext.test( selectors ) ) {\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\n\n\t\t\t\t\t// Always skip document fragments\n\t\t\t\t\tif ( cur.nodeType < 11 && ( targets ?\n\t\t\t\t\t\ttargets.index( cur ) > -1 :\n\n\t\t\t\t\t\t// Don't pass non-elements to Sizzle\n\t\t\t\t\t\tcur.nodeType === 1 &&\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\n\n\t\t\t\t\t\tmatched.push( cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\n\t},\n\n\t// Determine the position of an element within the set\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\n\t\t}\n\n\t\t// Index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn indexOf.call( this,\n\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[ 0 ] : elem\n\t\t);\n\t},\n\n\tadd: function( selector, context ) {\n\t\treturn this.pushStack(\n\t\t\tjQuery.uniqueSort(\n\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\t\t\t)\n\t\t);\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter( selector )\n\t\t);\n\t}\n} );\n\nfunction sibling( cur, dir ) {\n\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\n\treturn cur;\n}\n\njQuery.each( {\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, i, until ) {\n\t\treturn dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, i, until ) {\n\t\treturn dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, i, until ) {\n\t\treturn dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn siblings( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n if ( nodeName( elem, \"iframe\" ) ) {\n return elem.contentDocument;\n }\n\n // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only\n // Treat the template element as a regular one in browsers that\n // don't support it.\n if ( nodeName( elem, \"template\" ) ) {\n elem = elem.content || elem;\n }\n\n return jQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar matched = jQuery.map( this, fn, until );\n\n\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tmatched = jQuery.filter( selector, matched );\n\t\t}\n\n\t\tif ( this.length > 1 ) {\n\n\t\t\t// Remove duplicates\n\t\t\tif ( !guaranteedUnique[ name ] ) {\n\t\t\t\tjQuery.uniqueSort( matched );\n\t\t\t}\n\n\t\t\t// Reverse order for parents* and prev-derivatives\n\t\t\tif ( rparentsprev.test( name ) ) {\n\t\t\t\tmatched.reverse();\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched );\n\t};\n} );\nvar rnothtmlwhite = ( /[^\\x20\\t\\r\\n\\f]+/g );\n\n\n\n// Convert String-formatted options into Object-formatted ones\nfunction createOptions( options ) {\n\tvar object = {};\n\tjQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t} );\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\tcreateOptions( options ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Flag to know if list is currently firing\n\t\tfiring,\n\n\t\t// Last fire value for non-forgettable lists\n\t\tmemory,\n\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\n\t\t// Flag to prevent firing\n\t\tlocked,\n\n\t\t// Actual callback list\n\t\tlist = [],\n\n\t\t// Queue of execution data for repeatable lists\n\t\tqueue = [],\n\n\t\t// Index of currently firing callback (modified by add/remove as needed)\n\t\tfiringIndex = -1,\n\n\t\t// Fire callbacks\n\t\tfire = function() {\n\n\t\t\t// Enforce single-firing\n\t\t\tlocked = locked || options.once;\n\n\t\t\t// Execute callbacks for all pending executions,\n\t\t\t// respecting firingIndex overrides and runtime changes\n\t\t\tfired = firing = true;\n\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\n\t\t\t\tmemory = queue.shift();\n\t\t\t\twhile ( ++firingIndex < list.length ) {\n\n\t\t\t\t\t// Run callback and check for early termination\n\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\n\t\t\t\t\t\toptions.stopOnFalse ) {\n\n\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\n\t\t\t\t\t\tfiringIndex = list.length;\n\t\t\t\t\t\tmemory = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Forget the data if we're done with it\n\t\t\tif ( !options.memory ) {\n\t\t\t\tmemory = false;\n\t\t\t}\n\n\t\t\tfiring = false;\n\n\t\t\t// Clean up if we're done firing for good\n\t\t\tif ( locked ) {\n\n\t\t\t\t// Keep an empty list if we have data for future add calls\n\t\t\t\tif ( memory ) {\n\t\t\t\t\tlist = [];\n\n\t\t\t\t// Otherwise, this object is spent\n\t\t\t\t} else {\n\t\t\t\t\tlist = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Actual Callbacks object\n\t\tself = {\n\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\n\t\t\t\t\t// If we have memory from a past run, we should fire after adding\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfiringIndex = list.length - 1;\n\t\t\t\t\t\tqueue.push( memory );\n\t\t\t\t\t}\n\n\t\t\t\t\t( function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tif ( isFunction( arg ) ) {\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( arg && arg.length && toType( arg ) !== \"string\" ) {\n\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t} )( arguments );\n\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\tvar index;\n\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\tlist.splice( index, 1 );\n\n\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Check if a given callback is in the list.\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\thas: function( fn ) {\n\t\t\t\treturn fn ?\n\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\n\t\t\t\t\tlist.length > 0;\n\t\t\t},\n\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Disable .fire and .add\n\t\t\t// Abort any current/pending executions\n\t\t\t// Clear all callbacks and values\n\t\t\tdisable: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tlist = memory = \"\";\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\n\t\t\t// Disable .fire\n\t\t\t// Also disable .add unless we have memory (since it would have no effect)\n\t\t\t// Abort any pending executions\n\t\t\tlock: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tif ( !memory && !firing ) {\n\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tlocked: function() {\n\t\t\t\treturn !!locked;\n\t\t\t},\n\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\tif ( !locked ) {\n\t\t\t\t\targs = args || [];\n\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\t\tqueue.push( args );\n\t\t\t\t\tif ( !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\n\n\nfunction Identity( v ) {\n\treturn v;\n}\nfunction Thrower( ex ) {\n\tthrow ex;\n}\n\nfunction adoptValue( value, resolve, reject, noValue ) {\n\tvar method;\n\n\ttry {\n\n\t\t// Check for promise aspect first to privilege synchronous behavior\n\t\tif ( value && isFunction( ( method = value.promise ) ) ) {\n\t\t\tmethod.call( value ).done( resolve ).fail( reject );\n\n\t\t// Other thenables\n\t\t} else if ( value && isFunction( ( method = value.then ) ) ) {\n\t\t\tmethod.call( value, resolve, reject );\n\n\t\t// Other non-thenables\n\t\t} else {\n\n\t\t\t// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:\n\t\t\t// * false: [ value ].slice( 0 ) => resolve( value )\n\t\t\t// * true: [ value ].slice( 1 ) => resolve()\n\t\t\tresolve.apply( undefined, [ value ].slice( noValue ) );\n\t\t}\n\n\t// For Promises/A+, convert exceptions into rejections\n\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\n\t// Deferred#then to conditionally suppress rejection.\n\t} catch ( value ) {\n\n\t\t// Support: Android 4.0 only\n\t\t// Strict mode functions invoked without .call/.apply get global-object context\n\t\treject.apply( undefined, [ value ] );\n\t}\n}\n\njQuery.extend( {\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\n\t\t\t\t// action, add listener, callbacks,\n\t\t\t\t// ... .then handlers, argument index, [final state]\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"memory\" ), 2 ],\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 0, \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 1, \"rejected\" ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\t\"catch\": function( fn ) {\n\t\t\t\t\treturn promise.then( null, fn );\n\t\t\t\t},\n\n\t\t\t\t// Keep pipe for back-compat\n\t\t\t\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( i, tuple ) {\n\n\t\t\t\t\t\t\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\n\t\t\t\t\t\t\tvar fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\n\n\t\t\t\t\t\t\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\n\t\t\t\t\t\t\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\n\t\t\t\t\t\t\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\n\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\tif ( returned && isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\n\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\t\t\t\tthen: function( onFulfilled, onRejected, onProgress ) {\n\t\t\t\t\tvar maxDepth = 0;\n\t\t\t\t\tfunction resolve( depth, deferred, handler, special ) {\n\t\t\t\t\t\treturn function() {\n\t\t\t\t\t\t\tvar that = this,\n\t\t\t\t\t\t\t\targs = arguments,\n\t\t\t\t\t\t\t\tmightThrow = function() {\n\t\t\t\t\t\t\t\t\tvar returned, then;\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.3\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-59\n\t\t\t\t\t\t\t\t\t// Ignore double-resolution attempts\n\t\t\t\t\t\t\t\t\tif ( depth < maxDepth ) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturned = handler.apply( that, args );\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.1\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-48\n\t\t\t\t\t\t\t\t\tif ( returned === deferred.promise() ) {\n\t\t\t\t\t\t\t\t\t\tthrow new TypeError( \"Thenable self-resolution\" );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ sections 2.3.3.1, 3.5\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-54\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-75\n\t\t\t\t\t\t\t\t\t// Retrieve `then` only once\n\t\t\t\t\t\t\t\t\tthen = returned &&\n\n\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.4\n\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-64\n\t\t\t\t\t\t\t\t\t\t// Only check objects and functions for thenability\n\t\t\t\t\t\t\t\t\t\t( typeof returned === \"object\" ||\n\t\t\t\t\t\t\t\t\t\t\ttypeof returned === \"function\" ) &&\n\t\t\t\t\t\t\t\t\t\treturned.then;\n\n\t\t\t\t\t\t\t\t\t// Handle a returned thenable\n\t\t\t\t\t\t\t\t\tif ( isFunction( then ) ) {\n\n\t\t\t\t\t\t\t\t\t\t// Special processors (notify) just wait for resolution\n\t\t\t\t\t\t\t\t\t\tif ( special ) {\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special )\n\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t// Normal processors (resolve) also hook into progress\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t// ...and disregard older resolution values\n\t\t\t\t\t\t\t\t\t\t\tmaxDepth++;\n\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeferred.notifyWith )\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Handle all other returned values\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\tif ( handler !== Identity ) {\n\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\targs = [ returned ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Process the value(s)\n\t\t\t\t\t\t\t\t\t\t// Default process is resolve\n\t\t\t\t\t\t\t\t\t\t( special || deferred.resolveWith )( that, args );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\n\t\t\t\t\t\t\t\t// Only normal processors (resolve) catch and reject exceptions\n\t\t\t\t\t\t\t\tprocess = special ?\n\t\t\t\t\t\t\t\t\tmightThrow :\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tmightThrow();\n\t\t\t\t\t\t\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t\t\t\t\t\t\tif ( jQuery.Deferred.exceptionHook ) {\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery.Deferred.exceptionHook( e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprocess.stackTrace );\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.4.1\n\t\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-61\n\t\t\t\t\t\t\t\t\t\t\t// Ignore post-resolution exceptions\n\t\t\t\t\t\t\t\t\t\t\tif ( depth + 1 >= maxDepth ) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\t\t\tif ( handler !== Thrower ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\t\t\targs = [ e ];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tdeferred.rejectWith( that, args );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.1\n\t\t\t\t\t\t\t// https://promisesaplus.com/#point-57\n\t\t\t\t\t\t\t// Re-resolve promises immediately to dodge false rejection from\n\t\t\t\t\t\t\t// subsequent errors\n\t\t\t\t\t\t\tif ( depth ) {\n\t\t\t\t\t\t\t\tprocess();\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// Call an optional hook to record the stack, in case of exception\n\t\t\t\t\t\t\t\t// since it's otherwise lost when execution goes async\n\t\t\t\t\t\t\t\tif ( jQuery.Deferred.getStackHook ) {\n\t\t\t\t\t\t\t\t\tprocess.stackTrace = jQuery.Deferred.getStackHook();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twindow.setTimeout( process );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\n\t\t\t\t\t\t// progress_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 0 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onProgress ) ?\n\t\t\t\t\t\t\t\t\tonProgress :\n\t\t\t\t\t\t\t\t\tIdentity,\n\t\t\t\t\t\t\t\tnewDefer.notifyWith\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// fulfilled_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 1 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onFulfilled ) ?\n\t\t\t\t\t\t\t\t\tonFulfilled :\n\t\t\t\t\t\t\t\t\tIdentity\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// rejected_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 2 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onRejected ) ?\n\t\t\t\t\t\t\t\t\tonRejected :\n\t\t\t\t\t\t\t\t\tThrower\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 5 ];\n\n\t\t\t// promise.progress = list.add\n\t\t\t// promise.done = list.add\n\t\t\t// promise.fail = list.add\n\t\t\tpromise[ tuple[ 1 ] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(\n\t\t\t\t\tfunction() {\n\n\t\t\t\t\t\t// state = \"resolved\" (i.e., fulfilled)\n\t\t\t\t\t\t// state = \"rejected\"\n\t\t\t\t\t\tstate = stateString;\n\t\t\t\t\t},\n\n\t\t\t\t\t// rejected_callbacks.disable\n\t\t\t\t\t// fulfilled_callbacks.disable\n\t\t\t\t\ttuples[ 3 - i ][ 2 ].disable,\n\n\t\t\t\t\t// rejected_handlers.disable\n\t\t\t\t\t// fulfilled_handlers.disable\n\t\t\t\t\ttuples[ 3 - i ][ 3 ].disable,\n\n\t\t\t\t\t// progress_callbacks.lock\n\t\t\t\t\ttuples[ 0 ][ 2 ].lock,\n\n\t\t\t\t\t// progress_handlers.lock\n\t\t\t\t\ttuples[ 0 ][ 3 ].lock\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// progress_handlers.fire\n\t\t\t// fulfilled_handlers.fire\n\t\t\t// rejected_handlers.fire\n\t\t\tlist.add( tuple[ 3 ].fire );\n\n\t\t\t// deferred.notify = function() { deferred.notifyWith(...) }\n\t\t\t// deferred.resolve = function() { deferred.resolveWith(...) }\n\t\t\t// deferred.reject = function() { deferred.rejectWith(...) }\n\t\t\tdeferred[ tuple[ 0 ] ] = function() {\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? undefined : this, arguments );\n\t\t\t\treturn this;\n\t\t\t};\n\n\t\t\t// deferred.notifyWith = list.fireWith\n\t\t\t// deferred.resolveWith = list.fireWith\n\t\t\t// deferred.rejectWith = list.fireWith\n\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\n\t\t} );\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( singleValue ) {\n\t\tvar\n\n\t\t\t// count of uncompleted subordinates\n\t\t\tremaining = arguments.length,\n\n\t\t\t// count of unprocessed arguments\n\t\t\ti = remaining,\n\n\t\t\t// subordinate fulfillment data\n\t\t\tresolveContexts = Array( i ),\n\t\t\tresolveValues = slice.call( arguments ),\n\n\t\t\t// the master Deferred\n\t\t\tmaster = jQuery.Deferred(),\n\n\t\t\t// subordinate callback factory\n\t\t\tupdateFunc = function( i ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tresolveContexts[ i ] = this;\n\t\t\t\t\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\t\t\t\t\tif ( !( --remaining ) ) {\n\t\t\t\t\t\tmaster.resolveWith( resolveContexts, resolveValues );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\n\t\t// Single- and empty arguments are adopted like Promise.resolve\n\t\tif ( remaining <= 1 ) {\n\t\t\tadoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,\n\t\t\t\t!remaining );\n\n\t\t\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\n\t\t\tif ( master.state() === \"pending\" ||\n\t\t\t\tisFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\n\n\t\t\t\treturn master.then();\n\t\t\t}\n\t\t}\n\n\t\t// Multiple arguments are aggregated like Promise.all array elements\n\t\twhile ( i-- ) {\n\t\t\tadoptValue( resolveValues[ i ], updateFunc( i ), master.reject );\n\t\t}\n\n\t\treturn master.promise();\n\t}\n} );\n\n\n// These usually indicate a programmer mistake during development,\n// warn about them ASAP rather than swallowing them by default.\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\n\njQuery.Deferred.exceptionHook = function( error, stack ) {\n\n\t// Support: IE 8 - 9 only\n\t// Console exists when dev tools are open, which can happen at any time\n\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\n\t\twindow.console.warn( \"jQuery.Deferred exception: \" + error.message, error.stack, stack );\n\t}\n};\n\n\n\n\njQuery.readyException = function( error ) {\n\twindow.setTimeout( function() {\n\t\tthrow error;\n\t} );\n};\n\n\n\n\n// The deferred used on DOM ready\nvar readyList = jQuery.Deferred();\n\njQuery.fn.ready = function( fn ) {\n\n\treadyList\n\t\t.then( fn )\n\n\t\t// Wrap jQuery.readyException in a function so that the lookup\n\t\t// happens at the time of error handling instead of callback\n\t\t// registration.\n\t\t.catch( function( error ) {\n\t\t\tjQuery.readyException( error );\n\t\t} );\n\n\treturn this;\n};\n\njQuery.extend( {\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See #6781\n\treadyWait: 1,\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\t}\n} );\n\njQuery.ready.then = readyList.then;\n\n// The ready event handler and self cleanup method\nfunction completed() {\n\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\n\twindow.removeEventListener( \"load\", completed );\n\tjQuery.ready();\n}\n\n// Catch cases where $(document).ready() is called\n// after the browser event has already occurred.\n// Support: IE <=9 - 10 only\n// Older IE sometimes signals \"interactive\" too soon\nif ( document.readyState === \"complete\" ||\n\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\n\n\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\twindow.setTimeout( jQuery.ready );\n\n} else {\n\n\t// Use the handy event callback\n\tdocument.addEventListener( \"DOMContentLoaded\", completed );\n\n\t// A fallback to window.onload, that will always work\n\twindow.addEventListener( \"load\", completed );\n}\n\n\n\n\n// Multifunctional method to get and set values of a collection\n// The value/s can optionally be executed if it's a function\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\tvar i = 0,\n\t\tlen = elems.length,\n\t\tbulk = key == null;\n\n\t// Sets many values\n\tif ( toType( key ) === \"object\" ) {\n\t\tchainable = true;\n\t\tfor ( i in key ) {\n\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\n\t\t}\n\n\t// Sets one value\n\t} else if ( value !== undefined ) {\n\t\tchainable = true;\n\n\t\tif ( !isFunction( value ) ) {\n\t\t\traw = true;\n\t\t}\n\n\t\tif ( bulk ) {\n\n\t\t\t// Bulk operations run against the entire set\n\t\t\tif ( raw ) {\n\t\t\t\tfn.call( elems, value );\n\t\t\t\tfn = null;\n\n\t\t\t// ...except when executing function values\n\t\t\t} else {\n\t\t\t\tbulk = fn;\n\t\t\t\tfn = function( elem, key, value ) {\n\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif ( fn ) {\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tfn(\n\t\t\t\t\telems[ i ], key, raw ?\n\t\t\t\t\tvalue :\n\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( chainable ) {\n\t\treturn elems;\n\t}\n\n\t// Gets\n\tif ( bulk ) {\n\t\treturn fn.call( elems );\n\t}\n\n\treturn len ? fn( elems[ 0 ], key ) : emptyGet;\n};\n\n\n// Matches dashed string for camelizing\nvar rmsPrefix = /^-ms-/,\n\trdashAlpha = /-([a-z])/g;\n\n// Used by camelCase as callback to replace()\nfunction fcamelCase( all, letter ) {\n\treturn letter.toUpperCase();\n}\n\n// Convert dashed to camelCase; used by the css and data modules\n// Support: IE <=9 - 11, Edge 12 - 15\n// Microsoft forgot to hump their vendor prefix (#9572)\nfunction camelCase( string ) {\n\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n}\nvar acceptData = function( owner ) {\n\n\t// Accepts only:\n\t// - Node\n\t// - Node.ELEMENT_NODE\n\t// - Node.DOCUMENT_NODE\n\t// - Object\n\t// - Any\n\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\n};\n\n\n\n\nfunction Data() {\n\tthis.expando = jQuery.expando + Data.uid++;\n}\n\nData.uid = 1;\n\nData.prototype = {\n\n\tcache: function( owner ) {\n\n\t\t// Check if the owner object already has a cache\n\t\tvar value = owner[ this.expando ];\n\n\t\t// If not, create one\n\t\tif ( !value ) {\n\t\t\tvalue = {};\n\n\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t// but we should not, see #8335.\n\t\t\t// Always return an empty object.\n\t\t\tif ( acceptData( owner ) ) {\n\n\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t\t// use plain assignment\n\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t\t// Otherwise secure it in a non-enumerable property\n\t\t\t\t// configurable must be true to allow the property to be\n\t\t\t\t// deleted when data is removed\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t\tconfigurable: true\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t},\n\tset: function( owner, data, value ) {\n\t\tvar prop,\n\t\t\tcache = this.cache( owner );\n\n\t\t// Handle: [ owner, key, value ] args\n\t\t// Always use camelCase key (gh-2257)\n\t\tif ( typeof data === \"string\" ) {\n\t\t\tcache[ camelCase( data ) ] = value;\n\n\t\t// Handle: [ owner, { properties } ] args\n\t\t} else {\n\n\t\t\t// Copy the properties one-by-one to the cache object\n\t\t\tfor ( prop in data ) {\n\t\t\t\tcache[ camelCase( prop ) ] = data[ prop ];\n\t\t\t}\n\t\t}\n\t\treturn cache;\n\t},\n\tget: function( owner, key ) {\n\t\treturn key === undefined ?\n\t\t\tthis.cache( owner ) :\n\n\t\t\t// Always use camelCase key (gh-2257)\n\t\t\towner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];\n\t},\n\taccess: function( owner, key, value ) {\n\n\t\t// In cases where either:\n\t\t//\n\t\t// 1. No key was specified\n\t\t// 2. A string key was specified, but no value provided\n\t\t//\n\t\t// Take the \"read\" path and allow the get method to determine\n\t\t// which value to return, respectively either:\n\t\t//\n\t\t// 1. The entire cache object\n\t\t// 2. The data stored at the key\n\t\t//\n\t\tif ( key === undefined ||\n\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\n\n\t\t\treturn this.get( owner, key );\n\t\t}\n\n\t\t// When the key is not a string, or both a key and value\n\t\t// are specified, set or extend (existing objects) with either:\n\t\t//\n\t\t// 1. An object of properties\n\t\t// 2. A key and value\n\t\t//\n\t\tthis.set( owner, key, value );\n\n\t\t// Since the \"set\" path can have two possible entry points\n\t\t// return the expected data based on which path was taken[*]\n\t\treturn value !== undefined ? value : key;\n\t},\n\tremove: function( owner, key ) {\n\t\tvar i,\n\t\t\tcache = owner[ this.expando ];\n\n\t\tif ( cache === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( key !== undefined ) {\n\n\t\t\t// Support array or space separated string of keys\n\t\t\tif ( Array.isArray( key ) ) {\n\n\t\t\t\t// If key is an array of keys...\n\t\t\t\t// We always set camelCase keys, so remove that.\n\t\t\t\tkey = key.map( camelCase );\n\t\t\t} else {\n\t\t\t\tkey = camelCase( key );\n\n\t\t\t\t// If a key with the spaces exists, use it.\n\t\t\t\t// Otherwise, create an array by matching non-whitespace\n\t\t\t\tkey = key in cache ?\n\t\t\t\t\t[ key ] :\n\t\t\t\t\t( key.match( rnothtmlwhite ) || [] );\n\t\t\t}\n\n\t\t\ti = key.length;\n\n\t\t\twhile ( i-- ) {\n\t\t\t\tdelete cache[ key[ i ] ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if there's no more data\n\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\n\n\t\t\t// Support: Chrome <=35 - 45\n\t\t\t// Webkit & Blink performance suffers when deleting properties\n\t\t\t// from DOM nodes, so set to undefined instead\n\t\t\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\n\t\t\tif ( owner.nodeType ) {\n\t\t\t\towner[ this.expando ] = undefined;\n\t\t\t} else {\n\t\t\t\tdelete owner[ this.expando ];\n\t\t\t}\n\t\t}\n\t},\n\thasData: function( owner ) {\n\t\tvar cache = owner[ this.expando ];\n\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\n\t}\n};\nvar dataPriv = new Data();\n\nvar dataUser = new Data();\n\n\n\n//\tImplementation Summary\n//\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n//\t2. Improve the module's maintainability by reducing the storage\n//\t\tpaths to a single mechanism.\n//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\n//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\n\nvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\trmultiDash = /[A-Z]/g;\n\nfunction getData( data ) {\n\tif ( data === \"true\" ) {\n\t\treturn true;\n\t}\n\n\tif ( data === \"false\" ) {\n\t\treturn false;\n\t}\n\n\tif ( data === \"null\" ) {\n\t\treturn null;\n\t}\n\n\t// Only convert to a number if it doesn't change the string\n\tif ( data === +data + \"\" ) {\n\t\treturn +data;\n\t}\n\n\tif ( rbrace.test( data ) ) {\n\t\treturn JSON.parse( data );\n\t}\n\n\treturn data;\n}\n\nfunction dataAttr( elem, key, data ) {\n\tvar name;\n\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = getData( data );\n\t\t\t} catch ( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tdataUser.set( elem, key, data );\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\treturn data;\n}\n\njQuery.extend( {\n\thasData: function( elem ) {\n\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\n\t},\n\n\tdata: function( elem, name, data ) {\n\t\treturn dataUser.access( elem, name, data );\n\t},\n\n\tremoveData: function( elem, name ) {\n\t\tdataUser.remove( elem, name );\n\t},\n\n\t// TODO: Now that all calls to _data and _removeData have been replaced\n\t// with direct calls to dataPriv methods, these can be deprecated.\n\t_data: function( elem, name, data ) {\n\t\treturn dataPriv.access( elem, name, data );\n\t},\n\n\t_removeData: function( elem, name ) {\n\t\tdataPriv.remove( elem, name );\n\t}\n} );\n\njQuery.fn.extend( {\n\tdata: function( key, value ) {\n\t\tvar i, name, data,\n\t\t\telem = this[ 0 ],\n\t\t\tattrs = elem && elem.attributes;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = dataUser.get( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\n\t\t\t\t\ti = attrs.length;\n\t\t\t\t\twhile ( i-- ) {\n\n\t\t\t\t\t\t// Support: IE 11 only\n\t\t\t\t\t\t// The attrs elements can be null (#14894)\n\t\t\t\t\t\tif ( attrs[ i ] ) {\n\t\t\t\t\t\t\tname = attrs[ i ].name;\n\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\t\tname = camelCase( name.slice( 5 ) );\n\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdataUser.set( this, key );\n\t\t\t} );\n\t\t}\n\n\t\treturn access( this, function( value ) {\n\t\t\tvar data;\n\n\t\t\t// The calling jQuery object (element matches) is not empty\n\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\n\t\t\t// `value` parameter was not undefined. An empty jQuery object\n\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\n\t\t\t// throw an exception if an attempt to read a data cache is made.\n\t\t\tif ( elem && value === undefined ) {\n\n\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t// The key will always be camelCased in Data\n\t\t\t\tdata = dataUser.get( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// Attempt to \"discover\" the data in\n\t\t\t\t// HTML5 custom data-* attrs\n\t\t\t\tdata = dataAttr( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// We tried really hard, but the data doesn't exist.\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Set the data...\n\t\t\tthis.each( function() {\n\n\t\t\t\t// We always store the camelCased key\n\t\t\t\tdataUser.set( this, key, value );\n\t\t\t} );\n\t\t}, null, value, arguments.length > 1, null, true );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each( function() {\n\t\t\tdataUser.remove( this, key );\n\t\t} );\n\t}\n} );\n\n\njQuery.extend( {\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = dataPriv.get( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || Array.isArray( data ) ) {\n\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// Clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// Not public - generate a queueHooks object, or return the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\n\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\n\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\n\t\t\t} )\n\t\t} );\n\t}\n} );\n\njQuery.fn.extend( {\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[ 0 ], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each( function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// Ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t} );\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t} );\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile ( i-- ) {\n\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n} );\nvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\n\nvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\n\n\nvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\nvar isHiddenWithinTree = function( elem, el ) {\n\n\t\t// isHiddenWithinTree might be called from jQuery#filter function;\n\t\t// in that case, element will be second argument\n\t\telem = el || elem;\n\n\t\t// Inline style trumps all\n\t\treturn elem.style.display === \"none\" ||\n\t\t\telem.style.display === \"\" &&\n\n\t\t\t// Otherwise, check computed style\n\t\t\t// Support: Firefox <=43 - 45\n\t\t\t// Disconnected elements can have computed display: none, so first confirm that elem is\n\t\t\t// in the document.\n\t\t\tjQuery.contains( elem.ownerDocument, elem ) &&\n\n\t\t\tjQuery.css( elem, \"display\" ) === \"none\";\n\t};\n\nvar swap = function( elem, options, callback, args ) {\n\tvar ret, name,\n\t\told = {};\n\n\t// Remember the old values, and insert the new ones\n\tfor ( name in options ) {\n\t\told[ name ] = elem.style[ name ];\n\t\telem.style[ name ] = options[ name ];\n\t}\n\n\tret = callback.apply( elem, args || [] );\n\n\t// Revert the old values\n\tfor ( name in options ) {\n\t\telem.style[ name ] = old[ name ];\n\t}\n\n\treturn ret;\n};\n\n\n\n\nfunction adjustCSS( elem, prop, valueParts, tween ) {\n\tvar adjusted, scale,\n\t\tmaxIterations = 20,\n\t\tcurrentValue = tween ?\n\t\t\tfunction() {\n\t\t\t\treturn tween.cur();\n\t\t\t} :\n\t\t\tfunction() {\n\t\t\t\treturn jQuery.css( elem, prop, \"\" );\n\t\t\t},\n\t\tinitial = currentValue(),\n\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\n\n\t\t// Starting value computation is required for potential unit mismatches\n\t\tinitialInUnit = ( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\n\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\n\n\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\n\n\t\t// Support: Firefox <=54\n\t\t// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)\n\t\tinitial = initial / 2;\n\n\t\t// Trust units reported by jQuery.css\n\t\tunit = unit || initialInUnit[ 3 ];\n\n\t\t// Iteratively approximate from a nonzero starting point\n\t\tinitialInUnit = +initial || 1;\n\n\t\twhile ( maxIterations-- ) {\n\n\t\t\t// Evaluate and update our best guess (doubling guesses that zero out).\n\t\t\t// Finish if the scale equals or crosses 1 (making the old*new product non-positive).\n\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\t\t\tif ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {\n\t\t\t\tmaxIterations = 0;\n\t\t\t}\n\t\t\tinitialInUnit = initialInUnit / scale;\n\n\t\t}\n\n\t\tinitialInUnit = initialInUnit * 2;\n\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\n\t\t// Make sure we update the tween properties later on\n\t\tvalueParts = valueParts || [];\n\t}\n\n\tif ( valueParts ) {\n\t\tinitialInUnit = +initialInUnit || +initial || 0;\n\n\t\t// Apply relative offset (+=/-=) if specified\n\t\tadjusted = valueParts[ 1 ] ?\n\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\n\t\t\t+valueParts[ 2 ];\n\t\tif ( tween ) {\n\t\t\ttween.unit = unit;\n\t\t\ttween.start = initialInUnit;\n\t\t\ttween.end = adjusted;\n\t\t}\n\t}\n\treturn adjusted;\n}\n\n\nvar defaultDisplayMap = {};\n\nfunction getDefaultDisplay( elem ) {\n\tvar temp,\n\t\tdoc = elem.ownerDocument,\n\t\tnodeName = elem.nodeName,\n\t\tdisplay = defaultDisplayMap[ nodeName ];\n\n\tif ( display ) {\n\t\treturn display;\n\t}\n\n\ttemp = doc.body.appendChild( doc.createElement( nodeName ) );\n\tdisplay = jQuery.css( temp, \"display\" );\n\n\ttemp.parentNode.removeChild( temp );\n\n\tif ( display === \"none\" ) {\n\t\tdisplay = \"block\";\n\t}\n\tdefaultDisplayMap[ nodeName ] = display;\n\n\treturn display;\n}\n\nfunction showHide( elements, show ) {\n\tvar display, elem,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\t// Determine new display value for elements that need to change\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tdisplay = elem.style.display;\n\t\tif ( show ) {\n\n\t\t\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\n\t\t\t// check is required in this first loop unless we have a nonempty display value (either\n\t\t\t// inline or about-to-be-restored)\n\t\t\tif ( display === \"none\" ) {\n\t\t\t\tvalues[ index ] = dataPriv.get( elem, \"display\" ) || null;\n\t\t\t\tif ( !values[ index ] ) {\n\t\t\t\t\telem.style.display = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( elem.style.display === \"\" && isHiddenWithinTree( elem ) ) {\n\t\t\t\tvalues[ index ] = getDefaultDisplay( elem );\n\t\t\t}\n\t\t} else {\n\t\t\tif ( display !== \"none\" ) {\n\t\t\t\tvalues[ index ] = \"none\";\n\n\t\t\t\t// Remember what we're overwriting\n\t\t\t\tdataPriv.set( elem, \"display\", display );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of the elements in a second loop to avoid constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\tif ( values[ index ] != null ) {\n\t\t\telements[ index ].style.display = values[ index ];\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend( {\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state ) {\n\t\tif ( typeof state === \"boolean\" ) {\n\t\t\treturn state ? this.show() : this.hide();\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tif ( isHiddenWithinTree( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t} );\n\t}\n} );\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\n\nvar rtagName = ( /<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]+)/i );\n\nvar rscriptType = ( /^$|^module$|\\/(?:java|ecma)script/i );\n\n\n\n// We have to close these tags to support XHTML (#13200)\nvar wrapMap = {\n\n\t// Support: IE <=9 only\n\toption: [ 1, \"<select multiple='multiple'>\", \"</select>\" ],\n\n\t// XHTML parsers do not magically insert elements in the\n\t// same way that tag soup parsers do. So we cannot shorten\n\t// this by omitting <tbody> or other required elements.\n\tthead: [ 1, \"<table>\", \"</table>\" ],\n\tcol: [ 2, \"<table><colgroup>\", \"</colgroup></table>\" ],\n\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\n\t_default: [ 0, \"\", \"\" ]\n};\n\n// Support: IE <=9 only\nwrapMap.optgroup = wrapMap.option;\n\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n\nfunction getAll( context, tag ) {\n\n\t// Support: IE <=9 - 11 only\n\t// Use typeof to avoid zero-argument method invocation on host objects (#15151)\n\tvar ret;\n\n\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\tret = context.getElementsByTagName( tag || \"*\" );\n\n\t} else if ( typeof context.querySelectorAll !== \"undefined\" ) {\n\t\tret = context.querySelectorAll( tag || \"*\" );\n\n\t} else {\n\t\tret = [];\n\t}\n\n\tif ( tag === undefined || tag && nodeName( context, tag ) ) {\n\t\treturn jQuery.merge( [ context ], ret );\n\t}\n\n\treturn ret;\n}\n\n\n// Mark scripts as having already been evaluated\nfunction setGlobalEval( elems, refElements ) {\n\tvar i = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\tdataPriv.set(\n\t\t\telems[ i ],\n\t\t\t\"globalEval\",\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t);\n\t}\n}\n\n\nvar rhtml = /<|&#?\\w+;/;\n\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\n\tvar elem, tmp, tag, wrap, contains, j,\n\t\tfragment = context.createDocumentFragment(),\n\t\tnodes = [],\n\t\ti = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\telem = elems[ i ];\n\n\t\tif ( elem || elem === 0 ) {\n\n\t\t\t// Add nodes directly\n\t\t\tif ( toType( elem ) === \"object\" ) {\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t// Convert non-html into a text node\n\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t// Convert html into DOM nodes\n\t\t\t} else {\n\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\n\n\t\t\t\t// Deserialize a standard representation\n\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\n\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\n\n\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\tj = wrap[ 0 ];\n\t\t\t\twhile ( j-- ) {\n\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t}\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t// Remember the top-level container\n\t\t\t\ttmp = fragment.firstChild;\n\n\t\t\t\t// Ensure the created nodes are orphaned (#12392)\n\t\t\t\ttmp.textContent = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\t// Remove wrapper from fragment\n\tfragment.textContent = \"\";\n\n\ti = 0;\n\twhile ( ( elem = nodes[ i++ ] ) ) {\n\n\t\t// Skip elements already in the context collection (trac-4087)\n\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\n\t\t\tif ( ignored ) {\n\t\t\t\tignored.push( elem );\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tcontains = jQuery.contains( elem.ownerDocument, elem );\n\n\t\t// Append to fragment\n\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\n\n\t\t// Preserve script evaluation history\n\t\tif ( contains ) {\n\t\t\tsetGlobalEval( tmp );\n\t\t}\n\n\t\t// Capture executables\n\t\tif ( scripts ) {\n\t\t\tj = 0;\n\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\n\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\tscripts.push( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn fragment;\n}\n\n\n( function() {\n\tvar fragment = document.createDocumentFragment(),\n\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\n\t\tinput = document.createElement( \"input\" );\n\n\t// Support: Android 4.0 - 4.3 only\n\t// Check state lost if the name is set (#11217)\n\t// Support: Windows Web Apps (WWA)\n\t// `name` and `type` must use .setAttribute for WWA (#14901)\n\tinput.setAttribute( \"type\", \"radio\" );\n\tinput.setAttribute( \"checked\", \"checked\" );\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tdiv.appendChild( input );\n\n\t// Support: Android <=4.1 only\n\t// Older WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Support: IE <=11 only\n\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\tdiv.innerHTML = \"<textarea>x</textarea>\";\n\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n} )();\nvar documentElement = document.documentElement;\n\n\n\nvar\n\trkeyEvent = /^key/,\n\trmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,\n\trtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\n\nfunction returnTrue() {\n\treturn true;\n}\n\nfunction returnFalse() {\n\treturn false;\n}\n\n// Support: IE <=9 only\n// See #13393 for more info\nfunction safeActiveElement() {\n\ttry {\n\t\treturn document.activeElement;\n\t} catch ( err ) { }\n}\n\nfunction on( elem, types, selector, data, fn, one ) {\n\tvar origFn, type;\n\n\t// Types can be a map of types/handlers\n\tif ( typeof types === \"object\" ) {\n\n\t\t// ( types-Object, selector, data )\n\t\tif ( typeof selector !== \"string\" ) {\n\n\t\t\t// ( types-Object, data )\n\t\t\tdata = data || selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tfor ( type in types ) {\n\t\t\ton( elem, type, selector, data, types[ type ], one );\n\t\t}\n\t\treturn elem;\n\t}\n\n\tif ( data == null && fn == null ) {\n\n\t\t// ( types, fn )\n\t\tfn = selector;\n\t\tdata = selector = undefined;\n\t} else if ( fn == null ) {\n\t\tif ( typeof selector === \"string\" ) {\n\n\t\t\t// ( types, selector, fn )\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t} else {\n\n\t\t\t// ( types, data, fn )\n\t\t\tfn = data;\n\t\t\tdata = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t}\n\tif ( fn === false ) {\n\t\tfn = returnFalse;\n\t} else if ( !fn ) {\n\t\treturn elem;\n\t}\n\n\tif ( one === 1 ) {\n\t\torigFn = fn;\n\t\tfn = function( event ) {\n\n\t\t\t// Can use an empty set, since event contains the info\n\t\t\tjQuery().off( event );\n\t\t\treturn origFn.apply( this, arguments );\n\t\t};\n\n\t\t// Use same guid so caller can remove using origFn\n\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t}\n\treturn elem.each( function() {\n\t\tjQuery.event.add( this, types, fn, data, selector );\n\t} );\n}\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tglobal: {},\n\n\tadd: function( elem, types, handler, data, selector ) {\n\n\t\tvar handleObjIn, eventHandle, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.get( elem );\n\n\t\t// Don't attach events to noData or text/comment nodes (but allow plain objects)\n\t\tif ( !elemData ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Ensure that invalid selectors throw exceptions at attach time\n\t\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\n\t\tif ( selector ) {\n\t\t\tjQuery.find.matchesSelector( documentElement, selector );\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tif ( !( events = elemData.events ) ) {\n\t\t\tevents = elemData.events = {};\n\t\t}\n\t\tif ( !( eventHandle = elemData.handle ) ) {\n\t\t\teventHandle = elemData.handle = function( e ) {\n\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\n\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\n\t\t\t};\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\t\t\tif ( !type ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend( {\n\t\t\t\ttype: type,\n\t\t\t\torigType: origType,\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\tnamespace: namespaces.join( \".\" )\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\tif ( !( handlers = events[ type ] ) ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener if the special events handler returns false\n\t\t\t\tif ( !special.setup ||\n\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\tvar j, origCount, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\n\n\t\tif ( !elemData || !( events = elemData.events ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\thandlers = events[ type ] || [];\n\t\t\ttmp = tmp[ 2 ] &&\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\n\n\t\t\t// Remove matching events\n\t\t\torigCount = j = handlers.length;\n\t\t\twhile ( j-- ) {\n\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t( !selector || selector === handleObj.selector ||\n\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\tif ( !special.teardown ||\n\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove data and the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdataPriv.remove( elem, \"handle events\" );\n\t\t}\n\t},\n\n\tdispatch: function( nativeEvent ) {\n\n\t\t// Make a writable jQuery.Event from the native event object\n\t\tvar event = jQuery.event.fix( nativeEvent );\n\n\t\tvar i, j, ret, matched, handleObj, handlerQueue,\n\t\t\targs = new Array( arguments.length ),\n\t\t\thandlers = ( dataPriv.get( this, \"events\" ) || {} )[ event.type ] || [],\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[ 0 ] = event;\n\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\ti = 0;\n\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tj = 0;\n\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\n\t\t\t\t!event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t// Triggered event must either 1) have no namespace, or 2) have namespace(s)\n\t\t\t\t// a subset or equal to those in the bound event (both can have no namespace).\n\t\t\t\tif ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\n\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\thandlers: function( event, handlers ) {\n\t\tvar i, handleObj, sel, matchedHandlers, matchedSelectors,\n\t\t\thandlerQueue = [],\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\tcur = event.target;\n\n\t\t// Find delegate handlers\n\t\tif ( delegateCount &&\n\n\t\t\t// Support: IE <=9\n\t\t\t// Black-hole SVG <use> instance trees (trac-13180)\n\t\t\tcur.nodeType &&\n\n\t\t\t// Support: Firefox <=42\n\t\t\t// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\n\t\t\t// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\n\t\t\t// Support: IE 11 only\n\t\t\t// ...but not arrow key \"clicks\" of radio inputs, which can have `button` -1 (gh-2343)\n\t\t\t!( event.type === \"click\" && event.button >= 1 ) ) {\n\n\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't check non-elements (#13208)\n\t\t\t\t// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)\n\t\t\t\tif ( cur.nodeType === 1 && !( event.type === \"click\" && cur.disabled === true ) ) {\n\t\t\t\t\tmatchedHandlers = [];\n\t\t\t\t\tmatchedSelectors = {};\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (#13203)\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] === undefined ) {\n\t\t\t\t\t\t\tmatchedSelectors[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] ) {\n\t\t\t\t\t\t\tmatchedHandlers.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matchedHandlers.length ) {\n\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matchedHandlers } );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tcur = this;\n\t\tif ( delegateCount < handlers.length ) {\n\t\t\thandlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );\n\t\t}\n\n\t\treturn handlerQueue;\n\t},\n\n\taddProp: function( name, hook ) {\n\t\tObject.defineProperty( jQuery.Event.prototype, name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\n\t\t\tget: isFunction( hook ) ?\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn hook( this.originalEvent );\n\t\t\t\t\t}\n\t\t\t\t} :\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\t\treturn this.originalEvent[ name ];\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\tset: function( value ) {\n\t\t\t\tObject.defineProperty( this, name, {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: value\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t},\n\n\tfix: function( originalEvent ) {\n\t\treturn originalEvent[ jQuery.expando ] ?\n\t\t\toriginalEvent :\n\t\t\tnew jQuery.Event( originalEvent );\n\t},\n\n\tspecial: {\n\t\tload: {\n\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\t\tfocus: {\n\n\t\t\t// Fire native event if possible so blur/focus sequence is correct\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this !== safeActiveElement() && this.focus ) {\n\t\t\t\t\tthis.focus();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdelegateType: \"focusin\"\n\t\t},\n\t\tblur: {\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this === safeActiveElement() && this.blur ) {\n\t\t\t\t\tthis.blur();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdelegateType: \"focusout\"\n\t\t},\n\t\tclick: {\n\n\t\t\t// For checkbox, fire native event so checked state will be right\n\t\t\ttrigger: function() {\n\t\t\t\tif ( this.type === \"checkbox\" && this.click && nodeName( this, \"input\" ) ) {\n\t\t\t\t\tthis.click();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t// For cross-browser consistency, don't fire native .click() on links\n\t\t\t_default: function( event ) {\n\t\t\t\treturn nodeName( event.target, \"a\" );\n\t\t\t}\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t// Support: Firefox 20+\n\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\n\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\njQuery.removeEvent = function( elem, type, handle ) {\n\n\t// This \"if\" is needed for plain objects\n\tif ( elem.removeEventListener ) {\n\t\telem.removeEventListener( type, handle );\n\t}\n};\n\njQuery.Event = function( src, props ) {\n\n\t// Allow instantiation without the 'new' keyword\n\tif ( !( this instanceof jQuery.Event ) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = src.defaultPrevented ||\n\t\t\t\tsrc.defaultPrevented === undefined &&\n\n\t\t\t\t// Support: Android <=2.3 only\n\t\t\t\tsrc.returnValue === false ?\n\t\t\treturnTrue :\n\t\t\treturnFalse;\n\n\t\t// Create target properties\n\t\t// Support: Safari <=6 - 7 only\n\t\t// Target should not be a text node (#504, #13143)\n\t\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\n\t\t\tsrc.target.parentNode :\n\t\t\tsrc.target;\n\n\t\tthis.currentTarget = src.currentTarget;\n\t\tthis.relatedTarget = src.relatedTarget;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || Date.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tconstructor: jQuery.Event,\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse,\n\tisSimulated: false,\n\n\tpreventDefault: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.preventDefault();\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t},\n\tstopImmediatePropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\n\t\tthis.stopPropagation();\n\t}\n};\n\n// Includes all common event props including KeyEvent and MouseEvent specific props\njQuery.each( {\n\taltKey: true,\n\tbubbles: true,\n\tcancelable: true,\n\tchangedTouches: true,\n\tctrlKey: true,\n\tdetail: true,\n\teventPhase: true,\n\tmetaKey: true,\n\tpageX: true,\n\tpageY: true,\n\tshiftKey: true,\n\tview: true,\n\t\"char\": true,\n\tcharCode: true,\n\tkey: true,\n\tkeyCode: true,\n\tbutton: true,\n\tbuttons: true,\n\tclientX: true,\n\tclientY: true,\n\toffsetX: true,\n\toffsetY: true,\n\tpointerId: true,\n\tpointerType: true,\n\tscreenX: true,\n\tscreenY: true,\n\ttargetTouches: true,\n\ttoElement: true,\n\ttouches: true,\n\n\twhich: function( event ) {\n\t\tvar button = event.button;\n\n\t\t// Add which for key events\n\t\tif ( event.which == null && rkeyEvent.test( event.type ) ) {\n\t\t\treturn event.charCode != null ? event.charCode : event.keyCode;\n\t\t}\n\n\t\t// Add which for click: 1 === left; 2 === middle; 3 === right\n\t\tif ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {\n\t\t\tif ( button & 1 ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif ( button & 2 ) {\n\t\t\t\treturn 3;\n\t\t\t}\n\n\t\t\tif ( button & 4 ) {\n\t\t\t\treturn 2;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn event.which;\n\t}\n}, jQuery.event.addProp );\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\n// so that event delegation works in jQuery.\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\n//\n// Support: Safari 7 only\n// Safari sends mouseenter too often; see:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\n// for the description of the bug (it existed in older Chrome versions as well).\njQuery.each( {\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\",\n\tpointerenter: \"pointerover\",\n\tpointerleave: \"pointerout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t// For mouseenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n} );\n\njQuery.fn.extend( {\n\n\ton: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn );\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\n\t\t\t// ( event ) dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ?\n\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\n\t\t\t\t\thandleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t} );\n\t}\n} );\n\n\nvar\n\n\t/* eslint-disable max-len */\n\n\t// See https://github.com/eslint/eslint/issues/3229\n\trxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,\n\n\t/* eslint-enable */\n\n\t// Support: IE <=10 - 11, Edge 12 - 13 only\n\t// In IE/Edge using regex groups here causes severe slowdowns.\n\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\n\trnoInnerhtml = /<script|<style|<link/i,\n\n\t// checked=\"checked\" or checked\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\trcleanScript = /^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;\n\n// Prefer a tbody over its parent table for containing new rows\nfunction manipulationTarget( elem, content ) {\n\tif ( nodeName( elem, \"table\" ) &&\n\t\tnodeName( content.nodeType !== 11 ? content : content.firstChild, \"tr\" ) ) {\n\n\t\treturn jQuery( elem ).children( \"tbody\" )[ 0 ] || elem;\n\t}\n\n\treturn elem;\n}\n\n// Replace/restore the type attribute of script elements for safe DOM manipulation\nfunction disableScript( elem ) {\n\telem.type = ( elem.getAttribute( \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}\nfunction restoreScript( elem ) {\n\tif ( ( elem.type || \"\" ).slice( 0, 5 ) === \"true/\" ) {\n\t\telem.type = elem.type.slice( 5 );\n\t} else {\n\t\telem.removeAttribute( \"type\" );\n\t}\n\n\treturn elem;\n}\n\nfunction cloneCopyEvent( src, dest ) {\n\tvar i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;\n\n\tif ( dest.nodeType !== 1 ) {\n\t\treturn;\n\t}\n\n\t// 1. Copy private data: events, handlers, etc.\n\tif ( dataPriv.hasData( src ) ) {\n\t\tpdataOld = dataPriv.access( src );\n\t\tpdataCur = dataPriv.set( dest, pdataOld );\n\t\tevents = pdataOld.events;\n\n\t\tif ( events ) {\n\t\t\tdelete pdataCur.handle;\n\t\t\tpdataCur.events = {};\n\n\t\t\tfor ( type in events ) {\n\t\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 2. Copy user data\n\tif ( dataUser.hasData( src ) ) {\n\t\tudataOld = dataUser.access( src );\n\t\tudataCur = jQuery.extend( {}, udataOld );\n\n\t\tdataUser.set( dest, udataCur );\n\t}\n}\n\n// Fix IE bugs, see support tests\nfunction fixInput( src, dest ) {\n\tvar nodeName = dest.nodeName.toLowerCase();\n\n\t// Fails to persist the checked state of a cloned checkbox or radio button.\n\tif ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\n\t\tdest.checked = src.checked;\n\n\t// Fails to return the selected option to the default selected state when cloning options\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\tdest.defaultValue = src.defaultValue;\n\t}\n}\n\nfunction domManip( collection, args, callback, ignored ) {\n\n\t// Flatten any nested arrays\n\targs = concat.apply( [], args );\n\n\tvar fragment, first, scripts, hasScripts, node, doc,\n\t\ti = 0,\n\t\tl = collection.length,\n\t\tiNoClone = l - 1,\n\t\tvalue = args[ 0 ],\n\t\tvalueIsFunction = isFunction( value );\n\n\t// We can't cloneNode fragments that contain checked, in WebKit\n\tif ( valueIsFunction ||\n\t\t\t( l > 1 && typeof value === \"string\" &&\n\t\t\t\t!support.checkClone && rchecked.test( value ) ) ) {\n\t\treturn collection.each( function( index ) {\n\t\t\tvar self = collection.eq( index );\n\t\t\tif ( valueIsFunction ) {\n\t\t\t\targs[ 0 ] = value.call( this, index, self.html() );\n\t\t\t}\n\t\t\tdomManip( self, args, callback, ignored );\n\t\t} );\n\t}\n\n\tif ( l ) {\n\t\tfragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );\n\t\tfirst = fragment.firstChild;\n\n\t\tif ( fragment.childNodes.length === 1 ) {\n\t\t\tfragment = first;\n\t\t}\n\n\t\t// Require either new content or an interest in ignored elements to invoke the callback\n\t\tif ( first || ignored ) {\n\t\t\tscripts = jQuery.map( getAll( fragment, \"script\" ), disableScript );\n\t\t\thasScripts = scripts.length;\n\n\t\t\t// Use the original fragment for the last item\n\t\t\t// instead of the first because it can end up\n\t\t\t// being emptied incorrectly in certain situations (#8070).\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tnode = fragment;\n\n\t\t\t\tif ( i !== iNoClone ) {\n\t\t\t\t\tnode = jQuery.clone( node, true, true );\n\n\t\t\t\t\t// Keep references to cloned scripts for later restoration\n\t\t\t\t\tif ( hasScripts ) {\n\n\t\t\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\t\t\tjQuery.merge( scripts, getAll( node, \"script\" ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcallback.call( collection[ i ], node, i );\n\t\t\t}\n\n\t\t\tif ( hasScripts ) {\n\t\t\t\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\n\n\t\t\t\t// Reenable scripts\n\t\t\t\tjQuery.map( scripts, restoreScript );\n\n\t\t\t\t// Evaluate executable scripts on first document insertion\n\t\t\t\tfor ( i = 0; i < hasScripts; i++ ) {\n\t\t\t\t\tnode = scripts[ i ];\n\t\t\t\t\tif ( rscriptType.test( node.type || \"\" ) &&\n\t\t\t\t\t\t!dataPriv.access( node, \"globalEval\" ) &&\n\t\t\t\t\t\tjQuery.contains( doc, node ) ) {\n\n\t\t\t\t\t\tif ( node.src && ( node.type || \"\" ).toLowerCase() !== \"module\" ) {\n\n\t\t\t\t\t\t\t// Optional AJAX dependency, but won't run scripts if not present\n\t\t\t\t\t\t\tif ( jQuery._evalUrl ) {\n\t\t\t\t\t\t\t\tjQuery._evalUrl( node.src );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tDOMEval( node.textContent.replace( rcleanScript, \"\" ), doc, node );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn collection;\n}\n\nfunction remove( elem, selector, keepData ) {\n\tvar node,\n\t\tnodes = selector ? jQuery.filter( selector, elem ) : elem,\n\t\ti = 0;\n\n\tfor ( ; ( node = nodes[ i ] ) != null; i++ ) {\n\t\tif ( !keepData && node.nodeType === 1 ) {\n\t\t\tjQuery.cleanData( getAll( node ) );\n\t\t}\n\n\t\tif ( node.parentNode ) {\n\t\t\tif ( keepData && jQuery.contains( node.ownerDocument, node ) ) {\n\t\t\t\tsetGlobalEval( getAll( node, \"script\" ) );\n\t\t\t}\n\t\t\tnode.parentNode.removeChild( node );\n\t\t}\n\t}\n\n\treturn elem;\n}\n\njQuery.extend( {\n\thtmlPrefilter: function( html ) {\n\t\treturn html.replace( rxhtmlTag, \"<$1></$2>\" );\n\t},\n\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\tvar i, l, srcElements, destElements,\n\t\t\tclone = elem.cloneNode( true ),\n\t\t\tinPage = jQuery.contains( elem.ownerDocument, elem );\n\n\t\t// Fix IE cloning issues\n\t\tif ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&\n\t\t\t\t!jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2\n\t\t\tdestElements = getAll( clone );\n\t\t\tsrcElements = getAll( elem );\n\n\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\tfixInput( srcElements[ i ], destElements[ i ] );\n\t\t\t}\n\t\t}\n\n\t\t// Copy the events from the original to the clone\n\t\tif ( dataAndEvents ) {\n\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\tsrcElements = srcElements || getAll( elem );\n\t\t\t\tdestElements = destElements || getAll( clone );\n\n\t\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\t\tcloneCopyEvent( srcElements[ i ], destElements[ i ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcloneCopyEvent( elem, clone );\n\t\t\t}\n\t\t}\n\n\t\t// Preserve script evaluation history\n\t\tdestElements = getAll( clone, \"script\" );\n\t\tif ( destElements.length > 0 ) {\n\t\t\tsetGlobalEval( destElements, !inPage && getAll( elem, \"script\" ) );\n\t\t}\n\n\t\t// Return the cloned set\n\t\treturn clone;\n\t},\n\n\tcleanData: function( elems ) {\n\t\tvar data, elem, type,\n\t\t\tspecial = jQuery.event.special,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {\n\t\t\tif ( acceptData( elem ) ) {\n\t\t\t\tif ( ( data = elem[ dataPriv.expando ] ) ) {\n\t\t\t\t\tif ( data.events ) {\n\t\t\t\t\t\tfor ( type in data.events ) {\n\t\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\t\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataPriv.expando ] = undefined;\n\t\t\t\t}\n\t\t\t\tif ( elem[ dataUser.expando ] ) {\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataUser.expando ] = undefined;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n} );\n\njQuery.fn.extend( {\n\tdetach: function( selector ) {\n\t\treturn remove( this, selector, true );\n\t},\n\n\tremove: function( selector ) {\n\t\treturn remove( this, selector );\n\t},\n\n\ttext: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\treturn value === undefined ?\n\t\t\t\tjQuery.text( this ) :\n\t\t\t\tthis.empty().each( function() {\n\t\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\t\t\tthis.textContent = value;\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t}, null, value, arguments.length );\n\t},\n\n\tappend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.appendChild( elem );\n\t\t\t}\n\t\t} );\n\t},\n\n\tprepend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.insertBefore( elem, target.firstChild );\n\t\t\t}\n\t\t} );\n\t},\n\n\tbefore: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t}\n\t\t} );\n\t},\n\n\tafter: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t}\n\t\t} );\n\t},\n\n\tempty: function() {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = this[ i ] ) != null; i++ ) {\n\t\t\tif ( elem.nodeType === 1 ) {\n\n\t\t\t\t// Prevent memory leaks\n\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\n\t\t\t\t// Remove any remaining nodes\n\t\t\t\telem.textContent = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\treturn this.map( function() {\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t} );\n\t},\n\n\thtml: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\tvar elem = this[ 0 ] || {},\n\t\t\t\ti = 0,\n\t\t\t\tl = this.length;\n\n\t\t\tif ( value === undefined && elem.nodeType === 1 ) {\n\t\t\t\treturn elem.innerHTML;\n\t\t\t}\n\n\t\t\t// See if we can take a shortcut and just use innerHTML\n\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\n\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [ \"\", \"\" ] )[ 1 ].toLowerCase() ] ) {\n\n\t\t\t\tvalue = jQuery.htmlPrefilter( value );\n\n\t\t\t\ttry {\n\t\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\t\telem = this[ i ] || {};\n\n\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\t\t\t\t\t\t\telem.innerHTML = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\telem = 0;\n\n\t\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t\t} catch ( e ) {}\n\t\t\t}\n\n\t\t\tif ( elem ) {\n\t\t\t\tthis.empty().append( value );\n\t\t\t}\n\t\t}, null, value, arguments.length );\n\t},\n\n\treplaceWith: function() {\n\t\tvar ignored = [];\n\n\t\t// Make the changes, replacing each non-ignored context element with the new content\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tvar parent = this.parentNode;\n\n\t\t\tif ( jQuery.inArray( this, ignored ) < 0 ) {\n\t\t\t\tjQuery.cleanData( getAll( this ) );\n\t\t\t\tif ( parent ) {\n\t\t\t\t\tparent.replaceChild( elem, this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Force callback invocation\n\t\t}, ignored );\n\t}\n} );\n\njQuery.each( {\n\tappendTo: \"append\",\n\tprependTo: \"prepend\",\n\tinsertBefore: \"before\",\n\tinsertAfter: \"after\",\n\treplaceAll: \"replaceWith\"\n}, function( name, original ) {\n\tjQuery.fn[ name ] = function( selector ) {\n\t\tvar elems,\n\t\t\tret = [],\n\t\t\tinsert = jQuery( selector ),\n\t\t\tlast = insert.length - 1,\n\t\t\ti = 0;\n\n\t\tfor ( ; i <= last; i++ ) {\n\t\t\telems = i === last ? this : this.clone( true );\n\t\t\tjQuery( insert[ i ] )[ original ]( elems );\n\n\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t// .get() because push.apply(_, arraylike) throws on ancient WebKit\n\t\t\tpush.apply( ret, elems.get() );\n\t\t}\n\n\t\treturn this.pushStack( ret );\n\t};\n} );\nvar rnumnonpx = new RegExp( \"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\" );\n\nvar getStyles = function( elem ) {\n\n\t\t// Support: IE <=11 only, Firefox <=30 (#15098, #14150)\n\t\t// IE throws on elements created in popups\n\t\t// FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n\t\tvar view = elem.ownerDocument.defaultView;\n\n\t\tif ( !view || !view.opener ) {\n\t\t\tview = window;\n\t\t}\n\n\t\treturn view.getComputedStyle( elem );\n\t};\n\nvar rboxStyle = new RegExp( cssExpand.join( \"|\" ), \"i\" );\n\n\n\n( function() {\n\n\t// Executing both pixelPosition & boxSizingReliable tests require only one layout\n\t// so they're executed at the same time to save the second computation.\n\tfunction computeStyleTests() {\n\n\t\t// This is a singleton, we need to execute it only once\n\t\tif ( !div ) {\n\t\t\treturn;\n\t\t}\n\n\t\tcontainer.style.cssText = \"position:absolute;left:-11111px;width:60px;\" +\n\t\t\t\"margin-top:1px;padding:0;border:0\";\n\t\tdiv.style.cssText =\n\t\t\t\"position:relative;display:block;box-sizing:border-box;overflow:scroll;\" +\n\t\t\t\"margin:auto;border:1px;padding:1px;\" +\n\t\t\t\"width:60%;top:1%\";\n\t\tdocumentElement.appendChild( container ).appendChild( div );\n\n\t\tvar divStyle = window.getComputedStyle( div );\n\t\tpixelPositionVal = divStyle.top !== \"1%\";\n\n\t\t// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44\n\t\treliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;\n\n\t\t// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3\n\t\t// Some styles come back with percentage values, even though they shouldn't\n\t\tdiv.style.right = \"60%\";\n\t\tpixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;\n\n\t\t// Support: IE 9 - 11 only\n\t\t// Detect misreporting of content dimensions for box-sizing:border-box elements\n\t\tboxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;\n\n\t\t// Support: IE 9 only\n\t\t// Detect overflow:scroll screwiness (gh-3699)\n\t\tdiv.style.position = \"absolute\";\n\t\tscrollboxSizeVal = div.offsetWidth === 36 || \"absolute\";\n\n\t\tdocumentElement.removeChild( container );\n\n\t\t// Nullify the div so it wouldn't be stored in the memory and\n\t\t// it will also be a sign that checks already performed\n\t\tdiv = null;\n\t}\n\n\tfunction roundPixelMeasures( measure ) {\n\t\treturn Math.round( parseFloat( measure ) );\n\t}\n\n\tvar pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,\n\t\treliableMarginLeftVal,\n\t\tcontainer = document.createElement( \"div\" ),\n\t\tdiv = document.createElement( \"div\" );\n\n\t// Finish early in limited (non-browser) environments\n\tif ( !div.style ) {\n\t\treturn;\n\t}\n\n\t// Support: IE <=9 - 11 only\n\t// Style of cloned element affects source element cloned (#8908)\n\tdiv.style.backgroundClip = \"content-box\";\n\tdiv.cloneNode( true ).style.backgroundClip = \"\";\n\tsupport.clearCloneStyle = div.style.backgroundClip === \"content-box\";\n\n\tjQuery.extend( support, {\n\t\tboxSizingReliable: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn boxSizingReliableVal;\n\t\t},\n\t\tpixelBoxStyles: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelBoxStylesVal;\n\t\t},\n\t\tpixelPosition: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelPositionVal;\n\t\t},\n\t\treliableMarginLeft: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn reliableMarginLeftVal;\n\t\t},\n\t\tscrollboxSize: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn scrollboxSizeVal;\n\t\t}\n\t} );\n} )();\n\n\nfunction curCSS( elem, name, computed ) {\n\tvar width, minWidth, maxWidth, ret,\n\n\t\t// Support: Firefox 51+\n\t\t// Retrieving style before computed somehow\n\t\t// fixes an issue with getting wrong values\n\t\t// on detached elements\n\t\tstyle = elem.style;\n\n\tcomputed = computed || getStyles( elem );\n\n\t// getPropertyValue is needed for:\n\t// .css('filter') (IE 9 only, #12537)\n\t// .css('--customProperty) (#3144)\n\tif ( computed ) {\n\t\tret = computed.getPropertyValue( name ) || computed[ name ];\n\n\t\tif ( ret === \"\" && !jQuery.contains( elem.ownerDocument, elem ) ) {\n\t\t\tret = jQuery.style( elem, name );\n\t\t}\n\n\t\t// A tribute to the \"awesome hack by Dean Edwards\"\n\t\t// Android Browser returns percentage for some values,\n\t\t// but width seems to be reliably pixels.\n\t\t// This is against the CSSOM draft spec:\n\t\t// https://drafts.csswg.org/cssom/#resolved-values\n\t\tif ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {\n\n\t\t\t// Remember the original values\n\t\t\twidth = style.width;\n\t\t\tminWidth = style.minWidth;\n\t\t\tmaxWidth = style.maxWidth;\n\n\t\t\t// Put in the new values to get a computed value out\n\t\t\tstyle.minWidth = style.maxWidth = style.width = ret;\n\t\t\tret = computed.width;\n\n\t\t\t// Revert the changed values\n\t\t\tstyle.width = width;\n\t\t\tstyle.minWidth = minWidth;\n\t\t\tstyle.maxWidth = maxWidth;\n\t\t}\n\t}\n\n\treturn ret !== undefined ?\n\n\t\t// Support: IE <=9 - 11 only\n\t\t// IE returns zIndex value as an integer.\n\t\tret + \"\" :\n\t\tret;\n}\n\n\nfunction addGetHookIf( conditionFn, hookFn ) {\n\n\t// Define the hook, we'll check on the first run if it's really needed.\n\treturn {\n\t\tget: function() {\n\t\t\tif ( conditionFn() ) {\n\n\t\t\t\t// Hook not needed (or it's not possible to use it due\n\t\t\t\t// to missing dependency), remove it.\n\t\t\t\tdelete this.get;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Hook needed; redefine it so that the support test is not executed again.\n\t\t\treturn ( this.get = hookFn ).apply( this, arguments );\n\t\t}\n\t};\n}\n\n\nvar\n\n\t// Swappable if display is none or starts with table\n\t// except \"table\", \"table-cell\", or \"table-caption\"\n\t// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\n\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\n\trcustomProp = /^--/,\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\tcssNormalTransform = {\n\t\tletterSpacing: \"0\",\n\t\tfontWeight: \"400\"\n\t},\n\n\tcssPrefixes = [ \"Webkit\", \"Moz\", \"ms\" ],\n\temptyStyle = document.createElement( \"div\" ).style;\n\n// Return a css property mapped to a potentially vendor prefixed property\nfunction vendorPropName( name ) {\n\n\t// Shortcut for names that are not vendor prefixed\n\tif ( name in emptyStyle ) {\n\t\treturn name;\n\t}\n\n\t// Check for vendor prefixed names\n\tvar capName = name[ 0 ].toUpperCase() + name.slice( 1 ),\n\t\ti = cssPrefixes.length;\n\n\twhile ( i-- ) {\n\t\tname = cssPrefixes[ i ] + capName;\n\t\tif ( name in emptyStyle ) {\n\t\t\treturn name;\n\t\t}\n\t}\n}\n\n// Return a property mapped along what jQuery.cssProps suggests or to\n// a vendor prefixed property.\nfunction finalPropName( name ) {\n\tvar ret = jQuery.cssProps[ name ];\n\tif ( !ret ) {\n\t\tret = jQuery.cssProps[ name ] = vendorPropName( name ) || name;\n\t}\n\treturn ret;\n}\n\nfunction setPositiveNumber( elem, value, subtract ) {\n\n\t// Any relative (+/-) values have already been\n\t// normalized at this point\n\tvar matches = rcssNum.exec( value );\n\treturn matches ?\n\n\t\t// Guard against undefined \"subtract\", e.g., when used as in cssHooks\n\t\tMath.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || \"px\" ) :\n\t\tvalue;\n}\n\nfunction boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {\n\tvar i = dimension === \"width\" ? 1 : 0,\n\t\textra = 0,\n\t\tdelta = 0;\n\n\t// Adjustment may not be necessary\n\tif ( box === ( isBorderBox ? \"border\" : \"content\" ) ) {\n\t\treturn 0;\n\t}\n\n\tfor ( ; i < 4; i += 2 ) {\n\n\t\t// Both box models exclude margin\n\t\tif ( box === \"margin\" ) {\n\t\t\tdelta += jQuery.css( elem, box + cssExpand[ i ], true, styles );\n\t\t}\n\n\t\t// If we get here with a content-box, we're seeking \"padding\" or \"border\" or \"margin\"\n\t\tif ( !isBorderBox ) {\n\n\t\t\t// Add padding\n\t\t\tdelta += jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\n\t\t\t// For \"border\" or \"margin\", add border\n\t\t\tif ( box !== \"padding\" ) {\n\t\t\t\tdelta += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\n\t\t\t// But still keep track of it otherwise\n\t\t\t} else {\n\t\t\t\textra += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\n\t\t// If we get here with a border-box (content + padding + border), we're seeking \"content\" or\n\t\t// \"padding\" or \"margin\"\n\t\t} else {\n\n\t\t\t// For \"content\", subtract padding\n\t\t\tif ( box === \"content\" ) {\n\t\t\t\tdelta -= jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\t\t\t}\n\n\t\t\t// For \"content\" or \"padding\", subtract border\n\t\t\tif ( box !== \"margin\" ) {\n\t\t\t\tdelta -= jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Account for positive content-box scroll gutter when requested by providing computedVal\n\tif ( !isBorderBox && computedVal >= 0 ) {\n\n\t\t// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border\n\t\t// Assuming integer scroll gutter, subtract the rest and round down\n\t\tdelta += Math.max( 0, Math.ceil(\n\t\t\telem[ \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -\n\t\t\tcomputedVal -\n\t\t\tdelta -\n\t\t\textra -\n\t\t\t0.5\n\t\t) );\n\t}\n\n\treturn delta;\n}\n\nfunction getWidthOrHeight( elem, dimension, extra ) {\n\n\t// Start with computed style\n\tvar styles = getStyles( elem ),\n\t\tval = curCSS( elem, dimension, styles ),\n\t\tisBorderBox = jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\tvalueIsBorderBox = isBorderBox;\n\n\t// Support: Firefox <=54\n\t// Return a confounding non-pixel value or feign ignorance, as appropriate.\n\tif ( rnumnonpx.test( val ) ) {\n\t\tif ( !extra ) {\n\t\t\treturn val;\n\t\t}\n\t\tval = \"auto\";\n\t}\n\n\t// Check for style in case a browser which returns unreliable values\n\t// for getComputedStyle silently falls back to the reliable elem.style\n\tvalueIsBorderBox = valueIsBorderBox &&\n\t\t( support.boxSizingReliable() || val === elem.style[ dimension ] );\n\n\t// Fall back to offsetWidth/offsetHeight when value is \"auto\"\n\t// This happens for inline elements with no explicit setting (gh-3571)\n\t// Support: Android <=4.1 - 4.3 only\n\t// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)\n\tif ( val === \"auto\" ||\n\t\t!parseFloat( val ) && jQuery.css( elem, \"display\", false, styles ) === \"inline\" ) {\n\n\t\tval = elem[ \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ];\n\n\t\t// offsetWidth/offsetHeight provide border-box values\n\t\tvalueIsBorderBox = true;\n\t}\n\n\t// Normalize \"\" and auto\n\tval = parseFloat( val ) || 0;\n\n\t// Adjust for the element's box model\n\treturn ( val +\n\t\tboxModelAdjustment(\n\t\t\telem,\n\t\t\tdimension,\n\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\n\t\t\tvalueIsBorderBox,\n\t\t\tstyles,\n\n\t\t\t// Provide the current computed size to request scroll gutter calculation (gh-3589)\n\t\t\tval\n\t\t)\n\t) + \"px\";\n}\n\njQuery.extend( {\n\n\t// Add in style property hooks for overriding the default\n\t// behavior of getting and setting a style property\n\tcssHooks: {\n\t\topacity: {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\n\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// Don't automatically add \"px\" to these possibly-unitless properties\n\tcssNumber: {\n\t\t\"animationIterationCount\": true,\n\t\t\"columnCount\": true,\n\t\t\"fillOpacity\": true,\n\t\t\"flexGrow\": true,\n\t\t\"flexShrink\": true,\n\t\t\"fontWeight\": true,\n\t\t\"lineHeight\": true,\n\t\t\"opacity\": true,\n\t\t\"order\": true,\n\t\t\"orphans\": true,\n\t\t\"widows\": true,\n\t\t\"zIndex\": true,\n\t\t\"zoom\": true\n\t},\n\n\t// Add in properties whose names you wish to fix before\n\t// setting or getting the value\n\tcssProps: {},\n\n\t// Get and set the style property on a DOM Node\n\tstyle: function( elem, name, value, extra ) {\n\n\t\t// Don't set styles on text and comment nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, type, hooks,\n\t\t\torigName = camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name ),\n\t\t\tstyle = elem.style;\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to query the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Gets hook for the prefixed version, then unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// Check if we're setting a value\n\t\tif ( value !== undefined ) {\n\t\t\ttype = typeof value;\n\n\t\t\t// Convert \"+=\" or \"-=\" to relative numbers (#7345)\n\t\t\tif ( type === \"string\" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {\n\t\t\t\tvalue = adjustCSS( elem, name, ret );\n\n\t\t\t\t// Fixes bug #9237\n\t\t\t\ttype = \"number\";\n\t\t\t}\n\n\t\t\t// Make sure that null and NaN values aren't set (#7116)\n\t\t\tif ( value == null || value !== value ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If a number was passed in, add the unit (except for certain CSS properties)\n\t\t\tif ( type === \"number\" ) {\n\t\t\t\tvalue += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? \"\" : \"px\" );\n\t\t\t}\n\n\t\t\t// background-* props affect original clone's values\n\t\t\tif ( !support.clearCloneStyle && value === \"\" && name.indexOf( \"background\" ) === 0 ) {\n\t\t\t\tstyle[ name ] = \"inherit\";\n\t\t\t}\n\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\tif ( !hooks || !( \"set\" in hooks ) ||\n\t\t\t\t( value = hooks.set( elem, value, extra ) ) !== undefined ) {\n\n\t\t\t\tif ( isCustomProp ) {\n\t\t\t\t\tstyle.setProperty( name, value );\n\t\t\t\t} else {\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\tif ( hooks && \"get\" in hooks &&\n\t\t\t\t( ret = hooks.get( elem, false, extra ) ) !== undefined ) {\n\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\t// Otherwise just get the value from the style object\n\t\t\treturn style[ name ];\n\t\t}\n\t},\n\n\tcss: function( elem, name, extra, styles ) {\n\t\tvar val, num, hooks,\n\t\t\torigName = camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name );\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to modify the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Try prefixed name followed by the unprefixed name\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// If a hook was provided get the computed value from there\n\t\tif ( hooks && \"get\" in hooks ) {\n\t\t\tval = hooks.get( elem, true, extra );\n\t\t}\n\n\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\tif ( val === undefined ) {\n\t\t\tval = curCSS( elem, name, styles );\n\t\t}\n\n\t\t// Convert \"normal\" to computed value\n\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\n\t\t\tval = cssNormalTransform[ name ];\n\t\t}\n\n\t\t// Make numeric if forced or a qualifier was provided and val looks numeric\n\t\tif ( extra === \"\" || extra ) {\n\t\t\tnum = parseFloat( val );\n\t\t\treturn extra === true || isFinite( num ) ? num || 0 : val;\n\t\t}\n\n\t\treturn val;\n\t}\n} );\n\njQuery.each( [ \"height\", \"width\" ], function( i, dimension ) {\n\tjQuery.cssHooks[ dimension ] = {\n\t\tget: function( elem, computed, extra ) {\n\t\t\tif ( computed ) {\n\n\t\t\t\t// Certain elements can have dimension info if we invisibly show them\n\t\t\t\t// but it must have a current display style that would benefit\n\t\t\t\treturn rdisplayswap.test( jQuery.css( elem, \"display\" ) ) &&\n\n\t\t\t\t\t// Support: Safari 8+\n\t\t\t\t\t// Table columns in Safari have non-zero offsetWidth & zero\n\t\t\t\t\t// getBoundingClientRect().width unless display is changed.\n\t\t\t\t\t// Support: IE <=11 only\n\t\t\t\t\t// Running getBoundingClientRect on a disconnected node\n\t\t\t\t\t// in IE throws an error.\n\t\t\t\t\t( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?\n\t\t\t\t\t\tswap( elem, cssShow, function() {\n\t\t\t\t\t\t\treturn getWidthOrHeight( elem, dimension, extra );\n\t\t\t\t\t\t} ) :\n\t\t\t\t\t\tgetWidthOrHeight( elem, dimension, extra );\n\t\t\t}\n\t\t},\n\n\t\tset: function( elem, value, extra ) {\n\t\t\tvar matches,\n\t\t\t\tstyles = getStyles( elem ),\n\t\t\t\tisBorderBox = jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\t\t\tsubtract = extra && boxModelAdjustment(\n\t\t\t\t\telem,\n\t\t\t\t\tdimension,\n\t\t\t\t\textra,\n\t\t\t\t\tisBorderBox,\n\t\t\t\t\tstyles\n\t\t\t\t);\n\n\t\t\t// Account for unreliable border-box dimensions by comparing offset* to computed and\n\t\t\t// faking a content-box to get border and padding (gh-3699)\n\t\t\tif ( isBorderBox && support.scrollboxSize() === styles.position ) {\n\t\t\t\tsubtract -= Math.ceil(\n\t\t\t\t\telem[ \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -\n\t\t\t\t\tparseFloat( styles[ dimension ] ) -\n\t\t\t\t\tboxModelAdjustment( elem, dimension, \"border\", false, styles ) -\n\t\t\t\t\t0.5\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Convert to pixels if value adjustment is needed\n\t\t\tif ( subtract && ( matches = rcssNum.exec( value ) ) &&\n\t\t\t\t( matches[ 3 ] || \"px\" ) !== \"px\" ) {\n\n\t\t\t\telem.style[ dimension ] = value;\n\t\t\t\tvalue = jQuery.css( elem, dimension );\n\t\t\t}\n\n\t\t\treturn setPositiveNumber( elem, value, subtract );\n\t\t}\n\t};\n} );\n\njQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,\n\tfunction( elem, computed ) {\n\t\tif ( computed ) {\n\t\t\treturn ( parseFloat( curCSS( elem, \"marginLeft\" ) ) ||\n\t\t\t\telem.getBoundingClientRect().left -\n\t\t\t\t\tswap( elem, { marginLeft: 0 }, function() {\n\t\t\t\t\t\treturn elem.getBoundingClientRect().left;\n\t\t\t\t\t} )\n\t\t\t\t) + \"px\";\n\t\t}\n\t}\n);\n\n// These hooks are used by animate to expand properties\njQuery.each( {\n\tmargin: \"\",\n\tpadding: \"\",\n\tborder: \"Width\"\n}, function( prefix, suffix ) {\n\tjQuery.cssHooks[ prefix + suffix ] = {\n\t\texpand: function( value ) {\n\t\t\tvar i = 0,\n\t\t\t\texpanded = {},\n\n\t\t\t\t// Assumes a single number if not a string\n\t\t\t\tparts = typeof value === \"string\" ? value.split( \" \" ) : [ value ];\n\n\t\t\tfor ( ; i < 4; i++ ) {\n\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\n\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\n\t\t\t}\n\n\t\t\treturn expanded;\n\t\t}\n\t};\n\n\tif ( prefix !== \"margin\" ) {\n\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\n\t}\n} );\n\njQuery.fn.extend( {\n\tcss: function( name, value ) {\n\t\treturn access( this, function( elem, name, value ) {\n\t\t\tvar styles, len,\n\t\t\t\tmap = {},\n\t\t\t\ti = 0;\n\n\t\t\tif ( Array.isArray( name ) ) {\n\t\t\t\tstyles = getStyles( elem );\n\t\t\t\tlen = name.length;\n\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\n\t\t\t\t}\n\n\t\t\t\treturn map;\n\t\t\t}\n\n\t\t\treturn value !== undefined ?\n\t\t\t\tjQuery.style( elem, name, value ) :\n\t\t\t\tjQuery.css( elem, name );\n\t\t}, name, value, arguments.length > 1 );\n\t}\n} );\n\n\nfunction Tween( elem, options, prop, end, easing ) {\n\treturn new Tween.prototype.init( elem, options, prop, end, easing );\n}\njQuery.Tween = Tween;\n\nTween.prototype = {\n\tconstructor: Tween,\n\tinit: function( elem, options, prop, end, easing, unit ) {\n\t\tthis.elem = elem;\n\t\tthis.prop = prop;\n\t\tthis.easing = easing || jQuery.easing._default;\n\t\tthis.options = options;\n\t\tthis.start = this.now = this.cur();\n\t\tthis.end = end;\n\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\t},\n\tcur: function() {\n\t\tvar hooks = Tween.propHooks[ this.prop ];\n\n\t\treturn hooks && hooks.get ?\n\t\t\thooks.get( this ) :\n\t\t\tTween.propHooks._default.get( this );\n\t},\n\trun: function( percent ) {\n\t\tvar eased,\n\t\t\thooks = Tween.propHooks[ this.prop ];\n\n\t\tif ( this.options.duration ) {\n\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\n\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\n\t\t\t);\n\t\t} else {\n\t\t\tthis.pos = eased = percent;\n\t\t}\n\t\tthis.now = ( this.end - this.start ) * eased + this.start;\n\n\t\tif ( this.options.step ) {\n\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t}\n\n\t\tif ( hooks && hooks.set ) {\n\t\t\thooks.set( this );\n\t\t} else {\n\t\t\tTween.propHooks._default.set( this );\n\t\t}\n\t\treturn this;\n\t}\n};\n\nTween.prototype.init.prototype = Tween.prototype;\n\nTween.propHooks = {\n\t_default: {\n\t\tget: function( tween ) {\n\t\t\tvar result;\n\n\t\t\t// Use a property on the element directly when it is not a DOM element,\n\t\t\t// or when there is no matching style property that exists.\n\t\t\tif ( tween.elem.nodeType !== 1 ||\n\t\t\t\ttween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {\n\t\t\t\treturn tween.elem[ tween.prop ];\n\t\t\t}\n\n\t\t\t// Passing an empty string as a 3rd parameter to .css will automatically\n\t\t\t// attempt a parseFloat and fallback to a string if the parse fails.\n\t\t\t// Simple values such as \"10px\" are parsed to Float;\n\t\t\t// complex values such as \"rotate(1rad)\" are returned as-is.\n\t\t\tresult = jQuery.css( tween.elem, tween.prop, \"\" );\n\n\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\n\t\t\treturn !result || result === \"auto\" ? 0 : result;\n\t\t},\n\t\tset: function( tween ) {\n\n\t\t\t// Use step hook for back compat.\n\t\t\t// Use cssHook if its there.\n\t\t\t// Use .style if available and use plain properties where available.\n\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\n\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\n\t\t\t} else if ( tween.elem.nodeType === 1 &&\n\t\t\t\t( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||\n\t\t\t\t\tjQuery.cssHooks[ tween.prop ] ) ) {\n\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\n\t\t\t} else {\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Support: IE <=9 only\n// Panic based approach to setting things on disconnected nodes\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\n\tset: function( tween ) {\n\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\n\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t}\n\t}\n};\n\njQuery.easing = {\n\tlinear: function( p ) {\n\t\treturn p;\n\t},\n\tswing: function( p ) {\n\t\treturn 0.5 - Math.cos( p * Math.PI ) / 2;\n\t},\n\t_default: \"swing\"\n};\n\njQuery.fx = Tween.prototype.init;\n\n// Back compat <1.8 extension point\njQuery.fx.step = {};\n\n\n\n\nvar\n\tfxNow, inProgress,\n\trfxtypes = /^(?:toggle|show|hide)$/,\n\trrun = /queueHooks$/;\n\nfunction schedule() {\n\tif ( inProgress ) {\n\t\tif ( document.hidden === false && window.requestAnimationFrame ) {\n\t\t\twindow.requestAnimationFrame( schedule );\n\t\t} else {\n\t\t\twindow.setTimeout( schedule, jQuery.fx.interval );\n\t\t}\n\n\t\tjQuery.fx.tick();\n\t}\n}\n\n// Animations created synchronously will run synchronously\nfunction createFxNow() {\n\twindow.setTimeout( function() {\n\t\tfxNow = undefined;\n\t} );\n\treturn ( fxNow = Date.now() );\n}\n\n// Generate parameters to create a standard animation\nfunction genFx( type, includeWidth ) {\n\tvar which,\n\t\ti = 0,\n\t\tattrs = { height: type };\n\n\t// If we include width, step value is 1 to do all cssExpand values,\n\t// otherwise step value is 2 to skip over Left and Right\n\tincludeWidth = includeWidth ? 1 : 0;\n\tfor ( ; i < 4; i += 2 - includeWidth ) {\n\t\twhich = cssExpand[ i ];\n\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\n\t}\n\n\tif ( includeWidth ) {\n\t\tattrs.opacity = attrs.width = type;\n\t}\n\n\treturn attrs;\n}\n\nfunction createTween( value, prop, animation ) {\n\tvar tween,\n\t\tcollection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ \"*\" ] ),\n\t\tindex = 0,\n\t\tlength = collection.length;\n\tfor ( ; index < length; index++ ) {\n\t\tif ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {\n\n\t\t\t// We're done with this property\n\t\t\treturn tween;\n\t\t}\n\t}\n}\n\nfunction defaultPrefilter( elem, props, opts ) {\n\tvar prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,\n\t\tisBox = \"width\" in props || \"height\" in props,\n\t\tanim = this,\n\t\torig = {},\n\t\tstyle = elem.style,\n\t\thidden = elem.nodeType && isHiddenWithinTree( elem ),\n\t\tdataShow = dataPriv.get( elem, \"fxshow\" );\n\n\t// Queue-skipping animations hijack the fx hooks\n\tif ( !opts.queue ) {\n\t\thooks = jQuery._queueHooks( elem, \"fx\" );\n\t\tif ( hooks.unqueued == null ) {\n\t\t\thooks.unqueued = 0;\n\t\t\toldfire = hooks.empty.fire;\n\t\t\thooks.empty.fire = function() {\n\t\t\t\tif ( !hooks.unqueued ) {\n\t\t\t\t\toldfire();\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\thooks.unqueued++;\n\n\t\tanim.always( function() {\n\n\t\t\t// Ensure the complete handler is called before this completes\n\t\t\tanim.always( function() {\n\t\t\t\thooks.unqueued--;\n\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\n\t\t\t\t\thooks.empty.fire();\n\t\t\t\t}\n\t\t\t} );\n\t\t} );\n\t}\n\n\t// Detect show/hide animations\n\tfor ( prop in props ) {\n\t\tvalue = props[ prop ];\n\t\tif ( rfxtypes.test( value ) ) {\n\t\t\tdelete props[ prop ];\n\t\t\ttoggle = toggle || value === \"toggle\";\n\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\n\n\t\t\t\t// Pretend to be hidden if this is a \"show\" and\n\t\t\t\t// there is still data from a stopped show/hide\n\t\t\t\tif ( value === \"show\" && dataShow && dataShow[ prop ] !== undefined ) {\n\t\t\t\t\thidden = true;\n\n\t\t\t\t// Ignore all other no-op show/hide data\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\torig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );\n\t\t}\n\t}\n\n\t// Bail out if this is a no-op like .hide().hide()\n\tpropTween = !jQuery.isEmptyObject( props );\n\tif ( !propTween && jQuery.isEmptyObject( orig ) ) {\n\t\treturn;\n\t}\n\n\t// Restrict \"overflow\" and \"display\" styles during box animations\n\tif ( isBox && elem.nodeType === 1 ) {\n\n\t\t// Support: IE <=9 - 11, Edge 12 - 15\n\t\t// Record all 3 overflow attributes because IE does not infer the shorthand\n\t\t// from identically-valued overflowX and overflowY and Edge just mirrors\n\t\t// the overflowX value there.\n\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\n\n\t\t// Identify a display type, preferring old show/hide data over the CSS cascade\n\t\trestoreDisplay = dataShow && dataShow.display;\n\t\tif ( restoreDisplay == null ) {\n\t\t\trestoreDisplay = dataPriv.get( elem, \"display\" );\n\t\t}\n\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\tif ( display === \"none\" ) {\n\t\t\tif ( restoreDisplay ) {\n\t\t\t\tdisplay = restoreDisplay;\n\t\t\t} else {\n\n\t\t\t\t// Get nonempty value(s) by temporarily forcing visibility\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t\trestoreDisplay = elem.style.display || restoreDisplay;\n\t\t\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\t\t\tshowHide( [ elem ] );\n\t\t\t}\n\t\t}\n\n\t\t// Animate inline elements as inline-block\n\t\tif ( display === \"inline\" || display === \"inline-block\" && restoreDisplay != null ) {\n\t\t\tif ( jQuery.css( elem, \"float\" ) === \"none\" ) {\n\n\t\t\t\t// Restore the original display value at the end of pure show/hide animations\n\t\t\t\tif ( !propTween ) {\n\t\t\t\t\tanim.done( function() {\n\t\t\t\t\t\tstyle.display = restoreDisplay;\n\t\t\t\t\t} );\n\t\t\t\t\tif ( restoreDisplay == null ) {\n\t\t\t\t\t\tdisplay = style.display;\n\t\t\t\t\t\trestoreDisplay = display === \"none\" ? \"\" : display;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstyle.display = \"inline-block\";\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( opts.overflow ) {\n\t\tstyle.overflow = \"hidden\";\n\t\tanim.always( function() {\n\t\t\tstyle.overflow = opts.overflow[ 0 ];\n\t\t\tstyle.overflowX = opts.overflow[ 1 ];\n\t\t\tstyle.overflowY = opts.overflow[ 2 ];\n\t\t} );\n\t}\n\n\t// Implement show/hide animations\n\tpropTween = false;\n\tfor ( prop in orig ) {\n\n\t\t// General show/hide setup for this element animation\n\t\tif ( !propTween ) {\n\t\t\tif ( dataShow ) {\n\t\t\t\tif ( \"hidden\" in dataShow ) {\n\t\t\t\t\thidden = dataShow.hidden;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdataShow = dataPriv.access( elem, \"fxshow\", { display: restoreDisplay } );\n\t\t\t}\n\n\t\t\t// Store hidden/visible for toggle so `.stop().toggle()` \"reverses\"\n\t\t\tif ( toggle ) {\n\t\t\t\tdataShow.hidden = !hidden;\n\t\t\t}\n\n\t\t\t// Show elements before animating them\n\t\t\tif ( hidden ) {\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t}\n\n\t\t\t/* eslint-disable no-loop-func */\n\n\t\t\tanim.done( function() {\n\n\t\t\t/* eslint-enable no-loop-func */\n\n\t\t\t\t// The final step of a \"hide\" animation is actually hiding the element\n\t\t\t\tif ( !hidden ) {\n\t\t\t\t\tshowHide( [ elem ] );\n\t\t\t\t}\n\t\t\t\tdataPriv.remove( elem, \"fxshow\" );\n\t\t\t\tfor ( prop in orig ) {\n\t\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\t// Per-property setup\n\t\tpropTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );\n\t\tif ( !( prop in dataShow ) ) {\n\t\t\tdataShow[ prop ] = propTween.start;\n\t\t\tif ( hidden ) {\n\t\t\t\tpropTween.end = propTween.start;\n\t\t\t\tpropTween.start = 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction propFilter( props, specialEasing ) {\n\tvar index, name, easing, value, hooks;\n\n\t// camelCase, specialEasing and expand cssHook pass\n\tfor ( index in props ) {\n\t\tname = camelCase( index );\n\t\teasing = specialEasing[ name ];\n\t\tvalue = props[ index ];\n\t\tif ( Array.isArray( value ) ) {\n\t\t\teasing = value[ 1 ];\n\t\t\tvalue = props[ index ] = value[ 0 ];\n\t\t}\n\n\t\tif ( index !== name ) {\n\t\t\tprops[ name ] = value;\n\t\t\tdelete props[ index ];\n\t\t}\n\n\t\thooks = jQuery.cssHooks[ name ];\n\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\tvalue = hooks.expand( value );\n\t\t\tdelete props[ name ];\n\n\t\t\t// Not quite $.extend, this won't overwrite existing keys.\n\t\t\t// Reusing 'index' because we have the correct \"name\"\n\t\t\tfor ( index in value ) {\n\t\t\t\tif ( !( index in props ) ) {\n\t\t\t\t\tprops[ index ] = value[ index ];\n\t\t\t\t\tspecialEasing[ index ] = easing;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tspecialEasing[ name ] = easing;\n\t\t}\n\t}\n}\n\nfunction Animation( elem, properties, options ) {\n\tvar result,\n\t\tstopped,\n\t\tindex = 0,\n\t\tlength = Animation.prefilters.length,\n\t\tdeferred = jQuery.Deferred().always( function() {\n\n\t\t\t// Don't match elem in the :animated selector\n\t\t\tdelete tick.elem;\n\t\t} ),\n\t\ttick = function() {\n\t\t\tif ( stopped ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tvar currentTime = fxNow || createFxNow(),\n\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\n\n\t\t\t\t// Support: Android 2.3 only\n\t\t\t\t// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)\n\t\t\t\ttemp = remaining / animation.duration || 0,\n\t\t\t\tpercent = 1 - temp,\n\t\t\t\tindex = 0,\n\t\t\t\tlength = animation.tweens.length;\n\n\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\tanimation.tweens[ index ].run( percent );\n\t\t\t}\n\n\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ] );\n\n\t\t\t// If there's more to do, yield\n\t\t\tif ( percent < 1 && length ) {\n\t\t\t\treturn remaining;\n\t\t\t}\n\n\t\t\t// If this was an empty animation, synthesize a final progress notification\n\t\t\tif ( !length ) {\n\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t}\n\n\t\t\t// Resolve the animation and report its conclusion\n\t\t\tdeferred.resolveWith( elem, [ animation ] );\n\t\t\treturn false;\n\t\t},\n\t\tanimation = deferred.promise( {\n\t\t\telem: elem,\n\t\t\tprops: jQuery.extend( {}, properties ),\n\t\t\topts: jQuery.extend( true, {\n\t\t\t\tspecialEasing: {},\n\t\t\t\teasing: jQuery.easing._default\n\t\t\t}, options ),\n\t\t\toriginalProperties: properties,\n\t\t\toriginalOptions: options,\n\t\t\tstartTime: fxNow || createFxNow(),\n\t\t\tduration: options.duration,\n\t\t\ttweens: [],\n\t\t\tcreateTween: function( prop, end ) {\n\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\n\t\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\n\t\t\t\tanimation.tweens.push( tween );\n\t\t\t\treturn tween;\n\t\t\t},\n\t\t\tstop: function( gotoEnd ) {\n\t\t\t\tvar index = 0,\n\n\t\t\t\t\t// If we are going to the end, we want to run all the tweens\n\t\t\t\t\t// otherwise we skip this part\n\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\n\t\t\t\tif ( stopped ) {\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tstopped = true;\n\t\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\t\tanimation.tweens[ index ].run( 1 );\n\t\t\t\t}\n\n\t\t\t\t// Resolve when we played the last frame; otherwise, reject\n\t\t\t\tif ( gotoEnd ) {\n\t\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\t\t} ),\n\t\tprops = animation.props;\n\n\tpropFilter( props, animation.opts.specialEasing );\n\n\tfor ( ; index < length; index++ ) {\n\t\tresult = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );\n\t\tif ( result ) {\n\t\t\tif ( isFunction( result.stop ) ) {\n\t\t\t\tjQuery._queueHooks( animation.elem, animation.opts.queue ).stop =\n\t\t\t\t\tresult.stop.bind( result );\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}\n\n\tjQuery.map( props, createTween, animation );\n\n\tif ( isFunction( animation.opts.start ) ) {\n\t\tanimation.opts.start.call( elem, animation );\n\t}\n\n\t// Attach callbacks from options\n\tanimation\n\t\t.progress( animation.opts.progress )\n\t\t.done( animation.opts.done, animation.opts.complete )\n\t\t.fail( animation.opts.fail )\n\t\t.always( animation.opts.always );\n\n\tjQuery.fx.timer(\n\t\tjQuery.extend( tick, {\n\t\t\telem: elem,\n\t\t\tanim: animation,\n\t\t\tqueue: animation.opts.queue\n\t\t} )\n\t);\n\n\treturn animation;\n}\n\njQuery.Animation = jQuery.extend( Animation, {\n\n\ttweeners: {\n\t\t\"*\": [ function( prop, value ) {\n\t\t\tvar tween = this.createTween( prop, value );\n\t\t\tadjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );\n\t\t\treturn tween;\n\t\t} ]\n\t},\n\n\ttweener: function( props, callback ) {\n\t\tif ( isFunction( props ) ) {\n\t\t\tcallback = props;\n\t\t\tprops = [ \"*\" ];\n\t\t} else {\n\t\t\tprops = props.match( rnothtmlwhite );\n\t\t}\n\n\t\tvar prop,\n\t\t\tindex = 0,\n\t\t\tlength = props.length;\n\n\t\tfor ( ; index < length; index++ ) {\n\t\t\tprop = props[ index ];\n\t\t\tAnimation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];\n\t\t\tAnimation.tweeners[ prop ].unshift( callback );\n\t\t}\n\t},\n\n\tprefilters: [ defaultPrefilter ],\n\n\tprefilter: function( callback, prepend ) {\n\t\tif ( prepend ) {\n\t\t\tAnimation.prefilters.unshift( callback );\n\t\t} else {\n\t\t\tAnimation.prefilters.push( callback );\n\t\t}\n\t}\n} );\n\njQuery.speed = function( speed, easing, fn ) {\n\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\n\t\tcomplete: fn || !fn && easing ||\n\t\t\tisFunction( speed ) && speed,\n\t\tduration: speed,\n\t\teasing: fn && easing || easing && !isFunction( easing ) && easing\n\t};\n\n\t// Go to the end state if fx are off\n\tif ( jQuery.fx.off ) {\n\t\topt.duration = 0;\n\n\t} else {\n\t\tif ( typeof opt.duration !== \"number\" ) {\n\t\t\tif ( opt.duration in jQuery.fx.speeds ) {\n\t\t\t\topt.duration = jQuery.fx.speeds[ opt.duration ];\n\n\t\t\t} else {\n\t\t\t\topt.duration = jQuery.fx.speeds._default;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Normalize opt.queue - true/undefined/null -> \"fx\"\n\tif ( opt.queue == null || opt.queue === true ) {\n\t\topt.queue = \"fx\";\n\t}\n\n\t// Queueing\n\topt.old = opt.complete;\n\n\topt.complete = function() {\n\t\tif ( isFunction( opt.old ) ) {\n\t\t\topt.old.call( this );\n\t\t}\n\n\t\tif ( opt.queue ) {\n\t\t\tjQuery.dequeue( this, opt.queue );\n\t\t}\n\t};\n\n\treturn opt;\n};\n\njQuery.fn.extend( {\n\tfadeTo: function( speed, to, easing, callback ) {\n\n\t\t// Show any hidden elements after setting opacity to 0\n\t\treturn this.filter( isHiddenWithinTree ).css( \"opacity\", 0 ).show()\n\n\t\t\t// Animate to the value specified\n\t\t\t.end().animate( { opacity: to }, speed, easing, callback );\n\t},\n\tanimate: function( prop, speed, easing, callback ) {\n\t\tvar empty = jQuery.isEmptyObject( prop ),\n\t\t\toptall = jQuery.speed( speed, easing, callback ),\n\t\t\tdoAnimation = function() {\n\n\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\n\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\n\n\t\t\t\t// Empty animations, or finishing resolves immediately\n\t\t\t\tif ( empty || dataPriv.get( this, \"finish\" ) ) {\n\t\t\t\t\tanim.stop( true );\n\t\t\t\t}\n\t\t\t};\n\t\t\tdoAnimation.finish = doAnimation;\n\n\t\treturn empty || optall.queue === false ?\n\t\t\tthis.each( doAnimation ) :\n\t\t\tthis.queue( optall.queue, doAnimation );\n\t},\n\tstop: function( type, clearQueue, gotoEnd ) {\n\t\tvar stopQueue = function( hooks ) {\n\t\t\tvar stop = hooks.stop;\n\t\t\tdelete hooks.stop;\n\t\t\tstop( gotoEnd );\n\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tgotoEnd = clearQueue;\n\t\t\tclearQueue = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\tif ( clearQueue && type !== false ) {\n\t\t\tthis.queue( type || \"fx\", [] );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar dequeue = true,\n\t\t\t\tindex = type != null && type + \"queueHooks\",\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tdata = dataPriv.get( this );\n\n\t\t\tif ( index ) {\n\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\n\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( index in data ) {\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\n\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this &&\n\t\t\t\t\t( type == null || timers[ index ].queue === type ) ) {\n\n\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\n\t\t\t\t\tdequeue = false;\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Start the next in the queue if the last step wasn't forced.\n\t\t\t// Timers currently will call their complete callbacks, which\n\t\t\t// will dequeue but only if they were gotoEnd.\n\t\t\tif ( dequeue || !gotoEnd ) {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t}\n\t\t} );\n\t},\n\tfinish: function( type ) {\n\t\tif ( type !== false ) {\n\t\t\ttype = type || \"fx\";\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tvar index,\n\t\t\t\tdata = dataPriv.get( this ),\n\t\t\t\tqueue = data[ type + \"queue\" ],\n\t\t\t\thooks = data[ type + \"queueHooks\" ],\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tlength = queue ? queue.length : 0;\n\n\t\t\t// Enable finishing flag on private data\n\t\t\tdata.finish = true;\n\n\t\t\t// Empty the queue first\n\t\t\tjQuery.queue( this, type, [] );\n\n\t\t\tif ( hooks && hooks.stop ) {\n\t\t\t\thooks.stop.call( this, true );\n\t\t\t}\n\n\t\t\t// Look for any active animations, and finish them\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\n\t\t\t\t\ttimers[ index ].anim.stop( true );\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Look for any animations in the old queue and finish them\n\t\t\tfor ( index = 0; index < length; index++ ) {\n\t\t\t\tif ( queue[ index ] && queue[ index ].finish ) {\n\t\t\t\t\tqueue[ index ].finish.call( this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Turn off finishing flag\n\t\t\tdelete data.finish;\n\t\t} );\n\t}\n} );\n\njQuery.each( [ \"toggle\", \"show\", \"hide\" ], function( i, name ) {\n\tvar cssFn = jQuery.fn[ name ];\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn speed == null || typeof speed === \"boolean\" ?\n\t\t\tcssFn.apply( this, arguments ) :\n\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\n\t};\n} );\n\n// Generate shortcuts for custom animations\njQuery.each( {\n\tslideDown: genFx( \"show\" ),\n\tslideUp: genFx( \"hide\" ),\n\tslideToggle: genFx( \"toggle\" ),\n\tfadeIn: { opacity: \"show\" },\n\tfadeOut: { opacity: \"hide\" },\n\tfadeToggle: { opacity: \"toggle\" }\n}, function( name, props ) {\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn this.animate( props, speed, easing, callback );\n\t};\n} );\n\njQuery.timers = [];\njQuery.fx.tick = function() {\n\tvar timer,\n\t\ti = 0,\n\t\ttimers = jQuery.timers;\n\n\tfxNow = Date.now();\n\n\tfor ( ; i < timers.length; i++ ) {\n\t\ttimer = timers[ i ];\n\n\t\t// Run the timer and safely remove it when done (allowing for external removal)\n\t\tif ( !timer() && timers[ i ] === timer ) {\n\t\t\ttimers.splice( i--, 1 );\n\t\t}\n\t}\n\n\tif ( !timers.length ) {\n\t\tjQuery.fx.stop();\n\t}\n\tfxNow = undefined;\n};\n\njQuery.fx.timer = function( timer ) {\n\tjQuery.timers.push( timer );\n\tjQuery.fx.start();\n};\n\njQuery.fx.interval = 13;\njQuery.fx.start = function() {\n\tif ( inProgress ) {\n\t\treturn;\n\t}\n\n\tinProgress = true;\n\tschedule();\n};\n\njQuery.fx.stop = function() {\n\tinProgress = null;\n};\n\njQuery.fx.speeds = {\n\tslow: 600,\n\tfast: 200,\n\n\t// Default speed\n\t_default: 400\n};\n\n\n// Based off of the plugin by Clint Helfers, with permission.\n// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/\njQuery.fn.delay = function( time, type ) {\n\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\n\ttype = type || \"fx\";\n\n\treturn this.queue( type, function( next, hooks ) {\n\t\tvar timeout = window.setTimeout( next, time );\n\t\thooks.stop = function() {\n\t\t\twindow.clearTimeout( timeout );\n\t\t};\n\t} );\n};\n\n\n( function() {\n\tvar input = document.createElement( \"input\" ),\n\t\tselect = document.createElement( \"select\" ),\n\t\topt = select.appendChild( document.createElement( \"option\" ) );\n\n\tinput.type = \"checkbox\";\n\n\t// Support: Android <=4.3 only\n\t// Default value for a checkbox should be \"on\"\n\tsupport.checkOn = input.value !== \"\";\n\n\t// Support: IE <=11 only\n\t// Must access selectedIndex to make default options select\n\tsupport.optSelected = opt.selected;\n\n\t// Support: IE <=11 only\n\t// An input loses its value after becoming a radio\n\tinput = document.createElement( \"input\" );\n\tinput.value = \"t\";\n\tinput.type = \"radio\";\n\tsupport.radioValue = input.value === \"t\";\n} )();\n\n\nvar boolHook,\n\tattrHandle = jQuery.expr.attrHandle;\n\njQuery.fn.extend( {\n\tattr: function( name, value ) {\n\t\treturn access( this, jQuery.attr, name, value, arguments.length > 1 );\n\t},\n\n\tremoveAttr: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.removeAttr( this, name );\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tattr: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set attributes on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Fallback to prop when attributes are not supported\n\t\tif ( typeof elem.getAttribute === \"undefined\" ) {\n\t\t\treturn jQuery.prop( elem, name, value );\n\t\t}\n\n\t\t// Attribute hooks are determined by the lowercase version\n\t\t// Grab necessary hook if one is defined\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\t\t\thooks = jQuery.attrHooks[ name.toLowerCase() ] ||\n\t\t\t\t( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( value === null ) {\n\t\t\t\tjQuery.removeAttr( elem, name );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\telem.setAttribute( name, value + \"\" );\n\t\t\treturn value;\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\tret = jQuery.find.attr( elem, name );\n\n\t\t// Non-existent attributes return null, we normalize to undefined\n\t\treturn ret == null ? undefined : ret;\n\t},\n\n\tattrHooks: {\n\t\ttype: {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( !support.radioValue && value === \"radio\" &&\n\t\t\t\t\tnodeName( elem, \"input\" ) ) {\n\t\t\t\t\tvar val = elem.value;\n\t\t\t\t\telem.setAttribute( \"type\", value );\n\t\t\t\t\tif ( val ) {\n\t\t\t\t\t\telem.value = val;\n\t\t\t\t\t}\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tremoveAttr: function( elem, value ) {\n\t\tvar name,\n\t\t\ti = 0,\n\n\t\t\t// Attribute names can contain non-HTML whitespace characters\n\t\t\t// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n\t\t\tattrNames = value && value.match( rnothtmlwhite );\n\n\t\tif ( attrNames && elem.nodeType === 1 ) {\n\t\t\twhile ( ( name = attrNames[ i++ ] ) ) {\n\t\t\t\telem.removeAttribute( name );\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Hooks for boolean attributes\nboolHook = {\n\tset: function( elem, value, name ) {\n\t\tif ( value === false ) {\n\n\t\t\t// Remove boolean attributes when set to false\n\t\t\tjQuery.removeAttr( elem, name );\n\t\t} else {\n\t\t\telem.setAttribute( name, name );\n\t\t}\n\t\treturn name;\n\t}\n};\n\njQuery.each( jQuery.expr.match.bool.source.match( /\\w+/g ), function( i, name ) {\n\tvar getter = attrHandle[ name ] || jQuery.find.attr;\n\n\tattrHandle[ name ] = function( elem, name, isXML ) {\n\t\tvar ret, handle,\n\t\t\tlowercaseName = name.toLowerCase();\n\n\t\tif ( !isXML ) {\n\n\t\t\t// Avoid an infinite loop by temporarily removing this function from the getter\n\t\t\thandle = attrHandle[ lowercaseName ];\n\t\t\tattrHandle[ lowercaseName ] = ret;\n\t\t\tret = getter( elem, name, isXML ) != null ?\n\t\t\t\tlowercaseName :\n\t\t\t\tnull;\n\t\t\tattrHandle[ lowercaseName ] = handle;\n\t\t}\n\t\treturn ret;\n\t};\n} );\n\n\n\n\nvar rfocusable = /^(?:input|select|textarea|button)$/i,\n\trclickable = /^(?:a|area)$/i;\n\njQuery.fn.extend( {\n\tprop: function( name, value ) {\n\t\treturn access( this, jQuery.prop, name, value, arguments.length > 1 );\n\t},\n\n\tremoveProp: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tdelete this[ jQuery.propFix[ name ] || name ];\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tprop: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set properties on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// Fix name and attach hooks\n\t\t\tname = jQuery.propFix[ name ] || name;\n\t\t\thooks = jQuery.propHooks[ name ];\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\treturn ( elem[ name ] = value );\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\treturn elem[ name ];\n\t},\n\n\tpropHooks: {\n\t\ttabIndex: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\t// Support: IE <=9 - 11 only\n\t\t\t\t// elem.tabIndex doesn't always return the\n\t\t\t\t// correct value when it hasn't been explicitly set\n\t\t\t\t// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\n\t\t\t\t// Use proper attribute retrieval(#12072)\n\t\t\t\tvar tabindex = jQuery.find.attr( elem, \"tabindex\" );\n\n\t\t\t\tif ( tabindex ) {\n\t\t\t\t\treturn parseInt( tabindex, 10 );\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\trfocusable.test( elem.nodeName ) ||\n\t\t\t\t\trclickable.test( elem.nodeName ) &&\n\t\t\t\t\telem.href\n\t\t\t\t) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t},\n\n\tpropFix: {\n\t\t\"for\": \"htmlFor\",\n\t\t\"class\": \"className\"\n\t}\n} );\n\n// Support: IE <=11 only\n// Accessing the selectedIndex property\n// forces the browser to respect setting selected\n// on the option\n// The getter ensures a default option is selected\n// when in an optgroup\n// eslint rule \"no-unused-expressions\" is disabled for this code\n// since it considers such accessions noop\nif ( !support.optSelected ) {\n\tjQuery.propHooks.selected = {\n\t\tget: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent && parent.parentNode ) {\n\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tset: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent ) {\n\t\t\t\tparent.selectedIndex;\n\n\t\t\t\tif ( parent.parentNode ) {\n\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\njQuery.each( [\n\t\"tabIndex\",\n\t\"readOnly\",\n\t\"maxLength\",\n\t\"cellSpacing\",\n\t\"cellPadding\",\n\t\"rowSpan\",\n\t\"colSpan\",\n\t\"useMap\",\n\t\"frameBorder\",\n\t\"contentEditable\"\n], function() {\n\tjQuery.propFix[ this.toLowerCase() ] = this;\n} );\n\n\n\n\n\t// Strip and collapse whitespace according to HTML spec\n\t// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace\n\tfunction stripAndCollapse( value ) {\n\t\tvar tokens = value.match( rnothtmlwhite ) || [];\n\t\treturn tokens.join( \" \" );\n\t}\n\n\nfunction getClass( elem ) {\n\treturn elem.getAttribute && elem.getAttribute( \"class\" ) || \"\";\n}\n\nfunction classesToArray( value ) {\n\tif ( Array.isArray( value ) ) {\n\t\treturn value;\n\t}\n\tif ( typeof value === \"string\" ) {\n\t\treturn value.match( rnothtmlwhite ) || [];\n\t}\n\treturn [];\n}\n\njQuery.fn.extend( {\n\taddClass: function( value ) {\n\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\ti = 0;\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).addClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tclasses = classesToArray( value );\n\n\t\tif ( classes.length ) {\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\tcurValue = getClass( elem );\n\t\t\t\tcur = elem.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\t\t\t\t\t\tif ( cur.indexOf( \" \" + clazz + \" \" ) < 0 ) {\n\t\t\t\t\t\t\tcur += clazz + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tremoveClass: function( value ) {\n\t\tvar classes, elem, cur, curValue, clazz, j, finalValue,\n\t\t\ti = 0;\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tif ( !arguments.length ) {\n\t\t\treturn this.attr( \"class\", \"\" );\n\t\t}\n\n\t\tclasses = classesToArray( value );\n\n\t\tif ( classes.length ) {\n\t\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\t\tcurValue = getClass( elem );\n\n\t\t\t\t// This expression is here for better compressibility (see addClass)\n\t\t\t\tcur = elem.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ( ( clazz = classes[ j++ ] ) ) {\n\n\t\t\t\t\t\t// Remove *all* instances\n\t\t\t\t\t\twhile ( cur.indexOf( \" \" + clazz + \" \" ) > -1 ) {\n\t\t\t\t\t\t\tcur = cur.replace( \" \" + clazz + \" \", \" \" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\telem.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\ttoggleClass: function( value, stateVal ) {\n\t\tvar type = typeof value,\n\t\t\tisValidValue = type === \"string\" || Array.isArray( value );\n\n\t\tif ( typeof stateVal === \"boolean\" && isValidValue ) {\n\t\t\treturn stateVal ? this.addClass( value ) : this.removeClass( value );\n\t\t}\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).toggleClass(\n\t\t\t\t\tvalue.call( this, i, getClass( this ), stateVal ),\n\t\t\t\t\tstateVal\n\t\t\t\t);\n\t\t\t} );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar className, i, self, classNames;\n\n\t\t\tif ( isValidValue ) {\n\n\t\t\t\t// Toggle individual class names\n\t\t\t\ti = 0;\n\t\t\t\tself = jQuery( this );\n\t\t\t\tclassNames = classesToArray( value );\n\n\t\t\t\twhile ( ( className = classNames[ i++ ] ) ) {\n\n\t\t\t\t\t// Check each className given, space separated list\n\t\t\t\t\tif ( self.hasClass( className ) ) {\n\t\t\t\t\t\tself.removeClass( className );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.addClass( className );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Toggle whole class name\n\t\t\t} else if ( value === undefined || type === \"boolean\" ) {\n\t\t\t\tclassName = getClass( this );\n\t\t\t\tif ( className ) {\n\n\t\t\t\t\t// Store className if set\n\t\t\t\t\tdataPriv.set( this, \"__className__\", className );\n\t\t\t\t}\n\n\t\t\t\t// If the element has a class name or if we're passed `false`,\n\t\t\t\t// then remove the whole classname (if there was one, the above saved it).\n\t\t\t\t// Otherwise bring back whatever was previously saved (if anything),\n\t\t\t\t// falling back to the empty string if nothing was stored.\n\t\t\t\tif ( this.setAttribute ) {\n\t\t\t\t\tthis.setAttribute( \"class\",\n\t\t\t\t\t\tclassName || value === false ?\n\t\t\t\t\t\t\"\" :\n\t\t\t\t\t\tdataPriv.get( this, \"__className__\" ) || \"\"\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\thasClass: function( selector ) {\n\t\tvar className, elem,\n\t\t\ti = 0;\n\n\t\tclassName = \" \" + selector + \" \";\n\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\tif ( elem.nodeType === 1 &&\n\t\t\t\t( \" \" + stripAndCollapse( getClass( elem ) ) + \" \" ).indexOf( className ) > -1 ) {\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n} );\n\n\n\n\nvar rreturn = /\\r/g;\n\njQuery.fn.extend( {\n\tval: function( value ) {\n\t\tvar hooks, ret, valueIsFunction,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !arguments.length ) {\n\t\t\tif ( elem ) {\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] ||\n\t\t\t\t\tjQuery.valHooks[ elem.nodeName.toLowerCase() ];\n\n\t\t\t\tif ( hooks &&\n\t\t\t\t\t\"get\" in hooks &&\n\t\t\t\t\t( ret = hooks.get( elem, \"value\" ) ) !== undefined\n\t\t\t\t) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\tret = elem.value;\n\n\t\t\t\t// Handle most common string cases\n\t\t\t\tif ( typeof ret === \"string\" ) {\n\t\t\t\t\treturn ret.replace( rreturn, \"\" );\n\t\t\t\t}\n\n\t\t\t\t// Handle cases where value is null/undef or number\n\t\t\t\treturn ret == null ? \"\" : ret;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalueIsFunction = isFunction( value );\n\n\t\treturn this.each( function( i ) {\n\t\t\tvar val;\n\n\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( valueIsFunction ) {\n\t\t\t\tval = value.call( this, i, jQuery( this ).val() );\n\t\t\t} else {\n\t\t\t\tval = value;\n\t\t\t}\n\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\tif ( val == null ) {\n\t\t\t\tval = \"\";\n\n\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\tval += \"\";\n\n\t\t\t} else if ( Array.isArray( val ) ) {\n\t\t\t\tval = jQuery.map( val, function( value ) {\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\n\n\t\t\t// If set returns undefined, fall back to normal setting\n\t\t\tif ( !hooks || !( \"set\" in hooks ) || hooks.set( this, val, \"value\" ) === undefined ) {\n\t\t\t\tthis.value = val;\n\t\t\t}\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tvalHooks: {\n\t\toption: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\tvar val = jQuery.find.attr( elem, \"value\" );\n\t\t\t\treturn val != null ?\n\t\t\t\t\tval :\n\n\t\t\t\t\t// Support: IE <=10 - 11 only\n\t\t\t\t\t// option.text throws exceptions (#14686, #14858)\n\t\t\t\t\t// Strip and collapse whitespace\n\t\t\t\t\t// https://html.spec.whatwg.org/#strip-and-collapse-whitespace\n\t\t\t\t\tstripAndCollapse( jQuery.text( elem ) );\n\t\t\t}\n\t\t},\n\t\tselect: {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar value, option, i,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tindex = elem.selectedIndex,\n\t\t\t\t\tone = elem.type === \"select-one\",\n\t\t\t\t\tvalues = one ? null : [],\n\t\t\t\t\tmax = one ? index + 1 : options.length;\n\n\t\t\t\tif ( index < 0 ) {\n\t\t\t\t\ti = max;\n\n\t\t\t\t} else {\n\t\t\t\t\ti = one ? index : 0;\n\t\t\t\t}\n\n\t\t\t\t// Loop through all the selected options\n\t\t\t\tfor ( ; i < max; i++ ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t// IE8-9 doesn't update selected after form reset (#2551)\n\t\t\t\t\tif ( ( option.selected || i === index ) &&\n\n\t\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\t\t\t!option.disabled &&\n\t\t\t\t\t\t\t( !option.parentNode.disabled ||\n\t\t\t\t\t\t\t\t!nodeName( option.parentNode, \"optgroup\" ) ) ) {\n\n\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\tvalue = jQuery( option ).val();\n\n\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn values;\n\t\t\t},\n\n\t\t\tset: function( elem, value ) {\n\t\t\t\tvar optionSet, option,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tvalues = jQuery.makeArray( value ),\n\t\t\t\t\ti = options.length;\n\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t/* eslint-disable no-cond-assign */\n\n\t\t\t\t\tif ( option.selected =\n\t\t\t\t\t\tjQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1\n\t\t\t\t\t) {\n\t\t\t\t\t\toptionSet = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* eslint-enable no-cond-assign */\n\t\t\t\t}\n\n\t\t\t\t// Force browsers to behave consistently when non-matching value is set\n\t\t\t\tif ( !optionSet ) {\n\t\t\t\t\telem.selectedIndex = -1;\n\t\t\t\t}\n\t\t\t\treturn values;\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Radios and checkboxes getter/setter\njQuery.each( [ \"radio\", \"checkbox\" ], function() {\n\tjQuery.valHooks[ this ] = {\n\t\tset: function( elem, value ) {\n\t\t\tif ( Array.isArray( value ) ) {\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );\n\t\t\t}\n\t\t}\n\t};\n\tif ( !support.checkOn ) {\n\t\tjQuery.valHooks[ this ].get = function( elem ) {\n\t\t\treturn elem.getAttribute( \"value\" ) === null ? \"on\" : elem.value;\n\t\t};\n\t}\n} );\n\n\n\n\n// Return jQuery for attributes-only inclusion\n\n\nsupport.focusin = \"onfocusin\" in window;\n\n\nvar rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\n\tstopPropagationCallback = function( e ) {\n\t\te.stopPropagation();\n\t};\n\njQuery.extend( jQuery.event, {\n\n\ttrigger: function( event, data, elem, onlyHandlers ) {\n\n\t\tvar i, cur, tmp, bubbleType, ontype, handle, special, lastElement,\n\t\t\teventPath = [ elem || document ],\n\t\t\ttype = hasOwn.call( event, \"type\" ) ? event.type : event,\n\t\t\tnamespaces = hasOwn.call( event, \"namespace\" ) ? event.namespace.split( \".\" ) : [];\n\n\t\tcur = lastElement = tmp = elem = elem || document;\n\n\t\t// Don't do events on text and comment nodes\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( type.indexOf( \".\" ) > -1 ) {\n\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\t\t\tnamespaces = type.split( \".\" );\n\t\t\ttype = namespaces.shift();\n\t\t\tnamespaces.sort();\n\t\t}\n\t\tontype = type.indexOf( \":\" ) < 0 && \"on\" + type;\n\n\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\n\t\tevent = event[ jQuery.expando ] ?\n\t\t\tevent :\n\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\n\n\t\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\n\t\tevent.isTrigger = onlyHandlers ? 2 : 3;\n\t\tevent.namespace = namespaces.join( \".\" );\n\t\tevent.rnamespace = event.namespace ?\n\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" ) :\n\t\t\tnull;\n\n\t\t// Clean up the event in case it is being reused\n\t\tevent.result = undefined;\n\t\tif ( !event.target ) {\n\t\t\tevent.target = elem;\n\t\t}\n\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\t\tdata = data == null ?\n\t\t\t[ event ] :\n\t\t\tjQuery.makeArray( data, [ event ] );\n\n\t\t// Allow special events to draw outside the lines\n\t\tspecial = jQuery.event.special[ type ] || {};\n\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine event propagation path in advance, per W3C events spec (#9951)\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\n\t\tif ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {\n\n\t\t\tbubbleType = special.delegateType || type;\n\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\n\t\t\t\tcur = cur.parentNode;\n\t\t\t}\n\t\t\tfor ( ; cur; cur = cur.parentNode ) {\n\t\t\t\teventPath.push( cur );\n\t\t\t\ttmp = cur;\n\t\t\t}\n\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\t\t\tif ( tmp === ( elem.ownerDocument || document ) ) {\n\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\n\t\t\t}\n\t\t}\n\n\t\t// Fire handlers on the event path\n\t\ti = 0;\n\t\twhile ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tlastElement = cur;\n\t\t\tevent.type = i > 1 ?\n\t\t\t\tbubbleType :\n\t\t\t\tspecial.bindType || type;\n\n\t\t\t// jQuery handler\n\t\t\thandle = ( dataPriv.get( cur, \"events\" ) || {} )[ event.type ] &&\n\t\t\t\tdataPriv.get( cur, \"handle\" );\n\t\t\tif ( handle ) {\n\t\t\t\thandle.apply( cur, data );\n\t\t\t}\n\n\t\t\t// Native handler\n\t\t\thandle = ontype && cur[ ontype ];\n\t\t\tif ( handle && handle.apply && acceptData( cur ) ) {\n\t\t\t\tevent.result = handle.apply( cur, data );\n\t\t\t\tif ( event.result === false ) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tevent.type = type;\n\n\t\t// If nobody prevented the default action, do it now\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\n\t\t\tif ( ( !special._default ||\n\t\t\t\tspecial._default.apply( eventPath.pop(), data ) === false ) &&\n\t\t\t\tacceptData( elem ) ) {\n\n\t\t\t\t// Call a native DOM method on the target with the same name as the event.\n\t\t\t\t// Don't do default actions on window, that's where global variables be (#6170)\n\t\t\t\tif ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {\n\n\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\t\t\t\t\ttmp = elem[ ontype ];\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\t\t\t\t\tjQuery.event.triggered = type;\n\n\t\t\t\t\tif ( event.isPropagationStopped() ) {\n\t\t\t\t\t\tlastElement.addEventListener( type, stopPropagationCallback );\n\t\t\t\t\t}\n\n\t\t\t\t\telem[ type ]();\n\n\t\t\t\t\tif ( event.isPropagationStopped() ) {\n\t\t\t\t\t\tlastElement.removeEventListener( type, stopPropagationCallback );\n\t\t\t\t\t}\n\n\t\t\t\t\tjQuery.event.triggered = undefined;\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\t// Piggyback on a donor event to simulate a different one\n\t// Used only for `focus(in | out)` events\n\tsimulate: function( type, elem, event ) {\n\t\tvar e = jQuery.extend(\n\t\t\tnew jQuery.Event(),\n\t\t\tevent,\n\t\t\t{\n\t\t\t\ttype: type,\n\t\t\t\tisSimulated: true\n\t\t\t}\n\t\t);\n\n\t\tjQuery.event.trigger( e, null, elem );\n\t}\n\n} );\n\njQuery.fn.extend( {\n\n\ttrigger: function( type, data ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.trigger( type, data, this );\n\t\t} );\n\t},\n\ttriggerHandler: function( type, data ) {\n\t\tvar elem = this[ 0 ];\n\t\tif ( elem ) {\n\t\t\treturn jQuery.event.trigger( type, data, elem, true );\n\t\t}\n\t}\n} );\n\n\n// Support: Firefox <=44\n// Firefox doesn't have focus(in | out) events\n// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\n//\n// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\n// focus(in | out) events fire after focus & blur events,\n// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\n// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\nif ( !support.focusin ) {\n\tjQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( orig, fix ) {\n\n\t\t// Attach a single capturing handler on the document while someone wants focusin/focusout\n\t\tvar handler = function( event ) {\n\t\t\tjQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );\n\t\t};\n\n\t\tjQuery.event.special[ fix ] = {\n\t\t\tsetup: function() {\n\t\t\t\tvar doc = this.ownerDocument || this,\n\t\t\t\t\tattaches = dataPriv.access( doc, fix );\n\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tdoc.addEventListener( orig, handler, true );\n\t\t\t\t}\n\t\t\t\tdataPriv.access( doc, fix, ( attaches || 0 ) + 1 );\n\t\t\t},\n\t\t\tteardown: function() {\n\t\t\t\tvar doc = this.ownerDocument || this,\n\t\t\t\t\tattaches = dataPriv.access( doc, fix ) - 1;\n\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tdoc.removeEventListener( orig, handler, true );\n\t\t\t\t\tdataPriv.remove( doc, fix );\n\n\t\t\t\t} else {\n\t\t\t\t\tdataPriv.access( doc, fix, attaches );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t} );\n}\nvar location = window.location;\n\nvar nonce = Date.now();\n\nvar rquery = ( /\\?/ );\n\n\n\n// Cross-browser xml parsing\njQuery.parseXML = function( data ) {\n\tvar xml;\n\tif ( !data || typeof data !== \"string\" ) {\n\t\treturn null;\n\t}\n\n\t// Support: IE 9 - 11 only\n\t// IE throws on parseFromString with invalid input.\n\ttry {\n\t\txml = ( new window.DOMParser() ).parseFromString( data, \"text/xml\" );\n\t} catch ( e ) {\n\t\txml = undefined;\n\t}\n\n\tif ( !xml || xml.getElementsByTagName( \"parsererror\" ).length ) {\n\t\tjQuery.error( \"Invalid XML: \" + data );\n\t}\n\treturn xml;\n};\n\n\nvar\n\trbracket = /\\[\\]$/,\n\trCRLF = /\\r?\\n/g,\n\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\n\trsubmittable = /^(?:input|select|textarea|keygen)/i;\n\nfunction buildParams( prefix, obj, traditional, add ) {\n\tvar name;\n\n\tif ( Array.isArray( obj ) ) {\n\n\t\t// Serialize array item.\n\t\tjQuery.each( obj, function( i, v ) {\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\n\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\tadd( prefix, v );\n\n\t\t\t} else {\n\n\t\t\t\t// Item is non-scalar (array or object), encode its numeric index.\n\t\t\t\tbuildParams(\n\t\t\t\t\tprefix + \"[\" + ( typeof v === \"object\" && v != null ? i : \"\" ) + \"]\",\n\t\t\t\t\tv,\n\t\t\t\t\ttraditional,\n\t\t\t\t\tadd\n\t\t\t\t);\n\t\t\t}\n\t\t} );\n\n\t} else if ( !traditional && toType( obj ) === \"object\" ) {\n\n\t\t// Serialize object item.\n\t\tfor ( name in obj ) {\n\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t}\n\n\t} else {\n\n\t\t// Serialize scalar item.\n\t\tadd( prefix, obj );\n\t}\n}\n\n// Serialize an array of form elements or a set of\n// key/values into a query string\njQuery.param = function( a, traditional ) {\n\tvar prefix,\n\t\ts = [],\n\t\tadd = function( key, valueOrFunction ) {\n\n\t\t\t// If value is a function, invoke it and use its return value\n\t\t\tvar value = isFunction( valueOrFunction ) ?\n\t\t\t\tvalueOrFunction() :\n\t\t\t\tvalueOrFunction;\n\n\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" +\n\t\t\t\tencodeURIComponent( value == null ? \"\" : value );\n\t\t};\n\n\t// If an array was passed in, assume that it is an array of form elements.\n\tif ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\n\t\t// Serialize the form elements\n\t\tjQuery.each( a, function() {\n\t\t\tadd( this.name, this.value );\n\t\t} );\n\n\t} else {\n\n\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t// did it), otherwise encode params recursively.\n\t\tfor ( prefix in a ) {\n\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t}\n\t}\n\n\t// Return the resulting serialization\n\treturn s.join( \"&\" );\n};\n\njQuery.fn.extend( {\n\tserialize: function() {\n\t\treturn jQuery.param( this.serializeArray() );\n\t},\n\tserializeArray: function() {\n\t\treturn this.map( function() {\n\n\t\t\t// Can add propHook for \"elements\" to filter or add form elements\n\t\t\tvar elements = jQuery.prop( this, \"elements\" );\n\t\t\treturn elements ? jQuery.makeArray( elements ) : this;\n\t\t} )\n\t\t.filter( function() {\n\t\t\tvar type = this.type;\n\n\t\t\t// Use .is( \":disabled\" ) so that fieldset[disabled] works\n\t\t\treturn this.name && !jQuery( this ).is( \":disabled\" ) &&\n\t\t\t\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\n\t\t\t\t( this.checked || !rcheckableType.test( type ) );\n\t\t} )\n\t\t.map( function( i, elem ) {\n\t\t\tvar val = jQuery( this ).val();\n\n\t\t\tif ( val == null ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif ( Array.isArray( val ) ) {\n\t\t\t\treturn jQuery.map( val, function( val ) {\n\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t} ).get();\n\t}\n} );\n\n\nvar\n\tr20 = /%20/g,\n\trhash = /#.*$/,\n\trantiCache = /([?&])_=[^&]*/,\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)$/mg,\n\n\t// #7653, #8125, #8152: local protocol detection\n\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\n\trnoContent = /^(?:GET|HEAD)$/,\n\trprotocol = /^\\/\\//,\n\n\t/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t * - BEFORE asking for a transport\n\t * - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol \"*\" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t */\n\tprefilters = {},\n\n\t/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol \"*\" can be used\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t */\n\ttransports = {},\n\n\t// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\n\tallTypes = \"*/\".concat( \"*\" ),\n\n\t// Anchor tag for parsing the document origin\n\toriginAnchor = document.createElement( \"a\" );\n\toriginAnchor.href = location.href;\n\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports( structure ) {\n\n\t// dataTypeExpression is optional and defaults to \"*\"\n\treturn function( dataTypeExpression, func ) {\n\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\tfunc = dataTypeExpression;\n\t\t\tdataTypeExpression = \"*\";\n\t\t}\n\n\t\tvar dataType,\n\t\t\ti = 0,\n\t\t\tdataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];\n\n\t\tif ( isFunction( func ) ) {\n\n\t\t\t// For each dataType in the dataTypeExpression\n\t\t\twhile ( ( dataType = dataTypes[ i++ ] ) ) {\n\n\t\t\t\t// Prepend if requested\n\t\t\t\tif ( dataType[ 0 ] === \"+\" ) {\n\t\t\t\t\tdataType = dataType.slice( 1 ) || \"*\";\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );\n\n\t\t\t\t// Otherwise append\n\t\t\t\t} else {\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).push( func );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\n// Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n\n\tvar inspected = {},\n\t\tseekingTransport = ( structure === transports );\n\n\tfunction inspect( dataType ) {\n\t\tvar selected;\n\t\tinspected[ dataType ] = true;\n\t\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\n\t\t\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\n\t\t\tif ( typeof dataTypeOrTransport === \"string\" &&\n\t\t\t\t!seekingTransport && !inspected[ dataTypeOrTransport ] ) {\n\n\t\t\t\toptions.dataTypes.unshift( dataTypeOrTransport );\n\t\t\t\tinspect( dataTypeOrTransport );\n\t\t\t\treturn false;\n\t\t\t} else if ( seekingTransport ) {\n\t\t\t\treturn !( selected = dataTypeOrTransport );\n\t\t\t}\n\t\t} );\n\t\treturn selected;\n\t}\n\n\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \"*\" ] && inspect( \"*\" );\n}\n\n// A special extend for ajax options\n// that takes \"flat\" options (not to be deep extended)\n// Fixes #9887\nfunction ajaxExtend( target, src ) {\n\tvar key, deep,\n\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\n\n\tfor ( key in src ) {\n\t\tif ( src[ key ] !== undefined ) {\n\t\t\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\n\t\t}\n\t}\n\tif ( deep ) {\n\t\tjQuery.extend( true, target, deep );\n\t}\n\n\treturn target;\n}\n\n/* Handles responses to an ajax request:\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\n\tvar ct, type, finalDataType, firstDataType,\n\t\tcontents = s.contents,\n\t\tdataTypes = s.dataTypes;\n\n\t// Remove auto dataType and get content-type in the process\n\twhile ( dataTypes[ 0 ] === \"*\" ) {\n\t\tdataTypes.shift();\n\t\tif ( ct === undefined ) {\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"Content-Type\" );\n\t\t}\n\t}\n\n\t// Check if we're dealing with a known content-type\n\tif ( ct ) {\n\t\tfor ( type in contents ) {\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\tdataTypes.unshift( type );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check to see if we have a response for the expected dataType\n\tif ( dataTypes[ 0 ] in responses ) {\n\t\tfinalDataType = dataTypes[ 0 ];\n\t} else {\n\n\t\t// Try convertible dataTypes\n\t\tfor ( type in responses ) {\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[ 0 ] ] ) {\n\t\t\t\tfinalDataType = type;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( !firstDataType ) {\n\t\t\t\tfirstDataType = type;\n\t\t\t}\n\t\t}\n\n\t\t// Or just use first one\n\t\tfinalDataType = finalDataType || firstDataType;\n\t}\n\n\t// If we found a dataType\n\t// We add the dataType to the list if needed\n\t// and return the corresponding response\n\tif ( finalDataType ) {\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\tdataTypes.unshift( finalDataType );\n\t\t}\n\t\treturn responses[ finalDataType ];\n\t}\n}\n\n/* Chain conversions given the request and the original response\n * Also sets the responseXXX fields on the jqXHR instance\n */\nfunction ajaxConvert( s, response, jqXHR, isSuccess ) {\n\tvar conv2, current, conv, tmp, prev,\n\t\tconverters = {},\n\n\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\n\t\tdataTypes = s.dataTypes.slice();\n\n\t// Create converters map with lowercased keys\n\tif ( dataTypes[ 1 ] ) {\n\t\tfor ( conv in s.converters ) {\n\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\n\t\t}\n\t}\n\n\tcurrent = dataTypes.shift();\n\n\t// Convert to each sequential dataType\n\twhile ( current ) {\n\n\t\tif ( s.responseFields[ current ] ) {\n\t\t\tjqXHR[ s.responseFields[ current ] ] = response;\n\t\t}\n\n\t\t// Apply the dataFilter if provided\n\t\tif ( !prev && isSuccess && s.dataFilter ) {\n\t\t\tresponse = s.dataFilter( response, s.dataType );\n\t\t}\n\n\t\tprev = current;\n\t\tcurrent = dataTypes.shift();\n\n\t\tif ( current ) {\n\n\t\t\t// There's only work to do if current dataType is non-auto\n\t\t\tif ( current === \"*\" ) {\n\n\t\t\t\tcurrent = prev;\n\n\t\t\t// Convert response if prev dataType is non-auto and differs from current\n\t\t\t} else if ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t\t// Seek a direct converter\n\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\n\n\t\t\t\t// If none found, seek a pair\n\t\t\t\tif ( !conv ) {\n\t\t\t\t\tfor ( conv2 in converters ) {\n\n\t\t\t\t\t\t// If conv2 outputs current\n\t\t\t\t\t\ttmp = conv2.split( \" \" );\n\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\n\n\t\t\t\t\t\t\t// If prev can be converted to accepted input\n\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\n\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\n\t\t\t\t\t\t\tif ( conv ) {\n\n\t\t\t\t\t\t\t\t// Condense equivalence converters\n\t\t\t\t\t\t\t\tif ( conv === true ) {\n\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\n\n\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\n\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\n\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\n\t\t\t\t\t\t\t\t\tdataTypes.unshift( tmp[ 1 ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Apply converter (if not an equivalence)\n\t\t\t\tif ( conv !== true ) {\n\n\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\n\t\t\t\t\tif ( conv && s.throws ) {\n\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tstate: \"parsererror\",\n\t\t\t\t\t\t\t\terror: conv ? e : \"No conversion from \" + prev + \" to \" + current\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { state: \"success\", data: response };\n}\n\njQuery.extend( {\n\n\t// Counter for holding the number of active queries\n\tactive: 0,\n\n\t// Last-Modified header cache for next request\n\tlastModified: {},\n\tetag: {},\n\n\tajaxSettings: {\n\t\turl: location.href,\n\t\ttype: \"GET\",\n\t\tisLocal: rlocalProtocol.test( location.protocol ),\n\t\tglobal: true,\n\t\tprocessData: true,\n\t\tasync: true,\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\n\t\t/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\tthrows: false,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\t*/\n\n\t\taccepts: {\n\t\t\t\"*\": allTypes,\n\t\t\ttext: \"text/plain\",\n\t\t\thtml: \"text/html\",\n\t\t\txml: \"application/xml, text/xml\",\n\t\t\tjson: \"application/json, text/javascript\"\n\t\t},\n\n\t\tcontents: {\n\t\t\txml: /\\bxml\\b/,\n\t\t\thtml: /\\bhtml/,\n\t\t\tjson: /\\bjson\\b/\n\t\t},\n\n\t\tresponseFields: {\n\t\t\txml: \"responseXML\",\n\t\t\ttext: \"responseText\",\n\t\t\tjson: \"responseJSON\"\n\t\t},\n\n\t\t// Data converters\n\t\t// Keys separate source (or catchall \"*\") and destination types with a single space\n\t\tconverters: {\n\n\t\t\t// Convert anything to text\n\t\t\t\"* text\": String,\n\n\t\t\t// Text to html (true = no transformation)\n\t\t\t\"text html\": true,\n\n\t\t\t// Evaluate text as a json expression\n\t\t\t\"text json\": JSON.parse,\n\n\t\t\t// Parse text as xml\n\t\t\t\"text xml\": jQuery.parseXML\n\t\t},\n\n\t\t// For options that shouldn't be deep extended:\n\t\t// you can add your own custom options here if\n\t\t// and when you create one that shouldn't be\n\t\t// deep extended (see ajaxExtend)\n\t\tflatOptions: {\n\t\t\turl: true,\n\t\t\tcontext: true\n\t\t}\n\t},\n\n\t// Creates a full fledged settings object into target\n\t// with both ajaxSettings and settings fields.\n\t// If target is omitted, writes into ajaxSettings.\n\tajaxSetup: function( target, settings ) {\n\t\treturn settings ?\n\n\t\t\t// Building a settings object\n\t\t\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\n\n\t\t\t// Extending ajaxSettings\n\t\t\tajaxExtend( jQuery.ajaxSettings, target );\n\t},\n\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t// Main method\n\tajax: function( url, options ) {\n\n\t\t// If url is an object, simulate pre-1.5 signature\n\t\tif ( typeof url === \"object\" ) {\n\t\t\toptions = url;\n\t\t\turl = undefined;\n\t\t}\n\n\t\t// Force options to be an object\n\t\toptions = options || {};\n\n\t\tvar transport,\n\n\t\t\t// URL without anti-cache param\n\t\t\tcacheURL,\n\n\t\t\t// Response headers\n\t\t\tresponseHeadersString,\n\t\t\tresponseHeaders,\n\n\t\t\t// timeout handle\n\t\t\ttimeoutTimer,\n\n\t\t\t// Url cleanup var\n\t\t\turlAnchor,\n\n\t\t\t// Request state (becomes false upon send and true upon completion)\n\t\t\tcompleted,\n\n\t\t\t// To know if global events are to be dispatched\n\t\t\tfireGlobals,\n\n\t\t\t// Loop variable\n\t\t\ti,\n\n\t\t\t// uncached part of the url\n\t\t\tuncached,\n\n\t\t\t// Create the final options object\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\n\t\t\t// Callbacks context\n\t\t\tcallbackContext = s.context || s,\n\n\t\t\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\n\t\t\tglobalEventContext = s.context &&\n\t\t\t\t( callbackContext.nodeType || callbackContext.jquery ) ?\n\t\t\t\t\tjQuery( callbackContext ) :\n\t\t\t\t\tjQuery.event,\n\n\t\t\t// Deferreds\n\t\t\tdeferred = jQuery.Deferred(),\n\t\t\tcompleteDeferred = jQuery.Callbacks( \"once memory\" ),\n\n\t\t\t// Status-dependent callbacks\n\t\t\tstatusCode = s.statusCode || {},\n\n\t\t\t// Headers (they are sent all at once)\n\t\t\trequestHeaders = {},\n\t\t\trequestHeadersNames = {},\n\n\t\t\t// Default abort message\n\t\t\tstrAbort = \"canceled\",\n\n\t\t\t// Fake xhr\n\t\t\tjqXHR = {\n\t\t\t\treadyState: 0,\n\n\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\tvar match;\n\t\t\t\t\tif ( completed ) {\n\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\twhile ( ( match = rheaders.exec( responseHeadersString ) ) ) {\n\t\t\t\t\t\t\t\tresponseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() ];\n\t\t\t\t\t}\n\t\t\t\t\treturn match == null ? null : match;\n\t\t\t\t},\n\n\t\t\t\t// Raw string\n\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\treturn completed ? responseHeadersString : null;\n\t\t\t\t},\n\n\t\t\t\t// Caches the header\n\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\tname = requestHeadersNames[ name.toLowerCase() ] =\n\t\t\t\t\t\t\trequestHeadersNames[ name.toLowerCase() ] || name;\n\t\t\t\t\t\trequestHeaders[ name ] = value;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Overrides response content-type header\n\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Status-dependent callbacks\n\t\t\t\tstatusCode: function( map ) {\n\t\t\t\t\tvar code;\n\t\t\t\t\tif ( map ) {\n\t\t\t\t\t\tif ( completed ) {\n\n\t\t\t\t\t\t\t// Execute the appropriate callbacks\n\t\t\t\t\t\t\tjqXHR.always( map[ jqXHR.status ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Lazy-add the new callbacks in a way that preserves old ones\n\t\t\t\t\t\t\tfor ( code in map ) {\n\t\t\t\t\t\t\t\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Cancel the request\n\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\tvar finalText = statusText || strAbort;\n\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\ttransport.abort( finalText );\n\t\t\t\t\t}\n\t\t\t\t\tdone( 0, finalText );\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\t// Attach deferreds\n\t\tdeferred.promise( jqXHR );\n\n\t\t// Add protocol if not provided (prefilters might expect it)\n\t\t// Handle falsy url in the settings object (#10093: consistency with old signature)\n\t\t// We also use the url parameter if available\n\t\ts.url = ( ( url || s.url || location.href ) + \"\" )\n\t\t\t.replace( rprotocol, location.protocol + \"//\" );\n\n\t\t// Alias method option to type as per ticket #12004\n\t\ts.type = options.method || options.type || s.method || s.type;\n\n\t\t// Extract dataTypes list\n\t\ts.dataTypes = ( s.dataType || \"*\" ).toLowerCase().match( rnothtmlwhite ) || [ \"\" ];\n\n\t\t// A cross-domain request is in order when the origin doesn't match the current origin.\n\t\tif ( s.crossDomain == null ) {\n\t\t\turlAnchor = document.createElement( \"a\" );\n\n\t\t\t// Support: IE <=8 - 11, Edge 12 - 15\n\t\t\t// IE throws exception on accessing the href property if url is malformed,\n\t\t\t// e.g. http://example.com:80x/\n\t\t\ttry {\n\t\t\t\turlAnchor.href = s.url;\n\n\t\t\t\t// Support: IE <=8 - 11 only\n\t\t\t\t// Anchor's host property isn't correctly set when s.url is relative\n\t\t\t\turlAnchor.href = urlAnchor.href;\n\t\t\t\ts.crossDomain = originAnchor.protocol + \"//\" + originAnchor.host !==\n\t\t\t\t\turlAnchor.protocol + \"//\" + urlAnchor.host;\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// If there is an error parsing the URL, assume it is crossDomain,\n\t\t\t\t// it can be rejected by the transport if it is invalid\n\t\t\t\ts.crossDomain = true;\n\t\t\t}\n\t\t}\n\n\t\t// Convert data if not already a string\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t}\n\n\t\t// Apply prefilters\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t// If request was aborted inside a prefilter, stop there\n\t\tif ( completed ) {\n\t\t\treturn jqXHR;\n\t\t}\n\n\t\t// We can fire global events as of now if asked to\n\t\t// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)\n\t\tfireGlobals = jQuery.event && s.global;\n\n\t\t// Watch for a new set of requests\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\tjQuery.event.trigger( \"ajaxStart\" );\n\t\t}\n\n\t\t// Uppercase the type\n\t\ts.type = s.type.toUpperCase();\n\n\t\t// Determine if request has content\n\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t// Save the URL in case we're toying with the If-Modified-Since\n\t\t// and/or If-None-Match header later on\n\t\t// Remove hash to simplify url manipulation\n\t\tcacheURL = s.url.replace( rhash, \"\" );\n\n\t\t// More options handling for requests with no content\n\t\tif ( !s.hasContent ) {\n\n\t\t\t// Remember the hash so we can put it back\n\t\t\tuncached = s.url.slice( cacheURL.length );\n\n\t\t\t// If data is available and should be processed, append data to url\n\t\t\tif ( s.data && ( s.processData || typeof s.data === \"string\" ) ) {\n\t\t\t\tcacheURL += ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + s.data;\n\n\t\t\t\t// #9682: remove data so that it's not used in an eventual retry\n\t\t\t\tdelete s.data;\n\t\t\t}\n\n\t\t\t// Add or update anti-cache param if needed\n\t\t\tif ( s.cache === false ) {\n\t\t\t\tcacheURL = cacheURL.replace( rantiCache, \"$1\" );\n\t\t\t\tuncached = ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + \"_=\" + ( nonce++ ) + uncached;\n\t\t\t}\n\n\t\t\t// Put hash and anti-cache on the URL that will be requested (gh-1732)\n\t\t\ts.url = cacheURL + uncached;\n\n\t\t// Change '%20' to '+' if this is encoded form body content (gh-2658)\n\t\t} else if ( s.data && s.processData &&\n\t\t\t( s.contentType || \"\" ).indexOf( \"application/x-www-form-urlencoded\" ) === 0 ) {\n\t\t\ts.data = s.data.replace( r20, \"+\" );\n\t\t}\n\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\tif ( s.ifModified ) {\n\t\t\tif ( jQuery.lastModified[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ cacheURL ] );\n\t\t\t}\n\t\t\tif ( jQuery.etag[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ cacheURL ] );\n\t\t\t}\n\t\t}\n\n\t\t// Set the correct header, if data is being sent\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\n\t\t}\n\n\t\t// Set the Accepts header for the server, depending on the dataType\n\t\tjqXHR.setRequestHeader(\n\t\t\t\"Accept\",\n\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?\n\t\t\t\ts.accepts[ s.dataTypes[ 0 ] ] +\n\t\t\t\t\t( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\n\t\t\t\ts.accepts[ \"*\" ]\n\t\t);\n\n\t\t// Check for headers option\n\t\tfor ( i in s.headers ) {\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t}\n\n\t\t// Allow custom headers/mimetypes and early abort\n\t\tif ( s.beforeSend &&\n\t\t\t( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {\n\n\t\t\t// Abort if not done already and return\n\t\t\treturn jqXHR.abort();\n\t\t}\n\n\t\t// Aborting is no longer a cancellation\n\t\tstrAbort = \"abort\";\n\n\t\t// Install callbacks on deferreds\n\t\tcompleteDeferred.add( s.complete );\n\t\tjqXHR.done( s.success );\n\t\tjqXHR.fail( s.error );\n\n\t\t// Get transport\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t// If no transport, we auto-abort\n\t\tif ( !transport ) {\n\t\t\tdone( -1, \"No Transport\" );\n\t\t} else {\n\t\t\tjqXHR.readyState = 1;\n\n\t\t\t// Send global event\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t}\n\n\t\t\t// If request was aborted inside ajaxSend, stop there\n\t\t\tif ( completed ) {\n\t\t\t\treturn jqXHR;\n\t\t\t}\n\n\t\t\t// Timeout\n\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\ttimeoutTimer = window.setTimeout( function() {\n\t\t\t\t\tjqXHR.abort( \"timeout\" );\n\t\t\t\t}, s.timeout );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tcompleted = false;\n\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// Rethrow post-completion exceptions\n\t\t\t\tif ( completed ) {\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\n\t\t\t\t// Propagate others as results\n\t\t\t\tdone( -1, e );\n\t\t\t}\n\t\t}\n\n\t\t// Callback for when everything is done\n\t\tfunction done( status, nativeStatusText, responses, headers ) {\n\t\t\tvar isSuccess, success, error, response, modified,\n\t\t\t\tstatusText = nativeStatusText;\n\n\t\t\t// Ignore repeat invocations\n\t\t\tif ( completed ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcompleted = true;\n\n\t\t\t// Clear timeout if it exists\n\t\t\tif ( timeoutTimer ) {\n\t\t\t\twindow.clearTimeout( timeoutTimer );\n\t\t\t}\n\n\t\t\t// Dereference transport for early garbage collection\n\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\ttransport = undefined;\n\n\t\t\t// Cache response headers\n\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t// Set readyState\n\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\n\n\t\t\t// Determine if successful\n\t\t\tisSuccess = status >= 200 && status < 300 || status === 304;\n\n\t\t\t// Get response data\n\t\t\tif ( responses ) {\n\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\n\t\t\t}\n\n\t\t\t// Convert no matter what (that way responseXXX fields are always set)\n\t\t\tresponse = ajaxConvert( s, response, jqXHR, isSuccess );\n\n\t\t\t// If successful, handle type chaining\n\t\t\tif ( isSuccess ) {\n\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\tif ( s.ifModified ) {\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"Last-Modified\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.lastModified[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"etag\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.etag[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if no content\n\t\t\t\tif ( status === 204 || s.type === \"HEAD\" ) {\n\t\t\t\t\tstatusText = \"nocontent\";\n\n\t\t\t\t// if not modified\n\t\t\t\t} else if ( status === 304 ) {\n\t\t\t\t\tstatusText = \"notmodified\";\n\n\t\t\t\t// If we have data, let's convert it\n\t\t\t\t} else {\n\t\t\t\t\tstatusText = response.state;\n\t\t\t\t\tsuccess = response.data;\n\t\t\t\t\terror = response.error;\n\t\t\t\t\tisSuccess = !error;\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// Extract error from statusText and normalize for non-aborts\n\t\t\t\terror = statusText;\n\t\t\t\tif ( status || !statusText ) {\n\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set data for the fake xhr object\n\t\t\tjqXHR.status = status;\n\t\t\tjqXHR.statusText = ( nativeStatusText || statusText ) + \"\";\n\n\t\t\t// Success/Error\n\t\t\tif ( isSuccess ) {\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t} else {\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t}\n\n\t\t\t// Status-dependent callbacks\n\t\t\tjqXHR.statusCode( statusCode );\n\t\t\tstatusCode = undefined;\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( isSuccess ? \"ajaxSuccess\" : \"ajaxError\",\n\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t}\n\n\t\t\t// Complete\n\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\n\n\t\t\t\t// Handle the global AJAX counter\n\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn jqXHR;\n\t},\n\n\tgetJSON: function( url, data, callback ) {\n\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t},\n\n\tgetScript: function( url, callback ) {\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t}\n} );\n\njQuery.each( [ \"get\", \"post\" ], function( i, method ) {\n\tjQuery[ method ] = function( url, data, callback, type ) {\n\n\t\t// Shift arguments if data argument was omitted\n\t\tif ( isFunction( data ) ) {\n\t\t\ttype = type || callback;\n\t\t\tcallback = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\t// The url can be an options object (which then must have .url)\n\t\treturn jQuery.ajax( jQuery.extend( {\n\t\t\turl: url,\n\t\t\ttype: method,\n\t\t\tdataType: type,\n\t\t\tdata: data,\n\t\t\tsuccess: callback\n\t\t}, jQuery.isPlainObject( url ) && url ) );\n\t};\n} );\n\n\njQuery._evalUrl = function( url ) {\n\treturn jQuery.ajax( {\n\t\turl: url,\n\n\t\t// Make this explicit, since user can override this through ajaxSetup (#11264)\n\t\ttype: \"GET\",\n\t\tdataType: \"script\",\n\t\tcache: true,\n\t\tasync: false,\n\t\tglobal: false,\n\t\t\"throws\": true\n\t} );\n};\n\n\njQuery.fn.extend( {\n\twrapAll: function( html ) {\n\t\tvar wrap;\n\n\t\tif ( this[ 0 ] ) {\n\t\t\tif ( isFunction( html ) ) {\n\t\t\t\thtml = html.call( this[ 0 ] );\n\t\t\t}\n\n\t\t\t// The elements to wrap the target around\n\t\t\twrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );\n\n\t\t\tif ( this[ 0 ].parentNode ) {\n\t\t\t\twrap.insertBefore( this[ 0 ] );\n\t\t\t}\n\n\t\t\twrap.map( function() {\n\t\t\t\tvar elem = this;\n\n\t\t\t\twhile ( elem.firstElementChild ) {\n\t\t\t\t\telem = elem.firstElementChild;\n\t\t\t\t}\n\n\t\t\t\treturn elem;\n\t\t\t} ).append( this );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\twrapInner: function( html ) {\n\t\tif ( isFunction( html ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).wrapInner( html.call( this, i ) );\n\t\t\t} );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar self = jQuery( this ),\n\t\t\t\tcontents = self.contents();\n\n\t\t\tif ( contents.length ) {\n\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t} else {\n\t\t\t\tself.append( html );\n\t\t\t}\n\t\t} );\n\t},\n\n\twrap: function( html ) {\n\t\tvar htmlIsFunction = isFunction( html );\n\n\t\treturn this.each( function( i ) {\n\t\t\tjQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );\n\t\t} );\n\t},\n\n\tunwrap: function( selector ) {\n\t\tthis.parent( selector ).not( \"body\" ).each( function() {\n\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t} );\n\t\treturn this;\n\t}\n} );\n\n\njQuery.expr.pseudos.hidden = function( elem ) {\n\treturn !jQuery.expr.pseudos.visible( elem );\n};\njQuery.expr.pseudos.visible = function( elem ) {\n\treturn !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );\n};\n\n\n\n\njQuery.ajaxSettings.xhr = function() {\n\ttry {\n\t\treturn new window.XMLHttpRequest();\n\t} catch ( e ) {}\n};\n\nvar xhrSuccessStatus = {\n\n\t\t// File protocol always yields status code 0, assume 200\n\t\t0: 200,\n\n\t\t// Support: IE <=9 only\n\t\t// #1450: sometimes IE returns 1223 when it should be 204\n\t\t1223: 204\n\t},\n\txhrSupported = jQuery.ajaxSettings.xhr();\n\nsupport.cors = !!xhrSupported && ( \"withCredentials\" in xhrSupported );\nsupport.ajax = xhrSupported = !!xhrSupported;\n\njQuery.ajaxTransport( function( options ) {\n\tvar callback, errorCallback;\n\n\t// Cross domain only allowed if supported through XMLHttpRequest\n\tif ( support.cors || xhrSupported && !options.crossDomain ) {\n\t\treturn {\n\t\t\tsend: function( headers, complete ) {\n\t\t\t\tvar i,\n\t\t\t\t\txhr = options.xhr();\n\n\t\t\t\txhr.open(\n\t\t\t\t\toptions.type,\n\t\t\t\t\toptions.url,\n\t\t\t\t\toptions.async,\n\t\t\t\t\toptions.username,\n\t\t\t\t\toptions.password\n\t\t\t\t);\n\n\t\t\t\t// Apply custom fields if provided\n\t\t\t\tif ( options.xhrFields ) {\n\t\t\t\t\tfor ( i in options.xhrFields ) {\n\t\t\t\t\t\txhr[ i ] = options.xhrFields[ i ];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Override mime type if needed\n\t\t\t\tif ( options.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\txhr.overrideMimeType( options.mimeType );\n\t\t\t\t}\n\n\t\t\t\t// X-Requested-With header\n\t\t\t\t// For cross-domain requests, seeing as conditions for a preflight are\n\t\t\t\t// akin to a jigsaw puzzle, we simply never set it to be sure.\n\t\t\t\t// (it can always be set on a per-request basis or even using ajaxSetup)\n\t\t\t\t// For same-domain requests, won't change header if already provided.\n\t\t\t\tif ( !options.crossDomain && !headers[ \"X-Requested-With\" ] ) {\n\t\t\t\t\theaders[ \"X-Requested-With\" ] = \"XMLHttpRequest\";\n\t\t\t\t}\n\n\t\t\t\t// Set headers\n\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t}\n\n\t\t\t\t// Callback\n\t\t\t\tcallback = function( type ) {\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\tcallback = errorCallback = xhr.onload =\n\t\t\t\t\t\t\t\txhr.onerror = xhr.onabort = xhr.ontimeout =\n\t\t\t\t\t\t\t\t\txhr.onreadystatechange = null;\n\n\t\t\t\t\t\t\tif ( type === \"abort\" ) {\n\t\t\t\t\t\t\t\txhr.abort();\n\t\t\t\t\t\t\t} else if ( type === \"error\" ) {\n\n\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t// On a manual native abort, IE9 throws\n\t\t\t\t\t\t\t\t// errors on any property access that is not readyState\n\t\t\t\t\t\t\t\tif ( typeof xhr.status !== \"number\" ) {\n\t\t\t\t\t\t\t\t\tcomplete( 0, \"error\" );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcomplete(\n\n\t\t\t\t\t\t\t\t\t\t// File: protocol always yields status 0; see #8605, #14207\n\t\t\t\t\t\t\t\t\t\txhr.status,\n\t\t\t\t\t\t\t\t\t\txhr.statusText\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcomplete(\n\t\t\t\t\t\t\t\t\txhrSuccessStatus[ xhr.status ] || xhr.status,\n\t\t\t\t\t\t\t\t\txhr.statusText,\n\n\t\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t\t// IE9 has no XHR2 but throws on binary (trac-11426)\n\t\t\t\t\t\t\t\t\t// For XHR2 non-text, let the caller handle it (gh-2498)\n\t\t\t\t\t\t\t\t\t( xhr.responseType || \"text\" ) !== \"text\" ||\n\t\t\t\t\t\t\t\t\ttypeof xhr.responseText !== \"string\" ?\n\t\t\t\t\t\t\t\t\t\t{ binary: xhr.response } :\n\t\t\t\t\t\t\t\t\t\t{ text: xhr.responseText },\n\t\t\t\t\t\t\t\t\txhr.getAllResponseHeaders()\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t};\n\n\t\t\t\t// Listen to events\n\t\t\t\txhr.onload = callback();\n\t\t\t\terrorCallback = xhr.onerror = xhr.ontimeout = callback( \"error\" );\n\n\t\t\t\t// Support: IE 9 only\n\t\t\t\t// Use onreadystatechange to replace onabort\n\t\t\t\t// to handle uncaught aborts\n\t\t\t\tif ( xhr.onabort !== undefined ) {\n\t\t\t\t\txhr.onabort = errorCallback;\n\t\t\t\t} else {\n\t\t\t\t\txhr.onreadystatechange = function() {\n\n\t\t\t\t\t\t// Check readyState before timeout as it changes\n\t\t\t\t\t\tif ( xhr.readyState === 4 ) {\n\n\t\t\t\t\t\t\t// Allow onerror to be called first,\n\t\t\t\t\t\t\t// but that will not handle a native abort\n\t\t\t\t\t\t\t// Also, save errorCallback to a variable\n\t\t\t\t\t\t\t// as xhr.onerror cannot be accessed\n\t\t\t\t\t\t\twindow.setTimeout( function() {\n\t\t\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\t\t\terrorCallback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Create the abort callback\n\t\t\t\tcallback = callback( \"abort\" );\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Do send the request (this may raise an exception)\n\t\t\t\t\txhr.send( options.hasContent && options.data || null );\n\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t// #14683: Only rethrow if this hasn't been notified as an error yet\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\n// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)\njQuery.ajaxPrefilter( function( s ) {\n\tif ( s.crossDomain ) {\n\t\ts.contents.script = false;\n\t}\n} );\n\n// Install script dataType\njQuery.ajaxSetup( {\n\taccepts: {\n\t\tscript: \"text/javascript, application/javascript, \" +\n\t\t\t\"application/ecmascript, application/x-ecmascript\"\n\t},\n\tcontents: {\n\t\tscript: /\\b(?:java|ecma)script\\b/\n\t},\n\tconverters: {\n\t\t\"text script\": function( text ) {\n\t\t\tjQuery.globalEval( text );\n\t\t\treturn text;\n\t\t}\n\t}\n} );\n\n// Handle cache's special case and crossDomain\njQuery.ajaxPrefilter( \"script\", function( s ) {\n\tif ( s.cache === undefined ) {\n\t\ts.cache = false;\n\t}\n\tif ( s.crossDomain ) {\n\t\ts.type = \"GET\";\n\t}\n} );\n\n// Bind script tag hack transport\njQuery.ajaxTransport( \"script\", function( s ) {\n\n\t// This transport only deals with cross domain requests\n\tif ( s.crossDomain ) {\n\t\tvar script, callback;\n\t\treturn {\n\t\t\tsend: function( _, complete ) {\n\t\t\t\tscript = jQuery( \"<script>\" ).prop( {\n\t\t\t\t\tcharset: s.scriptCharset,\n\t\t\t\t\tsrc: s.url\n\t\t\t\t} ).on(\n\t\t\t\t\t\"load error\",\n\t\t\t\t\tcallback = function( evt ) {\n\t\t\t\t\t\tscript.remove();\n\t\t\t\t\t\tcallback = null;\n\t\t\t\t\t\tif ( evt ) {\n\t\t\t\t\t\t\tcomplete( evt.type === \"error\" ? 404 : 200, evt.type );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\t// Use native DOM manipulation to avoid our domManip AJAX trickery\n\t\t\t\tdocument.head.appendChild( script[ 0 ] );\n\t\t\t},\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\nvar oldCallbacks = [],\n\trjsonp = /(=)\\?(?=&|$)|\\?\\?/;\n\n// Default jsonp settings\njQuery.ajaxSetup( {\n\tjsonp: \"callback\",\n\tjsonpCallback: function() {\n\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( nonce++ ) );\n\t\tthis[ callback ] = true;\n\t\treturn callback;\n\t}\n} );\n\n// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\tvar callbackName, overwritten, responseContainer,\n\t\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\n\t\t\t\"url\" :\n\t\t\ttypeof s.data === \"string\" &&\n\t\t\t\t( s.contentType || \"\" )\n\t\t\t\t\t.indexOf( \"application/x-www-form-urlencoded\" ) === 0 &&\n\t\t\t\trjsonp.test( s.data ) && \"data\"\n\t\t);\n\n\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\n\tif ( jsonProp || s.dataTypes[ 0 ] === \"jsonp\" ) {\n\n\t\t// Get callback name, remembering preexisting value associated with it\n\t\tcallbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?\n\t\t\ts.jsonpCallback() :\n\t\t\ts.jsonpCallback;\n\n\t\t// Insert callback into url or form data\n\t\tif ( jsonProp ) {\n\t\t\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \"$1\" + callbackName );\n\t\t} else if ( s.jsonp !== false ) {\n\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\n\t\t}\n\n\t\t// Use data converter to retrieve json after script execution\n\t\ts.converters[ \"script json\" ] = function() {\n\t\t\tif ( !responseContainer ) {\n\t\t\t\tjQuery.error( callbackName + \" was not called\" );\n\t\t\t}\n\t\t\treturn responseContainer[ 0 ];\n\t\t};\n\n\t\t// Force json dataType\n\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t// Install callback\n\t\toverwritten = window[ callbackName ];\n\t\twindow[ callbackName ] = function() {\n\t\t\tresponseContainer = arguments;\n\t\t};\n\n\t\t// Clean-up function (fires after converters)\n\t\tjqXHR.always( function() {\n\n\t\t\t// If previous value didn't exist - remove it\n\t\t\tif ( overwritten === undefined ) {\n\t\t\t\tjQuery( window ).removeProp( callbackName );\n\n\t\t\t// Otherwise restore preexisting value\n\t\t\t} else {\n\t\t\t\twindow[ callbackName ] = overwritten;\n\t\t\t}\n\n\t\t\t// Save back as free\n\t\t\tif ( s[ callbackName ] ) {\n\n\t\t\t\t// Make sure that re-using the options doesn't screw things around\n\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\n\n\t\t\t\t// Save the callback name for future use\n\t\t\t\toldCallbacks.push( callbackName );\n\t\t\t}\n\n\t\t\t// Call if it was a function and we have a response\n\t\t\tif ( responseContainer && isFunction( overwritten ) ) {\n\t\t\t\toverwritten( responseContainer[ 0 ] );\n\t\t\t}\n\n\t\t\tresponseContainer = overwritten = undefined;\n\t\t} );\n\n\t\t// Delegate to script\n\t\treturn \"script\";\n\t}\n} );\n\n\n\n\n// Support: Safari 8 only\n// In Safari 8 documents created via document.implementation.createHTMLDocument\n// collapse sibling forms: the second one becomes a child of the first one.\n// Because of that, this security measure has to be disabled in Safari 8.\n// https://bugs.webkit.org/show_bug.cgi?id=137337\nsupport.createHTMLDocument = ( function() {\n\tvar body = document.implementation.createHTMLDocument( \"\" ).body;\n\tbody.innerHTML = \"<form></form><form></form>\";\n\treturn body.childNodes.length === 2;\n} )();\n\n\n// Argument \"data\" should be string of html\n// context (optional): If specified, the fragment will be created in this context,\n// defaults to document\n// keepScripts (optional): If true, will include scripts passed in the html string\njQuery.parseHTML = function( data, context, keepScripts ) {\n\tif ( typeof data !== \"string\" ) {\n\t\treturn [];\n\t}\n\tif ( typeof context === \"boolean\" ) {\n\t\tkeepScripts = context;\n\t\tcontext = false;\n\t}\n\n\tvar base, parsed, scripts;\n\n\tif ( !context ) {\n\n\t\t// Stop scripts or inline event handlers from being executed immediately\n\t\t// by using document.implementation\n\t\tif ( support.createHTMLDocument ) {\n\t\t\tcontext = document.implementation.createHTMLDocument( \"\" );\n\n\t\t\t// Set the base href for the created document\n\t\t\t// so any parsed elements with URLs\n\t\t\t// are based on the document's URL (gh-2965)\n\t\t\tbase = context.createElement( \"base\" );\n\t\t\tbase.href = document.location.href;\n\t\t\tcontext.head.appendChild( base );\n\t\t} else {\n\t\t\tcontext = document;\n\t\t}\n\t}\n\n\tparsed = rsingleTag.exec( data );\n\tscripts = !keepScripts && [];\n\n\t// Single tag\n\tif ( parsed ) {\n\t\treturn [ context.createElement( parsed[ 1 ] ) ];\n\t}\n\n\tparsed = buildFragment( [ data ], context, scripts );\n\n\tif ( scripts && scripts.length ) {\n\t\tjQuery( scripts ).remove();\n\t}\n\n\treturn jQuery.merge( [], parsed.childNodes );\n};\n\n\n/**\n * Load a url into a page\n */\njQuery.fn.load = function( url, params, callback ) {\n\tvar selector, type, response,\n\t\tself = this,\n\t\toff = url.indexOf( \" \" );\n\n\tif ( off > -1 ) {\n\t\tselector = stripAndCollapse( url.slice( off ) );\n\t\turl = url.slice( 0, off );\n\t}\n\n\t// If it's a function\n\tif ( isFunction( params ) ) {\n\n\t\t// We assume that it's the callback\n\t\tcallback = params;\n\t\tparams = undefined;\n\n\t// Otherwise, build a param string\n\t} else if ( params && typeof params === \"object\" ) {\n\t\ttype = \"POST\";\n\t}\n\n\t// If we have elements to modify, make the request\n\tif ( self.length > 0 ) {\n\t\tjQuery.ajax( {\n\t\t\turl: url,\n\n\t\t\t// If \"type\" variable is undefined, then \"GET\" method will be used.\n\t\t\t// Make value of this field explicit since\n\t\t\t// user can override it through ajaxSetup method\n\t\t\ttype: type || \"GET\",\n\t\t\tdataType: \"html\",\n\t\t\tdata: params\n\t\t} ).done( function( responseText ) {\n\n\t\t\t// Save response for use in complete callback\n\t\t\tresponse = arguments;\n\n\t\t\tself.html( selector ?\n\n\t\t\t\t// If a selector was specified, locate the right elements in a dummy div\n\t\t\t\t// Exclude scripts to avoid IE 'Permission Denied' errors\n\t\t\t\tjQuery( \"<div>\" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :\n\n\t\t\t\t// Otherwise use the full result\n\t\t\t\tresponseText );\n\n\t\t// If the request succeeds, this function gets \"data\", \"status\", \"jqXHR\"\n\t\t// but they are ignored because response was set above.\n\t\t// If it fails, this function gets \"jqXHR\", \"status\", \"error\"\n\t\t} ).always( callback && function( jqXHR, status ) {\n\t\t\tself.each( function() {\n\t\t\t\tcallback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );\n\t\t\t} );\n\t\t} );\n\t}\n\n\treturn this;\n};\n\n\n\n\n// Attach a bunch of functions for handling common AJAX events\njQuery.each( [\n\t\"ajaxStart\",\n\t\"ajaxStop\",\n\t\"ajaxComplete\",\n\t\"ajaxError\",\n\t\"ajaxSuccess\",\n\t\"ajaxSend\"\n], function( i, type ) {\n\tjQuery.fn[ type ] = function( fn ) {\n\t\treturn this.on( type, fn );\n\t};\n} );\n\n\n\n\njQuery.expr.pseudos.animated = function( elem ) {\n\treturn jQuery.grep( jQuery.timers, function( fn ) {\n\t\treturn elem === fn.elem;\n\t} ).length;\n};\n\n\n\n\njQuery.offset = {\n\tsetOffset: function( elem, options, i ) {\n\t\tvar curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,\n\t\t\tposition = jQuery.css( elem, \"position\" ),\n\t\t\tcurElem = jQuery( elem ),\n\t\t\tprops = {};\n\n\t\t// Set position first, in-case top/left are set even on static elem\n\t\tif ( position === \"static\" ) {\n\t\t\telem.style.position = \"relative\";\n\t\t}\n\n\t\tcurOffset = curElem.offset();\n\t\tcurCSSTop = jQuery.css( elem, \"top\" );\n\t\tcurCSSLeft = jQuery.css( elem, \"left\" );\n\t\tcalculatePosition = ( position === \"absolute\" || position === \"fixed\" ) &&\n\t\t\t( curCSSTop + curCSSLeft ).indexOf( \"auto\" ) > -1;\n\n\t\t// Need to be able to calculate position if either\n\t\t// top or left is auto and position is either absolute or fixed\n\t\tif ( calculatePosition ) {\n\t\t\tcurPosition = curElem.position();\n\t\t\tcurTop = curPosition.top;\n\t\t\tcurLeft = curPosition.left;\n\n\t\t} else {\n\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\n\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\n\t\t}\n\n\t\tif ( isFunction( options ) ) {\n\n\t\t\t// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\n\t\t\toptions = options.call( elem, i, jQuery.extend( {}, curOffset ) );\n\t\t}\n\n\t\tif ( options.top != null ) {\n\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\n\t\t}\n\t\tif ( options.left != null ) {\n\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\n\t\t}\n\n\t\tif ( \"using\" in options ) {\n\t\t\toptions.using.call( elem, props );\n\n\t\t} else {\n\t\t\tcurElem.css( props );\n\t\t}\n\t}\n};\n\njQuery.fn.extend( {\n\n\t// offset() relates an element's border box to the document origin\n\toffset: function( options ) {\n\n\t\t// Preserve chaining for setter\n\t\tif ( arguments.length ) {\n\t\t\treturn options === undefined ?\n\t\t\t\tthis :\n\t\t\t\tthis.each( function( i ) {\n\t\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t\t} );\n\t\t}\n\n\t\tvar rect, win,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !elem ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Return zeros for disconnected and hidden (display: none) elements (gh-2310)\n\t\t// Support: IE <=11 only\n\t\t// Running getBoundingClientRect on a\n\t\t// disconnected node in IE throws an error\n\t\tif ( !elem.getClientRects().length ) {\n\t\t\treturn { top: 0, left: 0 };\n\t\t}\n\n\t\t// Get document-relative position by adding viewport scroll to viewport-relative gBCR\n\t\trect = elem.getBoundingClientRect();\n\t\twin = elem.ownerDocument.defaultView;\n\t\treturn {\n\t\t\ttop: rect.top + win.pageYOffset,\n\t\t\tleft: rect.left + win.pageXOffset\n\t\t};\n\t},\n\n\t// position() relates an element's margin box to its offset parent's padding box\n\t// This corresponds to the behavior of CSS absolute positioning\n\tposition: function() {\n\t\tif ( !this[ 0 ] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar offsetParent, offset, doc,\n\t\t\telem = this[ 0 ],\n\t\t\tparentOffset = { top: 0, left: 0 };\n\n\t\t// position:fixed elements are offset from the viewport, which itself always has zero offset\n\t\tif ( jQuery.css( elem, \"position\" ) === \"fixed\" ) {\n\n\t\t\t// Assume position:fixed implies availability of getBoundingClientRect\n\t\t\toffset = elem.getBoundingClientRect();\n\n\t\t} else {\n\t\t\toffset = this.offset();\n\n\t\t\t// Account for the *real* offset parent, which can be the document or its root element\n\t\t\t// when a statically positioned element is identified\n\t\t\tdoc = elem.ownerDocument;\n\t\t\toffsetParent = elem.offsetParent || doc.documentElement;\n\t\t\twhile ( offsetParent &&\n\t\t\t\t( offsetParent === doc.body || offsetParent === doc.documentElement ) &&\n\t\t\t\tjQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\n\t\t\t\toffsetParent = offsetParent.parentNode;\n\t\t\t}\n\t\t\tif ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {\n\n\t\t\t\t// Incorporate borders into its offset, since they are outside its content origin\n\t\t\t\tparentOffset = jQuery( offsetParent ).offset();\n\t\t\t\tparentOffset.top += jQuery.css( offsetParent, \"borderTopWidth\", true );\n\t\t\t\tparentOffset.left += jQuery.css( offsetParent, \"borderLeftWidth\", true );\n\t\t\t}\n\t\t}\n\n\t\t// Subtract parent offsets and element margins\n\t\treturn {\n\t\t\ttop: offset.top - parentOffset.top - jQuery.css( elem, \"marginTop\", true ),\n\t\t\tleft: offset.left - parentOffset.left - jQuery.css( elem, \"marginLeft\", true )\n\t\t};\n\t},\n\n\t// This method will return documentElement in the following cases:\n\t// 1) For the element inside the iframe without offsetParent, this method will return\n\t// documentElement of the parent window\n\t// 2) For the hidden or detached element\n\t// 3) For body or html element, i.e. in case of the html node - it will return itself\n\t//\n\t// but those exceptions were never presented as a real life use-cases\n\t// and might be considered as more preferable results.\n\t//\n\t// This logic, however, is not guaranteed and can change at any point in the future\n\toffsetParent: function() {\n\t\treturn this.map( function() {\n\t\t\tvar offsetParent = this.offsetParent;\n\n\t\t\twhile ( offsetParent && jQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t}\n\n\t\t\treturn offsetParent || documentElement;\n\t\t} );\n\t}\n} );\n\n// Create scrollLeft and scrollTop methods\njQuery.each( { scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\" }, function( method, prop ) {\n\tvar top = \"pageYOffset\" === prop;\n\n\tjQuery.fn[ method ] = function( val ) {\n\t\treturn access( this, function( elem, method, val ) {\n\n\t\t\t// Coalesce documents and windows\n\t\t\tvar win;\n\t\t\tif ( isWindow( elem ) ) {\n\t\t\t\twin = elem;\n\t\t\t} else if ( elem.nodeType === 9 ) {\n\t\t\t\twin = elem.defaultView;\n\t\t\t}\n\n\t\t\tif ( val === undefined ) {\n\t\t\t\treturn win ? win[ prop ] : elem[ method ];\n\t\t\t}\n\n\t\t\tif ( win ) {\n\t\t\t\twin.scrollTo(\n\t\t\t\t\t!top ? val : win.pageXOffset,\n\t\t\t\t\ttop ? val : win.pageYOffset\n\t\t\t\t);\n\n\t\t\t} else {\n\t\t\t\telem[ method ] = val;\n\t\t\t}\n\t\t}, method, val, arguments.length );\n\t};\n} );\n\n// Support: Safari <=7 - 9.1, Chrome <=37 - 49\n// Add the top/left cssHooks using jQuery.fn.position\n// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\n// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347\n// getComputedStyle returns percent when specified for top/left/bottom/right;\n// rather than make the css module depend on the offset module, just check for it here\njQuery.each( [ \"top\", \"left\" ], function( i, prop ) {\n\tjQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,\n\t\tfunction( elem, computed ) {\n\t\t\tif ( computed ) {\n\t\t\t\tcomputed = curCSS( elem, prop );\n\n\t\t\t\t// If curCSS returns percentage, fallback to offset\n\t\t\t\treturn rnumnonpx.test( computed ) ?\n\t\t\t\t\tjQuery( elem ).position()[ prop ] + \"px\" :\n\t\t\t\t\tcomputed;\n\t\t\t}\n\t\t}\n\t);\n} );\n\n\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\njQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\n\tjQuery.each( { padding: \"inner\" + name, content: type, \"\": \"outer\" + name },\n\t\tfunction( defaultExtra, funcName ) {\n\n\t\t// Margin is only for outerHeight, outerWidth\n\t\tjQuery.fn[ funcName ] = function( margin, value ) {\n\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\n\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\n\n\t\t\treturn access( this, function( elem, type, value ) {\n\t\t\t\tvar doc;\n\n\t\t\t\tif ( isWindow( elem ) ) {\n\n\t\t\t\t\t// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)\n\t\t\t\t\treturn funcName.indexOf( \"outer\" ) === 0 ?\n\t\t\t\t\t\telem[ \"inner\" + name ] :\n\t\t\t\t\t\telem.document.documentElement[ \"client\" + name ];\n\t\t\t\t}\n\n\t\t\t\t// Get document width or height\n\t\t\t\tif ( elem.nodeType === 9 ) {\n\t\t\t\t\tdoc = elem.documentElement;\n\n\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\n\t\t\t\t\t// whichever is greatest\n\t\t\t\t\treturn Math.max(\n\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\n\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\n\t\t\t\t\t\tdoc[ \"client\" + name ]\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn value === undefined ?\n\n\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\n\t\t\t\t\tjQuery.css( elem, type, extra ) :\n\n\t\t\t\t\t// Set width or height on the element\n\t\t\t\t\tjQuery.style( elem, type, value, extra );\n\t\t\t}, type, chainable ? margin : undefined, chainable );\n\t\t};\n\t} );\n} );\n\n\njQuery.each( ( \"blur focus focusin focusout resize scroll click dblclick \" +\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\"change select submit keydown keypress keyup contextmenu\" ).split( \" \" ),\n\tfunction( i, name ) {\n\n\t// Handle event binding\n\tjQuery.fn[ name ] = function( data, fn ) {\n\t\treturn arguments.length > 0 ?\n\t\t\tthis.on( name, null, data, fn ) :\n\t\t\tthis.trigger( name );\n\t};\n} );\n\njQuery.fn.extend( {\n\thover: function( fnOver, fnOut ) {\n\t\treturn this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\n\t}\n} );\n\n\n\n\njQuery.fn.extend( {\n\n\tbind: function( types, data, fn ) {\n\t\treturn this.on( types, null, data, fn );\n\t},\n\tunbind: function( types, fn ) {\n\t\treturn this.off( types, null, fn );\n\t},\n\n\tdelegate: function( selector, types, data, fn ) {\n\t\treturn this.on( types, selector, data, fn );\n\t},\n\tundelegate: function( selector, types, fn ) {\n\n\t\t// ( namespace ) or ( selector, types [, fn] )\n\t\treturn arguments.length === 1 ?\n\t\t\tthis.off( selector, \"**\" ) :\n\t\t\tthis.off( types, selector || \"**\", fn );\n\t}\n} );\n\n// Bind a function to a context, optionally partially applying any\n// arguments.\n// jQuery.proxy is deprecated to promote standards (specifically Function#bind)\n// However, it is not slated for removal any time soon\njQuery.proxy = function( fn, context ) {\n\tvar tmp, args, proxy;\n\n\tif ( typeof context === \"string\" ) {\n\t\ttmp = fn[ context ];\n\t\tcontext = fn;\n\t\tfn = tmp;\n\t}\n\n\t// Quick check to determine if target is callable, in the spec\n\t// this throws a TypeError, but we will just return undefined.\n\tif ( !isFunction( fn ) ) {\n\t\treturn undefined;\n\t}\n\n\t// Simulated bind\n\targs = slice.call( arguments, 2 );\n\tproxy = function() {\n\t\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\n\t};\n\n\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\n\n\treturn proxy;\n};\n\njQuery.holdReady = function( hold ) {\n\tif ( hold ) {\n\t\tjQuery.readyWait++;\n\t} else {\n\t\tjQuery.ready( true );\n\t}\n};\njQuery.isArray = Array.isArray;\njQuery.parseJSON = JSON.parse;\njQuery.nodeName = nodeName;\njQuery.isFunction = isFunction;\njQuery.isWindow = isWindow;\njQuery.camelCase = camelCase;\njQuery.type = toType;\n\njQuery.now = Date.now;\n\njQuery.isNumeric = function( obj ) {\n\n\t// As of jQuery 3.0, isNumeric is limited to\n\t// strings and numbers (primitives or objects)\n\t// that can be coerced to finite numbers (gh-2662)\n\tvar type = jQuery.type( obj );\n\treturn ( type === \"number\" || type === \"string\" ) &&\n\n\t\t// parseFloat NaNs numeric-cast false positives (\"\")\n\t\t// ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\n\t\t// subtraction forces infinities to NaN\n\t\t!isNaN( obj - parseFloat( obj ) );\n};\n\n\n\n\n// Register as a named AMD module, since jQuery can be concatenated with other\n// files that may use define, but not via a proper concatenation script that\n// understands anonymous AMD modules. A named AMD is safest and most robust\n// way to register. Lowercase jquery is used because AMD module names are\n// derived from file names, and jQuery is normally delivered in a lowercase\n// file name. Do this after creating the global so that if an AMD module wants\n// to call noConflict to hide this version of jQuery, it will work.\n\n// Note that for maximum portability, libraries that are not jQuery should\n// declare themselves as anonymous modules, and avoid setting a global if an\n// AMD loader is present. jQuery is a special case. For more information, see\n// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\n\nif ( typeof define === \"function\" && define.amd ) {\n\tdefine( \"jquery\", [], function() {\n\t\treturn jQuery;\n\t} );\n}\n\n\n\n\nvar\n\n\t// Map over jQuery in case of overwrite\n\t_jQuery = window.jQuery,\n\n\t// Map over the $ in case of overwrite\n\t_$ = window.$;\n\njQuery.noConflict = function( deep ) {\n\tif ( window.$ === jQuery ) {\n\t\twindow.$ = _$;\n\t}\n\n\tif ( deep && window.jQuery === jQuery ) {\n\t\twindow.jQuery = _jQuery;\n\t}\n\n\treturn jQuery;\n};\n\n// Expose jQuery and $ identifiers, even in AMD\n// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)\n// and CommonJS for browser emulators (#13566)\nif ( !noGlobal ) {\n\twindow.jQuery = window.$ = jQuery;\n}\n\n\n\n\nreturn jQuery;\n} );\n","/*!\n * @overview Ember - JavaScript Application Framework\n * @copyright Copyright 2011-2017 Tilde Inc. and contributors\n * Portions Copyright 2006-2011 Strobe Inc.\n * Portions Copyright 2008-2011 Apple Inc. All rights reserved.\n * @license Licensed under MIT license\n * See https://raw.github.com/emberjs/ember.js/master/LICENSE\n * @version 2.18.0\n */\n","/*global process */\nvar enifed, requireModule, Ember;\nvar mainContext = this; // Used in ember-environment/lib/global.js\n\n(function() {\n function missingModule(name, referrerName) {\n if (referrerName) {\n throw new Error('Could not find module ' + name + ' required by: ' + referrerName);\n } else {\n throw new Error('Could not find module ' + name);\n }\n }\n\n function internalRequire(_name, referrerName) {\n var name = _name;\n var mod = registry[name];\n\n if (!mod) {\n name = name + '/index';\n mod = registry[name];\n }\n\n var exports = seen[name];\n\n if (exports !== undefined) {\n return exports;\n }\n\n exports = seen[name] = {};\n\n if (!mod) {\n missingModule(_name, referrerName);\n }\n\n var deps = mod.deps;\n var callback = mod.callback;\n var reified = new Array(deps.length);\n\n for (var i = 0; i < deps.length; i++) {\n if (deps[i] === 'exports') {\n reified[i] = exports;\n } else if (deps[i] === 'require') {\n reified[i] = requireModule;\n } else {\n reified[i] = internalRequire(deps[i], name);\n }\n }\n\n callback.apply(this, reified);\n\n return exports;\n }\n\n var isNode = typeof window === 'undefined' &&\n typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n if (!isNode) {\n Ember = this.Ember = this.Ember || {};\n }\n\n if (typeof Ember === 'undefined') { Ember = {}; }\n\n if (typeof Ember.__loader === 'undefined') {\n var registry = {};\n var seen = {};\n\n enifed = function(name, deps, callback) {\n var value = { };\n\n if (!callback) {\n value.deps = [];\n value.callback = deps;\n } else {\n value.deps = deps;\n value.callback = callback;\n }\n\n registry[name] = value;\n };\n\n requireModule = function(name) {\n return internalRequire(name, null);\n };\n\n // setup `require` module\n requireModule['default'] = requireModule;\n\n requireModule.has = function registryHas(moduleName) {\n return !!registry[moduleName] || !!registry[moduleName + '/index'];\n };\n\n requireModule._eak_seen = registry;\n\n Ember.__loader = {\n define: enifed,\n require: requireModule,\n registry: registry\n };\n } else {\n enifed = Ember.__loader.define;\n requireModule = Ember.__loader.require;\n }\n})();\n","enifed(\"@glimmer/node\", [\"exports\", \"@glimmer/runtime\"], function (exports, _runtime) {\n \"use strict\";\n\n exports.NodeDOMTreeConstruction = undefined;\n\n\n function _defaults(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass);\n }\n\n var NodeDOMTreeConstruction = function (_DOMTreeConstruction) {\n _inherits(NodeDOMTreeConstruction, _DOMTreeConstruction);\n\n function NodeDOMTreeConstruction(doc) {\n _classCallCheck(this, NodeDOMTreeConstruction);\n\n return _possibleConstructorReturn(this, _DOMTreeConstruction.call(this, doc));\n }\n // override to prevent usage of `this.document` until after the constructor\n\n\n NodeDOMTreeConstruction.prototype.setupUselessElement = function setupUselessElement() {};\n\n NodeDOMTreeConstruction.prototype.insertHTMLBefore = function insertHTMLBefore(parent, reference, html) {\n var prev = reference ? reference.previousSibling : parent.lastChild;\n var raw = this.document.createRawHTMLSection(html);\n parent.insertBefore(raw, reference);\n var first = prev ? prev.nextSibling : parent.firstChild;\n var last = reference ? reference.previousSibling : parent.lastChild;\n return new _runtime.ConcreteBounds(parent, first, last);\n };\n // override to avoid SVG detection/work when in node (this is not needed in SSR)\n\n\n NodeDOMTreeConstruction.prototype.createElement = function createElement(tag) {\n return this.document.createElement(tag);\n };\n // override to avoid namespace shenanigans when in node (this is not needed in SSR)\n\n\n NodeDOMTreeConstruction.prototype.setAttribute = function setAttribute(element, name, value) {\n element.setAttribute(name, value);\n };\n\n return NodeDOMTreeConstruction;\n }(_runtime.DOMTreeConstruction);\n\n exports.NodeDOMTreeConstruction = NodeDOMTreeConstruction;\n});","enifed(\"@glimmer/reference\", [\"exports\", \"@glimmer/util\"], function (exports, _util) {\n \"use strict\";\n\n exports.isModified = exports.ReferenceCache = exports.map = exports.CachedReference = exports.UpdatableTag = exports.CachedTag = exports.combine = exports.combineSlice = exports.combineTagged = exports.DirtyableTag = exports.CURRENT_TAG = exports.VOLATILE_TAG = exports.CONSTANT_TAG = exports.TagWrapper = exports.RevisionTag = exports.VOLATILE = exports.INITIAL = exports.CONSTANT = exports.IteratorSynchronizer = exports.ReferenceIterator = exports.IterationArtifacts = exports.referenceFromParts = exports.ListItem = exports.isConst = exports.ConstReference = undefined;\n\n\n function _defaults(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass);\n }\n\n function _classCallCheck$1(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var CONSTANT = 0;\n var INITIAL = 1;\n var VOLATILE = NaN;\n var RevisionTag = function () {\n function RevisionTag() {\n _classCallCheck$1(this, RevisionTag);\n }\n\n RevisionTag.prototype.validate = function validate(snapshot) {\n return this.value() === snapshot;\n };\n\n return RevisionTag;\n }();\n RevisionTag.id = 0;\n var VALUE = [];\n var VALIDATE = [];\n var TagWrapper = function () {\n function TagWrapper(type, inner) {\n _classCallCheck$1(this, TagWrapper);\n\n this.type = type;\n this.inner = inner;\n }\n\n TagWrapper.prototype.value = function value() {\n var func = VALUE[this.type];\n return func(this.inner);\n };\n\n TagWrapper.prototype.validate = function validate(snapshot) {\n var func = VALIDATE[this.type];\n return func(this.inner, snapshot);\n };\n\n return TagWrapper;\n }();\n function register(Type) {\n var type = VALUE.length;\n VALUE.push(function (tag) {\n return tag.value();\n });\n VALIDATE.push(function (tag, snapshot) {\n return tag.validate(snapshot);\n });\n Type.id = type;\n }\n ///\n // CONSTANT: 0\n VALUE.push(function () {\n return CONSTANT;\n });\n VALIDATE.push(function (_tag, snapshot) {\n return snapshot === CONSTANT;\n });\n var CONSTANT_TAG = new TagWrapper(0, null);\n // VOLATILE: 1\n VALUE.push(function () {\n return VOLATILE;\n });\n VALIDATE.push(function (_tag, snapshot) {\n return snapshot === VOLATILE;\n });\n var VOLATILE_TAG = new TagWrapper(1, null);\n // CURRENT: 2\n VALUE.push(function () {\n return $REVISION;\n });\n VALIDATE.push(function (_tag, snapshot) {\n return snapshot === $REVISION;\n });\n var CURRENT_TAG = new TagWrapper(2, null);\n ///\n var $REVISION = INITIAL;\n var DirtyableTag = function (_RevisionTag) {\n _inherits(DirtyableTag, _RevisionTag);\n\n DirtyableTag.create = function create() {\n var revision = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $REVISION;\n\n return new TagWrapper(this.id, new DirtyableTag(revision));\n };\n\n function DirtyableTag() {\n var revision = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : $REVISION;\n\n _classCallCheck$1(this, DirtyableTag);\n\n var _this = _possibleConstructorReturn(this, _RevisionTag.call(this));\n\n _this.revision = revision;\n return _this;\n }\n\n DirtyableTag.prototype.value = function value() {\n return this.revision;\n };\n\n DirtyableTag.prototype.dirty = function dirty() {\n this.revision = ++$REVISION;\n };\n\n return DirtyableTag;\n }(RevisionTag);\n register(DirtyableTag);\n function combineTagged(tagged) {\n var optimized = [];\n for (var i = 0, l = tagged.length; i < l; i++) {\n var tag = tagged[i].tag;\n if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n if (tag === CONSTANT_TAG) continue;\n optimized.push(tag);\n }\n return _combine(optimized);\n }\n function combineSlice(slice) {\n var optimized = [];\n var node = slice.head();\n while (node !== null) {\n var tag = node.tag;\n if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n if (tag !== CONSTANT_TAG) optimized.push(tag);\n node = slice.nextNode(node);\n }\n return _combine(optimized);\n }\n function combine(tags) {\n var optimized = [];\n for (var i = 0, l = tags.length; i < l; i++) {\n var tag = tags[i];\n if (tag === VOLATILE_TAG) return VOLATILE_TAG;\n if (tag === CONSTANT_TAG) continue;\n optimized.push(tag);\n }\n return _combine(optimized);\n }\n function _combine(tags) {\n switch (tags.length) {\n case 0:\n return CONSTANT_TAG;\n case 1:\n return tags[0];\n case 2:\n return TagsPair.create(tags[0], tags[1]);\n default:\n return TagsCombinator.create(tags);\n }\n }\n var CachedTag = function (_RevisionTag2) {\n _inherits(CachedTag, _RevisionTag2);\n\n function CachedTag() {\n _classCallCheck$1(this, CachedTag);\n\n var _this2 = _possibleConstructorReturn(this, _RevisionTag2.apply(this, arguments));\n\n _this2.lastChecked = null;\n _this2.lastValue = null;\n return _this2;\n }\n\n CachedTag.prototype.value = function value() {\n var lastChecked = this.lastChecked,\n lastValue = this.lastValue;\n\n if (lastChecked !== $REVISION) {\n this.lastChecked = $REVISION;\n this.lastValue = lastValue = this.compute();\n }\n return this.lastValue;\n };\n\n CachedTag.prototype.invalidate = function invalidate() {\n this.lastChecked = null;\n };\n\n return CachedTag;\n }(RevisionTag);\n\n var TagsPair = function (_CachedTag) {\n _inherits(TagsPair, _CachedTag);\n\n TagsPair.create = function create(first, second) {\n return new TagWrapper(this.id, new TagsPair(first, second));\n };\n\n function TagsPair(first, second) {\n _classCallCheck$1(this, TagsPair);\n\n var _this3 = _possibleConstructorReturn(this, _CachedTag.call(this));\n\n _this3.first = first;\n _this3.second = second;\n return _this3;\n }\n\n TagsPair.prototype.compute = function compute() {\n return Math.max(this.first.value(), this.second.value());\n };\n\n return TagsPair;\n }(CachedTag);\n\n register(TagsPair);\n\n var TagsCombinator = function (_CachedTag2) {\n _inherits(TagsCombinator, _CachedTag2);\n\n TagsCombinator.create = function create(tags) {\n return new TagWrapper(this.id, new TagsCombinator(tags));\n };\n\n function TagsCombinator(tags) {\n _classCallCheck$1(this, TagsCombinator);\n\n var _this4 = _possibleConstructorReturn(this, _CachedTag2.call(this));\n\n _this4.tags = tags;\n return _this4;\n }\n\n TagsCombinator.prototype.compute = function compute() {\n var tags = this.tags;\n\n var max = -1;\n for (var i = 0; i < tags.length; i++) {\n var value = tags[i].value();\n max = Math.max(value, max);\n }\n return max;\n };\n\n return TagsCombinator;\n }(CachedTag);\n\n register(TagsCombinator);\n var UpdatableTag = function (_CachedTag3) {\n _inherits(UpdatableTag, _CachedTag3);\n\n UpdatableTag.create = function create(tag) {\n return new TagWrapper(this.id, new UpdatableTag(tag));\n };\n\n function UpdatableTag(tag) {\n _classCallCheck$1(this, UpdatableTag);\n\n var _this5 = _possibleConstructorReturn(this, _CachedTag3.call(this));\n\n _this5.tag = tag;\n _this5.lastUpdated = INITIAL;\n return _this5;\n }\n\n UpdatableTag.prototype.compute = function compute() {\n return Math.max(this.lastUpdated, this.tag.value());\n };\n\n UpdatableTag.prototype.update = function update(tag) {\n if (tag !== this.tag) {\n this.tag = tag;\n this.lastUpdated = $REVISION;\n this.invalidate();\n }\n };\n\n return UpdatableTag;\n }(CachedTag);\n register(UpdatableTag);\n var CachedReference = function () {\n function CachedReference() {\n _classCallCheck$1(this, CachedReference);\n\n this.lastRevision = null;\n this.lastValue = null;\n }\n\n CachedReference.prototype.value = function value() {\n var tag = this.tag,\n lastRevision = this.lastRevision,\n lastValue = this.lastValue;\n\n if (!lastRevision || !tag.validate(lastRevision)) {\n lastValue = this.lastValue = this.compute();\n this.lastRevision = tag.value();\n }\n return lastValue;\n };\n\n CachedReference.prototype.invalidate = function invalidate() {\n this.lastRevision = null;\n };\n\n return CachedReference;\n }();\n\n var MapperReference = function (_CachedReference) {\n _inherits(MapperReference, _CachedReference);\n\n function MapperReference(reference, mapper) {\n _classCallCheck$1(this, MapperReference);\n\n var _this6 = _possibleConstructorReturn(this, _CachedReference.call(this));\n\n _this6.tag = reference.tag;\n _this6.reference = reference;\n _this6.mapper = mapper;\n return _this6;\n }\n\n MapperReference.prototype.compute = function compute() {\n var reference = this.reference,\n mapper = this.mapper;\n\n return mapper(reference.value());\n };\n\n return MapperReference;\n }(CachedReference);\n\n function map(reference, mapper) {\n return new MapperReference(reference, mapper);\n }\n //////////\n var ReferenceCache = function () {\n function ReferenceCache(reference) {\n _classCallCheck$1(this, ReferenceCache);\n\n this.lastValue = null;\n this.lastRevision = null;\n this.initialized = false;\n this.tag = reference.tag;\n this.reference = reference;\n }\n\n ReferenceCache.prototype.peek = function peek() {\n if (!this.initialized) {\n return this.initialize();\n }\n return this.lastValue;\n };\n\n ReferenceCache.prototype.revalidate = function revalidate() {\n if (!this.initialized) {\n return this.initialize();\n }\n var reference = this.reference,\n lastRevision = this.lastRevision;\n\n var tag = reference.tag;\n if (tag.validate(lastRevision)) return NOT_MODIFIED;\n this.lastRevision = tag.value();\n var lastValue = this.lastValue;\n\n var value = reference.value();\n if (value === lastValue) return NOT_MODIFIED;\n this.lastValue = value;\n return value;\n };\n\n ReferenceCache.prototype.initialize = function initialize() {\n var reference = this.reference;\n\n var value = this.lastValue = reference.value();\n this.lastRevision = reference.tag.value();\n this.initialized = true;\n return value;\n };\n\n return ReferenceCache;\n }();\n var NOT_MODIFIED = \"adb3b78e-3d22-4e4b-877a-6317c2c5c145\";\n function isModified(value) {\n return value !== NOT_MODIFIED;\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var ConstReference = function () {\n function ConstReference(inner) {\n _classCallCheck(this, ConstReference);\n\n this.inner = inner;\n this.tag = CONSTANT_TAG;\n }\n\n ConstReference.prototype.value = function value() {\n return this.inner;\n };\n\n return ConstReference;\n }();\n function isConst(reference) {\n return reference.tag === CONSTANT_TAG;\n }\n\n function _defaults$1(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$2(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$1(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$1(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$1(subClass, superClass);\n }\n\n var ListItem = function (_ListNode) {\n _inherits$1(ListItem, _ListNode);\n\n function ListItem(iterable, result) {\n _classCallCheck$2(this, ListItem);\n\n var _this = _possibleConstructorReturn$1(this, _ListNode.call(this, iterable.valueReferenceFor(result)));\n\n _this.retained = false;\n _this.seen = false;\n _this.key = result.key;\n _this.iterable = iterable;\n _this.memo = iterable.memoReferenceFor(result);\n return _this;\n }\n\n ListItem.prototype.update = function update(item) {\n this.retained = true;\n this.iterable.updateValueReference(this.value, item);\n this.iterable.updateMemoReference(this.memo, item);\n };\n\n ListItem.prototype.shouldRemove = function shouldRemove() {\n return !this.retained;\n };\n\n ListItem.prototype.reset = function reset() {\n this.retained = false;\n this.seen = false;\n };\n\n return ListItem;\n }(_util.ListNode);\n var IterationArtifacts = function () {\n function IterationArtifacts(iterable) {\n _classCallCheck$2(this, IterationArtifacts);\n\n this.map = (0, _util.dict)();\n this.list = new _util.LinkedList();\n this.tag = iterable.tag;\n this.iterable = iterable;\n }\n\n IterationArtifacts.prototype.isEmpty = function isEmpty() {\n var iterator = this.iterator = this.iterable.iterate();\n return iterator.isEmpty();\n };\n\n IterationArtifacts.prototype.iterate = function iterate() {\n var iterator = this.iterator || this.iterable.iterate();\n this.iterator = null;\n return iterator;\n };\n\n IterationArtifacts.prototype.has = function has(key) {\n return !!this.map[key];\n };\n\n IterationArtifacts.prototype.get = function get(key) {\n return this.map[key];\n };\n\n IterationArtifacts.prototype.wasSeen = function wasSeen(key) {\n var node = this.map[key];\n return node && node.seen;\n };\n\n IterationArtifacts.prototype.append = function append(item) {\n var map = this.map,\n list = this.list,\n iterable = this.iterable;\n\n var node = map[item.key] = new ListItem(iterable, item);\n list.append(node);\n return node;\n };\n\n IterationArtifacts.prototype.insertBefore = function insertBefore(item, reference) {\n var map = this.map,\n list = this.list,\n iterable = this.iterable;\n\n var node = map[item.key] = new ListItem(iterable, item);\n node.retained = true;\n list.insertBefore(node, reference);\n return node;\n };\n\n IterationArtifacts.prototype.move = function move(item, reference) {\n var list = this.list;\n\n item.retained = true;\n list.remove(item);\n list.insertBefore(item, reference);\n };\n\n IterationArtifacts.prototype.remove = function remove(item) {\n var list = this.list;\n\n list.remove(item);\n delete this.map[item.key];\n };\n\n IterationArtifacts.prototype.nextNode = function nextNode(item) {\n return this.list.nextNode(item);\n };\n\n IterationArtifacts.prototype.head = function head() {\n return this.list.head();\n };\n\n return IterationArtifacts;\n }();\n var ReferenceIterator = function () {\n // if anyone needs to construct this object with something other than\n // an iterable, let @wycats know.\n function ReferenceIterator(iterable) {\n _classCallCheck$2(this, ReferenceIterator);\n\n this.iterator = null;\n var artifacts = new IterationArtifacts(iterable);\n this.artifacts = artifacts;\n }\n\n ReferenceIterator.prototype.next = function next() {\n var artifacts = this.artifacts;\n\n var iterator = this.iterator = this.iterator || artifacts.iterate();\n var item = iterator.next();\n if (!item) return null;\n return artifacts.append(item);\n };\n\n return ReferenceIterator;\n }();\n var Phase;\n (function (Phase) {\n Phase[Phase[\"Append\"] = 0] = \"Append\";\n Phase[Phase[\"Prune\"] = 1] = \"Prune\";\n Phase[Phase[\"Done\"] = 2] = \"Done\";\n })(Phase || (Phase = {}));\n var IteratorSynchronizer = function () {\n function IteratorSynchronizer(_ref) {\n var target = _ref.target,\n artifacts = _ref.artifacts;\n\n _classCallCheck$2(this, IteratorSynchronizer);\n\n this.target = target;\n this.artifacts = artifacts;\n this.iterator = artifacts.iterate();\n this.current = artifacts.head();\n }\n\n IteratorSynchronizer.prototype.sync = function sync() {\n var phase = Phase.Append;\n while (true) {\n switch (phase) {\n case Phase.Append:\n phase = this.nextAppend();\n break;\n case Phase.Prune:\n phase = this.nextPrune();\n break;\n case Phase.Done:\n this.nextDone();\n return;\n }\n }\n };\n\n IteratorSynchronizer.prototype.advanceToKey = function advanceToKey(key) {\n var current = this.current,\n artifacts = this.artifacts;\n\n var seek = current;\n while (seek && seek.key !== key) {\n seek.seen = true;\n seek = artifacts.nextNode(seek);\n }\n this.current = seek && artifacts.nextNode(seek);\n };\n\n IteratorSynchronizer.prototype.nextAppend = function nextAppend() {\n var iterator = this.iterator,\n current = this.current,\n artifacts = this.artifacts;\n\n var item = iterator.next();\n if (item === null) {\n return this.startPrune();\n }\n var key = item.key;\n\n if (current && current.key === key) {\n this.nextRetain(item);\n } else if (artifacts.has(key)) {\n this.nextMove(item);\n } else {\n this.nextInsert(item);\n }\n return Phase.Append;\n };\n\n IteratorSynchronizer.prototype.nextRetain = function nextRetain(item) {\n var artifacts = this.artifacts,\n current = this.current;\n\n current = current;\n current.update(item);\n this.current = artifacts.nextNode(current);\n this.target.retain(item.key, current.value, current.memo);\n };\n\n IteratorSynchronizer.prototype.nextMove = function nextMove(item) {\n var current = this.current,\n artifacts = this.artifacts,\n target = this.target;\n var key = item.key;\n\n var found = artifacts.get(item.key);\n found.update(item);\n if (artifacts.wasSeen(item.key)) {\n artifacts.move(found, current);\n target.move(found.key, found.value, found.memo, current ? current.key : null);\n } else {\n this.advanceToKey(key);\n }\n };\n\n IteratorSynchronizer.prototype.nextInsert = function nextInsert(item) {\n var artifacts = this.artifacts,\n target = this.target,\n current = this.current;\n\n var node = artifacts.insertBefore(item, current);\n target.insert(node.key, node.value, node.memo, current ? current.key : null);\n };\n\n IteratorSynchronizer.prototype.startPrune = function startPrune() {\n this.current = this.artifacts.head();\n return Phase.Prune;\n };\n\n IteratorSynchronizer.prototype.nextPrune = function nextPrune() {\n var artifacts = this.artifacts,\n target = this.target,\n current = this.current;\n\n if (current === null) {\n return Phase.Done;\n }\n var node = current;\n this.current = artifacts.nextNode(node);\n if (node.shouldRemove()) {\n artifacts.remove(node);\n target.delete(node.key);\n } else {\n node.reset();\n }\n return Phase.Prune;\n };\n\n IteratorSynchronizer.prototype.nextDone = function nextDone() {\n this.target.done();\n };\n\n return IteratorSynchronizer;\n }();\n\n function referenceFromParts(root, parts) {\n var reference = root;\n for (var i = 0; i < parts.length; i++) {\n reference = reference.get(parts[i]);\n }\n return reference;\n }\n\n exports.ConstReference = ConstReference;\n exports.isConst = isConst;\n exports.ListItem = ListItem;\n exports.referenceFromParts = referenceFromParts;\n exports.IterationArtifacts = IterationArtifacts;\n exports.ReferenceIterator = ReferenceIterator;\n exports.IteratorSynchronizer = IteratorSynchronizer;\n exports.CONSTANT = CONSTANT;\n exports.INITIAL = INITIAL;\n exports.VOLATILE = VOLATILE;\n exports.RevisionTag = RevisionTag;\n exports.TagWrapper = TagWrapper;\n exports.CONSTANT_TAG = CONSTANT_TAG;\n exports.VOLATILE_TAG = VOLATILE_TAG;\n exports.CURRENT_TAG = CURRENT_TAG;\n exports.DirtyableTag = DirtyableTag;\n exports.combineTagged = combineTagged;\n exports.combineSlice = combineSlice;\n exports.combine = combine;\n exports.CachedTag = CachedTag;\n exports.UpdatableTag = UpdatableTag;\n exports.CachedReference = CachedReference;\n exports.map = map;\n exports.ReferenceCache = ReferenceCache;\n exports.isModified = isModified;\n});","enifed('@glimmer/runtime', ['exports', '@glimmer/util', '@glimmer/reference', '@glimmer/wire-format'], function (exports, _util, _reference2, _wireFormat) {\n 'use strict';\n\n exports.ConcreteBounds = exports.ElementStack = exports.insertHTMLBefore = exports.isWhitespace = exports.DOMTreeConstruction = exports.IDOMChanges = exports.DOMChanges = exports.isComponentDefinition = exports.ComponentDefinition = exports.PartialDefinition = exports.Environment = exports.Scope = exports.isSafeString = exports.RenderResult = exports.UpdatingVM = exports.compileExpression = exports.compileList = exports.InlineMacros = exports.BlockMacros = exports.getDynamicVar = exports.resetDebuggerCallback = exports.setDebuggerCallback = exports.normalizeTextValue = exports.debugSlice = exports.Register = exports.readDOMAttr = exports.defaultPropertyManagers = exports.defaultAttributeManagers = exports.defaultManagers = exports.INPUT_VALUE_PROPERTY_MANAGER = exports.PropertyManager = exports.AttributeManager = exports.IAttributeManager = exports.CompiledDynamicTemplate = exports.CompiledStaticTemplate = exports.compileLayout = exports.OpcodeBuilderDSL = exports.ConditionalReference = exports.PrimitiveReference = exports.UNDEFINED_REFERENCE = exports.NULL_REFERENCE = exports.templateFactory = exports.Simple = undefined;\n\n\n function _defaults(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass);\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n /**\n * Registers\n *\n * For the most part, these follows MIPS naming conventions, however the\n * register numbers are different.\n */\n var Register;\n (function (Register) {\n // $0 or $pc (program counter): pointer into `program` for the next insturction; -1 means exit\n Register[Register[\"pc\"] = 0] = \"pc\";\n // $1 or $ra (return address): pointer into `program` for the return\n Register[Register[\"ra\"] = 1] = \"ra\";\n // $2 or $fp (frame pointer): pointer into the `evalStack` for the base of the stack\n Register[Register[\"fp\"] = 2] = \"fp\";\n // $3 or $sp (stack pointer): pointer into the `evalStack` for the top of the stack\n Register[Register[\"sp\"] = 3] = \"sp\";\n // $4-$5 or $s0-$s1 (saved): callee saved general-purpose registers\n Register[Register[\"s0\"] = 4] = \"s0\";\n Register[Register[\"s1\"] = 5] = \"s1\";\n // $6-$7 or $t0-$t1 (temporaries): caller saved general-purpose registers\n Register[Register[\"t0\"] = 6] = \"t0\";\n Register[Register[\"t1\"] = 7] = \"t1\";\n })(Register || (exports.Register = Register = {}));\n function debugSlice(env, start, end) {}\n var AppendOpcodes = function () {\n function AppendOpcodes() {\n _classCallCheck(this, AppendOpcodes);\n\n this.evaluateOpcode = (0, _util.fillNulls)(72 /* Size */).slice();\n }\n\n AppendOpcodes.prototype.add = function add(name, evaluate) {\n this.evaluateOpcode[name] = evaluate;\n };\n\n AppendOpcodes.prototype.evaluate = function evaluate(vm, opcode, type) {\n var func = this.evaluateOpcode[type];\n func(vm, opcode);\n };\n\n return AppendOpcodes;\n }();\n var APPEND_OPCODES = new AppendOpcodes();\n var AbstractOpcode = function () {\n function AbstractOpcode() {\n _classCallCheck(this, AbstractOpcode);\n\n (0, _util.initializeGuid)(this);\n }\n\n AbstractOpcode.prototype.toJSON = function toJSON() {\n return { guid: this._guid, type: this.type };\n };\n\n return AbstractOpcode;\n }();\n var UpdatingOpcode = function (_AbstractOpcode) {\n _inherits(UpdatingOpcode, _AbstractOpcode);\n\n function UpdatingOpcode() {\n _classCallCheck(this, UpdatingOpcode);\n\n var _this = _possibleConstructorReturn(this, _AbstractOpcode.apply(this, arguments));\n\n _this.next = null;\n _this.prev = null;\n return _this;\n }\n\n return UpdatingOpcode;\n }(AbstractOpcode);\n\n function _defaults$1(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$1(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$1(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$1(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$1(subClass, superClass);\n }\n\n var PrimitiveReference = function (_ConstReference) {\n _inherits$1(PrimitiveReference, _ConstReference);\n\n function PrimitiveReference(value) {\n _classCallCheck$1(this, PrimitiveReference);\n\n return _possibleConstructorReturn$1(this, _ConstReference.call(this, value));\n }\n\n PrimitiveReference.create = function create(value) {\n if (value === undefined) {\n return UNDEFINED_REFERENCE;\n } else if (value === null) {\n return NULL_REFERENCE;\n } else if (value === true) {\n return TRUE_REFERENCE;\n } else if (value === false) {\n return FALSE_REFERENCE;\n } else if (typeof value === 'number') {\n return new ValueReference(value);\n } else {\n return new StringReference(value);\n }\n };\n\n PrimitiveReference.prototype.get = function get(_key) {\n return UNDEFINED_REFERENCE;\n };\n\n return PrimitiveReference;\n }(_reference2.ConstReference);\n\n var StringReference = function (_PrimitiveReference) {\n _inherits$1(StringReference, _PrimitiveReference);\n\n function StringReference() {\n _classCallCheck$1(this, StringReference);\n\n var _this2 = _possibleConstructorReturn$1(this, _PrimitiveReference.apply(this, arguments));\n\n _this2.lengthReference = null;\n return _this2;\n }\n\n StringReference.prototype.get = function get(key) {\n if (key === 'length') {\n var lengthReference = this.lengthReference;\n\n if (lengthReference === null) {\n lengthReference = this.lengthReference = new ValueReference(this.inner.length);\n }\n return lengthReference;\n } else {\n return _PrimitiveReference.prototype.get.call(this, key);\n }\n };\n\n return StringReference;\n }(PrimitiveReference);\n\n var ValueReference = function (_PrimitiveReference2) {\n _inherits$1(ValueReference, _PrimitiveReference2);\n\n function ValueReference(value) {\n _classCallCheck$1(this, ValueReference);\n\n return _possibleConstructorReturn$1(this, _PrimitiveReference2.call(this, value));\n }\n\n return ValueReference;\n }(PrimitiveReference);\n\n var UNDEFINED_REFERENCE = new ValueReference(undefined);\n var NULL_REFERENCE = new ValueReference(null);\n var TRUE_REFERENCE = new ValueReference(true);\n var FALSE_REFERENCE = new ValueReference(false);\n var ConditionalReference = function () {\n function ConditionalReference(inner) {\n _classCallCheck$1(this, ConditionalReference);\n\n this.inner = inner;\n this.tag = inner.tag;\n }\n\n ConditionalReference.prototype.value = function value() {\n return this.toBool(this.inner.value());\n };\n\n ConditionalReference.prototype.toBool = function toBool(value) {\n return !!value;\n };\n\n return ConditionalReference;\n }();\n\n function _defaults$2(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$2(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$2(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$2(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$2(subClass, superClass);\n }\n\n var ConcatReference = function (_CachedReference) {\n _inherits$2(ConcatReference, _CachedReference);\n\n function ConcatReference(parts) {\n _classCallCheck$2(this, ConcatReference);\n\n var _this = _possibleConstructorReturn$2(this, _CachedReference.call(this));\n\n _this.parts = parts;\n _this.tag = (0, _reference2.combineTagged)(parts);\n return _this;\n }\n\n ConcatReference.prototype.compute = function compute() {\n var parts = new Array();\n for (var i = 0; i < this.parts.length; i++) {\n var value = this.parts[i].value();\n if (value !== null && value !== undefined) {\n parts[i] = castToString(value);\n }\n }\n if (parts.length > 0) {\n return parts.join('');\n }\n return null;\n };\n\n return ConcatReference;\n }(_reference2.CachedReference);\n function castToString(value) {\n if (typeof value.toString !== 'function') {\n return '';\n }\n return String(value);\n }\n\n APPEND_OPCODES.add(1 /* Helper */, function (vm, _ref) {\n var _helper = _ref.op1;\n\n var stack = vm.stack;\n var helper = vm.constants.getFunction(_helper);\n var args = stack.pop();\n var value = helper(vm, args);\n args.clear();\n vm.stack.push(value);\n });\n APPEND_OPCODES.add(2 /* Function */, function (vm, _ref2) {\n var _function = _ref2.op1;\n\n var func = vm.constants.getFunction(_function);\n vm.stack.push(func(vm));\n });\n APPEND_OPCODES.add(5 /* GetVariable */, function (vm, _ref3) {\n var symbol = _ref3.op1;\n\n var expr = vm.referenceForSymbol(symbol);\n vm.stack.push(expr);\n });\n APPEND_OPCODES.add(4 /* SetVariable */, function (vm, _ref4) {\n var symbol = _ref4.op1;\n\n var expr = vm.stack.pop();\n vm.scope().bindSymbol(symbol, expr);\n });\n APPEND_OPCODES.add(70 /* ResolveMaybeLocal */, function (vm, _ref5) {\n var _name = _ref5.op1;\n\n var name = vm.constants.getString(_name);\n var locals = vm.scope().getPartialMap();\n var ref = locals[name];\n if (ref === undefined) {\n ref = vm.getSelf().get(name);\n }\n vm.stack.push(ref);\n });\n APPEND_OPCODES.add(19 /* RootScope */, function (vm, _ref6) {\n var symbols = _ref6.op1,\n bindCallerScope = _ref6.op2;\n\n vm.pushRootScope(symbols, !!bindCallerScope);\n });\n APPEND_OPCODES.add(6 /* GetProperty */, function (vm, _ref7) {\n var _key = _ref7.op1;\n\n var key = vm.constants.getString(_key);\n var expr = vm.stack.pop();\n vm.stack.push(expr.get(key));\n });\n APPEND_OPCODES.add(7 /* PushBlock */, function (vm, _ref8) {\n var _block = _ref8.op1;\n\n var block = _block ? vm.constants.getBlock(_block) : null;\n vm.stack.push(block);\n });\n APPEND_OPCODES.add(8 /* GetBlock */, function (vm, _ref9) {\n var _block = _ref9.op1;\n\n vm.stack.push(vm.scope().getBlock(_block));\n });\n APPEND_OPCODES.add(9 /* HasBlock */, function (vm, _ref10) {\n var _block = _ref10.op1;\n\n var hasBlock = !!vm.scope().getBlock(_block);\n vm.stack.push(hasBlock ? TRUE_REFERENCE : FALSE_REFERENCE);\n });\n APPEND_OPCODES.add(10 /* HasBlockParams */, function (vm, _ref11) {\n var _block = _ref11.op1;\n\n var block = vm.scope().getBlock(_block);\n var hasBlockParams = block && block.symbolTable.parameters.length;\n vm.stack.push(hasBlockParams ? TRUE_REFERENCE : FALSE_REFERENCE);\n });\n APPEND_OPCODES.add(11 /* Concat */, function (vm, _ref12) {\n var count = _ref12.op1;\n\n var out = [];\n for (var i = count; i > 0; i--) {\n out.push(vm.stack.pop());\n }\n vm.stack.push(new ConcatReference(out.reverse()));\n });\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n function _classCallCheck$4(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var Arguments = function () {\n function Arguments() {\n _classCallCheck$4(this, Arguments);\n\n this.stack = null;\n this.positional = new PositionalArguments();\n this.named = new NamedArguments();\n }\n\n Arguments.prototype.empty = function empty() {\n this.setup(null, true);\n return this;\n };\n\n Arguments.prototype.setup = function setup(stack, synthetic) {\n this.stack = stack;\n var names = stack.fromTop(0);\n var namedCount = names.length;\n var positionalCount = stack.fromTop(namedCount + 1);\n var start = positionalCount + namedCount + 2;\n var positional = this.positional;\n positional.setup(stack, start, positionalCount);\n var named = this.named;\n named.setup(stack, namedCount, names, synthetic);\n };\n\n Arguments.prototype.at = function at(pos) {\n return this.positional.at(pos);\n };\n\n Arguments.prototype.get = function get(name) {\n return this.named.get(name);\n };\n\n Arguments.prototype.capture = function capture() {\n return {\n tag: this.tag,\n length: this.length,\n positional: this.positional.capture(),\n named: this.named.capture()\n };\n };\n\n Arguments.prototype.clear = function clear() {\n var stack = this.stack,\n length = this.length;\n\n stack.pop(length + 2);\n };\n\n _createClass(Arguments, [{\n key: 'tag',\n get: function () {\n return (0, _reference2.combineTagged)([this.positional, this.named]);\n }\n }, {\n key: 'length',\n get: function () {\n return this.positional.length + this.named.length;\n }\n }]);\n\n return Arguments;\n }();\n\n var PositionalArguments = function () {\n function PositionalArguments() {\n _classCallCheck$4(this, PositionalArguments);\n\n this.length = 0;\n this.stack = null;\n this.start = 0;\n this._tag = null;\n this._references = null;\n }\n\n PositionalArguments.prototype.setup = function setup(stack, start, length) {\n this.stack = stack;\n this.start = start;\n this.length = length;\n this._tag = null;\n this._references = null;\n };\n\n PositionalArguments.prototype.at = function at(position) {\n var start = this.start,\n length = this.length;\n\n if (position < 0 || position >= length) {\n return UNDEFINED_REFERENCE;\n }\n // stack: pos1, pos2, pos3, named1, named2\n // start: 4 (top - 4)\n //\n // at(0) === pos1 === top - start\n // at(1) === pos2 === top - (start - 1)\n // at(2) === pos3 === top - (start - 2)\n var fromTop = start - position - 1;\n return this.stack.fromTop(fromTop);\n };\n\n PositionalArguments.prototype.capture = function capture() {\n return new CapturedPositionalArguments(this.tag, this.references);\n };\n\n _createClass(PositionalArguments, [{\n key: 'tag',\n get: function () {\n var tag = this._tag;\n if (!tag) {\n tag = this._tag = (0, _reference2.combineTagged)(this.references);\n }\n return tag;\n }\n }, {\n key: 'references',\n get: function () {\n var references = this._references;\n if (!references) {\n var length = this.length;\n\n references = this._references = new Array(length);\n for (var i = 0; i < length; i++) {\n references[i] = this.at(i);\n }\n }\n return references;\n }\n }]);\n\n return PositionalArguments;\n }();\n\n var CapturedPositionalArguments = function () {\n function CapturedPositionalArguments(tag, references) {\n var length = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : references.length;\n\n _classCallCheck$4(this, CapturedPositionalArguments);\n\n this.tag = tag;\n this.references = references;\n this.length = length;\n }\n\n CapturedPositionalArguments.prototype.at = function at(position) {\n return this.references[position];\n };\n\n CapturedPositionalArguments.prototype.value = function value() {\n return this.references.map(this.valueOf);\n };\n\n CapturedPositionalArguments.prototype.get = function get(name) {\n var references = this.references,\n length = this.length;\n\n if (name === 'length') {\n return PrimitiveReference.create(length);\n } else {\n var idx = parseInt(name, 10);\n if (idx < 0 || idx >= length) {\n return UNDEFINED_REFERENCE;\n } else {\n return references[idx];\n }\n }\n };\n\n CapturedPositionalArguments.prototype.valueOf = function valueOf(reference) {\n return reference.value();\n };\n\n return CapturedPositionalArguments;\n }();\n\n var NamedArguments = function () {\n function NamedArguments() {\n _classCallCheck$4(this, NamedArguments);\n\n this.length = 0;\n this._tag = null;\n this._references = null;\n this._names = null;\n this._realNames = _util.EMPTY_ARRAY;\n }\n\n NamedArguments.prototype.setup = function setup(stack, length, names, synthetic) {\n this.stack = stack;\n this.length = length;\n this._tag = null;\n this._references = null;\n if (synthetic) {\n this._names = names;\n this._realNames = _util.EMPTY_ARRAY;\n } else {\n this._names = null;\n this._realNames = names;\n }\n };\n\n NamedArguments.prototype.has = function has(name) {\n return this.names.indexOf(name) !== -1;\n };\n\n NamedArguments.prototype.get = function get(name) {\n var names = this.names,\n length = this.length;\n\n var idx = names.indexOf(name);\n if (idx === -1) {\n return UNDEFINED_REFERENCE;\n }\n // stack: pos1, pos2, pos3, named1, named2\n // start: 4 (top - 4)\n // namedDict: { named1: 1, named2: 0 };\n //\n // get('named1') === named1 === top - (start - 1)\n // get('named2') === named2 === top - start\n var fromTop = length - idx;\n return this.stack.fromTop(fromTop);\n };\n\n NamedArguments.prototype.capture = function capture() {\n return new CapturedNamedArguments(this.tag, this.names, this.references);\n };\n\n NamedArguments.prototype.sliceName = function sliceName(name) {\n return name.slice(1);\n };\n\n _createClass(NamedArguments, [{\n key: 'tag',\n get: function () {\n return (0, _reference2.combineTagged)(this.references);\n }\n }, {\n key: 'names',\n get: function () {\n var names = this._names;\n if (!names) {\n names = this._names = this._realNames.map(this.sliceName);\n }\n return names;\n }\n }, {\n key: 'references',\n get: function () {\n var references = this._references;\n if (!references) {\n var names = this.names,\n length = this.length;\n\n references = this._references = [];\n for (var i = 0; i < length; i++) {\n references[i] = this.get(names[i]);\n }\n }\n return references;\n }\n }]);\n\n return NamedArguments;\n }();\n\n var CapturedNamedArguments = function () {\n function CapturedNamedArguments(tag, names, references) {\n _classCallCheck$4(this, CapturedNamedArguments);\n\n this.tag = tag;\n this.names = names;\n this.references = references;\n this.length = names.length;\n this._map = null;\n }\n\n CapturedNamedArguments.prototype.has = function has(name) {\n return this.names.indexOf(name) !== -1;\n };\n\n CapturedNamedArguments.prototype.get = function get(name) {\n var names = this.names,\n references = this.references;\n\n var idx = names.indexOf(name);\n if (idx === -1) {\n return UNDEFINED_REFERENCE;\n } else {\n return references[idx];\n }\n };\n\n CapturedNamedArguments.prototype.value = function value() {\n var names = this.names,\n references = this.references;\n\n var out = (0, _util.dict)();\n for (var i = 0; i < names.length; i++) {\n var name = names[i];\n out[name] = references[i].value();\n }\n return out;\n };\n\n _createClass(CapturedNamedArguments, [{\n key: 'map',\n get: function () {\n var map$$1 = this._map;\n if (!map$$1) {\n var names = this.names,\n references = this.references;\n\n map$$1 = this._map = (0, _util.dict)();\n for (var i = 0; i < names.length; i++) {\n var name = names[i];\n map$$1[name] = references[i];\n }\n }\n return map$$1;\n }\n }]);\n\n return CapturedNamedArguments;\n }();\n\n var ARGS = new Arguments();\n\n function _defaults$5(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$6(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$5(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$5(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$5(subClass, superClass);\n }\n\n APPEND_OPCODES.add(20 /* ChildScope */, function (vm) {\n return vm.pushChildScope();\n });\n APPEND_OPCODES.add(21 /* PopScope */, function (vm) {\n return vm.popScope();\n });\n APPEND_OPCODES.add(39 /* PushDynamicScope */, function (vm) {\n return vm.pushDynamicScope();\n });\n APPEND_OPCODES.add(40 /* PopDynamicScope */, function (vm) {\n return vm.popDynamicScope();\n });\n APPEND_OPCODES.add(12 /* Immediate */, function (vm, _ref) {\n var number = _ref.op1;\n\n vm.stack.push(number);\n });\n APPEND_OPCODES.add(13 /* Constant */, function (vm, _ref2) {\n var other = _ref2.op1;\n\n vm.stack.push(vm.constants.getOther(other));\n });\n APPEND_OPCODES.add(14 /* PrimitiveReference */, function (vm, _ref3) {\n var primitive = _ref3.op1;\n\n var stack = vm.stack;\n var flag = (primitive & 3 << 30) >>> 30;\n var value = primitive & ~(3 << 30);\n switch (flag) {\n case 0:\n stack.push(PrimitiveReference.create(value));\n break;\n case 1:\n stack.push(PrimitiveReference.create(vm.constants.getFloat(value)));\n break;\n case 2:\n stack.push(PrimitiveReference.create(vm.constants.getString(value)));\n break;\n case 3:\n switch (value) {\n case 0:\n stack.push(FALSE_REFERENCE);\n break;\n case 1:\n stack.push(TRUE_REFERENCE);\n break;\n case 2:\n stack.push(NULL_REFERENCE);\n break;\n case 3:\n stack.push(UNDEFINED_REFERENCE);\n break;\n }\n break;\n }\n });\n APPEND_OPCODES.add(15 /* Dup */, function (vm, _ref4) {\n var register = _ref4.op1,\n offset = _ref4.op2;\n\n var position = vm.fetchValue(register) - offset;\n vm.stack.dup(position);\n });\n APPEND_OPCODES.add(16 /* Pop */, function (vm, _ref5) {\n var count = _ref5.op1;\n return vm.stack.pop(count);\n });\n APPEND_OPCODES.add(17 /* Load */, function (vm, _ref6) {\n var register = _ref6.op1;\n return vm.load(register);\n });\n APPEND_OPCODES.add(18 /* Fetch */, function (vm, _ref7) {\n var register = _ref7.op1;\n return vm.fetch(register);\n });\n APPEND_OPCODES.add(38 /* BindDynamicScope */, function (vm, _ref8) {\n var _names = _ref8.op1;\n\n var names = vm.constants.getArray(_names);\n vm.bindDynamicScope(names);\n });\n APPEND_OPCODES.add(47 /* PushFrame */, function (vm) {\n return vm.pushFrame();\n });\n APPEND_OPCODES.add(48 /* PopFrame */, function (vm) {\n return vm.popFrame();\n });\n APPEND_OPCODES.add(49 /* Enter */, function (vm, _ref9) {\n var args = _ref9.op1;\n return vm.enter(args);\n });\n APPEND_OPCODES.add(50 /* Exit */, function (vm) {\n return vm.exit();\n });\n APPEND_OPCODES.add(41 /* CompileDynamicBlock */, function (vm) {\n var stack = vm.stack;\n var block = stack.pop();\n stack.push(block ? block.compileDynamic(vm.env) : null);\n });\n APPEND_OPCODES.add(42 /* InvokeStatic */, function (vm, _ref10) {\n var _block = _ref10.op1;\n\n var block = vm.constants.getBlock(_block);\n var compiled = block.compileStatic(vm.env);\n vm.call(compiled.handle);\n });\n APPEND_OPCODES.add(43 /* InvokeDynamic */, function (vm, _ref11) {\n var _invoker = _ref11.op1;\n\n var invoker = vm.constants.getOther(_invoker);\n var block = vm.stack.pop();\n invoker.invoke(vm, block);\n });\n APPEND_OPCODES.add(44 /* Jump */, function (vm, _ref12) {\n var target = _ref12.op1;\n return vm.goto(target);\n });\n APPEND_OPCODES.add(45 /* JumpIf */, function (vm, _ref13) {\n var target = _ref13.op1;\n\n var reference = vm.stack.pop();\n if ((0, _reference2.isConst)(reference)) {\n if (reference.value()) {\n vm.goto(target);\n }\n } else {\n var cache = new _reference2.ReferenceCache(reference);\n if (cache.peek()) {\n vm.goto(target);\n }\n vm.updateWith(new Assert(cache));\n }\n });\n APPEND_OPCODES.add(46 /* JumpUnless */, function (vm, _ref14) {\n var target = _ref14.op1;\n\n var reference = vm.stack.pop();\n if ((0, _reference2.isConst)(reference)) {\n if (!reference.value()) {\n vm.goto(target);\n }\n } else {\n var cache = new _reference2.ReferenceCache(reference);\n if (!cache.peek()) {\n vm.goto(target);\n }\n vm.updateWith(new Assert(cache));\n }\n });\n APPEND_OPCODES.add(22 /* Return */, function (vm) {\n return vm.return();\n });\n APPEND_OPCODES.add(23 /* ReturnTo */, function (vm, _ref15) {\n var relative = _ref15.op1;\n\n vm.returnTo(relative);\n });\n var ConstTest = function (ref, _env) {\n return new _reference2.ConstReference(!!ref.value());\n };\n var SimpleTest = function (ref, _env) {\n return ref;\n };\n var EnvironmentTest = function (ref, env) {\n return env.toConditionalReference(ref);\n };\n APPEND_OPCODES.add(51 /* Test */, function (vm, _ref16) {\n var _func = _ref16.op1;\n\n var stack = vm.stack;\n var operand = stack.pop();\n var func = vm.constants.getFunction(_func);\n stack.push(func(operand, vm.env));\n });\n var Assert = function (_UpdatingOpcode) {\n _inherits$5(Assert, _UpdatingOpcode);\n\n function Assert(cache) {\n _classCallCheck$6(this, Assert);\n\n var _this = _possibleConstructorReturn$5(this, _UpdatingOpcode.call(this));\n\n _this.type = 'assert';\n _this.tag = cache.tag;\n _this.cache = cache;\n return _this;\n }\n\n Assert.prototype.evaluate = function evaluate(vm) {\n var cache = this.cache;\n\n if ((0, _reference2.isModified)(cache.revalidate())) {\n vm.throw();\n }\n };\n\n Assert.prototype.toJSON = function toJSON() {\n var type = this.type,\n _guid = this._guid,\n cache = this.cache;\n\n var expected = void 0;\n try {\n expected = JSON.stringify(cache.peek());\n } catch (e) {\n expected = String(cache.peek());\n }\n return {\n args: [],\n details: { expected: expected },\n guid: _guid,\n type: type\n };\n };\n\n return Assert;\n }(UpdatingOpcode);\n var JumpIfNotModifiedOpcode = function (_UpdatingOpcode2) {\n _inherits$5(JumpIfNotModifiedOpcode, _UpdatingOpcode2);\n\n function JumpIfNotModifiedOpcode(tag, target) {\n _classCallCheck$6(this, JumpIfNotModifiedOpcode);\n\n var _this2 = _possibleConstructorReturn$5(this, _UpdatingOpcode2.call(this));\n\n _this2.target = target;\n _this2.type = 'jump-if-not-modified';\n _this2.tag = tag;\n _this2.lastRevision = tag.value();\n return _this2;\n }\n\n JumpIfNotModifiedOpcode.prototype.evaluate = function evaluate(vm) {\n var tag = this.tag,\n target = this.target,\n lastRevision = this.lastRevision;\n\n if (!vm.alwaysRevalidate && tag.validate(lastRevision)) {\n vm.goto(target);\n }\n };\n\n JumpIfNotModifiedOpcode.prototype.didModify = function didModify() {\n this.lastRevision = this.tag.value();\n };\n\n JumpIfNotModifiedOpcode.prototype.toJSON = function toJSON() {\n return {\n args: [JSON.stringify(this.target.inspect())],\n guid: this._guid,\n type: this.type\n };\n };\n\n return JumpIfNotModifiedOpcode;\n }(UpdatingOpcode);\n var DidModifyOpcode = function (_UpdatingOpcode3) {\n _inherits$5(DidModifyOpcode, _UpdatingOpcode3);\n\n function DidModifyOpcode(target) {\n _classCallCheck$6(this, DidModifyOpcode);\n\n var _this3 = _possibleConstructorReturn$5(this, _UpdatingOpcode3.call(this));\n\n _this3.target = target;\n _this3.type = 'did-modify';\n _this3.tag = _reference2.CONSTANT_TAG;\n return _this3;\n }\n\n DidModifyOpcode.prototype.evaluate = function evaluate() {\n this.target.didModify();\n };\n\n return DidModifyOpcode;\n }(UpdatingOpcode);\n var LabelOpcode = function () {\n function LabelOpcode(label) {\n _classCallCheck$6(this, LabelOpcode);\n\n this.tag = _reference2.CONSTANT_TAG;\n this.type = 'label';\n this.label = null;\n this.prev = null;\n this.next = null;\n (0, _util.initializeGuid)(this);\n this.label = label;\n }\n\n LabelOpcode.prototype.evaluate = function evaluate() {};\n\n LabelOpcode.prototype.inspect = function inspect$$1() {\n return this.label + ' [' + this._guid + ']';\n };\n\n LabelOpcode.prototype.toJSON = function toJSON() {\n return {\n args: [JSON.stringify(this.inspect())],\n guid: this._guid,\n type: this.type\n };\n };\n\n return LabelOpcode;\n }();\n\n function _defaults$4(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn$4(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$4(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$4(subClass, superClass);\n }\n\n function _classCallCheck$5(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n APPEND_OPCODES.add(24 /* Text */, function (vm, _ref) {\n var text = _ref.op1;\n\n vm.elements().appendText(vm.constants.getString(text));\n });\n APPEND_OPCODES.add(25 /* Comment */, function (vm, _ref2) {\n var text = _ref2.op1;\n\n vm.elements().appendComment(vm.constants.getString(text));\n });\n APPEND_OPCODES.add(27 /* OpenElement */, function (vm, _ref3) {\n var tag = _ref3.op1;\n\n vm.elements().openElement(vm.constants.getString(tag));\n });\n APPEND_OPCODES.add(28 /* OpenElementWithOperations */, function (vm, _ref4) {\n var tag = _ref4.op1;\n\n var tagName = vm.constants.getString(tag);\n var operations = vm.stack.pop();\n vm.elements().openElement(tagName, operations);\n });\n APPEND_OPCODES.add(29 /* OpenDynamicElement */, function (vm) {\n var operations = vm.stack.pop();\n var tagName = vm.stack.pop().value();\n vm.elements().openElement(tagName, operations);\n });\n APPEND_OPCODES.add(36 /* PushRemoteElement */, function (vm) {\n var elementRef = vm.stack.pop();\n var nextSiblingRef = vm.stack.pop();\n var element = void 0;\n var nextSibling = void 0;\n if ((0, _reference2.isConst)(elementRef)) {\n element = elementRef.value();\n } else {\n var cache = new _reference2.ReferenceCache(elementRef);\n element = cache.peek();\n vm.updateWith(new Assert(cache));\n }\n if ((0, _reference2.isConst)(nextSiblingRef)) {\n nextSibling = nextSiblingRef.value();\n } else {\n var _cache = new _reference2.ReferenceCache(nextSiblingRef);\n nextSibling = _cache.peek();\n vm.updateWith(new Assert(_cache));\n }\n vm.elements().pushRemoteElement(element, nextSibling);\n });\n APPEND_OPCODES.add(37 /* PopRemoteElement */, function (vm) {\n return vm.elements().popRemoteElement();\n });\n\n var ClassList = function () {\n function ClassList() {\n _classCallCheck$5(this, ClassList);\n\n this.list = null;\n this.isConst = true;\n }\n\n ClassList.prototype.append = function append(reference) {\n var list = this.list,\n isConst$$1 = this.isConst;\n\n if (list === null) list = this.list = [];\n list.push(reference);\n this.isConst = isConst$$1 && (0, _reference2.isConst)(reference);\n };\n\n ClassList.prototype.toReference = function toReference() {\n var list = this.list,\n isConst$$1 = this.isConst;\n\n if (!list) return NULL_REFERENCE;\n if (isConst$$1) return PrimitiveReference.create(toClassName(list));\n return new ClassListReference(list);\n };\n\n return ClassList;\n }();\n\n var ClassListReference = function (_CachedReference) {\n _inherits$4(ClassListReference, _CachedReference);\n\n function ClassListReference(list) {\n _classCallCheck$5(this, ClassListReference);\n\n var _this = _possibleConstructorReturn$4(this, _CachedReference.call(this));\n\n _this.list = [];\n _this.tag = (0, _reference2.combineTagged)(list);\n _this.list = list;\n return _this;\n }\n\n ClassListReference.prototype.compute = function compute() {\n return toClassName(this.list);\n };\n\n return ClassListReference;\n }(_reference2.CachedReference);\n\n function toClassName(list) {\n var ret = [];\n for (var i = 0; i < list.length; i++) {\n var value = list[i].value();\n if (value !== false && value !== null && value !== undefined) ret.push(value);\n }\n return ret.length === 0 ? null : ret.join(' ');\n }\n var SimpleElementOperations = function () {\n function SimpleElementOperations(env) {\n _classCallCheck$5(this, SimpleElementOperations);\n\n this.env = env;\n this.opcodes = null;\n this.classList = null;\n }\n\n SimpleElementOperations.prototype.addStaticAttribute = function addStaticAttribute(element, name, value) {\n if (name === 'class') {\n this.addClass(PrimitiveReference.create(value));\n } else {\n this.env.getAppendOperations().setAttribute(element, name, value);\n }\n };\n\n SimpleElementOperations.prototype.addStaticAttributeNS = function addStaticAttributeNS(element, namespace, name, value) {\n this.env.getAppendOperations().setAttribute(element, name, value, namespace);\n };\n\n SimpleElementOperations.prototype.addDynamicAttribute = function addDynamicAttribute(element, name, reference, isTrusting) {\n if (name === 'class') {\n this.addClass(reference);\n } else {\n var attributeManager = this.env.attributeFor(element, name, isTrusting);\n var attribute = new DynamicAttribute(element, attributeManager, name, reference);\n this.addAttribute(attribute);\n }\n };\n\n SimpleElementOperations.prototype.addDynamicAttributeNS = function addDynamicAttributeNS(element, namespace, name, reference, isTrusting) {\n var attributeManager = this.env.attributeFor(element, name, isTrusting, namespace);\n var nsAttribute = new DynamicAttribute(element, attributeManager, name, reference, namespace);\n this.addAttribute(nsAttribute);\n };\n\n SimpleElementOperations.prototype.flush = function flush(element, vm) {\n var env = vm.env;\n var opcodes = this.opcodes,\n classList = this.classList;\n\n for (var i = 0; opcodes && i < opcodes.length; i++) {\n vm.updateWith(opcodes[i]);\n }\n if (classList) {\n var attributeManager = env.attributeFor(element, 'class', false);\n var attribute = new DynamicAttribute(element, attributeManager, 'class', classList.toReference());\n var opcode = attribute.flush(env);\n if (opcode) {\n vm.updateWith(opcode);\n }\n }\n this.opcodes = null;\n this.classList = null;\n };\n\n SimpleElementOperations.prototype.addClass = function addClass(reference) {\n var classList = this.classList;\n\n if (!classList) {\n classList = this.classList = new ClassList();\n }\n classList.append(reference);\n };\n\n SimpleElementOperations.prototype.addAttribute = function addAttribute(attribute) {\n var opcode = attribute.flush(this.env);\n if (opcode) {\n var opcodes = this.opcodes;\n\n if (!opcodes) {\n opcodes = this.opcodes = [];\n }\n opcodes.push(opcode);\n }\n };\n\n return SimpleElementOperations;\n }();\n var ComponentElementOperations = function () {\n function ComponentElementOperations(env) {\n _classCallCheck$5(this, ComponentElementOperations);\n\n this.env = env;\n this.attributeNames = null;\n this.attributes = null;\n this.classList = null;\n }\n\n ComponentElementOperations.prototype.addStaticAttribute = function addStaticAttribute(element, name, value) {\n if (name === 'class') {\n this.addClass(PrimitiveReference.create(value));\n } else if (this.shouldAddAttribute(name)) {\n this.addAttribute(name, new StaticAttribute(element, name, value));\n }\n };\n\n ComponentElementOperations.prototype.addStaticAttributeNS = function addStaticAttributeNS(element, namespace, name, value) {\n if (this.shouldAddAttribute(name)) {\n this.addAttribute(name, new StaticAttribute(element, name, value, namespace));\n }\n };\n\n ComponentElementOperations.prototype.addDynamicAttribute = function addDynamicAttribute(element, name, reference, isTrusting) {\n if (name === 'class') {\n this.addClass(reference);\n } else if (this.shouldAddAttribute(name)) {\n var attributeManager = this.env.attributeFor(element, name, isTrusting);\n var attribute = new DynamicAttribute(element, attributeManager, name, reference);\n this.addAttribute(name, attribute);\n }\n };\n\n ComponentElementOperations.prototype.addDynamicAttributeNS = function addDynamicAttributeNS(element, namespace, name, reference, isTrusting) {\n if (this.shouldAddAttribute(name)) {\n var attributeManager = this.env.attributeFor(element, name, isTrusting, namespace);\n var nsAttribute = new DynamicAttribute(element, attributeManager, name, reference, namespace);\n this.addAttribute(name, nsAttribute);\n }\n };\n\n ComponentElementOperations.prototype.flush = function flush(element, vm) {\n var env = this.env;\n var attributes = this.attributes,\n classList = this.classList;\n\n for (var i = 0; attributes && i < attributes.length; i++) {\n var opcode = attributes[i].flush(env);\n if (opcode) {\n vm.updateWith(opcode);\n }\n }\n if (classList) {\n var attributeManager = env.attributeFor(element, 'class', false);\n var attribute = new DynamicAttribute(element, attributeManager, 'class', classList.toReference());\n var _opcode = attribute.flush(env);\n if (_opcode) {\n vm.updateWith(_opcode);\n }\n }\n };\n\n ComponentElementOperations.prototype.shouldAddAttribute = function shouldAddAttribute(name) {\n return !this.attributeNames || this.attributeNames.indexOf(name) === -1;\n };\n\n ComponentElementOperations.prototype.addClass = function addClass(reference) {\n var classList = this.classList;\n\n if (!classList) {\n classList = this.classList = new ClassList();\n }\n classList.append(reference);\n };\n\n ComponentElementOperations.prototype.addAttribute = function addAttribute(name, attribute) {\n var attributeNames = this.attributeNames,\n attributes = this.attributes;\n\n if (!attributeNames) {\n attributeNames = this.attributeNames = [];\n attributes = this.attributes = [];\n }\n attributeNames.push(name);\n attributes.push(attribute);\n };\n\n return ComponentElementOperations;\n }();\n APPEND_OPCODES.add(33 /* FlushElement */, function (vm) {\n var stack = vm.elements();\n var action = 'FlushElementOpcode#evaluate';\n stack.expectOperations(action).flush(stack.expectConstructing(action), vm);\n stack.flushElement();\n });\n APPEND_OPCODES.add(34 /* CloseElement */, function (vm) {\n return vm.elements().closeElement();\n });\n APPEND_OPCODES.add(30 /* StaticAttr */, function (vm, _ref5) {\n var _name = _ref5.op1,\n _value = _ref5.op2,\n _namespace = _ref5.op3;\n\n var name = vm.constants.getString(_name);\n var value = vm.constants.getString(_value);\n if (_namespace) {\n var namespace = vm.constants.getString(_namespace);\n vm.elements().setStaticAttributeNS(namespace, name, value);\n } else {\n vm.elements().setStaticAttribute(name, value);\n }\n });\n APPEND_OPCODES.add(35 /* Modifier */, function (vm, _ref6) {\n var _manager = _ref6.op1;\n\n var manager = vm.constants.getOther(_manager);\n var stack = vm.stack;\n var args = stack.pop();\n var tag = args.tag;\n\n var _vm$elements = vm.elements(),\n element = _vm$elements.constructing,\n updateOperations = _vm$elements.updateOperations;\n\n var dynamicScope = vm.dynamicScope();\n var modifier = manager.create(element, args, dynamicScope, updateOperations);\n args.clear();\n vm.env.scheduleInstallModifier(modifier, manager);\n var destructor = manager.getDestructor(modifier);\n if (destructor) {\n vm.newDestroyable(destructor);\n }\n vm.updateWith(new UpdateModifierOpcode(tag, manager, modifier));\n });\n var UpdateModifierOpcode = function (_UpdatingOpcode) {\n _inherits$4(UpdateModifierOpcode, _UpdatingOpcode);\n\n function UpdateModifierOpcode(tag, manager, modifier) {\n _classCallCheck$5(this, UpdateModifierOpcode);\n\n var _this2 = _possibleConstructorReturn$4(this, _UpdatingOpcode.call(this));\n\n _this2.tag = tag;\n _this2.manager = manager;\n _this2.modifier = modifier;\n _this2.type = 'update-modifier';\n _this2.lastUpdated = tag.value();\n return _this2;\n }\n\n UpdateModifierOpcode.prototype.evaluate = function evaluate(vm) {\n var manager = this.manager,\n modifier = this.modifier,\n tag = this.tag,\n lastUpdated = this.lastUpdated;\n\n if (!tag.validate(lastUpdated)) {\n vm.env.scheduleUpdateModifier(modifier, manager);\n this.lastUpdated = tag.value();\n }\n };\n\n UpdateModifierOpcode.prototype.toJSON = function toJSON() {\n return {\n guid: this._guid,\n type: this.type\n };\n };\n\n return UpdateModifierOpcode;\n }(UpdatingOpcode);\n var StaticAttribute = function () {\n function StaticAttribute(element, name, value, namespace) {\n _classCallCheck$5(this, StaticAttribute);\n\n this.element = element;\n this.name = name;\n this.value = value;\n this.namespace = namespace;\n }\n\n StaticAttribute.prototype.flush = function flush(env) {\n env.getAppendOperations().setAttribute(this.element, this.name, this.value, this.namespace);\n return null;\n };\n\n return StaticAttribute;\n }();\n var DynamicAttribute = function () {\n function DynamicAttribute(element, attributeManager, name, reference, namespace) {\n _classCallCheck$5(this, DynamicAttribute);\n\n this.element = element;\n this.attributeManager = attributeManager;\n this.name = name;\n this.reference = reference;\n this.namespace = namespace;\n this.cache = null;\n this.tag = reference.tag;\n }\n\n DynamicAttribute.prototype.patch = function patch(env) {\n var element = this.element,\n cache = this.cache;\n\n var value = cache.revalidate();\n if ((0, _reference2.isModified)(value)) {\n this.attributeManager.updateAttribute(env, element, value, this.namespace);\n }\n };\n\n DynamicAttribute.prototype.flush = function flush(env) {\n var reference = this.reference,\n element = this.element;\n\n if ((0, _reference2.isConst)(reference)) {\n var value = reference.value();\n this.attributeManager.setAttribute(env, element, value, this.namespace);\n return null;\n } else {\n var cache = this.cache = new _reference2.ReferenceCache(reference);\n var _value2 = cache.peek();\n this.attributeManager.setAttribute(env, element, _value2, this.namespace);\n return new PatchElementOpcode(this);\n }\n };\n\n DynamicAttribute.prototype.toJSON = function toJSON() {\n var element = this.element,\n namespace = this.namespace,\n name = this.name,\n cache = this.cache;\n\n var formattedElement = formatElement(element);\n var lastValue = cache.peek();\n if (namespace) {\n return {\n element: formattedElement,\n lastValue: lastValue,\n name: name,\n namespace: namespace,\n type: 'attribute'\n };\n }\n return {\n element: formattedElement,\n lastValue: lastValue,\n name: name,\n namespace: namespace === undefined ? null : namespace,\n type: 'attribute'\n };\n };\n\n return DynamicAttribute;\n }();\n function formatElement(element) {\n return JSON.stringify('<' + element.tagName.toLowerCase() + ' />');\n }\n APPEND_OPCODES.add(32 /* DynamicAttrNS */, function (vm, _ref7) {\n var _name = _ref7.op1,\n _namespace = _ref7.op2,\n trusting = _ref7.op3;\n\n var name = vm.constants.getString(_name);\n var namespace = vm.constants.getString(_namespace);\n var reference = vm.stack.pop();\n vm.elements().setDynamicAttributeNS(namespace, name, reference, !!trusting);\n });\n APPEND_OPCODES.add(31 /* DynamicAttr */, function (vm, _ref8) {\n var _name = _ref8.op1,\n trusting = _ref8.op2;\n\n var name = vm.constants.getString(_name);\n var reference = vm.stack.pop();\n vm.elements().setDynamicAttribute(name, reference, !!trusting);\n });\n var PatchElementOpcode = function (_UpdatingOpcode2) {\n _inherits$4(PatchElementOpcode, _UpdatingOpcode2);\n\n function PatchElementOpcode(operation) {\n _classCallCheck$5(this, PatchElementOpcode);\n\n var _this3 = _possibleConstructorReturn$4(this, _UpdatingOpcode2.call(this));\n\n _this3.type = 'patch-element';\n _this3.tag = operation.tag;\n _this3.operation = operation;\n return _this3;\n }\n\n PatchElementOpcode.prototype.evaluate = function evaluate(vm) {\n this.operation.patch(vm.env);\n };\n\n PatchElementOpcode.prototype.toJSON = function toJSON() {\n var _guid = this._guid,\n type = this.type,\n operation = this.operation;\n\n return {\n details: operation.toJSON(),\n guid: _guid,\n type: type\n };\n };\n\n return PatchElementOpcode;\n }(UpdatingOpcode);\n\n function _defaults$3(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$3(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$3(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$3(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$3(subClass, superClass);\n }\n\n APPEND_OPCODES.add(56 /* PushComponentManager */, function (vm, _ref) {\n var _definition = _ref.op1;\n\n var definition = vm.constants.getOther(_definition);\n var stack = vm.stack;\n stack.push({ definition: definition, manager: definition.manager, component: null });\n });\n APPEND_OPCODES.add(57 /* PushDynamicComponentManager */, function (vm) {\n var stack = vm.stack;\n var reference = stack.pop();\n var cache = (0, _reference2.isConst)(reference) ? undefined : new _reference2.ReferenceCache(reference);\n var definition = cache ? cache.peek() : reference.value();\n stack.push({ definition: definition, manager: definition.manager, component: null });\n if (cache) {\n vm.updateWith(new Assert(cache));\n }\n });\n APPEND_OPCODES.add(58 /* PushArgs */, function (vm, _ref2) {\n var synthetic = _ref2.op1;\n\n var stack = vm.stack;\n ARGS.setup(stack, !!synthetic);\n stack.push(ARGS);\n });\n APPEND_OPCODES.add(59 /* PrepareArgs */, function (vm, _ref3) {\n var _state = _ref3.op1;\n\n var stack = vm.stack;\n\n var _vm$fetchValue = vm.fetchValue(_state),\n definition = _vm$fetchValue.definition,\n manager = _vm$fetchValue.manager;\n\n var args = stack.pop();\n var preparedArgs = manager.prepareArgs(definition, args);\n if (preparedArgs) {\n args.clear();\n var positional = preparedArgs.positional,\n named = preparedArgs.named;\n\n var positionalCount = positional.length;\n for (var i = 0; i < positionalCount; i++) {\n stack.push(positional[i]);\n }\n stack.push(positionalCount);\n var names = Object.keys(named);\n var namedCount = names.length;\n var atNames = [];\n for (var _i = 0; _i < namedCount; _i++) {\n var value = named[names[_i]];\n var atName = '@' + names[_i];\n stack.push(value);\n atNames.push(atName);\n }\n stack.push(atNames);\n args.setup(stack, false);\n }\n stack.push(args);\n });\n APPEND_OPCODES.add(60 /* CreateComponent */, function (vm, _ref4) {\n var _vm$fetchValue2;\n\n var flags = _ref4.op1,\n _state = _ref4.op2;\n\n var definition = void 0;\n var manager = void 0;\n var args = vm.stack.pop();\n var dynamicScope = vm.dynamicScope();\n var state = (_vm$fetchValue2 = vm.fetchValue(_state), definition = _vm$fetchValue2.definition, manager = _vm$fetchValue2.manager, _vm$fetchValue2);\n var hasDefaultBlock = flags & 1;\n var component = manager.create(vm.env, definition, args, dynamicScope, vm.getSelf(), !!hasDefaultBlock);\n state.component = component;\n vm.updateWith(new UpdateComponentOpcode(args.tag, definition.name, component, manager, dynamicScope));\n });\n APPEND_OPCODES.add(61 /* RegisterComponentDestructor */, function (vm, _ref5) {\n var _state = _ref5.op1;\n\n var _vm$fetchValue3 = vm.fetchValue(_state),\n manager = _vm$fetchValue3.manager,\n component = _vm$fetchValue3.component;\n\n var destructor = manager.getDestructor(component);\n if (destructor) vm.newDestroyable(destructor);\n });\n APPEND_OPCODES.add(65 /* BeginComponentTransaction */, function (vm) {\n vm.beginCacheGroup();\n vm.elements().pushSimpleBlock();\n });\n APPEND_OPCODES.add(62 /* PushComponentOperations */, function (vm) {\n vm.stack.push(new ComponentElementOperations(vm.env));\n });\n APPEND_OPCODES.add(67 /* DidCreateElement */, function (vm, _ref6) {\n var _state = _ref6.op1;\n\n var _vm$fetchValue4 = vm.fetchValue(_state),\n manager = _vm$fetchValue4.manager,\n component = _vm$fetchValue4.component;\n\n var action = 'DidCreateElementOpcode#evaluate';\n manager.didCreateElement(component, vm.elements().expectConstructing(action), vm.elements().expectOperations(action));\n });\n APPEND_OPCODES.add(63 /* GetComponentSelf */, function (vm, _ref7) {\n var _state = _ref7.op1;\n\n var state = vm.fetchValue(_state);\n vm.stack.push(state.manager.getSelf(state.component));\n });\n APPEND_OPCODES.add(64 /* GetComponentLayout */, function (vm, _ref8) {\n var _state = _ref8.op1;\n\n var _vm$fetchValue5 = vm.fetchValue(_state),\n manager = _vm$fetchValue5.manager,\n definition = _vm$fetchValue5.definition,\n component = _vm$fetchValue5.component;\n\n vm.stack.push(manager.layoutFor(definition, component, vm.env));\n });\n APPEND_OPCODES.add(68 /* DidRenderLayout */, function (vm, _ref9) {\n var _state = _ref9.op1;\n\n var _vm$fetchValue6 = vm.fetchValue(_state),\n manager = _vm$fetchValue6.manager,\n component = _vm$fetchValue6.component;\n\n var bounds = vm.elements().popBlock();\n manager.didRenderLayout(component, bounds);\n vm.env.didCreate(component, manager);\n vm.updateWith(new DidUpdateLayoutOpcode(manager, component, bounds));\n });\n APPEND_OPCODES.add(66 /* CommitComponentTransaction */, function (vm) {\n return vm.commitCacheGroup();\n });\n var UpdateComponentOpcode = function (_UpdatingOpcode) {\n _inherits$3(UpdateComponentOpcode, _UpdatingOpcode);\n\n function UpdateComponentOpcode(tag, name, component, manager, dynamicScope) {\n _classCallCheck$3(this, UpdateComponentOpcode);\n\n var _this = _possibleConstructorReturn$3(this, _UpdatingOpcode.call(this));\n\n _this.name = name;\n _this.component = component;\n _this.manager = manager;\n _this.dynamicScope = dynamicScope;\n _this.type = 'update-component';\n var componentTag = manager.getTag(component);\n if (componentTag) {\n _this.tag = (0, _reference2.combine)([tag, componentTag]);\n } else {\n _this.tag = tag;\n }\n return _this;\n }\n\n UpdateComponentOpcode.prototype.evaluate = function evaluate(_vm) {\n var component = this.component,\n manager = this.manager,\n dynamicScope = this.dynamicScope;\n\n manager.update(component, dynamicScope);\n };\n\n UpdateComponentOpcode.prototype.toJSON = function toJSON() {\n return {\n args: [JSON.stringify(this.name)],\n guid: this._guid,\n type: this.type\n };\n };\n\n return UpdateComponentOpcode;\n }(UpdatingOpcode);\n var DidUpdateLayoutOpcode = function (_UpdatingOpcode2) {\n _inherits$3(DidUpdateLayoutOpcode, _UpdatingOpcode2);\n\n function DidUpdateLayoutOpcode(manager, component, bounds) {\n _classCallCheck$3(this, DidUpdateLayoutOpcode);\n\n var _this2 = _possibleConstructorReturn$3(this, _UpdatingOpcode2.call(this));\n\n _this2.manager = manager;\n _this2.component = component;\n _this2.bounds = bounds;\n _this2.type = 'did-update-layout';\n _this2.tag = _reference2.CONSTANT_TAG;\n return _this2;\n }\n\n DidUpdateLayoutOpcode.prototype.evaluate = function evaluate(vm) {\n var manager = this.manager,\n component = this.component,\n bounds = this.bounds;\n\n manager.didUpdateLayout(component, bounds);\n vm.env.didUpdate(component, manager);\n };\n\n return DidUpdateLayoutOpcode;\n }(UpdatingOpcode);\n\n function _classCallCheck$8(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var Cursor = function Cursor(element, nextSibling) {\n _classCallCheck$8(this, Cursor);\n\n this.element = element;\n this.nextSibling = nextSibling;\n };\n\n var ConcreteBounds = function () {\n function ConcreteBounds(parentNode, first, last) {\n _classCallCheck$8(this, ConcreteBounds);\n\n this.parentNode = parentNode;\n this.first = first;\n this.last = last;\n }\n\n ConcreteBounds.prototype.parentElement = function parentElement() {\n return this.parentNode;\n };\n\n ConcreteBounds.prototype.firstNode = function firstNode() {\n return this.first;\n };\n\n ConcreteBounds.prototype.lastNode = function lastNode() {\n return this.last;\n };\n\n return ConcreteBounds;\n }();\n var SingleNodeBounds = function () {\n function SingleNodeBounds(parentNode, node) {\n _classCallCheck$8(this, SingleNodeBounds);\n\n this.parentNode = parentNode;\n this.node = node;\n }\n\n SingleNodeBounds.prototype.parentElement = function parentElement() {\n return this.parentNode;\n };\n\n SingleNodeBounds.prototype.firstNode = function firstNode() {\n return this.node;\n };\n\n SingleNodeBounds.prototype.lastNode = function lastNode() {\n return this.node;\n };\n\n return SingleNodeBounds;\n }();\n\n function single(parent, node) {\n return new SingleNodeBounds(parent, node);\n }\n function move(bounds, reference) {\n var parent = bounds.parentElement();\n var first = bounds.firstNode();\n var last = bounds.lastNode();\n var node = first;\n while (node) {\n var next = node.nextSibling;\n parent.insertBefore(node, reference);\n if (node === last) return next;\n node = next;\n }\n return null;\n }\n function clear(bounds) {\n var parent = bounds.parentElement();\n var first = bounds.firstNode();\n var last = bounds.lastNode();\n var node = first;\n while (node) {\n var next = node.nextSibling;\n parent.removeChild(node);\n if (node === last) return next;\n node = next;\n }\n return null;\n }\n\n function _defaults$7(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn$7(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$7(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$7(subClass, superClass);\n }\n\n function _classCallCheck$9(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var First = function () {\n function First(node) {\n _classCallCheck$9(this, First);\n\n this.node = node;\n }\n\n First.prototype.firstNode = function firstNode() {\n return this.node;\n };\n\n return First;\n }();\n\n var Last = function () {\n function Last(node) {\n _classCallCheck$9(this, Last);\n\n this.node = node;\n }\n\n Last.prototype.lastNode = function lastNode() {\n return this.node;\n };\n\n return Last;\n }();\n\n var Fragment = function () {\n function Fragment(bounds$$1) {\n _classCallCheck$9(this, Fragment);\n\n this.bounds = bounds$$1;\n }\n\n Fragment.prototype.parentElement = function parentElement() {\n return this.bounds.parentElement();\n };\n\n Fragment.prototype.firstNode = function firstNode() {\n return this.bounds.firstNode();\n };\n\n Fragment.prototype.lastNode = function lastNode() {\n return this.bounds.lastNode();\n };\n\n Fragment.prototype.update = function update(bounds$$1) {\n this.bounds = bounds$$1;\n };\n\n return Fragment;\n }();\n var ElementStack = function () {\n function ElementStack(env, parentNode, nextSibling) {\n _classCallCheck$9(this, ElementStack);\n\n this.constructing = null;\n this.operations = null;\n this.elementStack = new _util.Stack();\n this.nextSiblingStack = new _util.Stack();\n this.blockStack = new _util.Stack();\n this.env = env;\n this.dom = env.getAppendOperations();\n this.updateOperations = env.getDOM();\n this.element = parentNode;\n this.nextSibling = nextSibling;\n this.defaultOperations = new SimpleElementOperations(env);\n this.pushSimpleBlock();\n this.elementStack.push(this.element);\n this.nextSiblingStack.push(this.nextSibling);\n }\n\n ElementStack.forInitialRender = function forInitialRender(env, parentNode, nextSibling) {\n return new ElementStack(env, parentNode, nextSibling);\n };\n\n ElementStack.resume = function resume(env, tracker, nextSibling) {\n var parentNode = tracker.parentElement();\n var stack = new ElementStack(env, parentNode, nextSibling);\n stack.pushBlockTracker(tracker);\n return stack;\n };\n\n ElementStack.prototype.expectConstructing = function expectConstructing(method) {\n return this.constructing;\n };\n\n ElementStack.prototype.expectOperations = function expectOperations(method) {\n return this.operations;\n };\n\n ElementStack.prototype.block = function block() {\n return this.blockStack.current;\n };\n\n ElementStack.prototype.popElement = function popElement() {\n var elementStack = this.elementStack,\n nextSiblingStack = this.nextSiblingStack;\n\n var topElement = elementStack.pop();\n nextSiblingStack.pop();\n // LOGGER.debug(`-> element stack ${this.elementStack.toArray().map(e => e.tagName).join(', ')}`);\n this.element = elementStack.current;\n this.nextSibling = nextSiblingStack.current;\n return topElement;\n };\n\n ElementStack.prototype.pushSimpleBlock = function pushSimpleBlock() {\n var tracker = new SimpleBlockTracker(this.element);\n this.pushBlockTracker(tracker);\n return tracker;\n };\n\n ElementStack.prototype.pushUpdatableBlock = function pushUpdatableBlock() {\n var tracker = new UpdatableBlockTracker(this.element);\n this.pushBlockTracker(tracker);\n return tracker;\n };\n\n ElementStack.prototype.pushBlockTracker = function pushBlockTracker(tracker) {\n var isRemote = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var current = this.blockStack.current;\n if (current !== null) {\n current.newDestroyable(tracker);\n if (!isRemote) {\n current.newBounds(tracker);\n }\n }\n this.blockStack.push(tracker);\n return tracker;\n };\n\n ElementStack.prototype.pushBlockList = function pushBlockList(list) {\n var tracker = new BlockListTracker(this.element, list);\n var current = this.blockStack.current;\n if (current !== null) {\n current.newDestroyable(tracker);\n current.newBounds(tracker);\n }\n this.blockStack.push(tracker);\n return tracker;\n };\n\n ElementStack.prototype.popBlock = function popBlock() {\n this.block().finalize(this);\n return this.blockStack.pop();\n };\n\n ElementStack.prototype.openElement = function openElement(tag, _operations) {\n // workaround argument.length transpile of arg initializer\n var operations = _operations === undefined ? this.defaultOperations : _operations;\n var element = this.dom.createElement(tag, this.element);\n this.constructing = element;\n this.operations = operations;\n return element;\n };\n\n ElementStack.prototype.flushElement = function flushElement() {\n var parent = this.element;\n var element = this.constructing;\n this.dom.insertBefore(parent, element, this.nextSibling);\n this.constructing = null;\n this.operations = null;\n this.pushElement(element, null);\n this.block().openElement(element);\n };\n\n ElementStack.prototype.pushRemoteElement = function pushRemoteElement(element) {\n var nextSibling = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n this.pushElement(element, nextSibling);\n var tracker = new RemoteBlockTracker(element);\n this.pushBlockTracker(tracker, true);\n };\n\n ElementStack.prototype.popRemoteElement = function popRemoteElement() {\n this.popBlock();\n this.popElement();\n };\n\n ElementStack.prototype.pushElement = function pushElement(element, nextSibling) {\n this.element = element;\n this.elementStack.push(element);\n // LOGGER.debug(`-> element stack ${this.elementStack.toArray().map(e => e.tagName).join(', ')}`);\n this.nextSibling = nextSibling;\n this.nextSiblingStack.push(nextSibling);\n };\n\n ElementStack.prototype.newDestroyable = function newDestroyable(d) {\n this.block().newDestroyable(d);\n };\n\n ElementStack.prototype.newBounds = function newBounds(bounds$$1) {\n this.block().newBounds(bounds$$1);\n };\n\n ElementStack.prototype.appendText = function appendText(string) {\n var dom = this.dom;\n\n var text = dom.createTextNode(string);\n dom.insertBefore(this.element, text, this.nextSibling);\n this.block().newNode(text);\n return text;\n };\n\n ElementStack.prototype.appendComment = function appendComment(string) {\n var dom = this.dom;\n\n var comment = dom.createComment(string);\n dom.insertBefore(this.element, comment, this.nextSibling);\n this.block().newNode(comment);\n return comment;\n };\n\n ElementStack.prototype.setStaticAttribute = function setStaticAttribute(name, value) {\n this.expectOperations('setStaticAttribute').addStaticAttribute(this.expectConstructing('setStaticAttribute'), name, value);\n };\n\n ElementStack.prototype.setStaticAttributeNS = function setStaticAttributeNS(namespace, name, value) {\n this.expectOperations('setStaticAttributeNS').addStaticAttributeNS(this.expectConstructing('setStaticAttributeNS'), namespace, name, value);\n };\n\n ElementStack.prototype.setDynamicAttribute = function setDynamicAttribute(name, reference, isTrusting) {\n this.expectOperations('setDynamicAttribute').addDynamicAttribute(this.expectConstructing('setDynamicAttribute'), name, reference, isTrusting);\n };\n\n ElementStack.prototype.setDynamicAttributeNS = function setDynamicAttributeNS(namespace, name, reference, isTrusting) {\n this.expectOperations('setDynamicAttributeNS').addDynamicAttributeNS(this.expectConstructing('setDynamicAttributeNS'), namespace, name, reference, isTrusting);\n };\n\n ElementStack.prototype.closeElement = function closeElement() {\n this.block().closeElement();\n this.popElement();\n };\n\n return ElementStack;\n }();\n var SimpleBlockTracker = function () {\n function SimpleBlockTracker(parent) {\n _classCallCheck$9(this, SimpleBlockTracker);\n\n this.parent = parent;\n this.first = null;\n this.last = null;\n this.destroyables = null;\n this.nesting = 0;\n }\n\n SimpleBlockTracker.prototype.destroy = function destroy() {\n var destroyables = this.destroyables;\n\n if (destroyables && destroyables.length) {\n for (var i = 0; i < destroyables.length; i++) {\n destroyables[i].destroy();\n }\n }\n };\n\n SimpleBlockTracker.prototype.parentElement = function parentElement() {\n return this.parent;\n };\n\n SimpleBlockTracker.prototype.firstNode = function firstNode() {\n return this.first && this.first.firstNode();\n };\n\n SimpleBlockTracker.prototype.lastNode = function lastNode() {\n return this.last && this.last.lastNode();\n };\n\n SimpleBlockTracker.prototype.openElement = function openElement(element) {\n this.newNode(element);\n this.nesting++;\n };\n\n SimpleBlockTracker.prototype.closeElement = function closeElement() {\n this.nesting--;\n };\n\n SimpleBlockTracker.prototype.newNode = function newNode(node) {\n if (this.nesting !== 0) return;\n if (!this.first) {\n this.first = new First(node);\n }\n this.last = new Last(node);\n };\n\n SimpleBlockTracker.prototype.newBounds = function newBounds(bounds$$1) {\n if (this.nesting !== 0) return;\n if (!this.first) {\n this.first = bounds$$1;\n }\n this.last = bounds$$1;\n };\n\n SimpleBlockTracker.prototype.newDestroyable = function newDestroyable(d) {\n this.destroyables = this.destroyables || [];\n this.destroyables.push(d);\n };\n\n SimpleBlockTracker.prototype.finalize = function finalize(stack) {\n if (!this.first) {\n stack.appendComment('');\n }\n };\n\n return SimpleBlockTracker;\n }();\n\n var RemoteBlockTracker = function (_SimpleBlockTracker) {\n _inherits$7(RemoteBlockTracker, _SimpleBlockTracker);\n\n function RemoteBlockTracker() {\n _classCallCheck$9(this, RemoteBlockTracker);\n\n return _possibleConstructorReturn$7(this, _SimpleBlockTracker.apply(this, arguments));\n }\n\n RemoteBlockTracker.prototype.destroy = function destroy() {\n _SimpleBlockTracker.prototype.destroy.call(this);\n clear(this);\n };\n\n return RemoteBlockTracker;\n }(SimpleBlockTracker);\n\n var UpdatableBlockTracker = function (_SimpleBlockTracker2) {\n _inherits$7(UpdatableBlockTracker, _SimpleBlockTracker2);\n\n function UpdatableBlockTracker() {\n _classCallCheck$9(this, UpdatableBlockTracker);\n\n return _possibleConstructorReturn$7(this, _SimpleBlockTracker2.apply(this, arguments));\n }\n\n UpdatableBlockTracker.prototype.reset = function reset(env) {\n var destroyables = this.destroyables;\n\n if (destroyables && destroyables.length) {\n for (var i = 0; i < destroyables.length; i++) {\n env.didDestroy(destroyables[i]);\n }\n }\n var nextSibling = clear(this);\n this.first = null;\n this.last = null;\n this.destroyables = null;\n this.nesting = 0;\n return nextSibling;\n };\n\n return UpdatableBlockTracker;\n }(SimpleBlockTracker);\n\n var BlockListTracker = function () {\n function BlockListTracker(parent, boundList) {\n _classCallCheck$9(this, BlockListTracker);\n\n this.parent = parent;\n this.boundList = boundList;\n this.parent = parent;\n this.boundList = boundList;\n }\n\n BlockListTracker.prototype.destroy = function destroy() {\n this.boundList.forEachNode(function (node) {\n return node.destroy();\n });\n };\n\n BlockListTracker.prototype.parentElement = function parentElement() {\n return this.parent;\n };\n\n BlockListTracker.prototype.firstNode = function firstNode() {\n var head = this.boundList.head();\n return head && head.firstNode();\n };\n\n BlockListTracker.prototype.lastNode = function lastNode() {\n var tail = this.boundList.tail();\n return tail && tail.lastNode();\n };\n\n BlockListTracker.prototype.openElement = function openElement(_element) {\n (0, _util.assert)(false, 'Cannot openElement directly inside a block list');\n };\n\n BlockListTracker.prototype.closeElement = function closeElement() {\n (0, _util.assert)(false, 'Cannot closeElement directly inside a block list');\n };\n\n BlockListTracker.prototype.newNode = function newNode(_node) {\n (0, _util.assert)(false, 'Cannot create a new node directly inside a block list');\n };\n\n BlockListTracker.prototype.newBounds = function newBounds(_bounds) {};\n\n BlockListTracker.prototype.newDestroyable = function newDestroyable(_d) {};\n\n BlockListTracker.prototype.finalize = function finalize(_stack) {};\n\n return BlockListTracker;\n }();\n\n function _classCallCheck$10(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var COMPONENT_DEFINITION_BRAND = 'COMPONENT DEFINITION [id=e59c754e-61eb-4392-8c4a-2c0ac72bfcd4]';\n function isComponentDefinition(obj) {\n return typeof obj === 'object' && obj !== null && obj[COMPONENT_DEFINITION_BRAND];\n }\n var ComponentDefinition = function ComponentDefinition(name, manager, ComponentClass) {\n _classCallCheck$10(this, ComponentDefinition);\n\n this[COMPONENT_DEFINITION_BRAND] = true;\n this.name = name;\n this.manager = manager;\n this.ComponentClass = ComponentClass;\n };\n\n function _defaults$8(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn$8(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$8(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$8(subClass, superClass);\n }\n\n function _classCallCheck$11(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function isSafeString(value) {\n return typeof value === 'object' && value !== null && typeof value.toHTML === 'function';\n }\n function isNode(value) {\n return typeof value === 'object' && value !== null && typeof value.nodeType === 'number';\n }\n function isString(value) {\n return typeof value === 'string';\n }\n\n var Upsert = function Upsert(bounds$$1) {\n _classCallCheck$11(this, Upsert);\n\n this.bounds = bounds$$1;\n };\n\n function cautiousInsert(dom, cursor, value) {\n if (isString(value)) {\n return TextUpsert.insert(dom, cursor, value);\n }\n if (isSafeString(value)) {\n return SafeStringUpsert.insert(dom, cursor, value);\n }\n if (isNode(value)) {\n return NodeUpsert.insert(dom, cursor, value);\n }\n throw (0, _util.unreachable)();\n }\n function trustingInsert(dom, cursor, value) {\n if (isString(value)) {\n return HTMLUpsert.insert(dom, cursor, value);\n }\n if (isNode(value)) {\n return NodeUpsert.insert(dom, cursor, value);\n }\n throw (0, _util.unreachable)();\n }\n\n var TextUpsert = function (_Upsert) {\n _inherits$8(TextUpsert, _Upsert);\n\n TextUpsert.insert = function insert(dom, cursor, value) {\n var textNode = dom.createTextNode(value);\n dom.insertBefore(cursor.element, textNode, cursor.nextSibling);\n var bounds$$1 = new SingleNodeBounds(cursor.element, textNode);\n return new TextUpsert(bounds$$1, textNode);\n };\n\n function TextUpsert(bounds$$1, textNode) {\n _classCallCheck$11(this, TextUpsert);\n\n var _this = _possibleConstructorReturn$8(this, _Upsert.call(this, bounds$$1));\n\n _this.textNode = textNode;\n return _this;\n }\n\n TextUpsert.prototype.update = function update(_dom, value) {\n if (isString(value)) {\n var textNode = this.textNode;\n\n textNode.nodeValue = value;\n return true;\n } else {\n return false;\n }\n };\n\n return TextUpsert;\n }(Upsert);\n\n var HTMLUpsert = function (_Upsert2) {\n _inherits$8(HTMLUpsert, _Upsert2);\n\n function HTMLUpsert() {\n _classCallCheck$11(this, HTMLUpsert);\n\n return _possibleConstructorReturn$8(this, _Upsert2.apply(this, arguments));\n }\n\n HTMLUpsert.insert = function insert(dom, cursor, value) {\n var bounds$$1 = dom.insertHTMLBefore(cursor.element, cursor.nextSibling, value);\n return new HTMLUpsert(bounds$$1);\n };\n\n HTMLUpsert.prototype.update = function update(dom, value) {\n if (isString(value)) {\n var bounds$$1 = this.bounds;\n\n var parentElement = bounds$$1.parentElement();\n var nextSibling = clear(bounds$$1);\n this.bounds = dom.insertHTMLBefore(parentElement, nextSibling, value);\n return true;\n } else {\n return false;\n }\n };\n\n return HTMLUpsert;\n }(Upsert);\n\n var SafeStringUpsert = function (_Upsert3) {\n _inherits$8(SafeStringUpsert, _Upsert3);\n\n function SafeStringUpsert(bounds$$1, lastStringValue) {\n _classCallCheck$11(this, SafeStringUpsert);\n\n var _this3 = _possibleConstructorReturn$8(this, _Upsert3.call(this, bounds$$1));\n\n _this3.lastStringValue = lastStringValue;\n return _this3;\n }\n\n SafeStringUpsert.insert = function insert(dom, cursor, value) {\n var stringValue = value.toHTML();\n var bounds$$1 = dom.insertHTMLBefore(cursor.element, cursor.nextSibling, stringValue);\n return new SafeStringUpsert(bounds$$1, stringValue);\n };\n\n SafeStringUpsert.prototype.update = function update(dom, value) {\n if (isSafeString(value)) {\n var stringValue = value.toHTML();\n if (stringValue !== this.lastStringValue) {\n var bounds$$1 = this.bounds;\n\n var parentElement = bounds$$1.parentElement();\n var nextSibling = clear(bounds$$1);\n this.bounds = dom.insertHTMLBefore(parentElement, nextSibling, stringValue);\n this.lastStringValue = stringValue;\n }\n return true;\n } else {\n return false;\n }\n };\n\n return SafeStringUpsert;\n }(Upsert);\n\n var NodeUpsert = function (_Upsert4) {\n _inherits$8(NodeUpsert, _Upsert4);\n\n function NodeUpsert() {\n _classCallCheck$11(this, NodeUpsert);\n\n return _possibleConstructorReturn$8(this, _Upsert4.apply(this, arguments));\n }\n\n NodeUpsert.insert = function insert(dom, cursor, node) {\n dom.insertBefore(cursor.element, node, cursor.nextSibling);\n return new NodeUpsert(single(cursor.element, node));\n };\n\n NodeUpsert.prototype.update = function update(dom, value) {\n if (isNode(value)) {\n var bounds$$1 = this.bounds;\n\n var parentElement = bounds$$1.parentElement();\n var nextSibling = clear(bounds$$1);\n this.bounds = dom.insertNodeBefore(parentElement, value, nextSibling);\n return true;\n } else {\n return false;\n }\n };\n\n return NodeUpsert;\n }(Upsert);\n\n function _defaults$6(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn$6(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$6(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$6(subClass, superClass);\n }\n\n function _classCallCheck$7(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n APPEND_OPCODES.add(26 /* DynamicContent */, function (vm, _ref) {\n var append = _ref.op1;\n\n var opcode = vm.constants.getOther(append);\n opcode.evaluate(vm);\n });\n function isEmpty(value) {\n return value === null || value === undefined || typeof value.toString !== 'function';\n }\n function normalizeTextValue(value) {\n if (isEmpty(value)) {\n return '';\n }\n return String(value);\n }\n function normalizeTrustedValue(value) {\n if (isEmpty(value)) {\n return '';\n }\n if (isString(value)) {\n return value;\n }\n if (isSafeString(value)) {\n return value.toHTML();\n }\n if (isNode(value)) {\n return value;\n }\n return String(value);\n }\n function normalizeValue(value) {\n if (isEmpty(value)) {\n return '';\n }\n if (isString(value)) {\n return value;\n }\n if (isSafeString(value) || isNode(value)) {\n return value;\n }\n return String(value);\n }\n var AppendDynamicOpcode = function () {\n function AppendDynamicOpcode() {\n _classCallCheck$7(this, AppendDynamicOpcode);\n }\n\n AppendDynamicOpcode.prototype.evaluate = function evaluate(vm) {\n var reference = vm.stack.pop();\n var normalized = this.normalize(reference);\n var value = void 0;\n var cache = void 0;\n if ((0, _reference2.isConst)(reference)) {\n value = normalized.value();\n } else {\n cache = new _reference2.ReferenceCache(normalized);\n value = cache.peek();\n }\n var stack = vm.elements();\n var upsert = this.insert(vm.env.getAppendOperations(), stack, value);\n var bounds$$1 = new Fragment(upsert.bounds);\n stack.newBounds(bounds$$1);\n if (cache /* i.e. !isConst(reference) */) {\n vm.updateWith(this.updateWith(vm, reference, cache, bounds$$1, upsert));\n }\n };\n\n return AppendDynamicOpcode;\n }();\n var IsComponentDefinitionReference = function (_ConditionalReference) {\n _inherits$6(IsComponentDefinitionReference, _ConditionalReference);\n\n function IsComponentDefinitionReference() {\n _classCallCheck$7(this, IsComponentDefinitionReference);\n\n return _possibleConstructorReturn$6(this, _ConditionalReference.apply(this, arguments));\n }\n\n IsComponentDefinitionReference.create = function create(inner) {\n return new IsComponentDefinitionReference(inner);\n };\n\n IsComponentDefinitionReference.prototype.toBool = function toBool(value) {\n return isComponentDefinition(value);\n };\n\n return IsComponentDefinitionReference;\n }(ConditionalReference);\n\n var UpdateOpcode = function (_UpdatingOpcode) {\n _inherits$6(UpdateOpcode, _UpdatingOpcode);\n\n function UpdateOpcode(cache, bounds$$1, upsert) {\n _classCallCheck$7(this, UpdateOpcode);\n\n var _this2 = _possibleConstructorReturn$6(this, _UpdatingOpcode.call(this));\n\n _this2.cache = cache;\n _this2.bounds = bounds$$1;\n _this2.upsert = upsert;\n _this2.tag = cache.tag;\n return _this2;\n }\n\n UpdateOpcode.prototype.evaluate = function evaluate(vm) {\n var value = this.cache.revalidate();\n if ((0, _reference2.isModified)(value)) {\n var bounds$$1 = this.bounds,\n upsert = this.upsert;\n var dom = vm.dom;\n\n if (!this.upsert.update(dom, value)) {\n var cursor = new Cursor(bounds$$1.parentElement(), clear(bounds$$1));\n upsert = this.upsert = this.insert(vm.env.getAppendOperations(), cursor, value);\n }\n bounds$$1.update(upsert.bounds);\n }\n };\n\n UpdateOpcode.prototype.toJSON = function toJSON() {\n var guid = this._guid,\n type = this.type,\n cache = this.cache;\n\n return {\n details: { lastValue: JSON.stringify(cache.peek()) },\n guid: guid,\n type: type\n };\n };\n\n return UpdateOpcode;\n }(UpdatingOpcode);\n\n var OptimizedCautiousAppendOpcode = function (_AppendDynamicOpcode) {\n _inherits$6(OptimizedCautiousAppendOpcode, _AppendDynamicOpcode);\n\n function OptimizedCautiousAppendOpcode() {\n _classCallCheck$7(this, OptimizedCautiousAppendOpcode);\n\n var _this3 = _possibleConstructorReturn$6(this, _AppendDynamicOpcode.apply(this, arguments));\n\n _this3.type = 'optimized-cautious-append';\n return _this3;\n }\n\n OptimizedCautiousAppendOpcode.prototype.normalize = function normalize(reference) {\n return (0, _reference2.map)(reference, normalizeValue);\n };\n\n OptimizedCautiousAppendOpcode.prototype.insert = function insert(dom, cursor, value) {\n return cautiousInsert(dom, cursor, value);\n };\n\n OptimizedCautiousAppendOpcode.prototype.updateWith = function updateWith(_vm, _reference, cache, bounds$$1, upsert) {\n return new OptimizedCautiousUpdateOpcode(cache, bounds$$1, upsert);\n };\n\n return OptimizedCautiousAppendOpcode;\n }(AppendDynamicOpcode);\n\n var OptimizedCautiousUpdateOpcode = function (_UpdateOpcode) {\n _inherits$6(OptimizedCautiousUpdateOpcode, _UpdateOpcode);\n\n function OptimizedCautiousUpdateOpcode() {\n _classCallCheck$7(this, OptimizedCautiousUpdateOpcode);\n\n var _this4 = _possibleConstructorReturn$6(this, _UpdateOpcode.apply(this, arguments));\n\n _this4.type = 'optimized-cautious-update';\n return _this4;\n }\n\n OptimizedCautiousUpdateOpcode.prototype.insert = function insert(dom, cursor, value) {\n return cautiousInsert(dom, cursor, value);\n };\n\n return OptimizedCautiousUpdateOpcode;\n }(UpdateOpcode);\n\n var OptimizedTrustingAppendOpcode = function (_AppendDynamicOpcode2) {\n _inherits$6(OptimizedTrustingAppendOpcode, _AppendDynamicOpcode2);\n\n function OptimizedTrustingAppendOpcode() {\n _classCallCheck$7(this, OptimizedTrustingAppendOpcode);\n\n var _this5 = _possibleConstructorReturn$6(this, _AppendDynamicOpcode2.apply(this, arguments));\n\n _this5.type = 'optimized-trusting-append';\n return _this5;\n }\n\n OptimizedTrustingAppendOpcode.prototype.normalize = function normalize(reference) {\n return (0, _reference2.map)(reference, normalizeTrustedValue);\n };\n\n OptimizedTrustingAppendOpcode.prototype.insert = function insert(dom, cursor, value) {\n return trustingInsert(dom, cursor, value);\n };\n\n OptimizedTrustingAppendOpcode.prototype.updateWith = function updateWith(_vm, _reference, cache, bounds$$1, upsert) {\n return new OptimizedTrustingUpdateOpcode(cache, bounds$$1, upsert);\n };\n\n return OptimizedTrustingAppendOpcode;\n }(AppendDynamicOpcode);\n\n var OptimizedTrustingUpdateOpcode = function (_UpdateOpcode2) {\n _inherits$6(OptimizedTrustingUpdateOpcode, _UpdateOpcode2);\n\n function OptimizedTrustingUpdateOpcode() {\n _classCallCheck$7(this, OptimizedTrustingUpdateOpcode);\n\n var _this6 = _possibleConstructorReturn$6(this, _UpdateOpcode2.apply(this, arguments));\n\n _this6.type = 'optimized-trusting-update';\n return _this6;\n }\n\n OptimizedTrustingUpdateOpcode.prototype.insert = function insert(dom, cursor, value) {\n return trustingInsert(dom, cursor, value);\n };\n\n return OptimizedTrustingUpdateOpcode;\n }(UpdateOpcode);\n\n function _classCallCheck$12(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n /* tslint:disable */\n function debugCallback(context, get) {\n console.info('Use `context`, and `get(<path>)` to debug this template.');\n // for example...\n context === get('this');\n debugger;\n }\n /* tslint:enable */\n var callback = debugCallback;\n // For testing purposes\n function setDebuggerCallback(cb) {\n callback = cb;\n }\n function resetDebuggerCallback() {\n callback = debugCallback;\n }\n\n var ScopeInspector = function () {\n function ScopeInspector(scope, symbols, evalInfo) {\n _classCallCheck$12(this, ScopeInspector);\n\n this.scope = scope;\n this.locals = (0, _util.dict)();\n for (var i = 0; i < evalInfo.length; i++) {\n var slot = evalInfo[i];\n var name = symbols[slot - 1];\n var ref = scope.getSymbol(slot);\n this.locals[name] = ref;\n }\n }\n\n ScopeInspector.prototype.get = function get(path) {\n var scope = this.scope,\n locals = this.locals;\n\n var parts = path.split('.');\n\n var _path$split = path.split('.'),\n head = _path$split[0],\n tail = _path$split.slice(1);\n\n var evalScope = scope.getEvalScope();\n var ref = void 0;\n if (head === 'this') {\n ref = scope.getSelf();\n } else if (locals[head]) {\n ref = locals[head];\n } else if (head.indexOf('@') === 0 && evalScope[head]) {\n ref = evalScope[head];\n } else {\n ref = this.scope.getSelf();\n tail = parts;\n }\n return tail.reduce(function (r, part) {\n return r.get(part);\n }, ref);\n };\n\n return ScopeInspector;\n }();\n\n APPEND_OPCODES.add(71 /* Debugger */, function (vm, _ref) {\n var _symbols = _ref.op1,\n _evalInfo = _ref.op2;\n\n var symbols = vm.constants.getOther(_symbols);\n var evalInfo = vm.constants.getArray(_evalInfo);\n var inspector = new ScopeInspector(vm.scope(), symbols, evalInfo);\n callback(vm.getSelf().value(), function (path) {\n return inspector.get(path).value();\n });\n });\n\n APPEND_OPCODES.add(69 /* GetPartialTemplate */, function (vm) {\n var stack = vm.stack;\n var definition = stack.pop();\n stack.push(definition.value().template.asPartial());\n });\n\n function _classCallCheck$13(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var IterablePresenceReference = function () {\n function IterablePresenceReference(artifacts) {\n _classCallCheck$13(this, IterablePresenceReference);\n\n this.tag = artifacts.tag;\n this.artifacts = artifacts;\n }\n\n IterablePresenceReference.prototype.value = function value() {\n return !this.artifacts.isEmpty();\n };\n\n return IterablePresenceReference;\n }();\n\n APPEND_OPCODES.add(54 /* PutIterator */, function (vm) {\n var stack = vm.stack;\n var listRef = stack.pop();\n var key = stack.pop();\n var iterable = vm.env.iterableFor(listRef, key.value());\n var iterator = new _reference2.ReferenceIterator(iterable);\n stack.push(iterator);\n stack.push(new IterablePresenceReference(iterator.artifacts));\n });\n APPEND_OPCODES.add(52 /* EnterList */, function (vm, _ref) {\n var relativeStart = _ref.op1;\n\n vm.enterList(relativeStart);\n });\n APPEND_OPCODES.add(53 /* ExitList */, function (vm) {\n return vm.exitList();\n });\n APPEND_OPCODES.add(55 /* Iterate */, function (vm, _ref2) {\n var breaks = _ref2.op1;\n\n var stack = vm.stack;\n var item = stack.peek().next();\n if (item) {\n var tryOpcode = vm.iterate(item.memo, item.value);\n vm.enterItem(item.key, tryOpcode);\n } else {\n vm.goto(breaks);\n }\n });\n\n var Ops$2;\n (function (Ops$$1) {\n Ops$$1[Ops$$1[\"OpenComponentElement\"] = 0] = \"OpenComponentElement\";\n Ops$$1[Ops$$1[\"DidCreateElement\"] = 1] = \"DidCreateElement\";\n Ops$$1[Ops$$1[\"DidRenderLayout\"] = 2] = \"DidRenderLayout\";\n Ops$$1[Ops$$1[\"FunctionExpression\"] = 3] = \"FunctionExpression\";\n })(Ops$2 || (Ops$2 = {}));\n\n function _classCallCheck$17(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var CompiledStaticTemplate = function CompiledStaticTemplate(handle) {\n _classCallCheck$17(this, CompiledStaticTemplate);\n\n this.handle = handle;\n };\n var CompiledDynamicTemplate = function CompiledDynamicTemplate(handle, symbolTable) {\n _classCallCheck$17(this, CompiledDynamicTemplate);\n\n this.handle = handle;\n this.symbolTable = symbolTable;\n };\n\n var _createClass$2 = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n function _classCallCheck$20(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function compileLayout(compilable, env) {\n var builder = new ComponentLayoutBuilder(env);\n compilable.compile(builder);\n return builder.compile();\n }\n\n var ComponentLayoutBuilder = function () {\n function ComponentLayoutBuilder(env) {\n _classCallCheck$20(this, ComponentLayoutBuilder);\n\n this.env = env;\n }\n\n ComponentLayoutBuilder.prototype.wrapLayout = function wrapLayout(layout) {\n this.inner = new WrappedBuilder(this.env, layout);\n };\n\n ComponentLayoutBuilder.prototype.fromLayout = function fromLayout(componentName, layout) {\n this.inner = new UnwrappedBuilder(this.env, componentName, layout);\n };\n\n ComponentLayoutBuilder.prototype.compile = function compile() {\n return this.inner.compile();\n };\n\n _createClass$2(ComponentLayoutBuilder, [{\n key: 'tag',\n get: function () {\n return this.inner.tag;\n }\n }, {\n key: 'attrs',\n get: function () {\n return this.inner.attrs;\n }\n }]);\n\n return ComponentLayoutBuilder;\n }();\n\n var WrappedBuilder = function () {\n function WrappedBuilder(env, layout) {\n _classCallCheck$20(this, WrappedBuilder);\n\n this.env = env;\n this.layout = layout;\n this.tag = new ComponentTagBuilder();\n this.attrs = new ComponentAttrsBuilder();\n }\n\n WrappedBuilder.prototype.compile = function compile() {\n //========DYNAMIC\n // PutValue(TagExpr)\n // Test\n // JumpUnless(BODY)\n // OpenDynamicPrimitiveElement\n // DidCreateElement\n // ...attr statements...\n // FlushElement\n // BODY: Noop\n // ...body statements...\n // PutValue(TagExpr)\n // Test\n // JumpUnless(END)\n // CloseElement\n // END: Noop\n // DidRenderLayout\n // Exit\n //\n //========STATIC\n // OpenPrimitiveElementOpcode\n // DidCreateElement\n // ...attr statements...\n // FlushElement\n // ...body statements...\n // CloseElement\n // DidRenderLayout\n // Exit\n var env = this.env,\n layout = this.layout;\n\n var meta = { templateMeta: layout.meta, symbols: layout.symbols, asPartial: false };\n var dynamicTag = this.tag.getDynamic();\n var staticTag = this.tag.getStatic();\n var b = builder(env, meta);\n b.startLabels();\n if (dynamicTag) {\n b.fetch(Register.s1);\n expr(dynamicTag, b);\n b.dup();\n b.load(Register.s1);\n b.test('simple');\n b.jumpUnless('BODY');\n b.fetch(Register.s1);\n b.pushComponentOperations();\n b.openDynamicElement();\n } else if (staticTag) {\n b.pushComponentOperations();\n b.openElementWithOperations(staticTag);\n }\n if (dynamicTag || staticTag) {\n b.didCreateElement(Register.s0);\n var attrs = this.attrs.buffer;\n for (var i = 0; i < attrs.length; i++) {\n compileStatement(attrs[i], b);\n }\n b.flushElement();\n }\n b.label('BODY');\n b.invokeStatic(layout.asBlock());\n if (dynamicTag) {\n b.fetch(Register.s1);\n b.test('simple');\n b.jumpUnless('END');\n b.closeElement();\n } else if (staticTag) {\n b.closeElement();\n }\n b.label('END');\n b.didRenderLayout(Register.s0);\n if (dynamicTag) {\n b.load(Register.s1);\n }\n b.stopLabels();\n var start = b.start;\n var end = b.finalize();\n return new CompiledDynamicTemplate(start, {\n meta: meta,\n hasEval: layout.hasEval,\n symbols: layout.symbols.concat([ATTRS_BLOCK])\n });\n };\n\n return WrappedBuilder;\n }();\n\n var UnwrappedBuilder = function () {\n function UnwrappedBuilder(env, componentName, layout) {\n _classCallCheck$20(this, UnwrappedBuilder);\n\n this.env = env;\n this.componentName = componentName;\n this.layout = layout;\n this.attrs = new ComponentAttrsBuilder();\n }\n\n UnwrappedBuilder.prototype.compile = function compile() {\n var env = this.env,\n layout = this.layout;\n\n return layout.asLayout(this.componentName, this.attrs.buffer).compileDynamic(env);\n };\n\n _createClass$2(UnwrappedBuilder, [{\n key: 'tag',\n get: function () {\n throw new Error('BUG: Cannot call `tag` on an UnwrappedBuilder');\n }\n }]);\n\n return UnwrappedBuilder;\n }();\n\n var ComponentTagBuilder = function () {\n function ComponentTagBuilder() {\n _classCallCheck$20(this, ComponentTagBuilder);\n\n this.isDynamic = null;\n this.isStatic = null;\n this.staticTagName = null;\n this.dynamicTagName = null;\n }\n\n ComponentTagBuilder.prototype.getDynamic = function getDynamic() {\n if (this.isDynamic) {\n return this.dynamicTagName;\n }\n };\n\n ComponentTagBuilder.prototype.getStatic = function getStatic() {\n if (this.isStatic) {\n return this.staticTagName;\n }\n };\n\n ComponentTagBuilder.prototype.static = function _static(tagName) {\n this.isStatic = true;\n this.staticTagName = tagName;\n };\n\n ComponentTagBuilder.prototype.dynamic = function dynamic(tagName) {\n this.isDynamic = true;\n this.dynamicTagName = [_wireFormat.Ops.ClientSideExpression, Ops$2.FunctionExpression, tagName];\n };\n\n return ComponentTagBuilder;\n }();\n\n var ComponentAttrsBuilder = function () {\n function ComponentAttrsBuilder() {\n _classCallCheck$20(this, ComponentAttrsBuilder);\n\n this.buffer = [];\n }\n\n ComponentAttrsBuilder.prototype.static = function _static(name, value) {\n this.buffer.push([_wireFormat.Ops.StaticAttr, name, value, null]);\n };\n\n ComponentAttrsBuilder.prototype.dynamic = function dynamic(name, value) {\n this.buffer.push([_wireFormat.Ops.DynamicAttr, name, [_wireFormat.Ops.ClientSideExpression, Ops$2.FunctionExpression, value], null]);\n };\n\n return ComponentAttrsBuilder;\n }();\n\n var ComponentBuilder = function () {\n function ComponentBuilder(builder) {\n _classCallCheck$20(this, ComponentBuilder);\n\n this.builder = builder;\n this.env = builder.env;\n }\n\n ComponentBuilder.prototype.static = function _static(definition, args) {\n var params = args[0],\n hash = args[1],\n _default = args[2],\n inverse = args[3];\n var builder = this.builder;\n\n builder.pushComponentManager(definition);\n builder.invokeComponent(null, params, hash, _default, inverse);\n };\n\n ComponentBuilder.prototype.dynamic = function dynamic(definitionArgs, getDefinition, args) {\n var params = args[0],\n hash = args[1],\n block = args[2],\n inverse = args[3];\n var builder = this.builder;\n\n if (!definitionArgs || definitionArgs.length === 0) {\n throw new Error(\"Dynamic syntax without an argument\");\n }\n var meta = this.builder.meta.templateMeta;\n function helper(vm, a) {\n return getDefinition(vm, a, meta);\n }\n builder.startLabels();\n builder.pushFrame();\n builder.returnTo('END');\n builder.compileArgs(definitionArgs[0], definitionArgs[1], true);\n builder.helper(helper);\n builder.dup();\n builder.test('simple');\n builder.enter(2);\n builder.jumpUnless('ELSE');\n builder.pushDynamicComponentManager();\n builder.invokeComponent(null, params, hash, block, inverse);\n builder.label('ELSE');\n builder.exit();\n builder.return();\n builder.label('END');\n builder.popFrame();\n builder.stopLabels();\n };\n\n return ComponentBuilder;\n }();\n function builder(env, meta) {\n return new OpcodeBuilder(env, meta);\n }\n\n function _classCallCheck$21(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var RawInlineBlock = function () {\n function RawInlineBlock(meta, statements, parameters) {\n _classCallCheck$21(this, RawInlineBlock);\n\n this.meta = meta;\n this.statements = statements;\n this.parameters = parameters;\n }\n\n RawInlineBlock.prototype.scan = function scan() {\n return new CompilableTemplate(this.statements, { parameters: this.parameters, meta: this.meta });\n };\n\n return RawInlineBlock;\n }();\n\n var _createClass$1 = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n function _defaults$9(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn$9(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$9(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$9(subClass, superClass);\n }\n\n function _classCallCheck$19(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var Labels = function () {\n function Labels() {\n _classCallCheck$19(this, Labels);\n\n this.labels = (0, _util.dict)();\n this.targets = [];\n }\n\n Labels.prototype.label = function label(name, index) {\n this.labels[name] = index;\n };\n\n Labels.prototype.target = function target(at, Target, _target) {\n this.targets.push({ at: at, Target: Target, target: _target });\n };\n\n Labels.prototype.patch = function patch(program) {\n var targets = this.targets,\n labels = this.labels;\n\n for (var i = 0; i < targets.length; i++) {\n var _targets$i = targets[i],\n at = _targets$i.at,\n target = _targets$i.target;\n\n var goto = labels[target] - at;\n program.heap.setbyaddr(at + 1, goto);\n }\n };\n\n return Labels;\n }();\n\n var BasicOpcodeBuilder = function () {\n function BasicOpcodeBuilder(env, meta, program) {\n _classCallCheck$19(this, BasicOpcodeBuilder);\n\n this.env = env;\n this.meta = meta;\n this.program = program;\n this.labelsStack = new _util.Stack();\n this.constants = program.constants;\n this.heap = program.heap;\n this.start = this.heap.malloc();\n }\n\n BasicOpcodeBuilder.prototype.upvars = function upvars(count) {\n return (0, _util.fillNulls)(count);\n };\n\n BasicOpcodeBuilder.prototype.reserve = function reserve(name) {\n this.push(name, 0, 0, 0);\n };\n\n BasicOpcodeBuilder.prototype.push = function push(name) {\n var op1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var op2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var op3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n\n this.heap.push(name);\n this.heap.push(op1);\n this.heap.push(op2);\n this.heap.push(op3);\n };\n\n BasicOpcodeBuilder.prototype.finalize = function finalize() {\n this.push(22 /* Return */);\n this.heap.finishMalloc(this.start);\n return this.start;\n };\n // args\n\n\n BasicOpcodeBuilder.prototype.pushArgs = function pushArgs(synthetic) {\n this.push(58 /* PushArgs */, synthetic === true ? 1 : 0);\n };\n // helpers\n\n\n BasicOpcodeBuilder.prototype.startLabels = function startLabels() {\n this.labelsStack.push(new Labels());\n };\n\n BasicOpcodeBuilder.prototype.stopLabels = function stopLabels() {\n var label = this.labelsStack.pop();\n label.patch(this.program);\n };\n // components\n\n\n BasicOpcodeBuilder.prototype.pushComponentManager = function pushComponentManager(definition) {\n this.push(56 /* PushComponentManager */, this.other(definition));\n };\n\n BasicOpcodeBuilder.prototype.pushDynamicComponentManager = function pushDynamicComponentManager() {\n this.push(57 /* PushDynamicComponentManager */);\n };\n\n BasicOpcodeBuilder.prototype.prepareArgs = function prepareArgs(state) {\n this.push(59 /* PrepareArgs */, state);\n };\n\n BasicOpcodeBuilder.prototype.createComponent = function createComponent(state, hasDefault, hasInverse) {\n var flag = (hasDefault === true ? 1 : 0) | (hasInverse === true ? 1 : 0) << 1;\n this.push(60 /* CreateComponent */, flag, state);\n };\n\n BasicOpcodeBuilder.prototype.registerComponentDestructor = function registerComponentDestructor(state) {\n this.push(61 /* RegisterComponentDestructor */, state);\n };\n\n BasicOpcodeBuilder.prototype.beginComponentTransaction = function beginComponentTransaction() {\n this.push(65 /* BeginComponentTransaction */);\n };\n\n BasicOpcodeBuilder.prototype.commitComponentTransaction = function commitComponentTransaction() {\n this.push(66 /* CommitComponentTransaction */);\n };\n\n BasicOpcodeBuilder.prototype.pushComponentOperations = function pushComponentOperations() {\n this.push(62 /* PushComponentOperations */);\n };\n\n BasicOpcodeBuilder.prototype.getComponentSelf = function getComponentSelf(state) {\n this.push(63 /* GetComponentSelf */, state);\n };\n\n BasicOpcodeBuilder.prototype.getComponentLayout = function getComponentLayout(state) {\n this.push(64 /* GetComponentLayout */, state);\n };\n\n BasicOpcodeBuilder.prototype.didCreateElement = function didCreateElement(state) {\n this.push(67 /* DidCreateElement */, state);\n };\n\n BasicOpcodeBuilder.prototype.didRenderLayout = function didRenderLayout(state) {\n this.push(68 /* DidRenderLayout */, state);\n };\n // partial\n\n\n BasicOpcodeBuilder.prototype.getPartialTemplate = function getPartialTemplate() {\n this.push(69 /* GetPartialTemplate */);\n };\n\n BasicOpcodeBuilder.prototype.resolveMaybeLocal = function resolveMaybeLocal(name) {\n this.push(70 /* ResolveMaybeLocal */, this.string(name));\n };\n // debugger\n\n\n BasicOpcodeBuilder.prototype.debugger = function _debugger(symbols, evalInfo) {\n this.push(71 /* Debugger */, this.constants.other(symbols), this.constants.array(evalInfo));\n };\n // content\n\n\n BasicOpcodeBuilder.prototype.dynamicContent = function dynamicContent(Opcode) {\n this.push(26 /* DynamicContent */, this.other(Opcode));\n };\n\n BasicOpcodeBuilder.prototype.cautiousAppend = function cautiousAppend() {\n this.dynamicContent(new OptimizedCautiousAppendOpcode());\n };\n\n BasicOpcodeBuilder.prototype.trustingAppend = function trustingAppend() {\n this.dynamicContent(new OptimizedTrustingAppendOpcode());\n };\n // dom\n\n\n BasicOpcodeBuilder.prototype.text = function text(_text) {\n this.push(24 /* Text */, this.constants.string(_text));\n };\n\n BasicOpcodeBuilder.prototype.openPrimitiveElement = function openPrimitiveElement(tag) {\n this.push(27 /* OpenElement */, this.constants.string(tag));\n };\n\n BasicOpcodeBuilder.prototype.openElementWithOperations = function openElementWithOperations(tag) {\n this.push(28 /* OpenElementWithOperations */, this.constants.string(tag));\n };\n\n BasicOpcodeBuilder.prototype.openDynamicElement = function openDynamicElement() {\n this.push(29 /* OpenDynamicElement */);\n };\n\n BasicOpcodeBuilder.prototype.flushElement = function flushElement() {\n this.push(33 /* FlushElement */);\n };\n\n BasicOpcodeBuilder.prototype.closeElement = function closeElement() {\n this.push(34 /* CloseElement */);\n };\n\n BasicOpcodeBuilder.prototype.staticAttr = function staticAttr(_name, _namespace, _value) {\n var name = this.constants.string(_name);\n var namespace = _namespace ? this.constants.string(_namespace) : 0;\n var value = this.constants.string(_value);\n this.push(30 /* StaticAttr */, name, value, namespace);\n };\n\n BasicOpcodeBuilder.prototype.dynamicAttrNS = function dynamicAttrNS(_name, _namespace, trusting) {\n var name = this.constants.string(_name);\n var namespace = this.constants.string(_namespace);\n this.push(32 /* DynamicAttrNS */, name, namespace, trusting === true ? 1 : 0);\n };\n\n BasicOpcodeBuilder.prototype.dynamicAttr = function dynamicAttr(_name, trusting) {\n var name = this.constants.string(_name);\n this.push(31 /* DynamicAttr */, name, trusting === true ? 1 : 0);\n };\n\n BasicOpcodeBuilder.prototype.comment = function comment(_comment) {\n var comment = this.constants.string(_comment);\n this.push(25 /* Comment */, comment);\n };\n\n BasicOpcodeBuilder.prototype.modifier = function modifier(_definition) {\n this.push(35 /* Modifier */, this.other(_definition));\n };\n // lists\n\n\n BasicOpcodeBuilder.prototype.putIterator = function putIterator() {\n this.push(54 /* PutIterator */);\n };\n\n BasicOpcodeBuilder.prototype.enterList = function enterList(start) {\n this.reserve(52 /* EnterList */);\n this.labels.target(this.pos, 52 /* EnterList */, start);\n };\n\n BasicOpcodeBuilder.prototype.exitList = function exitList() {\n this.push(53 /* ExitList */);\n };\n\n BasicOpcodeBuilder.prototype.iterate = function iterate(breaks) {\n this.reserve(55 /* Iterate */);\n this.labels.target(this.pos, 55 /* Iterate */, breaks);\n };\n // expressions\n\n\n BasicOpcodeBuilder.prototype.setVariable = function setVariable(symbol) {\n this.push(4 /* SetVariable */, symbol);\n };\n\n BasicOpcodeBuilder.prototype.getVariable = function getVariable(symbol) {\n this.push(5 /* GetVariable */, symbol);\n };\n\n BasicOpcodeBuilder.prototype.getProperty = function getProperty(key) {\n this.push(6 /* GetProperty */, this.string(key));\n };\n\n BasicOpcodeBuilder.prototype.getBlock = function getBlock(symbol) {\n this.push(8 /* GetBlock */, symbol);\n };\n\n BasicOpcodeBuilder.prototype.hasBlock = function hasBlock(symbol) {\n this.push(9 /* HasBlock */, symbol);\n };\n\n BasicOpcodeBuilder.prototype.hasBlockParams = function hasBlockParams(symbol) {\n this.push(10 /* HasBlockParams */, symbol);\n };\n\n BasicOpcodeBuilder.prototype.concat = function concat(size) {\n this.push(11 /* Concat */, size);\n };\n\n BasicOpcodeBuilder.prototype.function = function _function(f) {\n this.push(2 /* Function */, this.func(f));\n };\n\n BasicOpcodeBuilder.prototype.load = function load(register) {\n this.push(17 /* Load */, register);\n };\n\n BasicOpcodeBuilder.prototype.fetch = function fetch(register) {\n this.push(18 /* Fetch */, register);\n };\n\n BasicOpcodeBuilder.prototype.dup = function dup() {\n var register = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Register.sp;\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n return this.push(15 /* Dup */, register, offset);\n };\n\n BasicOpcodeBuilder.prototype.pop = function pop() {\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n\n return this.push(16 /* Pop */, count);\n };\n // vm\n\n\n BasicOpcodeBuilder.prototype.pushRemoteElement = function pushRemoteElement() {\n this.push(36 /* PushRemoteElement */);\n };\n\n BasicOpcodeBuilder.prototype.popRemoteElement = function popRemoteElement() {\n this.push(37 /* PopRemoteElement */);\n };\n\n BasicOpcodeBuilder.prototype.label = function label(name) {\n this.labels.label(name, this.nextPos);\n };\n\n BasicOpcodeBuilder.prototype.pushRootScope = function pushRootScope(symbols, bindCallerScope) {\n this.push(19 /* RootScope */, symbols, bindCallerScope ? 1 : 0);\n };\n\n BasicOpcodeBuilder.prototype.pushChildScope = function pushChildScope() {\n this.push(20 /* ChildScope */);\n };\n\n BasicOpcodeBuilder.prototype.popScope = function popScope() {\n this.push(21 /* PopScope */);\n };\n\n BasicOpcodeBuilder.prototype.returnTo = function returnTo(label) {\n this.reserve(23 /* ReturnTo */);\n this.labels.target(this.pos, 23 /* ReturnTo */, label);\n };\n\n BasicOpcodeBuilder.prototype.pushDynamicScope = function pushDynamicScope() {\n this.push(39 /* PushDynamicScope */);\n };\n\n BasicOpcodeBuilder.prototype.popDynamicScope = function popDynamicScope() {\n this.push(40 /* PopDynamicScope */);\n };\n\n BasicOpcodeBuilder.prototype.pushImmediate = function pushImmediate(value) {\n this.push(13 /* Constant */, this.other(value));\n };\n\n BasicOpcodeBuilder.prototype.primitive = function primitive(_primitive) {\n var flag = 0;\n var primitive = void 0;\n switch (typeof _primitive) {\n case 'number':\n if (_primitive % 1 === 0 && _primitive > 0) {\n primitive = _primitive;\n } else {\n primitive = this.float(_primitive);\n flag = 1;\n }\n break;\n case 'string':\n primitive = this.string(_primitive);\n flag = 2;\n break;\n case 'boolean':\n primitive = _primitive | 0;\n flag = 3;\n break;\n case 'object':\n // assume null\n primitive = 2;\n flag = 3;\n break;\n case 'undefined':\n primitive = 3;\n flag = 3;\n break;\n default:\n throw new Error('Invalid primitive passed to pushPrimitive');\n }\n this.push(14 /* PrimitiveReference */, flag << 30 | primitive);\n };\n\n BasicOpcodeBuilder.prototype.helper = function helper(func) {\n this.push(1 /* Helper */, this.func(func));\n };\n\n BasicOpcodeBuilder.prototype.pushBlock = function pushBlock(block) {\n this.push(7 /* PushBlock */, this.block(block));\n };\n\n BasicOpcodeBuilder.prototype.bindDynamicScope = function bindDynamicScope(_names) {\n this.push(38 /* BindDynamicScope */, this.names(_names));\n };\n\n BasicOpcodeBuilder.prototype.enter = function enter(args) {\n this.push(49 /* Enter */, args);\n };\n\n BasicOpcodeBuilder.prototype.exit = function exit() {\n this.push(50 /* Exit */);\n };\n\n BasicOpcodeBuilder.prototype.return = function _return() {\n this.push(22 /* Return */);\n };\n\n BasicOpcodeBuilder.prototype.pushFrame = function pushFrame() {\n this.push(47 /* PushFrame */);\n };\n\n BasicOpcodeBuilder.prototype.popFrame = function popFrame() {\n this.push(48 /* PopFrame */);\n };\n\n BasicOpcodeBuilder.prototype.compileDynamicBlock = function compileDynamicBlock() {\n this.push(41 /* CompileDynamicBlock */);\n };\n\n BasicOpcodeBuilder.prototype.invokeDynamic = function invokeDynamic(invoker) {\n this.push(43 /* InvokeDynamic */, this.other(invoker));\n };\n\n BasicOpcodeBuilder.prototype.invokeStatic = function invokeStatic(block) {\n var callerCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var parameters = block.symbolTable.parameters;\n\n var calleeCount = parameters.length;\n var count = Math.min(callerCount, calleeCount);\n this.pushFrame();\n if (count) {\n this.pushChildScope();\n for (var i = 0; i < count; i++) {\n this.dup(Register.fp, callerCount - i);\n this.setVariable(parameters[i]);\n }\n }\n var _block = this.constants.block(block);\n this.push(42 /* InvokeStatic */, _block);\n if (count) {\n this.popScope();\n }\n this.popFrame();\n };\n\n BasicOpcodeBuilder.prototype.test = function test(testFunc) {\n var _func = void 0;\n if (testFunc === 'const') {\n _func = ConstTest;\n } else if (testFunc === 'simple') {\n _func = SimpleTest;\n } else if (testFunc === 'environment') {\n _func = EnvironmentTest;\n } else if (typeof testFunc === 'function') {\n _func = testFunc;\n } else {\n throw new Error('unreachable');\n }\n var func = this.constants.function(_func);\n this.push(51 /* Test */, func);\n };\n\n BasicOpcodeBuilder.prototype.jump = function jump(target) {\n this.reserve(44 /* Jump */);\n this.labels.target(this.pos, 44 /* Jump */, target);\n };\n\n BasicOpcodeBuilder.prototype.jumpIf = function jumpIf(target) {\n this.reserve(45 /* JumpIf */);\n this.labels.target(this.pos, 45 /* JumpIf */, target);\n };\n\n BasicOpcodeBuilder.prototype.jumpUnless = function jumpUnless(target) {\n this.reserve(46 /* JumpUnless */);\n this.labels.target(this.pos, 46 /* JumpUnless */, target);\n };\n\n BasicOpcodeBuilder.prototype.string = function string(_string) {\n return this.constants.string(_string);\n };\n\n BasicOpcodeBuilder.prototype.float = function float(num) {\n return this.constants.float(num);\n };\n\n BasicOpcodeBuilder.prototype.names = function names(_names) {\n var names = [];\n for (var i = 0; i < _names.length; i++) {\n var n = _names[i];\n names[i] = this.constants.string(n);\n }\n return this.constants.array(names);\n };\n\n BasicOpcodeBuilder.prototype.symbols = function symbols(_symbols) {\n return this.constants.array(_symbols);\n };\n\n BasicOpcodeBuilder.prototype.other = function other(value) {\n return this.constants.other(value);\n };\n\n BasicOpcodeBuilder.prototype.block = function block(_block2) {\n return _block2 ? this.constants.block(_block2) : 0;\n };\n\n BasicOpcodeBuilder.prototype.func = function func(_func2) {\n return this.constants.function(_func2);\n };\n\n _createClass$1(BasicOpcodeBuilder, [{\n key: 'pos',\n get: function () {\n return (0, _util.typePos)(this.heap.size());\n }\n }, {\n key: 'nextPos',\n get: function () {\n return this.heap.size();\n }\n }, {\n key: 'labels',\n get: function () {\n return this.labelsStack.current;\n }\n }]);\n\n return BasicOpcodeBuilder;\n }();\n\n function isCompilableExpression(expr$$1) {\n return typeof expr$$1 === 'object' && expr$$1 !== null && typeof expr$$1.compile === 'function';\n }\n\n var OpcodeBuilder = function (_BasicOpcodeBuilder) {\n _inherits$9(OpcodeBuilder, _BasicOpcodeBuilder);\n\n function OpcodeBuilder(env, meta) {\n var program = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : env.program;\n\n _classCallCheck$19(this, OpcodeBuilder);\n\n var _this = _possibleConstructorReturn$9(this, _BasicOpcodeBuilder.call(this, env, meta, program));\n\n _this.component = new ComponentBuilder(_this);\n return _this;\n }\n\n OpcodeBuilder.prototype.compileArgs = function compileArgs(params, hash, synthetic) {\n var positional = 0;\n if (params) {\n for (var i = 0; i < params.length; i++) {\n expr(params[i], this);\n }\n positional = params.length;\n }\n this.pushImmediate(positional);\n var names = _util.EMPTY_ARRAY;\n if (hash) {\n names = hash[0];\n var val = hash[1];\n for (var _i = 0; _i < val.length; _i++) {\n expr(val[_i], this);\n }\n }\n this.pushImmediate(names);\n this.pushArgs(synthetic);\n };\n\n OpcodeBuilder.prototype.compile = function compile(expr$$1) {\n if (isCompilableExpression(expr$$1)) {\n return expr$$1.compile(this);\n } else {\n return expr$$1;\n }\n };\n\n OpcodeBuilder.prototype.guardedAppend = function guardedAppend(expression, trusting) {\n this.startLabels();\n this.pushFrame();\n this.returnTo('END');\n expr(expression, this);\n this.dup();\n this.test(function (reference) {\n return IsComponentDefinitionReference.create(reference);\n });\n this.enter(2);\n this.jumpUnless('ELSE');\n this.pushDynamicComponentManager();\n this.invokeComponent(null, null, null, null, null);\n this.exit();\n this.return();\n this.label('ELSE');\n if (trusting) {\n this.trustingAppend();\n } else {\n this.cautiousAppend();\n }\n this.exit();\n this.return();\n this.label('END');\n this.popFrame();\n this.stopLabels();\n };\n\n OpcodeBuilder.prototype.invokeComponent = function invokeComponent(attrs, params, hash, block) {\n var inverse = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;\n\n this.fetch(Register.s0);\n this.dup(Register.sp, 1);\n this.load(Register.s0);\n this.pushBlock(block);\n this.pushBlock(inverse);\n this.compileArgs(params, hash, false);\n this.prepareArgs(Register.s0);\n this.beginComponentTransaction();\n this.pushDynamicScope();\n this.createComponent(Register.s0, block !== null, inverse !== null);\n this.registerComponentDestructor(Register.s0);\n this.getComponentSelf(Register.s0);\n this.getComponentLayout(Register.s0);\n this.invokeDynamic(new InvokeDynamicLayout(attrs && attrs.scan()));\n this.popFrame();\n this.popScope();\n this.popDynamicScope();\n this.commitComponentTransaction();\n this.load(Register.s0);\n };\n\n OpcodeBuilder.prototype.template = function template(block) {\n if (!block) return null;\n return new RawInlineBlock(this.meta, block.statements, block.parameters);\n };\n\n return OpcodeBuilder;\n }(BasicOpcodeBuilder);\n\n function _classCallCheck$18(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var Ops$3 = _wireFormat.Ops;\n var ATTRS_BLOCK = '&attrs';\n\n var Compilers = function () {\n function Compilers() {\n var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n\n _classCallCheck$18(this, Compilers);\n\n this.offset = offset;\n this.names = (0, _util.dict)();\n this.funcs = [];\n }\n\n Compilers.prototype.add = function add(name, func) {\n this.funcs.push(func);\n this.names[name] = this.funcs.length - 1;\n };\n\n Compilers.prototype.compile = function compile(sexp, builder) {\n var name = sexp[this.offset];\n var index = this.names[name];\n var func = this.funcs[index];\n (0, _util.assert)(!!func, 'expected an implementation for ' + (this.offset === 0 ? Ops$3[sexp[0]] : Ops$2[sexp[1]]));\n func(sexp, builder);\n };\n\n return Compilers;\n }();\n\n var STATEMENTS = new Compilers();\n var CLIENT_SIDE = new Compilers(1);\n STATEMENTS.add(Ops$3.Text, function (sexp, builder) {\n builder.text(sexp[1]);\n });\n STATEMENTS.add(Ops$3.Comment, function (sexp, builder) {\n builder.comment(sexp[1]);\n });\n STATEMENTS.add(Ops$3.CloseElement, function (_sexp, builder) {\n builder.closeElement();\n });\n STATEMENTS.add(Ops$3.FlushElement, function (_sexp, builder) {\n builder.flushElement();\n });\n STATEMENTS.add(Ops$3.Modifier, function (sexp, builder) {\n var env = builder.env,\n meta = builder.meta;\n var name = sexp[1],\n params = sexp[2],\n hash = sexp[3];\n\n if (env.hasModifier(name, meta.templateMeta)) {\n builder.compileArgs(params, hash, true);\n builder.modifier(env.lookupModifier(name, meta.templateMeta));\n } else {\n throw new Error('Compile Error ' + name + ' is not a modifier: Helpers may not be used in the element form.');\n }\n });\n STATEMENTS.add(Ops$3.StaticAttr, function (sexp, builder) {\n var name = sexp[1],\n value = sexp[2],\n namespace = sexp[3];\n\n builder.staticAttr(name, namespace, value);\n });\n STATEMENTS.add(Ops$3.DynamicAttr, function (sexp, builder) {\n dynamicAttr(sexp, false, builder);\n });\n STATEMENTS.add(Ops$3.TrustingAttr, function (sexp, builder) {\n dynamicAttr(sexp, true, builder);\n });\n function dynamicAttr(sexp, trusting, builder) {\n var name = sexp[1],\n value = sexp[2],\n namespace = sexp[3];\n\n expr(value, builder);\n if (namespace) {\n builder.dynamicAttrNS(name, namespace, trusting);\n } else {\n builder.dynamicAttr(name, trusting);\n }\n }\n STATEMENTS.add(Ops$3.OpenElement, function (sexp, builder) {\n builder.openPrimitiveElement(sexp[1]);\n });\n CLIENT_SIDE.add(Ops$2.OpenComponentElement, function (sexp, builder) {\n builder.pushComponentOperations();\n builder.openElementWithOperations(sexp[2]);\n });\n CLIENT_SIDE.add(Ops$2.DidCreateElement, function (_sexp, builder) {\n builder.didCreateElement(Register.s0);\n });\n CLIENT_SIDE.add(Ops$2.DidRenderLayout, function (_sexp, builder) {\n builder.didRenderLayout(Register.s0);\n });\n STATEMENTS.add(Ops$3.Append, function (sexp, builder) {\n var value = sexp[1],\n trusting = sexp[2];\n\n var _builder$env$macros = builder.env.macros(),\n inlines = _builder$env$macros.inlines;\n\n var returned = inlines.compile(sexp, builder) || value;\n if (returned === true) return;\n var isGet = E.isGet(value);\n var isMaybeLocal = E.isMaybeLocal(value);\n if (trusting) {\n builder.guardedAppend(value, true);\n } else {\n if (isGet || isMaybeLocal) {\n builder.guardedAppend(value, false);\n } else {\n expr(value, builder);\n builder.cautiousAppend();\n }\n }\n });\n STATEMENTS.add(Ops$3.Block, function (sexp, builder) {\n var name = sexp[1],\n params = sexp[2],\n hash = sexp[3],\n _template = sexp[4],\n _inverse = sexp[5];\n\n var template = builder.template(_template);\n var inverse = builder.template(_inverse);\n var templateBlock = template && template.scan();\n var inverseBlock = inverse && inverse.scan();\n\n var _builder$env$macros2 = builder.env.macros(),\n blocks = _builder$env$macros2.blocks;\n\n blocks.compile(name, params, hash, templateBlock, inverseBlock, builder);\n });\n var InvokeDynamicLayout = function () {\n function InvokeDynamicLayout(attrs) {\n _classCallCheck$18(this, InvokeDynamicLayout);\n\n this.attrs = attrs;\n }\n\n InvokeDynamicLayout.prototype.invoke = function invoke(vm, layout) {\n var _layout$symbolTable = layout.symbolTable,\n symbols = _layout$symbolTable.symbols,\n hasEval = _layout$symbolTable.hasEval;\n\n var stack = vm.stack;\n var scope = vm.pushRootScope(symbols.length + 1, true);\n scope.bindSelf(stack.pop());\n scope.bindBlock(symbols.indexOf(ATTRS_BLOCK) + 1, this.attrs);\n var lookup = null;\n var $eval = -1;\n if (hasEval) {\n $eval = symbols.indexOf('$eval') + 1;\n lookup = (0, _util.dict)();\n }\n var callerNames = stack.pop();\n for (var i = callerNames.length - 1; i >= 0; i--) {\n var symbol = symbols.indexOf(callerNames[i]);\n var value = stack.pop();\n if (symbol !== -1) scope.bindSymbol(symbol + 1, value);\n if (hasEval) lookup[callerNames[i]] = value;\n }\n var numPositionalArgs = stack.pop();\n (0, _util.assert)(typeof numPositionalArgs === 'number', '[BUG] Incorrect value of positional argument count found during invoke-dynamic-layout.');\n // Currently we don't support accessing positional args in templates, so just throw them away\n stack.pop(numPositionalArgs);\n var inverseSymbol = symbols.indexOf('&inverse');\n var inverse = stack.pop();\n if (inverseSymbol !== -1) {\n scope.bindBlock(inverseSymbol + 1, inverse);\n }\n if (lookup) lookup['&inverse'] = inverse;\n var defaultSymbol = symbols.indexOf('&default');\n var defaultBlock = stack.pop();\n if (defaultSymbol !== -1) {\n scope.bindBlock(defaultSymbol + 1, defaultBlock);\n }\n if (lookup) lookup['&default'] = defaultBlock;\n if (lookup) scope.bindEvalScope(lookup);\n vm.pushFrame();\n vm.call(layout.handle);\n };\n\n InvokeDynamicLayout.prototype.toJSON = function toJSON() {\n return { GlimmerDebug: '<invoke-dynamic-layout>' };\n };\n\n return InvokeDynamicLayout;\n }();\n STATEMENTS.add(Ops$3.Component, function (sexp, builder) {\n var tag = sexp[1],\n attrs = sexp[2],\n args = sexp[3],\n block = sexp[4];\n\n if (builder.env.hasComponentDefinition(tag, builder.meta.templateMeta)) {\n var child = builder.template(block);\n var attrsBlock = new RawInlineBlock(builder.meta, attrs, _util.EMPTY_ARRAY);\n var definition = builder.env.getComponentDefinition(tag, builder.meta.templateMeta);\n builder.pushComponentManager(definition);\n builder.invokeComponent(attrsBlock, null, args, child && child.scan());\n } else if (block && block.parameters.length) {\n throw new Error('Compile Error: Cannot find component ' + tag);\n } else {\n builder.openPrimitiveElement(tag);\n for (var i = 0; i < attrs.length; i++) {\n STATEMENTS.compile(attrs[i], builder);\n }\n builder.flushElement();\n if (block) {\n var stmts = block.statements;\n for (var _i = 0; _i < stmts.length; _i++) {\n STATEMENTS.compile(stmts[_i], builder);\n }\n }\n builder.closeElement();\n }\n });\n var PartialInvoker = function () {\n function PartialInvoker(outerSymbols, evalInfo) {\n _classCallCheck$18(this, PartialInvoker);\n\n this.outerSymbols = outerSymbols;\n this.evalInfo = evalInfo;\n }\n\n PartialInvoker.prototype.invoke = function invoke(vm, _partial) {\n var partial = _partial;\n var partialSymbols = partial.symbolTable.symbols;\n var outerScope = vm.scope();\n var evalScope = outerScope.getEvalScope();\n var partialScope = vm.pushRootScope(partialSymbols.length, false);\n partialScope.bindCallerScope(outerScope.getCallerScope());\n partialScope.bindEvalScope(evalScope);\n partialScope.bindSelf(outerScope.getSelf());\n var evalInfo = this.evalInfo,\n outerSymbols = this.outerSymbols;\n\n var locals = Object.create(outerScope.getPartialMap());\n for (var i = 0; i < evalInfo.length; i++) {\n var slot = evalInfo[i];\n var name = outerSymbols[slot - 1];\n var ref = outerScope.getSymbol(slot);\n locals[name] = ref;\n }\n if (evalScope) {\n for (var _i2 = 0; _i2 < partialSymbols.length; _i2++) {\n var _name = partialSymbols[_i2];\n var symbol = _i2 + 1;\n var value = evalScope[_name];\n if (value !== undefined) partialScope.bind(symbol, value);\n }\n }\n partialScope.bindPartialMap(locals);\n vm.pushFrame();\n vm.call(partial.handle);\n };\n\n return PartialInvoker;\n }();\n STATEMENTS.add(Ops$3.Partial, function (sexp, builder) {\n var name = sexp[1],\n evalInfo = sexp[2];\n var _builder$meta = builder.meta,\n templateMeta = _builder$meta.templateMeta,\n symbols = _builder$meta.symbols;\n\n function helper(vm, args) {\n var env = vm.env;\n\n var nameRef = args.positional.at(0);\n return (0, _reference2.map)(nameRef, function (n) {\n if (typeof n === 'string' && n) {\n if (!env.hasPartial(n, templateMeta)) {\n throw new Error('Could not find a partial named \"' + n + '\"');\n }\n return env.lookupPartial(n, templateMeta);\n } else if (n) {\n throw new Error('Could not find a partial named \"' + String(n) + '\"');\n } else {\n return null;\n }\n });\n }\n builder.startLabels();\n builder.pushFrame();\n builder.returnTo('END');\n expr(name, builder);\n builder.pushImmediate(1);\n builder.pushImmediate(_util.EMPTY_ARRAY);\n builder.pushArgs(true);\n builder.helper(helper);\n builder.dup();\n builder.test('simple');\n builder.enter(2);\n builder.jumpUnless('ELSE');\n builder.getPartialTemplate();\n builder.compileDynamicBlock();\n builder.invokeDynamic(new PartialInvoker(symbols, evalInfo));\n builder.popScope();\n builder.popFrame();\n builder.label('ELSE');\n builder.exit();\n builder.return();\n builder.label('END');\n builder.popFrame();\n builder.stopLabels();\n });\n\n var InvokeDynamicYield = function () {\n function InvokeDynamicYield(callerCount) {\n _classCallCheck$18(this, InvokeDynamicYield);\n\n this.callerCount = callerCount;\n }\n\n InvokeDynamicYield.prototype.invoke = function invoke(vm, block) {\n var callerCount = this.callerCount;\n\n var stack = vm.stack;\n if (!block) {\n // To balance the pop{Frame,Scope}\n vm.pushFrame();\n vm.pushCallerScope();\n return;\n }\n var table = block.symbolTable;\n var locals = table.parameters; // always present in inline blocks\n var calleeCount = locals ? locals.length : 0;\n var count = Math.min(callerCount, calleeCount);\n vm.pushFrame();\n vm.pushCallerScope(calleeCount > 0);\n var scope = vm.scope();\n for (var i = 0; i < count; i++) {\n scope.bindSymbol(locals[i], stack.fromBase(callerCount - i));\n }\n vm.call(block.handle);\n };\n\n InvokeDynamicYield.prototype.toJSON = function toJSON() {\n return { GlimmerDebug: '<invoke-dynamic-yield caller-count=' + this.callerCount + '>' };\n };\n\n return InvokeDynamicYield;\n }();\n\n STATEMENTS.add(Ops$3.Yield, function (sexp, builder) {\n var to = sexp[1],\n params = sexp[2];\n\n var count = compileList(params, builder);\n builder.getBlock(to);\n builder.compileDynamicBlock();\n builder.invokeDynamic(new InvokeDynamicYield(count));\n builder.popScope();\n builder.popFrame();\n if (count) {\n builder.pop(count);\n }\n });\n STATEMENTS.add(Ops$3.Debugger, function (sexp, builder) {\n var evalInfo = sexp[1];\n\n builder.debugger(builder.meta.symbols, evalInfo);\n });\n STATEMENTS.add(Ops$3.ClientSideStatement, function (sexp, builder) {\n CLIENT_SIDE.compile(sexp, builder);\n });\n var EXPRESSIONS = new Compilers();\n var CLIENT_SIDE_EXPRS = new Compilers(1);\n var E = _wireFormat.Expressions;\n function expr(expression, builder) {\n if (Array.isArray(expression)) {\n EXPRESSIONS.compile(expression, builder);\n } else {\n builder.primitive(expression);\n }\n }\n EXPRESSIONS.add(Ops$3.Unknown, function (sexp, builder) {\n var name = sexp[1];\n if (builder.env.hasHelper(name, builder.meta.templateMeta)) {\n EXPRESSIONS.compile([Ops$3.Helper, name, _util.EMPTY_ARRAY, null], builder);\n } else if (builder.meta.asPartial) {\n builder.resolveMaybeLocal(name);\n } else {\n builder.getVariable(0);\n builder.getProperty(name);\n }\n });\n EXPRESSIONS.add(Ops$3.Concat, function (sexp, builder) {\n var parts = sexp[1];\n for (var i = 0; i < parts.length; i++) {\n expr(parts[i], builder);\n }\n builder.concat(parts.length);\n });\n CLIENT_SIDE_EXPRS.add(Ops$2.FunctionExpression, function (sexp, builder) {\n builder.function(sexp[2]);\n });\n EXPRESSIONS.add(Ops$3.Helper, function (sexp, builder) {\n var env = builder.env,\n meta = builder.meta;\n var name = sexp[1],\n params = sexp[2],\n hash = sexp[3];\n\n if (env.hasHelper(name, meta.templateMeta)) {\n builder.compileArgs(params, hash, true);\n builder.helper(env.lookupHelper(name, meta.templateMeta));\n } else {\n throw new Error('Compile Error: ' + name + ' is not a helper');\n }\n });\n EXPRESSIONS.add(Ops$3.Get, function (sexp, builder) {\n var head = sexp[1],\n path = sexp[2];\n\n builder.getVariable(head);\n for (var i = 0; i < path.length; i++) {\n builder.getProperty(path[i]);\n }\n });\n EXPRESSIONS.add(Ops$3.MaybeLocal, function (sexp, builder) {\n var path = sexp[1];\n\n if (builder.meta.asPartial) {\n var head = path[0];\n path = path.slice(1);\n builder.resolveMaybeLocal(head);\n } else {\n builder.getVariable(0);\n }\n for (var i = 0; i < path.length; i++) {\n builder.getProperty(path[i]);\n }\n });\n EXPRESSIONS.add(Ops$3.Undefined, function (_sexp, builder) {\n return builder.primitive(undefined);\n });\n EXPRESSIONS.add(Ops$3.HasBlock, function (sexp, builder) {\n builder.hasBlock(sexp[1]);\n });\n EXPRESSIONS.add(Ops$3.HasBlockParams, function (sexp, builder) {\n builder.hasBlockParams(sexp[1]);\n });\n EXPRESSIONS.add(Ops$3.ClientSideExpression, function (sexp, builder) {\n CLIENT_SIDE_EXPRS.compile(sexp, builder);\n });\n function compileList(params, builder) {\n if (!params) return 0;\n for (var i = 0; i < params.length; i++) {\n expr(params[i], builder);\n }\n return params.length;\n }\n var Blocks = function () {\n function Blocks() {\n _classCallCheck$18(this, Blocks);\n\n this.names = (0, _util.dict)();\n this.funcs = [];\n }\n\n Blocks.prototype.add = function add(name, func) {\n this.funcs.push(func);\n this.names[name] = this.funcs.length - 1;\n };\n\n Blocks.prototype.addMissing = function addMissing(func) {\n this.missing = func;\n };\n\n Blocks.prototype.compile = function compile(name, params, hash, template, inverse, builder) {\n var index = this.names[name];\n if (index === undefined) {\n (0, _util.assert)(!!this.missing, name + ' not found, and no catch-all block handler was registered');\n var func = this.missing;\n var handled = func(name, params, hash, template, inverse, builder);\n (0, _util.assert)(!!handled, name + ' not found, and the catch-all block handler didn\\'t handle it');\n } else {\n var _func = this.funcs[index];\n _func(params, hash, template, inverse, builder);\n }\n };\n\n return Blocks;\n }();\n var BLOCKS = new Blocks();\n var Inlines = function () {\n function Inlines() {\n _classCallCheck$18(this, Inlines);\n\n this.names = (0, _util.dict)();\n this.funcs = [];\n }\n\n Inlines.prototype.add = function add(name, func) {\n this.funcs.push(func);\n this.names[name] = this.funcs.length - 1;\n };\n\n Inlines.prototype.addMissing = function addMissing(func) {\n this.missing = func;\n };\n\n Inlines.prototype.compile = function compile(sexp, builder) {\n var value = sexp[1];\n // TODO: Fix this so that expression macros can return\n // things like components, so that {{component foo}}\n // is the same as {{(component foo)}}\n if (!Array.isArray(value)) return ['expr', value];\n var name = void 0;\n var params = void 0;\n var hash = void 0;\n if (value[0] === Ops$3.Helper) {\n name = value[1];\n params = value[2];\n hash = value[3];\n } else if (value[0] === Ops$3.Unknown) {\n name = value[1];\n params = hash = null;\n } else {\n return ['expr', value];\n }\n var index = this.names[name];\n if (index === undefined && this.missing) {\n var func = this.missing;\n var returned = func(name, params, hash, builder);\n return returned === false ? ['expr', value] : returned;\n } else if (index !== undefined) {\n var _func2 = this.funcs[index];\n var _returned = _func2(name, params, hash, builder);\n return _returned === false ? ['expr', value] : _returned;\n } else {\n return ['expr', value];\n }\n };\n\n return Inlines;\n }();\n var INLINES = new Inlines();\n populateBuiltins(BLOCKS, INLINES);\n function populateBuiltins() {\n var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Blocks();\n var inlines = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Inlines();\n\n blocks.add('if', function (params, _hash, template, inverse, builder) {\n // PutArgs\n // Test(Environment)\n // Enter(BEGIN, END)\n // BEGIN: Noop\n // JumpUnless(ELSE)\n // Evaluate(default)\n // Jump(END)\n // ELSE: Noop\n // Evalulate(inverse)\n // END: Noop\n // Exit\n if (!params || params.length !== 1) {\n throw new Error('SYNTAX ERROR: #if requires a single argument');\n }\n builder.startLabels();\n builder.pushFrame();\n builder.returnTo('END');\n expr(params[0], builder);\n builder.test('environment');\n builder.enter(1);\n builder.jumpUnless('ELSE');\n builder.invokeStatic(template);\n if (inverse) {\n builder.jump('EXIT');\n builder.label('ELSE');\n builder.invokeStatic(inverse);\n builder.label('EXIT');\n builder.exit();\n builder.return();\n } else {\n builder.label('ELSE');\n builder.exit();\n builder.return();\n }\n builder.label('END');\n builder.popFrame();\n builder.stopLabels();\n });\n blocks.add('unless', function (params, _hash, template, inverse, builder) {\n // PutArgs\n // Test(Environment)\n // Enter(BEGIN, END)\n // BEGIN: Noop\n // JumpUnless(ELSE)\n // Evaluate(default)\n // Jump(END)\n // ELSE: Noop\n // Evalulate(inverse)\n // END: Noop\n // Exit\n if (!params || params.length !== 1) {\n throw new Error('SYNTAX ERROR: #unless requires a single argument');\n }\n builder.startLabels();\n builder.pushFrame();\n builder.returnTo('END');\n expr(params[0], builder);\n builder.test('environment');\n builder.enter(1);\n builder.jumpIf('ELSE');\n builder.invokeStatic(template);\n if (inverse) {\n builder.jump('EXIT');\n builder.label('ELSE');\n builder.invokeStatic(inverse);\n builder.label('EXIT');\n builder.exit();\n builder.return();\n } else {\n builder.label('ELSE');\n builder.exit();\n builder.return();\n }\n builder.label('END');\n builder.popFrame();\n builder.stopLabels();\n });\n blocks.add('with', function (params, _hash, template, inverse, builder) {\n // PutArgs\n // Test(Environment)\n // Enter(BEGIN, END)\n // BEGIN: Noop\n // JumpUnless(ELSE)\n // Evaluate(default)\n // Jump(END)\n // ELSE: Noop\n // Evalulate(inverse)\n // END: Noop\n // Exit\n if (!params || params.length !== 1) {\n throw new Error('SYNTAX ERROR: #with requires a single argument');\n }\n builder.startLabels();\n builder.pushFrame();\n builder.returnTo('END');\n expr(params[0], builder);\n builder.dup();\n builder.test('environment');\n builder.enter(2);\n builder.jumpUnless('ELSE');\n builder.invokeStatic(template, 1);\n if (inverse) {\n builder.jump('EXIT');\n builder.label('ELSE');\n builder.invokeStatic(inverse);\n builder.label('EXIT');\n builder.exit();\n builder.return();\n } else {\n builder.label('ELSE');\n builder.exit();\n builder.return();\n }\n builder.label('END');\n builder.popFrame();\n builder.stopLabels();\n });\n blocks.add('each', function (params, hash, template, inverse, builder) {\n // Enter(BEGIN, END)\n // BEGIN: Noop\n // PutArgs\n // PutIterable\n // JumpUnless(ELSE)\n // EnterList(BEGIN2, END2)\n // ITER: Noop\n // NextIter(BREAK)\n // BEGIN2: Noop\n // PushChildScope\n // Evaluate(default)\n // PopScope\n // END2: Noop\n // Exit\n // Jump(ITER)\n // BREAK: Noop\n // ExitList\n // Jump(END)\n // ELSE: Noop\n // Evalulate(inverse)\n // END: Noop\n // Exit\n builder.startLabels();\n builder.pushFrame();\n builder.returnTo('END');\n if (hash && hash[0][0] === 'key') {\n expr(hash[1][0], builder);\n } else {\n builder.primitive(null);\n }\n expr(params[0], builder);\n builder.enter(2);\n builder.putIterator();\n builder.jumpUnless('ELSE');\n builder.pushFrame();\n builder.returnTo('ITER');\n builder.dup(Register.fp, 1);\n builder.enterList('BODY');\n builder.label('ITER');\n builder.iterate('BREAK');\n builder.label('BODY');\n builder.invokeStatic(template, 2);\n builder.pop(2);\n builder.exit();\n builder.return();\n builder.label('BREAK');\n builder.exitList();\n builder.popFrame();\n if (inverse) {\n builder.jump('EXIT');\n builder.label('ELSE');\n builder.invokeStatic(inverse);\n builder.label('EXIT');\n builder.exit();\n builder.return();\n } else {\n builder.label('ELSE');\n builder.exit();\n builder.return();\n }\n builder.label('END');\n builder.popFrame();\n builder.stopLabels();\n });\n blocks.add('-in-element', function (params, hash, template, _inverse, builder) {\n if (!params || params.length !== 1) {\n throw new Error('SYNTAX ERROR: #-in-element requires a single argument');\n }\n builder.startLabels();\n builder.pushFrame();\n builder.returnTo('END');\n if (hash && hash[0].length) {\n var keys = hash[0],\n values = hash[1];\n\n if (keys.length === 1 && keys[0] === 'nextSibling') {\n expr(values[0], builder);\n } else {\n throw new Error('SYNTAX ERROR: #-in-element does not take a `' + keys[0] + '` option');\n }\n } else {\n expr(null, builder);\n }\n expr(params[0], builder);\n builder.dup();\n builder.test('simple');\n builder.enter(3);\n builder.jumpUnless('ELSE');\n builder.pushRemoteElement();\n builder.invokeStatic(template);\n builder.popRemoteElement();\n builder.label('ELSE');\n builder.exit();\n builder.return();\n builder.label('END');\n builder.popFrame();\n builder.stopLabels();\n });\n blocks.add('-with-dynamic-vars', function (_params, hash, template, _inverse, builder) {\n if (hash) {\n var names = hash[0],\n expressions = hash[1];\n\n compileList(expressions, builder);\n builder.pushDynamicScope();\n builder.bindDynamicScope(names);\n builder.invokeStatic(template);\n builder.popDynamicScope();\n } else {\n builder.invokeStatic(template);\n }\n });\n return { blocks: blocks, inlines: inlines };\n }\n function compileStatement(statement, builder) {\n STATEMENTS.compile(statement, builder);\n }\n function compileStatements(statements, meta, env) {\n var b = new OpcodeBuilder(env, meta);\n for (var i = 0; i < statements.length; i++) {\n compileStatement(statements[i], b);\n }\n return b;\n }\n\n function _classCallCheck$16(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var CompilableTemplate = function () {\n function CompilableTemplate(statements, symbolTable) {\n _classCallCheck$16(this, CompilableTemplate);\n\n this.statements = statements;\n this.symbolTable = symbolTable;\n this.compiledStatic = null;\n this.compiledDynamic = null;\n }\n\n CompilableTemplate.prototype.compileStatic = function compileStatic(env) {\n var compiledStatic = this.compiledStatic;\n\n if (!compiledStatic) {\n var builder = compileStatements(this.statements, this.symbolTable.meta, env);\n builder.finalize();\n var handle = builder.start;\n compiledStatic = this.compiledStatic = new CompiledStaticTemplate(handle);\n }\n return compiledStatic;\n };\n\n CompilableTemplate.prototype.compileDynamic = function compileDynamic(env) {\n var compiledDynamic = this.compiledDynamic;\n\n if (!compiledDynamic) {\n var staticBlock = this.compileStatic(env);\n compiledDynamic = new CompiledDynamicTemplate(staticBlock.handle, this.symbolTable);\n }\n return compiledDynamic;\n };\n\n return CompilableTemplate;\n }();\n\n function _classCallCheck$15(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var Ops$1 = _wireFormat.Ops;\n\n var Scanner = function () {\n function Scanner(block, env) {\n _classCallCheck$15(this, Scanner);\n\n this.block = block;\n this.env = env;\n }\n\n Scanner.prototype.scanEntryPoint = function scanEntryPoint(meta) {\n var block = this.block;\n var statements = block.statements,\n symbols = block.symbols,\n hasEval = block.hasEval;\n\n return new CompilableTemplate(statements, { meta: meta, symbols: symbols, hasEval: hasEval });\n };\n\n Scanner.prototype.scanBlock = function scanBlock(meta) {\n var block = this.block;\n var statements = block.statements;\n\n return new CompilableTemplate(statements, { meta: meta, parameters: _util.EMPTY_ARRAY });\n };\n\n Scanner.prototype.scanLayout = function scanLayout(meta, attrs, componentName) {\n var block = this.block;\n var statements = block.statements,\n symbols = block.symbols,\n hasEval = block.hasEval;\n\n var symbolTable = { meta: meta, hasEval: hasEval, symbols: symbols };\n var newStatements = [];\n var toplevel = void 0;\n var inTopLevel = false;\n for (var i = 0; i < statements.length; i++) {\n var statement = statements[i];\n if (_wireFormat.Statements.isComponent(statement)) {\n var tagName = statement[1];\n if (!this.env.hasComponentDefinition(tagName, meta.templateMeta)) {\n if (toplevel !== undefined) {\n newStatements.push([Ops$1.OpenElement, tagName]);\n } else {\n toplevel = tagName;\n decorateTopLevelElement(tagName, symbols, attrs, newStatements);\n }\n addFallback(statement, newStatements);\n } else {\n if (toplevel === undefined && tagName === componentName) {\n toplevel = tagName;\n decorateTopLevelElement(tagName, symbols, attrs, newStatements);\n addFallback(statement, newStatements);\n } else {\n newStatements.push(statement);\n }\n }\n } else {\n if (toplevel === undefined && _wireFormat.Statements.isOpenElement(statement)) {\n toplevel = statement[1];\n inTopLevel = true;\n decorateTopLevelElement(toplevel, symbols, attrs, newStatements);\n } else {\n if (inTopLevel) {\n if (_wireFormat.Statements.isFlushElement(statement)) {\n inTopLevel = false;\n } else if (_wireFormat.Statements.isModifier(statement)) {\n throw Error('Found modifier \"' + statement[1] + '\" on the top-level element of \"' + componentName + '\". Modifiers cannot be on the top-level element');\n }\n }\n newStatements.push(statement);\n }\n }\n }\n newStatements.push([Ops$1.ClientSideStatement, Ops$2.DidRenderLayout]);\n return new CompilableTemplate(newStatements, symbolTable);\n };\n\n return Scanner;\n }();\n\n function addFallback(statement, buffer) {\n var attrs = statement[2],\n block = statement[4];\n\n for (var i = 0; i < attrs.length; i++) {\n buffer.push(attrs[i]);\n }\n buffer.push([Ops$1.FlushElement]);\n if (block) {\n var statements = block.statements;\n\n for (var _i = 0; _i < statements.length; _i++) {\n buffer.push(statements[_i]);\n }\n }\n buffer.push([Ops$1.CloseElement]);\n }\n function decorateTopLevelElement(tagName, symbols, attrs, buffer) {\n var attrsSymbol = symbols.push(ATTRS_BLOCK);\n buffer.push([Ops$1.ClientSideStatement, Ops$2.OpenComponentElement, tagName]);\n buffer.push([Ops$1.ClientSideStatement, Ops$2.DidCreateElement]);\n buffer.push([Ops$1.Yield, attrsSymbol, _util.EMPTY_ARRAY]);\n buffer.push.apply(buffer, attrs);\n }\n\n function _classCallCheck$24(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var Constants = function () {\n function Constants() {\n _classCallCheck$24(this, Constants);\n\n // `0` means NULL\n this.references = [];\n this.strings = [];\n this.expressions = [];\n this.floats = [];\n this.arrays = [];\n this.blocks = [];\n this.functions = [];\n this.others = [];\n }\n\n Constants.prototype.getReference = function getReference(value) {\n return this.references[value - 1];\n };\n\n Constants.prototype.reference = function reference(value) {\n var index = this.references.length;\n this.references.push(value);\n return index + 1;\n };\n\n Constants.prototype.getString = function getString(value) {\n return this.strings[value - 1];\n };\n\n Constants.prototype.getFloat = function getFloat(value) {\n return this.floats[value - 1];\n };\n\n Constants.prototype.float = function float(value) {\n return this.floats.push(value);\n };\n\n Constants.prototype.string = function string(value) {\n var index = this.strings.length;\n this.strings.push(value);\n return index + 1;\n };\n\n Constants.prototype.getExpression = function getExpression(value) {\n return this.expressions[value - 1];\n };\n\n Constants.prototype.getArray = function getArray(value) {\n return this.arrays[value - 1];\n };\n\n Constants.prototype.getNames = function getNames(value) {\n var _names = [];\n var names = this.getArray(value);\n for (var i = 0; i < names.length; i++) {\n var n = names[i];\n _names[i] = this.getString(n);\n }\n return _names;\n };\n\n Constants.prototype.array = function array(values) {\n var index = this.arrays.length;\n this.arrays.push(values);\n return index + 1;\n };\n\n Constants.prototype.getBlock = function getBlock(value) {\n return this.blocks[value - 1];\n };\n\n Constants.prototype.block = function block(_block) {\n var index = this.blocks.length;\n this.blocks.push(_block);\n return index + 1;\n };\n\n Constants.prototype.getFunction = function getFunction(value) {\n return this.functions[value - 1];\n };\n\n Constants.prototype.function = function _function(f) {\n var index = this.functions.length;\n this.functions.push(f);\n return index + 1;\n };\n\n Constants.prototype.getOther = function getOther(value) {\n return this.others[value - 1];\n };\n\n Constants.prototype.other = function other(_other) {\n var index = this.others.length;\n this.others.push(_other);\n return index + 1;\n };\n\n return Constants;\n }();\n\n var badProtocols = ['javascript:', 'vbscript:'];\n var badTags = ['A', 'BODY', 'LINK', 'IMG', 'IFRAME', 'BASE', 'FORM'];\n var badTagsForDataURI = ['EMBED'];\n var badAttributes = ['href', 'src', 'background', 'action'];\n var badAttributesForDataURI = ['src'];\n function has(array, item) {\n return array.indexOf(item) !== -1;\n }\n function checkURI(tagName, attribute) {\n return (tagName === null || has(badTags, tagName)) && has(badAttributes, attribute);\n }\n function checkDataURI(tagName, attribute) {\n if (tagName === null) return false;\n return has(badTagsForDataURI, tagName) && has(badAttributesForDataURI, attribute);\n }\n function requiresSanitization(tagName, attribute) {\n return checkURI(tagName, attribute) || checkDataURI(tagName, attribute);\n }\n function sanitizeAttributeValue(env, element, attribute, value) {\n var tagName = null;\n if (value === null || value === undefined) {\n return value;\n }\n if (isSafeString(value)) {\n return value.toHTML();\n }\n if (!element) {\n tagName = null;\n } else {\n tagName = element.tagName.toUpperCase();\n }\n var str = normalizeTextValue(value);\n if (checkURI(tagName, attribute)) {\n var protocol = env.protocolForURL(str);\n if (has(badProtocols, protocol)) {\n return 'unsafe:' + str;\n }\n }\n if (checkDataURI(tagName, attribute)) {\n return 'unsafe:' + str;\n }\n return str;\n }\n\n /*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */\n function normalizeProperty(element, slotName) {\n var type = void 0,\n normalized = void 0;\n if (slotName in element) {\n normalized = slotName;\n type = 'prop';\n } else {\n var lower = slotName.toLowerCase();\n if (lower in element) {\n type = 'prop';\n normalized = lower;\n } else {\n type = 'attr';\n normalized = slotName;\n }\n }\n if (type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName, normalized))) {\n type = 'attr';\n }\n return { normalized: normalized, type: type };\n }\n\n // properties that MUST be set as attributes, due to:\n // * browser bug\n // * strange spec outlier\n var ATTR_OVERRIDES = {\n // phantomjs < 2.0 lets you set it as a prop but won't reflect it\n // back to the attribute. button.getAttribute('type') === null\n BUTTON: { type: true, form: true },\n INPUT: {\n // Some version of IE (like IE9) actually throw an exception\n // if you set input.type = 'something-unknown'\n type: true,\n form: true,\n // Chrome 46.0.2464.0: 'autocorrect' in document.createElement('input') === false\n // Safari 8.0.7: 'autocorrect' in document.createElement('input') === false\n // Mobile Safari (iOS 8.4 simulator): 'autocorrect' in document.createElement('input') === true\n autocorrect: true,\n // Chrome 54.0.2840.98: 'list' in document.createElement('input') === true\n // Safari 9.1.3: 'list' in document.createElement('input') === false\n list: true\n },\n // element.form is actually a legitimate readOnly property, that is to be\n // mutated, but must be mutated by setAttribute...\n SELECT: { form: true },\n OPTION: { form: true },\n TEXTAREA: { form: true },\n LABEL: { form: true },\n FIELDSET: { form: true },\n LEGEND: { form: true },\n OBJECT: { form: true }\n };\n function preferAttr(tagName, propName) {\n var tag = ATTR_OVERRIDES[tagName.toUpperCase()];\n return tag && tag[propName.toLowerCase()] || false;\n }\n\n function _defaults$12(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$27(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$12(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$12(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$12(subClass, superClass);\n }\n\n var innerHTMLWrapper = {\n colgroup: { depth: 2, before: '<table><colgroup>', after: '</colgroup></table>' },\n table: { depth: 1, before: '<table>', after: '</table>' },\n tbody: { depth: 2, before: '<table><tbody>', after: '</tbody></table>' },\n tfoot: { depth: 2, before: '<table><tfoot>', after: '</tfoot></table>' },\n thead: { depth: 2, before: '<table><thead>', after: '</thead></table>' },\n tr: { depth: 3, before: '<table><tbody><tr>', after: '</tr></tbody></table>' }\n };\n // Patch: innerHTML Fix\n // Browsers: IE9\n // Reason: IE9 don't allow us to set innerHTML on col, colgroup, frameset,\n // html, style, table, tbody, tfoot, thead, title, tr.\n // Fix: Wrap the innerHTML we are about to set in its parents, apply the\n // wrapped innerHTML on a div, then move the unwrapped nodes into the\n // target position.\n function domChanges(document, DOMChangesClass) {\n if (!document) return DOMChangesClass;\n if (!shouldApplyFix(document)) {\n return DOMChangesClass;\n }\n var div = document.createElement('div');\n return function (_DOMChangesClass) {\n _inherits$12(DOMChangesWithInnerHTMLFix, _DOMChangesClass);\n\n function DOMChangesWithInnerHTMLFix() {\n _classCallCheck$27(this, DOMChangesWithInnerHTMLFix);\n\n return _possibleConstructorReturn$12(this, _DOMChangesClass.apply(this, arguments));\n }\n\n DOMChangesWithInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore$$1(parent, nextSibling, html) {\n if (html === null || html === '') {\n return _DOMChangesClass.prototype.insertHTMLBefore.call(this, parent, nextSibling, html);\n }\n var parentTag = parent.tagName.toLowerCase();\n var wrapper = innerHTMLWrapper[parentTag];\n if (wrapper === undefined) {\n return _DOMChangesClass.prototype.insertHTMLBefore.call(this, parent, nextSibling, html);\n }\n return fixInnerHTML(parent, wrapper, div, html, nextSibling);\n };\n\n return DOMChangesWithInnerHTMLFix;\n }(DOMChangesClass);\n }\n function treeConstruction(document, DOMTreeConstructionClass) {\n if (!document) return DOMTreeConstructionClass;\n if (!shouldApplyFix(document)) {\n return DOMTreeConstructionClass;\n }\n var div = document.createElement('div');\n return function (_DOMTreeConstructionC) {\n _inherits$12(DOMTreeConstructionWithInnerHTMLFix, _DOMTreeConstructionC);\n\n function DOMTreeConstructionWithInnerHTMLFix() {\n _classCallCheck$27(this, DOMTreeConstructionWithInnerHTMLFix);\n\n return _possibleConstructorReturn$12(this, _DOMTreeConstructionC.apply(this, arguments));\n }\n\n DOMTreeConstructionWithInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore$$1(parent, referenceNode, html) {\n if (html === null || html === '') {\n return _DOMTreeConstructionC.prototype.insertHTMLBefore.call(this, parent, referenceNode, html);\n }\n var parentTag = parent.tagName.toLowerCase();\n var wrapper = innerHTMLWrapper[parentTag];\n if (wrapper === undefined) {\n return _DOMTreeConstructionC.prototype.insertHTMLBefore.call(this, parent, referenceNode, html);\n }\n return fixInnerHTML(parent, wrapper, div, html, referenceNode);\n };\n\n return DOMTreeConstructionWithInnerHTMLFix;\n }(DOMTreeConstructionClass);\n }\n function fixInnerHTML(parent, wrapper, div, html, reference) {\n var wrappedHtml = wrapper.before + html + wrapper.after;\n div.innerHTML = wrappedHtml;\n var parentNode = div;\n for (var i = 0; i < wrapper.depth; i++) {\n parentNode = parentNode.childNodes[0];\n }\n\n var _moveNodesBefore = moveNodesBefore(parentNode, parent, reference),\n first = _moveNodesBefore[0],\n last = _moveNodesBefore[1];\n\n return new ConcreteBounds(parent, first, last);\n }\n function shouldApplyFix(document) {\n var table = document.createElement('table');\n try {\n table.innerHTML = '<tbody></tbody>';\n } catch (e) {} finally {\n if (table.childNodes.length !== 0) {\n // It worked as expected, no fix required\n return false;\n }\n }\n return true;\n }\n\n function _defaults$13(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$28(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$13(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$13(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$13(subClass, superClass);\n }\n\n var SVG_NAMESPACE$1 = 'http://www.w3.org/2000/svg';\n // Patch: insertAdjacentHTML on SVG Fix\n // Browsers: Safari, IE, Edge, Firefox ~33-34\n // Reason: insertAdjacentHTML does not exist on SVG elements in Safari. It is\n // present but throws an exception on IE and Edge. Old versions of\n // Firefox create nodes in the incorrect namespace.\n // Fix: Since IE and Edge silently fail to create SVG nodes using\n // innerHTML, and because Firefox may create nodes in the incorrect\n // namespace using innerHTML on SVG elements, an HTML-string wrapping\n // approach is used. A pre/post SVG tag is added to the string, then\n // that whole string is added to a div. The created nodes are plucked\n // out and applied to the target location on DOM.\n function domChanges$1(document, DOMChangesClass, svgNamespace) {\n if (!document) return DOMChangesClass;\n if (!shouldApplyFix$1(document, svgNamespace)) {\n return DOMChangesClass;\n }\n var div = document.createElement('div');\n return function (_DOMChangesClass) {\n _inherits$13(DOMChangesWithSVGInnerHTMLFix, _DOMChangesClass);\n\n function DOMChangesWithSVGInnerHTMLFix() {\n _classCallCheck$28(this, DOMChangesWithSVGInnerHTMLFix);\n\n return _possibleConstructorReturn$13(this, _DOMChangesClass.apply(this, arguments));\n }\n\n DOMChangesWithSVGInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore$$1(parent, nextSibling, html) {\n if (html === null || html === '') {\n return _DOMChangesClass.prototype.insertHTMLBefore.call(this, parent, nextSibling, html);\n }\n if (parent.namespaceURI !== svgNamespace) {\n return _DOMChangesClass.prototype.insertHTMLBefore.call(this, parent, nextSibling, html);\n }\n return fixSVG(parent, div, html, nextSibling);\n };\n\n return DOMChangesWithSVGInnerHTMLFix;\n }(DOMChangesClass);\n }\n function treeConstruction$1(document, TreeConstructionClass, svgNamespace) {\n if (!document) return TreeConstructionClass;\n if (!shouldApplyFix$1(document, svgNamespace)) {\n return TreeConstructionClass;\n }\n var div = document.createElement('div');\n return function (_TreeConstructionClas) {\n _inherits$13(TreeConstructionWithSVGInnerHTMLFix, _TreeConstructionClas);\n\n function TreeConstructionWithSVGInnerHTMLFix() {\n _classCallCheck$28(this, TreeConstructionWithSVGInnerHTMLFix);\n\n return _possibleConstructorReturn$13(this, _TreeConstructionClas.apply(this, arguments));\n }\n\n TreeConstructionWithSVGInnerHTMLFix.prototype.insertHTMLBefore = function insertHTMLBefore$$1(parent, reference, html) {\n if (html === null || html === '') {\n return _TreeConstructionClas.prototype.insertHTMLBefore.call(this, parent, reference, html);\n }\n if (parent.namespaceURI !== svgNamespace) {\n return _TreeConstructionClas.prototype.insertHTMLBefore.call(this, parent, reference, html);\n }\n return fixSVG(parent, div, html, reference);\n };\n\n return TreeConstructionWithSVGInnerHTMLFix;\n }(TreeConstructionClass);\n }\n function fixSVG(parent, div, html, reference) {\n // IE, Edge: also do not correctly support using `innerHTML` on SVG\n // namespaced elements. So here a wrapper is used.\n var wrappedHtml = '<svg>' + html + '</svg>';\n div.innerHTML = wrappedHtml;\n\n var _moveNodesBefore = moveNodesBefore(div.firstChild, parent, reference),\n first = _moveNodesBefore[0],\n last = _moveNodesBefore[1];\n\n return new ConcreteBounds(parent, first, last);\n }\n function shouldApplyFix$1(document, svgNamespace) {\n var svg = document.createElementNS(svgNamespace, 'svg');\n try {\n svg['insertAdjacentHTML']('beforeend', '<circle></circle>');\n } catch (e) {\n // IE, Edge: Will throw, insertAdjacentHTML is unsupported on SVG\n // Safari: Will throw, insertAdjacentHTML is not present on SVG\n } finally {\n // FF: Old versions will create a node in the wrong namespace\n if (svg.childNodes.length === 1 && svg.firstChild.namespaceURI === SVG_NAMESPACE$1) {\n // The test worked as expected, no fix required\n return false;\n }\n return true;\n }\n }\n\n function _defaults$14(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _classCallCheck$29(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn$14(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$14(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$14(subClass, superClass);\n }\n\n // Patch: Adjacent text node merging fix\n // Browsers: IE, Edge, Firefox w/o inspector open\n // Reason: These browsers will merge adjacent text nodes. For exmaple given\n // <div>Hello</div> with div.insertAdjacentHTML(' world') browsers\n // with proper behavior will populate div.childNodes with two items.\n // These browsers will populate it with one merged node instead.\n // Fix: Add these nodes to a wrapper element, then iterate the childNodes\n // of that wrapper and move the nodes to their target location. Note\n // that potential SVG bugs will have been handled before this fix.\n // Note that this fix must only apply to the previous text node, as\n // the base implementation of `insertHTMLBefore` already handles\n // following text nodes correctly.\n function domChanges$2(document, DOMChangesClass) {\n if (!document) return DOMChangesClass;\n if (!shouldApplyFix$2(document)) {\n return DOMChangesClass;\n }\n return function (_DOMChangesClass) {\n _inherits$14(DOMChangesWithTextNodeMergingFix, _DOMChangesClass);\n\n function DOMChangesWithTextNodeMergingFix(document) {\n _classCallCheck$29(this, DOMChangesWithTextNodeMergingFix);\n\n var _this = _possibleConstructorReturn$14(this, _DOMChangesClass.call(this, document));\n\n _this.uselessComment = document.createComment('');\n return _this;\n }\n\n DOMChangesWithTextNodeMergingFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent, nextSibling, html) {\n if (html === null) {\n return _DOMChangesClass.prototype.insertHTMLBefore.call(this, parent, nextSibling, html);\n }\n var didSetUselessComment = false;\n var nextPrevious = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n if (nextPrevious && nextPrevious instanceof Text) {\n didSetUselessComment = true;\n parent.insertBefore(this.uselessComment, nextSibling);\n }\n var bounds = _DOMChangesClass.prototype.insertHTMLBefore.call(this, parent, nextSibling, html);\n if (didSetUselessComment) {\n parent.removeChild(this.uselessComment);\n }\n return bounds;\n };\n\n return DOMChangesWithTextNodeMergingFix;\n }(DOMChangesClass);\n }\n function treeConstruction$2(document, TreeConstructionClass) {\n if (!document) return TreeConstructionClass;\n if (!shouldApplyFix$2(document)) {\n return TreeConstructionClass;\n }\n return function (_TreeConstructionClas) {\n _inherits$14(TreeConstructionWithTextNodeMergingFix, _TreeConstructionClas);\n\n function TreeConstructionWithTextNodeMergingFix(document) {\n _classCallCheck$29(this, TreeConstructionWithTextNodeMergingFix);\n\n var _this2 = _possibleConstructorReturn$14(this, _TreeConstructionClas.call(this, document));\n\n _this2.uselessComment = _this2.createComment('');\n return _this2;\n }\n\n TreeConstructionWithTextNodeMergingFix.prototype.insertHTMLBefore = function insertHTMLBefore(parent, reference, html) {\n if (html === null) {\n return _TreeConstructionClas.prototype.insertHTMLBefore.call(this, parent, reference, html);\n }\n var didSetUselessComment = false;\n var nextPrevious = reference ? reference.previousSibling : parent.lastChild;\n if (nextPrevious && nextPrevious instanceof Text) {\n didSetUselessComment = true;\n parent.insertBefore(this.uselessComment, reference);\n }\n var bounds = _TreeConstructionClas.prototype.insertHTMLBefore.call(this, parent, reference, html);\n if (didSetUselessComment) {\n parent.removeChild(this.uselessComment);\n }\n return bounds;\n };\n\n return TreeConstructionWithTextNodeMergingFix;\n }(TreeConstructionClass);\n }\n function shouldApplyFix$2(document) {\n var mergingTextDiv = document.createElement('div');\n mergingTextDiv.innerHTML = 'first';\n mergingTextDiv.insertAdjacentHTML('beforeend', 'second');\n if (mergingTextDiv.childNodes.length === 2) {\n // It worked as expected, no fix required\n return false;\n }\n return true;\n }\n\n function _defaults$11(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn$11(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$11(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$11(subClass, superClass);\n }\n\n function _classCallCheck$26(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var SVG_NAMESPACE$$1 = 'http://www.w3.org/2000/svg';\n // http://www.w3.org/TR/html/syntax.html#html-integration-point\n var SVG_INTEGRATION_POINTS = { foreignObject: 1, desc: 1, title: 1 };\n // http://www.w3.org/TR/html/syntax.html#adjust-svg-attributes\n // TODO: Adjust SVG attributes\n // http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n // TODO: Adjust SVG elements\n // http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n var BLACKLIST_TABLE = Object.create(null);\n [\"b\", \"big\", \"blockquote\", \"body\", \"br\", \"center\", \"code\", \"dd\", \"div\", \"dl\", \"dt\", \"em\", \"embed\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"head\", \"hr\", \"i\", \"img\", \"li\", \"listing\", \"main\", \"meta\", \"nobr\", \"ol\", \"p\", \"pre\", \"ruby\", \"s\", \"small\", \"span\", \"strong\", \"strike\", \"sub\", \"sup\", \"table\", \"tt\", \"u\", \"ul\", \"var\"].forEach(function (tag) {\n return BLACKLIST_TABLE[tag] = 1;\n });\n var WHITESPACE = /[\\t-\\r \\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]/;\n var doc = typeof document === 'undefined' ? null : document;\n function isWhitespace(string) {\n return WHITESPACE.test(string);\n }\n function moveNodesBefore(source, target, nextSibling) {\n var first = source.firstChild;\n var last = null;\n var current = first;\n while (current) {\n last = current;\n current = current.nextSibling;\n target.insertBefore(last, nextSibling);\n }\n return [first, last];\n }\n var DOMOperations = function () {\n function DOMOperations(document) {\n _classCallCheck$26(this, DOMOperations);\n\n this.document = document;\n this.setupUselessElement();\n }\n // split into seperate method so that NodeDOMTreeConstruction\n // can override it.\n\n\n DOMOperations.prototype.setupUselessElement = function setupUselessElement() {\n this.uselessElement = this.document.createElement('div');\n };\n\n DOMOperations.prototype.createElement = function createElement(tag, context) {\n var isElementInSVGNamespace = void 0,\n isHTMLIntegrationPoint = void 0;\n if (context) {\n isElementInSVGNamespace = context.namespaceURI === SVG_NAMESPACE$$1 || tag === 'svg';\n isHTMLIntegrationPoint = SVG_INTEGRATION_POINTS[context.tagName];\n } else {\n isElementInSVGNamespace = tag === 'svg';\n isHTMLIntegrationPoint = false;\n }\n if (isElementInSVGNamespace && !isHTMLIntegrationPoint) {\n // FIXME: This does not properly handle <font> with color, face, or\n // size attributes, which is also disallowed by the spec. We should fix\n // this.\n if (BLACKLIST_TABLE[tag]) {\n throw new Error('Cannot create a ' + tag + ' inside an SVG context');\n }\n return this.document.createElementNS(SVG_NAMESPACE$$1, tag);\n } else {\n return this.document.createElement(tag);\n }\n };\n\n DOMOperations.prototype.insertBefore = function insertBefore(parent, node, reference) {\n parent.insertBefore(node, reference);\n };\n\n DOMOperations.prototype.insertHTMLBefore = function insertHTMLBefore(_parent, nextSibling, html) {\n return _insertHTMLBefore(this.uselessElement, _parent, nextSibling, html);\n };\n\n DOMOperations.prototype.createTextNode = function createTextNode(text) {\n return this.document.createTextNode(text);\n };\n\n DOMOperations.prototype.createComment = function createComment(data) {\n return this.document.createComment(data);\n };\n\n return DOMOperations;\n }();\n var DOM;\n (function (DOM) {\n var TreeConstruction = function (_DOMOperations) {\n _inherits$11(TreeConstruction, _DOMOperations);\n\n function TreeConstruction() {\n _classCallCheck$26(this, TreeConstruction);\n\n return _possibleConstructorReturn$11(this, _DOMOperations.apply(this, arguments));\n }\n\n TreeConstruction.prototype.createElementNS = function createElementNS(namespace, tag) {\n return this.document.createElementNS(namespace, tag);\n };\n\n TreeConstruction.prototype.setAttribute = function setAttribute(element, name, value, namespace) {\n if (namespace) {\n element.setAttributeNS(namespace, name, value);\n } else {\n element.setAttribute(name, value);\n }\n };\n\n return TreeConstruction;\n }(DOMOperations);\n\n DOM.TreeConstruction = TreeConstruction;\n var appliedTreeContruction = TreeConstruction;\n appliedTreeContruction = treeConstruction$2(doc, appliedTreeContruction);\n appliedTreeContruction = treeConstruction(doc, appliedTreeContruction);\n appliedTreeContruction = treeConstruction$1(doc, appliedTreeContruction, SVG_NAMESPACE$$1);\n DOM.DOMTreeConstruction = appliedTreeContruction;\n })(DOM || (DOM = {}));\n var DOMChanges = function (_DOMOperations2) {\n _inherits$11(DOMChanges, _DOMOperations2);\n\n function DOMChanges(document) {\n _classCallCheck$26(this, DOMChanges);\n\n var _this2 = _possibleConstructorReturn$11(this, _DOMOperations2.call(this, document));\n\n _this2.document = document;\n _this2.namespace = null;\n return _this2;\n }\n\n DOMChanges.prototype.setAttribute = function setAttribute(element, name, value) {\n element.setAttribute(name, value);\n };\n\n DOMChanges.prototype.setAttributeNS = function setAttributeNS(element, namespace, name, value) {\n element.setAttributeNS(namespace, name, value);\n };\n\n DOMChanges.prototype.removeAttribute = function removeAttribute(element, name) {\n element.removeAttribute(name);\n };\n\n DOMChanges.prototype.removeAttributeNS = function removeAttributeNS(element, namespace, name) {\n element.removeAttributeNS(namespace, name);\n };\n\n DOMChanges.prototype.insertNodeBefore = function insertNodeBefore(parent, node, reference) {\n if (isDocumentFragment(node)) {\n var firstChild = node.firstChild,\n lastChild = node.lastChild;\n\n this.insertBefore(parent, node, reference);\n return new ConcreteBounds(parent, firstChild, lastChild);\n } else {\n this.insertBefore(parent, node, reference);\n return new SingleNodeBounds(parent, node);\n }\n };\n\n DOMChanges.prototype.insertTextBefore = function insertTextBefore(parent, nextSibling, text) {\n var textNode = this.createTextNode(text);\n this.insertBefore(parent, textNode, nextSibling);\n return textNode;\n };\n\n DOMChanges.prototype.insertBefore = function insertBefore(element, node, reference) {\n element.insertBefore(node, reference);\n };\n\n DOMChanges.prototype.insertAfter = function insertAfter(element, node, reference) {\n this.insertBefore(element, node, reference.nextSibling);\n };\n\n return DOMChanges;\n }(DOMOperations);\n function _insertHTMLBefore(_useless, _parent, _nextSibling, html) {\n // TypeScript vendored an old version of the DOM spec where `insertAdjacentHTML`\n // only exists on `HTMLElement` but not on `Element`. We actually work with the\n // newer version of the DOM API here (and monkey-patch this method in `./compat`\n // when we detect older browsers). This is a hack to work around this limitation.\n var parent = _parent;\n var useless = _useless;\n var nextSibling = _nextSibling;\n var prev = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n var last = void 0;\n if (html === null || html === '') {\n return new ConcreteBounds(parent, null, null);\n }\n if (nextSibling === null) {\n parent.insertAdjacentHTML('beforeend', html);\n last = parent.lastChild;\n } else if (nextSibling instanceof HTMLElement) {\n nextSibling.insertAdjacentHTML('beforebegin', html);\n last = nextSibling.previousSibling;\n } else {\n // Non-element nodes do not support insertAdjacentHTML, so add an\n // element and call it on that element. Then remove the element.\n //\n // This also protects Edge, IE and Firefox w/o the inspector open\n // from merging adjacent text nodes. See ./compat/text-node-merging-fix.ts\n parent.insertBefore(useless, nextSibling);\n useless.insertAdjacentHTML('beforebegin', html);\n last = useless.previousSibling;\n parent.removeChild(useless);\n }\n var first = prev ? prev.nextSibling : parent.firstChild;\n return new ConcreteBounds(parent, first, last);\n }\n function isDocumentFragment(node) {\n return node.nodeType === Node.DOCUMENT_FRAGMENT_NODE;\n }\n var helper = DOMChanges;\n helper = domChanges$2(doc, helper);\n helper = domChanges(doc, helper);\n helper = domChanges$1(doc, helper, SVG_NAMESPACE$$1);\n var helper$1 = helper;\n var DOMTreeConstruction = DOM.DOMTreeConstruction;\n\n function _defaults$10(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n function _possibleConstructorReturn$10(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$10(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$10(subClass, superClass);\n }\n\n function _classCallCheck$25(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function defaultManagers(element, attr, _isTrusting, _namespace) {\n var tagName = element.tagName;\n var isSVG = element.namespaceURI === SVG_NAMESPACE$$1;\n if (isSVG) {\n return defaultAttributeManagers(tagName, attr);\n }\n\n var _normalizeProperty = normalizeProperty(element, attr),\n type = _normalizeProperty.type,\n normalized = _normalizeProperty.normalized;\n\n if (type === 'attr') {\n return defaultAttributeManagers(tagName, normalized);\n } else {\n return defaultPropertyManagers(tagName, normalized);\n }\n }\n function defaultPropertyManagers(tagName, attr) {\n if (requiresSanitization(tagName, attr)) {\n return new SafePropertyManager(attr);\n }\n if (isUserInputValue(tagName, attr)) {\n return INPUT_VALUE_PROPERTY_MANAGER;\n }\n if (isOptionSelected(tagName, attr)) {\n return OPTION_SELECTED_MANAGER;\n }\n return new PropertyManager(attr);\n }\n function defaultAttributeManagers(tagName, attr) {\n if (requiresSanitization(tagName, attr)) {\n return new SafeAttributeManager(attr);\n }\n return new AttributeManager(attr);\n }\n function readDOMAttr(element, attr) {\n var isSVG = element.namespaceURI === SVG_NAMESPACE$$1;\n\n var _normalizeProperty2 = normalizeProperty(element, attr),\n type = _normalizeProperty2.type,\n normalized = _normalizeProperty2.normalized;\n\n if (isSVG) {\n return element.getAttribute(normalized);\n }\n if (type === 'attr') {\n return element.getAttribute(normalized);\n }\n {\n return element[normalized];\n }\n }\n\n var AttributeManager = function () {\n function AttributeManager(attr) {\n _classCallCheck$25(this, AttributeManager);\n\n this.attr = attr;\n }\n\n AttributeManager.prototype.setAttribute = function setAttribute(env, element, value, namespace) {\n var dom = env.getAppendOperations();\n var normalizedValue = normalizeAttributeValue(value);\n if (!isAttrRemovalValue(normalizedValue)) {\n dom.setAttribute(element, this.attr, normalizedValue, namespace);\n }\n };\n\n AttributeManager.prototype.updateAttribute = function updateAttribute(env, element, value, namespace) {\n if (value === null || value === undefined || value === false) {\n if (namespace) {\n env.getDOM().removeAttributeNS(element, namespace, this.attr);\n } else {\n env.getDOM().removeAttribute(element, this.attr);\n }\n } else {\n this.setAttribute(env, element, value);\n }\n };\n\n return AttributeManager;\n }();\n\n var PropertyManager = function (_AttributeManager) {\n _inherits$10(PropertyManager, _AttributeManager);\n\n function PropertyManager() {\n _classCallCheck$25(this, PropertyManager);\n\n return _possibleConstructorReturn$10(this, _AttributeManager.apply(this, arguments));\n }\n\n PropertyManager.prototype.setAttribute = function setAttribute(_env, element, value, _namespace) {\n if (!isAttrRemovalValue(value)) {\n element[this.attr] = value;\n }\n };\n\n PropertyManager.prototype.removeAttribute = function removeAttribute(env, element, namespace) {\n // TODO this sucks but to preserve properties first and to meet current\n // semantics we must do this.\n var attr = this.attr;\n\n if (namespace) {\n env.getDOM().removeAttributeNS(element, namespace, attr);\n } else {\n env.getDOM().removeAttribute(element, attr);\n }\n };\n\n PropertyManager.prototype.updateAttribute = function updateAttribute(env, element, value, namespace) {\n // ensure the property is always updated\n element[this.attr] = value;\n if (isAttrRemovalValue(value)) {\n this.removeAttribute(env, element, namespace);\n }\n };\n\n return PropertyManager;\n }(AttributeManager);\n\n function normalizeAttributeValue(value) {\n if (value === false || value === undefined || value === null) {\n return null;\n }\n if (value === true) {\n return '';\n }\n // onclick function etc in SSR\n if (typeof value === 'function') {\n return null;\n }\n return String(value);\n }\n function isAttrRemovalValue(value) {\n return value === null || value === undefined;\n }\n\n var SafePropertyManager = function (_PropertyManager) {\n _inherits$10(SafePropertyManager, _PropertyManager);\n\n function SafePropertyManager() {\n _classCallCheck$25(this, SafePropertyManager);\n\n return _possibleConstructorReturn$10(this, _PropertyManager.apply(this, arguments));\n }\n\n SafePropertyManager.prototype.setAttribute = function setAttribute(env, element, value) {\n _PropertyManager.prototype.setAttribute.call(this, env, element, sanitizeAttributeValue(env, element, this.attr, value));\n };\n\n SafePropertyManager.prototype.updateAttribute = function updateAttribute(env, element, value) {\n _PropertyManager.prototype.updateAttribute.call(this, env, element, sanitizeAttributeValue(env, element, this.attr, value));\n };\n\n return SafePropertyManager;\n }(PropertyManager);\n\n function isUserInputValue(tagName, attribute) {\n return (tagName === 'INPUT' || tagName === 'TEXTAREA') && attribute === 'value';\n }\n\n var InputValuePropertyManager = function (_AttributeManager2) {\n _inherits$10(InputValuePropertyManager, _AttributeManager2);\n\n function InputValuePropertyManager() {\n _classCallCheck$25(this, InputValuePropertyManager);\n\n return _possibleConstructorReturn$10(this, _AttributeManager2.apply(this, arguments));\n }\n\n InputValuePropertyManager.prototype.setAttribute = function setAttribute(_env, element, value) {\n var input = element;\n input.value = normalizeTextValue(value);\n };\n\n InputValuePropertyManager.prototype.updateAttribute = function updateAttribute(_env, element, value) {\n var input = element;\n var currentValue = input.value;\n var normalizedValue = normalizeTextValue(value);\n if (currentValue !== normalizedValue) {\n input.value = normalizedValue;\n }\n };\n\n return InputValuePropertyManager;\n }(AttributeManager);\n\n var INPUT_VALUE_PROPERTY_MANAGER = new InputValuePropertyManager('value');\n function isOptionSelected(tagName, attribute) {\n return tagName === 'OPTION' && attribute === 'selected';\n }\n\n var OptionSelectedManager = function (_PropertyManager2) {\n _inherits$10(OptionSelectedManager, _PropertyManager2);\n\n function OptionSelectedManager() {\n _classCallCheck$25(this, OptionSelectedManager);\n\n return _possibleConstructorReturn$10(this, _PropertyManager2.apply(this, arguments));\n }\n\n OptionSelectedManager.prototype.setAttribute = function setAttribute(_env, element, value) {\n if (value !== null && value !== undefined && value !== false) {\n var option = element;\n option.selected = true;\n }\n };\n\n OptionSelectedManager.prototype.updateAttribute = function updateAttribute(_env, element, value) {\n var option = element;\n if (value) {\n option.selected = true;\n } else {\n option.selected = false;\n }\n };\n\n return OptionSelectedManager;\n }(PropertyManager);\n\n var OPTION_SELECTED_MANAGER = new OptionSelectedManager('selected');\n\n var SafeAttributeManager = function (_AttributeManager3) {\n _inherits$10(SafeAttributeManager, _AttributeManager3);\n\n function SafeAttributeManager() {\n _classCallCheck$25(this, SafeAttributeManager);\n\n return _possibleConstructorReturn$10(this, _AttributeManager3.apply(this, arguments));\n }\n\n SafeAttributeManager.prototype.setAttribute = function setAttribute(env, element, value) {\n _AttributeManager3.prototype.setAttribute.call(this, env, element, sanitizeAttributeValue(env, element, this.attr, value));\n };\n\n SafeAttributeManager.prototype.updateAttribute = function updateAttribute(env, element, value, _namespace) {\n _AttributeManager3.prototype.updateAttribute.call(this, env, element, sanitizeAttributeValue(env, element, this.attr, value));\n };\n\n return SafeAttributeManager;\n }(AttributeManager);\n\n var _createClass$4 = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n function _classCallCheck$23(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var Scope = function () {\n function Scope(\n // the 0th slot is `self`\n slots, callerScope,\n // named arguments and blocks passed to a layout that uses eval\n evalScope,\n // locals in scope when the partial was invoked\n partialMap) {\n _classCallCheck$23(this, Scope);\n\n this.slots = slots;\n this.callerScope = callerScope;\n this.evalScope = evalScope;\n this.partialMap = partialMap;\n }\n\n Scope.root = function root(self) {\n var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var refs = new Array(size + 1);\n for (var i = 0; i <= size; i++) {\n refs[i] = UNDEFINED_REFERENCE;\n }\n return new Scope(refs, null, null, null).init({ self: self });\n };\n\n Scope.sized = function sized() {\n var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n\n var refs = new Array(size + 1);\n for (var i = 0; i <= size; i++) {\n refs[i] = UNDEFINED_REFERENCE;\n }\n return new Scope(refs, null, null, null);\n };\n\n Scope.prototype.init = function init(_ref) {\n var self = _ref.self;\n\n this.slots[0] = self;\n return this;\n };\n\n Scope.prototype.getSelf = function getSelf() {\n return this.get(0);\n };\n\n Scope.prototype.getSymbol = function getSymbol(symbol) {\n return this.get(symbol);\n };\n\n Scope.prototype.getBlock = function getBlock(symbol) {\n return this.get(symbol);\n };\n\n Scope.prototype.getEvalScope = function getEvalScope() {\n return this.evalScope;\n };\n\n Scope.prototype.getPartialMap = function getPartialMap() {\n return this.partialMap;\n };\n\n Scope.prototype.bind = function bind(symbol, value) {\n this.set(symbol, value);\n };\n\n Scope.prototype.bindSelf = function bindSelf(self) {\n this.set(0, self);\n };\n\n Scope.prototype.bindSymbol = function bindSymbol(symbol, value) {\n this.set(symbol, value);\n };\n\n Scope.prototype.bindBlock = function bindBlock(symbol, value) {\n this.set(symbol, value);\n };\n\n Scope.prototype.bindEvalScope = function bindEvalScope(map$$1) {\n this.evalScope = map$$1;\n };\n\n Scope.prototype.bindPartialMap = function bindPartialMap(map$$1) {\n this.partialMap = map$$1;\n };\n\n Scope.prototype.bindCallerScope = function bindCallerScope(scope) {\n this.callerScope = scope;\n };\n\n Scope.prototype.getCallerScope = function getCallerScope() {\n return this.callerScope;\n };\n\n Scope.prototype.child = function child() {\n return new Scope(this.slots.slice(), this.callerScope, this.evalScope, this.partialMap);\n };\n\n Scope.prototype.get = function get(index) {\n if (index >= this.slots.length) {\n throw new RangeError('BUG: cannot get $' + index + ' from scope; length=' + this.slots.length);\n }\n return this.slots[index];\n };\n\n Scope.prototype.set = function set(index, value) {\n if (index >= this.slots.length) {\n throw new RangeError('BUG: cannot get $' + index + ' from scope; length=' + this.slots.length);\n }\n this.slots[index] = value;\n };\n\n return Scope;\n }();\n\n var Transaction = function () {\n function Transaction() {\n _classCallCheck$23(this, Transaction);\n\n this.scheduledInstallManagers = [];\n this.scheduledInstallModifiers = [];\n this.scheduledUpdateModifierManagers = [];\n this.scheduledUpdateModifiers = [];\n this.createdComponents = [];\n this.createdManagers = [];\n this.updatedComponents = [];\n this.updatedManagers = [];\n this.destructors = [];\n }\n\n Transaction.prototype.didCreate = function didCreate(component, manager) {\n this.createdComponents.push(component);\n this.createdManagers.push(manager);\n };\n\n Transaction.prototype.didUpdate = function didUpdate(component, manager) {\n this.updatedComponents.push(component);\n this.updatedManagers.push(manager);\n };\n\n Transaction.prototype.scheduleInstallModifier = function scheduleInstallModifier(modifier, manager) {\n this.scheduledInstallManagers.push(manager);\n this.scheduledInstallModifiers.push(modifier);\n };\n\n Transaction.prototype.scheduleUpdateModifier = function scheduleUpdateModifier(modifier, manager) {\n this.scheduledUpdateModifierManagers.push(manager);\n this.scheduledUpdateModifiers.push(modifier);\n };\n\n Transaction.prototype.didDestroy = function didDestroy(d) {\n this.destructors.push(d);\n };\n\n Transaction.prototype.commit = function commit() {\n var createdComponents = this.createdComponents,\n createdManagers = this.createdManagers;\n\n for (var i = 0; i < createdComponents.length; i++) {\n var component = createdComponents[i];\n var manager = createdManagers[i];\n manager.didCreate(component);\n }\n var updatedComponents = this.updatedComponents,\n updatedManagers = this.updatedManagers;\n\n for (var _i = 0; _i < updatedComponents.length; _i++) {\n var _component = updatedComponents[_i];\n var _manager = updatedManagers[_i];\n _manager.didUpdate(_component);\n }\n var destructors = this.destructors;\n\n for (var _i2 = 0; _i2 < destructors.length; _i2++) {\n destructors[_i2].destroy();\n }\n var scheduledInstallManagers = this.scheduledInstallManagers,\n scheduledInstallModifiers = this.scheduledInstallModifiers;\n\n for (var _i3 = 0; _i3 < scheduledInstallManagers.length; _i3++) {\n var _manager2 = scheduledInstallManagers[_i3];\n var modifier = scheduledInstallModifiers[_i3];\n _manager2.install(modifier);\n }\n var scheduledUpdateModifierManagers = this.scheduledUpdateModifierManagers,\n scheduledUpdateModifiers = this.scheduledUpdateModifiers;\n\n for (var _i4 = 0; _i4 < scheduledUpdateModifierManagers.length; _i4++) {\n var _manager3 = scheduledUpdateModifierManagers[_i4];\n var _modifier = scheduledUpdateModifiers[_i4];\n _manager3.update(_modifier);\n }\n };\n\n return Transaction;\n }();\n\n var Opcode = function () {\n function Opcode(heap) {\n _classCallCheck$23(this, Opcode);\n\n this.heap = heap;\n this.offset = 0;\n }\n\n _createClass$4(Opcode, [{\n key: 'type',\n get: function () {\n return this.heap.getbyaddr(this.offset);\n }\n }, {\n key: 'op1',\n get: function () {\n return this.heap.getbyaddr(this.offset + 1);\n }\n }, {\n key: 'op2',\n get: function () {\n return this.heap.getbyaddr(this.offset + 2);\n }\n }, {\n key: 'op3',\n get: function () {\n return this.heap.getbyaddr(this.offset + 3);\n }\n }]);\n\n return Opcode;\n }();\n var TableSlotState;\n (function (TableSlotState) {\n TableSlotState[TableSlotState[\"Allocated\"] = 0] = \"Allocated\";\n TableSlotState[TableSlotState[\"Freed\"] = 1] = \"Freed\";\n TableSlotState[TableSlotState[\"Purged\"] = 2] = \"Purged\";\n TableSlotState[TableSlotState[\"Pointer\"] = 3] = \"Pointer\";\n })(TableSlotState || (TableSlotState = {}));\n var Heap = function () {\n function Heap() {\n _classCallCheck$23(this, Heap);\n\n this.heap = [];\n this.offset = 0;\n this.handle = 0;\n /**\n * layout:\n *\n * - pointer into heap\n * - size\n * - freed (0 or 1)\n */\n this.table = [];\n }\n\n Heap.prototype.push = function push(item) {\n this.heap[this.offset++] = item;\n };\n\n Heap.prototype.getbyaddr = function getbyaddr(address) {\n return this.heap[address];\n };\n\n Heap.prototype.setbyaddr = function setbyaddr(address, value) {\n this.heap[address] = value;\n };\n\n Heap.prototype.malloc = function malloc() {\n this.table.push(this.offset, 0, 0);\n var handle = this.handle;\n this.handle += 3;\n return handle;\n };\n\n Heap.prototype.finishMalloc = function finishMalloc(handle) {\n var start = this.table[handle];\n var finish = this.offset;\n this.table[handle + 1] = finish - start;\n };\n\n Heap.prototype.size = function size() {\n return this.offset;\n };\n // It is illegal to close over this address, as compaction\n // may move it. However, it is legal to use this address\n // multiple times between compactions.\n\n\n Heap.prototype.getaddr = function getaddr(handle) {\n return this.table[handle];\n };\n\n Heap.prototype.gethandle = function gethandle(address) {\n this.table.push(address, 0, TableSlotState.Pointer);\n var handle = this.handle;\n this.handle += 3;\n return handle;\n };\n\n Heap.prototype.sizeof = function sizeof(handle) {\n return -1;\n };\n\n Heap.prototype.free = function free(handle) {\n this.table[handle + 2] = 1;\n };\n\n Heap.prototype.compact = function compact() {\n var compactedSize = 0;\n var table = this.table,\n length = this.table.length,\n heap = this.heap;\n\n for (var i = 0; i < length; i += 3) {\n var offset = table[i];\n var size = table[i + 1];\n var state = table[i + 2];\n if (state === TableSlotState.Purged) {\n continue;\n } else if (state === TableSlotState.Freed) {\n // transition to \"already freed\"\n // a good improvement would be to reuse\n // these slots\n table[i + 2] = 2;\n compactedSize += size;\n } else if (state === TableSlotState.Allocated) {\n for (var j = offset; j <= i + size; j++) {\n heap[j - compactedSize] = heap[j];\n }\n table[i] = offset - compactedSize;\n } else if (state === TableSlotState.Pointer) {\n table[i] = offset - compactedSize;\n }\n }\n this.offset = this.offset - compactedSize;\n };\n\n return Heap;\n }();\n var Program = function () {\n function Program() {\n _classCallCheck$23(this, Program);\n\n this.heap = new Heap();\n this._opcode = new Opcode(this.heap);\n this.constants = new Constants();\n }\n\n Program.prototype.opcode = function opcode(offset) {\n this._opcode.offset = offset;\n return this._opcode;\n };\n\n return Program;\n }();\n var Environment = function () {\n function Environment(_ref2) {\n var appendOperations = _ref2.appendOperations,\n updateOperations = _ref2.updateOperations;\n\n _classCallCheck$23(this, Environment);\n\n this._macros = null;\n this._transaction = null;\n this.program = new Program();\n this.appendOperations = appendOperations;\n this.updateOperations = updateOperations;\n }\n\n Environment.prototype.toConditionalReference = function toConditionalReference(reference) {\n return new ConditionalReference(reference);\n };\n\n Environment.prototype.getAppendOperations = function getAppendOperations() {\n return this.appendOperations;\n };\n\n Environment.prototype.getDOM = function getDOM() {\n return this.updateOperations;\n };\n\n Environment.prototype.getIdentity = function getIdentity(object) {\n return (0, _util.ensureGuid)(object) + '';\n };\n\n Environment.prototype.begin = function begin() {\n (0, _util.assert)(!this._transaction, 'a glimmer transaction was begun, but one already exists. You may have a nested transaction');\n this._transaction = new Transaction();\n };\n\n Environment.prototype.didCreate = function didCreate(component, manager) {\n this.transaction.didCreate(component, manager);\n };\n\n Environment.prototype.didUpdate = function didUpdate(component, manager) {\n this.transaction.didUpdate(component, manager);\n };\n\n Environment.prototype.scheduleInstallModifier = function scheduleInstallModifier(modifier, manager) {\n this.transaction.scheduleInstallModifier(modifier, manager);\n };\n\n Environment.prototype.scheduleUpdateModifier = function scheduleUpdateModifier(modifier, manager) {\n this.transaction.scheduleUpdateModifier(modifier, manager);\n };\n\n Environment.prototype.didDestroy = function didDestroy(d) {\n this.transaction.didDestroy(d);\n };\n\n Environment.prototype.commit = function commit() {\n var transaction = this.transaction;\n this._transaction = null;\n transaction.commit();\n };\n\n Environment.prototype.attributeFor = function attributeFor(element, attr, isTrusting, namespace) {\n return defaultManagers(element, attr, isTrusting, namespace === undefined ? null : namespace);\n };\n\n Environment.prototype.macros = function macros() {\n var macros = this._macros;\n if (!macros) {\n this._macros = macros = this.populateBuiltins();\n }\n return macros;\n };\n\n Environment.prototype.populateBuiltins = function populateBuiltins$$1() {\n return populateBuiltins();\n };\n\n _createClass$4(Environment, [{\n key: 'transaction',\n get: function () {\n return this._transaction;\n }\n }]);\n\n return Environment;\n }();\n\n function _defaults$15(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);for (var i = 0; i < keys.length; i++) {\n var key = keys[i];var value = Object.getOwnPropertyDescriptor(defaults, key);if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }return obj;\n }\n\n var _createClass$5 = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n function _possibleConstructorReturn$15(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits$15(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults$15(subClass, superClass);\n }\n\n function _classCallCheck$30(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var UpdatingVM = function () {\n function UpdatingVM(env, _ref) {\n var _ref$alwaysRevalidate = _ref.alwaysRevalidate,\n alwaysRevalidate = _ref$alwaysRevalidate === undefined ? false : _ref$alwaysRevalidate;\n\n _classCallCheck$30(this, UpdatingVM);\n\n this.frameStack = new _util.Stack();\n this.env = env;\n this.constants = env.program.constants;\n this.dom = env.getDOM();\n this.alwaysRevalidate = alwaysRevalidate;\n }\n\n UpdatingVM.prototype.execute = function execute(opcodes, handler) {\n var frameStack = this.frameStack;\n\n this.try(opcodes, handler);\n while (true) {\n if (frameStack.isEmpty()) break;\n var opcode = this.frame.nextStatement();\n if (opcode === null) {\n this.frameStack.pop();\n continue;\n }\n opcode.evaluate(this);\n }\n };\n\n UpdatingVM.prototype.goto = function goto(op) {\n this.frame.goto(op);\n };\n\n UpdatingVM.prototype.try = function _try(ops, handler) {\n this.frameStack.push(new UpdatingVMFrame(this, ops, handler));\n };\n\n UpdatingVM.prototype.throw = function _throw() {\n this.frame.handleException();\n this.frameStack.pop();\n };\n\n UpdatingVM.prototype.evaluateOpcode = function evaluateOpcode(opcode) {\n opcode.evaluate(this);\n };\n\n _createClass$5(UpdatingVM, [{\n key: 'frame',\n get: function () {\n return this.frameStack.current;\n }\n }]);\n\n return UpdatingVM;\n }();\n\n var BlockOpcode = function (_UpdatingOpcode) {\n _inherits$15(BlockOpcode, _UpdatingOpcode);\n\n function BlockOpcode(start, state, bounds$$1, children) {\n _classCallCheck$30(this, BlockOpcode);\n\n var _this = _possibleConstructorReturn$15(this, _UpdatingOpcode.call(this));\n\n _this.start = start;\n _this.type = \"block\";\n _this.next = null;\n _this.prev = null;\n var env = state.env,\n scope = state.scope,\n dynamicScope = state.dynamicScope,\n stack = state.stack;\n\n _this.children = children;\n _this.env = env;\n _this.scope = scope;\n _this.dynamicScope = dynamicScope;\n _this.stack = stack;\n _this.bounds = bounds$$1;\n return _this;\n }\n\n BlockOpcode.prototype.parentElement = function parentElement() {\n return this.bounds.parentElement();\n };\n\n BlockOpcode.prototype.firstNode = function firstNode() {\n return this.bounds.firstNode();\n };\n\n BlockOpcode.prototype.lastNode = function lastNode() {\n return this.bounds.lastNode();\n };\n\n BlockOpcode.prototype.evaluate = function evaluate(vm) {\n vm.try(this.children, null);\n };\n\n BlockOpcode.prototype.destroy = function destroy() {\n this.bounds.destroy();\n };\n\n BlockOpcode.prototype.didDestroy = function didDestroy() {\n this.env.didDestroy(this.bounds);\n };\n\n BlockOpcode.prototype.toJSON = function toJSON() {\n var details = (0, _util.dict)();\n details[\"guid\"] = '' + this._guid;\n return {\n guid: this._guid,\n type: this.type,\n details: details,\n children: this.children.toArray().map(function (op) {\n return op.toJSON();\n })\n };\n };\n\n return BlockOpcode;\n }(UpdatingOpcode);\n var TryOpcode = function (_BlockOpcode) {\n _inherits$15(TryOpcode, _BlockOpcode);\n\n function TryOpcode(start, state, bounds$$1, children) {\n _classCallCheck$30(this, TryOpcode);\n\n var _this2 = _possibleConstructorReturn$15(this, _BlockOpcode.call(this, start, state, bounds$$1, children));\n\n _this2.type = \"try\";\n _this2.tag = _this2._tag = _reference2.UpdatableTag.create(_reference2.CONSTANT_TAG);\n return _this2;\n }\n\n TryOpcode.prototype.didInitializeChildren = function didInitializeChildren() {\n this._tag.inner.update((0, _reference2.combineSlice)(this.children));\n };\n\n TryOpcode.prototype.evaluate = function evaluate(vm) {\n vm.try(this.children, this);\n };\n\n TryOpcode.prototype.handleException = function handleException() {\n var _this3 = this;\n\n var env = this.env,\n bounds$$1 = this.bounds,\n children = this.children,\n scope = this.scope,\n dynamicScope = this.dynamicScope,\n start = this.start,\n stack = this.stack,\n prev = this.prev,\n next = this.next;\n\n children.clear();\n var elementStack = ElementStack.resume(env, bounds$$1, bounds$$1.reset(env));\n var vm = new VM(env, scope, dynamicScope, elementStack);\n var updating = new _util.LinkedList();\n vm.execute(start, function (vm) {\n vm.stack = EvaluationStack.restore(stack);\n vm.updatingOpcodeStack.push(updating);\n vm.updateWith(_this3);\n vm.updatingOpcodeStack.push(children);\n });\n this.prev = prev;\n this.next = next;\n };\n\n TryOpcode.prototype.toJSON = function toJSON() {\n var json = _BlockOpcode.prototype.toJSON.call(this);\n var details = json[\"details\"];\n if (!details) {\n details = json[\"details\"] = {};\n }\n return _BlockOpcode.prototype.toJSON.call(this);\n };\n\n return TryOpcode;\n }(BlockOpcode);\n\n var ListRevalidationDelegate = function () {\n function ListRevalidationDelegate(opcode, marker) {\n _classCallCheck$30(this, ListRevalidationDelegate);\n\n this.opcode = opcode;\n this.marker = marker;\n this.didInsert = false;\n this.didDelete = false;\n this.map = opcode.map;\n this.updating = opcode['children'];\n }\n\n ListRevalidationDelegate.prototype.insert = function insert(key, item, memo, before) {\n var map$$1 = this.map,\n opcode = this.opcode,\n updating = this.updating;\n\n var nextSibling = null;\n var reference = null;\n if (before) {\n reference = map$$1[before];\n nextSibling = reference['bounds'].firstNode();\n } else {\n nextSibling = this.marker;\n }\n var vm = opcode.vmForInsertion(nextSibling);\n var tryOpcode = null;\n var start = opcode.start;\n\n vm.execute(start, function (vm) {\n map$$1[key] = tryOpcode = vm.iterate(memo, item);\n vm.updatingOpcodeStack.push(new _util.LinkedList());\n vm.updateWith(tryOpcode);\n vm.updatingOpcodeStack.push(tryOpcode.children);\n });\n updating.insertBefore(tryOpcode, reference);\n this.didInsert = true;\n };\n\n ListRevalidationDelegate.prototype.retain = function retain(_key, _item, _memo) {};\n\n ListRevalidationDelegate.prototype.move = function move$$1(key, _item, _memo, before) {\n var map$$1 = this.map,\n updating = this.updating;\n\n var entry = map$$1[key];\n var reference = map$$1[before] || null;\n if (before) {\n move(entry, reference.firstNode());\n } else {\n move(entry, this.marker);\n }\n updating.remove(entry);\n updating.insertBefore(entry, reference);\n };\n\n ListRevalidationDelegate.prototype.delete = function _delete(key) {\n var map$$1 = this.map;\n\n var opcode = map$$1[key];\n opcode.didDestroy();\n clear(opcode);\n this.updating.remove(opcode);\n delete map$$1[key];\n this.didDelete = true;\n };\n\n ListRevalidationDelegate.prototype.done = function done() {\n this.opcode.didInitializeChildren(this.didInsert || this.didDelete);\n };\n\n return ListRevalidationDelegate;\n }();\n\n var ListBlockOpcode = function (_BlockOpcode2) {\n _inherits$15(ListBlockOpcode, _BlockOpcode2);\n\n function ListBlockOpcode(start, state, bounds$$1, children, artifacts) {\n _classCallCheck$30(this, ListBlockOpcode);\n\n var _this4 = _possibleConstructorReturn$15(this, _BlockOpcode2.call(this, start, state, bounds$$1, children));\n\n _this4.type = \"list-block\";\n _this4.map = (0, _util.dict)();\n _this4.lastIterated = _reference2.INITIAL;\n _this4.artifacts = artifacts;\n var _tag = _this4._tag = _reference2.UpdatableTag.create(_reference2.CONSTANT_TAG);\n _this4.tag = (0, _reference2.combine)([artifacts.tag, _tag]);\n return _this4;\n }\n\n ListBlockOpcode.prototype.didInitializeChildren = function didInitializeChildren() {\n var listDidChange = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n this.lastIterated = this.artifacts.tag.value();\n if (listDidChange) {\n this._tag.inner.update((0, _reference2.combineSlice)(this.children));\n }\n };\n\n ListBlockOpcode.prototype.evaluate = function evaluate(vm) {\n var artifacts = this.artifacts,\n lastIterated = this.lastIterated;\n\n if (!artifacts.tag.validate(lastIterated)) {\n var bounds$$1 = this.bounds;\n var dom = vm.dom;\n\n var marker = dom.createComment('');\n dom.insertAfter(bounds$$1.parentElement(), marker, bounds$$1.lastNode());\n var target = new ListRevalidationDelegate(this, marker);\n var synchronizer = new _reference2.IteratorSynchronizer({ target: target, artifacts: artifacts });\n synchronizer.sync();\n this.parentElement().removeChild(marker);\n }\n // Run now-updated updating opcodes\n _BlockOpcode2.prototype.evaluate.call(this, vm);\n };\n\n ListBlockOpcode.prototype.vmForInsertion = function vmForInsertion(nextSibling) {\n var env = this.env,\n scope = this.scope,\n dynamicScope = this.dynamicScope;\n\n var elementStack = ElementStack.forInitialRender(this.env, this.bounds.parentElement(), nextSibling);\n return new VM(env, scope, dynamicScope, elementStack);\n };\n\n ListBlockOpcode.prototype.toJSON = function toJSON() {\n var json = _BlockOpcode2.prototype.toJSON.call(this);\n var map$$1 = this.map;\n var inner = Object.keys(map$$1).map(function (key) {\n return JSON.stringify(key) + ': ' + map$$1[key]._guid;\n }).join(\", \");\n var details = json[\"details\"];\n if (!details) {\n details = json[\"details\"] = {};\n }\n details[\"map\"] = '{' + inner + '}';\n return json;\n };\n\n return ListBlockOpcode;\n }(BlockOpcode);\n\n var UpdatingVMFrame = function () {\n function UpdatingVMFrame(vm, ops, exceptionHandler) {\n _classCallCheck$30(this, UpdatingVMFrame);\n\n this.vm = vm;\n this.ops = ops;\n this.exceptionHandler = exceptionHandler;\n this.vm = vm;\n this.ops = ops;\n this.current = ops.head();\n }\n\n UpdatingVMFrame.prototype.goto = function goto(op) {\n this.current = op;\n };\n\n UpdatingVMFrame.prototype.nextStatement = function nextStatement() {\n var current = this.current,\n ops = this.ops;\n\n if (current) this.current = ops.nextNode(current);\n return current;\n };\n\n UpdatingVMFrame.prototype.handleException = function handleException() {\n if (this.exceptionHandler) {\n this.exceptionHandler.handleException();\n }\n };\n\n return UpdatingVMFrame;\n }();\n\n function _classCallCheck$31(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var RenderResult = function () {\n function RenderResult(env, updating, bounds$$1) {\n _classCallCheck$31(this, RenderResult);\n\n this.env = env;\n this.updating = updating;\n this.bounds = bounds$$1;\n }\n\n RenderResult.prototype.rerender = function rerender() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { alwaysRevalidate: false },\n _ref$alwaysRevalidate = _ref.alwaysRevalidate,\n alwaysRevalidate = _ref$alwaysRevalidate === undefined ? false : _ref$alwaysRevalidate;\n\n var env = this.env,\n updating = this.updating;\n\n var vm = new UpdatingVM(env, { alwaysRevalidate: alwaysRevalidate });\n vm.execute(updating, this);\n };\n\n RenderResult.prototype.parentElement = function parentElement() {\n return this.bounds.parentElement();\n };\n\n RenderResult.prototype.firstNode = function firstNode() {\n return this.bounds.firstNode();\n };\n\n RenderResult.prototype.lastNode = function lastNode() {\n return this.bounds.lastNode();\n };\n\n RenderResult.prototype.opcodes = function opcodes() {\n return this.updating;\n };\n\n RenderResult.prototype.handleException = function handleException() {\n throw \"this should never happen\";\n };\n\n RenderResult.prototype.destroy = function destroy() {\n this.bounds.destroy();\n clear(this.bounds);\n };\n\n return RenderResult;\n }();\n\n var _createClass$3 = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n function _classCallCheck$22(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var EvaluationStack = function () {\n function EvaluationStack(stack, fp, sp) {\n _classCallCheck$22(this, EvaluationStack);\n\n this.stack = stack;\n this.fp = fp;\n this.sp = sp;\n }\n\n EvaluationStack.empty = function empty() {\n return new this([], 0, -1);\n };\n\n EvaluationStack.restore = function restore(snapshot) {\n return new this(snapshot.slice(), 0, snapshot.length - 1);\n };\n\n EvaluationStack.prototype.isEmpty = function isEmpty() {\n return this.sp === -1;\n };\n\n EvaluationStack.prototype.push = function push(value) {\n this.stack[++this.sp] = value;\n };\n\n EvaluationStack.prototype.dup = function dup() {\n var position = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.sp;\n\n this.push(this.stack[position]);\n };\n\n EvaluationStack.prototype.pop = function pop() {\n var n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n\n var top = this.stack[this.sp];\n this.sp -= n;\n return top;\n };\n\n EvaluationStack.prototype.peek = function peek() {\n return this.stack[this.sp];\n };\n\n EvaluationStack.prototype.fromBase = function fromBase(offset) {\n return this.stack[this.fp - offset];\n };\n\n EvaluationStack.prototype.fromTop = function fromTop(offset) {\n return this.stack[this.sp - offset];\n };\n\n EvaluationStack.prototype.capture = function capture(items) {\n var end = this.sp + 1;\n var start = end - items;\n return this.stack.slice(start, end);\n };\n\n EvaluationStack.prototype.reset = function reset() {\n this.stack.length = 0;\n };\n\n EvaluationStack.prototype.toArray = function toArray() {\n return this.stack.slice(this.fp, this.sp + 1);\n };\n\n return EvaluationStack;\n }();\n\n var VM = function () {\n function VM(env, scope, dynamicScope, elementStack) {\n _classCallCheck$22(this, VM);\n\n this.env = env;\n this.elementStack = elementStack;\n this.dynamicScopeStack = new _util.Stack();\n this.scopeStack = new _util.Stack();\n this.updatingOpcodeStack = new _util.Stack();\n this.cacheGroups = new _util.Stack();\n this.listBlockStack = new _util.Stack();\n this.stack = EvaluationStack.empty();\n /* Registers */\n this.pc = -1;\n this.ra = -1;\n this.s0 = null;\n this.s1 = null;\n this.t0 = null;\n this.t1 = null;\n this.env = env;\n this.heap = env.program.heap;\n this.constants = env.program.constants;\n this.elementStack = elementStack;\n this.scopeStack.push(scope);\n this.dynamicScopeStack.push(dynamicScope);\n }\n\n // Fetch a value from a register onto the stack\n VM.prototype.fetch = function fetch(register) {\n this.stack.push(this[Register[register]]);\n };\n // Load a value from the stack into a register\n\n\n VM.prototype.load = function load(register) {\n this[Register[register]] = this.stack.pop();\n };\n // Fetch a value from a register\n\n\n VM.prototype.fetchValue = function fetchValue(register) {\n return this[Register[register]];\n };\n // Load a value into a register\n\n\n VM.prototype.loadValue = function loadValue(register, value) {\n this[Register[register]] = value;\n };\n // Start a new frame and save $ra and $fp on the stack\n\n\n VM.prototype.pushFrame = function pushFrame() {\n this.stack.push(this.ra);\n this.stack.push(this.fp);\n this.fp = this.sp - 1;\n };\n // Restore $ra, $sp and $fp\n\n\n VM.prototype.popFrame = function popFrame() {\n this.sp = this.fp - 1;\n this.ra = this.stack.fromBase(0);\n this.fp = this.stack.fromBase(-1);\n };\n // Jump to an address in `program`\n\n\n VM.prototype.goto = function goto(offset) {\n this.pc = (0, _util.typePos)(this.pc + offset);\n };\n // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n\n\n VM.prototype.call = function call(handle) {\n var pc = this.heap.getaddr(handle);\n this.ra = this.pc;\n this.pc = pc;\n };\n // Put a specific `program` address in $ra\n\n\n VM.prototype.returnTo = function returnTo(offset) {\n this.ra = (0, _util.typePos)(this.pc + offset);\n };\n // Return to the `program` address stored in $ra\n\n\n VM.prototype.return = function _return() {\n this.pc = this.ra;\n };\n\n VM.initial = function initial(env, self, dynamicScope, elementStack, program) {\n var scope = Scope.root(self, program.symbolTable.symbols.length);\n var vm = new VM(env, scope, dynamicScope, elementStack);\n vm.pc = vm.heap.getaddr(program.handle);\n vm.updatingOpcodeStack.push(new _util.LinkedList());\n return vm;\n };\n\n VM.prototype.capture = function capture(args) {\n return {\n dynamicScope: this.dynamicScope(),\n env: this.env,\n scope: this.scope(),\n stack: this.stack.capture(args)\n };\n };\n\n VM.prototype.beginCacheGroup = function beginCacheGroup() {\n this.cacheGroups.push(this.updating().tail());\n };\n\n VM.prototype.commitCacheGroup = function commitCacheGroup() {\n // JumpIfNotModified(END)\n // (head)\n // (....)\n // (tail)\n // DidModify\n // END: Noop\n var END = new LabelOpcode(\"END\");\n var opcodes = this.updating();\n var marker = this.cacheGroups.pop();\n var head = marker ? opcodes.nextNode(marker) : opcodes.head();\n var tail = opcodes.tail();\n var tag = (0, _reference2.combineSlice)(new _util.ListSlice(head, tail));\n var guard = new JumpIfNotModifiedOpcode(tag, END);\n opcodes.insertBefore(guard, head);\n opcodes.append(new DidModifyOpcode(guard));\n opcodes.append(END);\n };\n\n VM.prototype.enter = function enter(args) {\n var updating = new _util.LinkedList();\n var state = this.capture(args);\n var tracker = this.elements().pushUpdatableBlock();\n var tryOpcode = new TryOpcode(this.heap.gethandle(this.pc), state, tracker, updating);\n this.didEnter(tryOpcode);\n };\n\n VM.prototype.iterate = function iterate(memo, value) {\n var stack = this.stack;\n stack.push(value);\n stack.push(memo);\n var state = this.capture(2);\n var tracker = this.elements().pushUpdatableBlock();\n // let ip = this.ip;\n // this.ip = end + 4;\n // this.frames.push(ip);\n return new TryOpcode(this.heap.gethandle(this.pc), state, tracker, new _util.LinkedList());\n };\n\n VM.prototype.enterItem = function enterItem(key, opcode) {\n this.listBlock().map[key] = opcode;\n this.didEnter(opcode);\n };\n\n VM.prototype.enterList = function enterList(relativeStart) {\n var updating = new _util.LinkedList();\n var state = this.capture(0);\n var tracker = this.elements().pushBlockList(updating);\n var artifacts = this.stack.peek().artifacts;\n var start = this.heap.gethandle((0, _util.typePos)(this.pc + relativeStart));\n var opcode = new ListBlockOpcode(start, state, tracker, updating, artifacts);\n this.listBlockStack.push(opcode);\n this.didEnter(opcode);\n };\n\n VM.prototype.didEnter = function didEnter(opcode) {\n this.updateWith(opcode);\n this.updatingOpcodeStack.push(opcode.children);\n };\n\n VM.prototype.exit = function exit() {\n this.elements().popBlock();\n this.updatingOpcodeStack.pop();\n var parent = this.updating().tail();\n parent.didInitializeChildren();\n };\n\n VM.prototype.exitList = function exitList() {\n this.exit();\n this.listBlockStack.pop();\n };\n\n VM.prototype.updateWith = function updateWith(opcode) {\n this.updating().append(opcode);\n };\n\n VM.prototype.listBlock = function listBlock() {\n return this.listBlockStack.current;\n };\n\n VM.prototype.updating = function updating() {\n return this.updatingOpcodeStack.current;\n };\n\n VM.prototype.elements = function elements() {\n return this.elementStack;\n };\n\n VM.prototype.scope = function scope() {\n return this.scopeStack.current;\n };\n\n VM.prototype.dynamicScope = function dynamicScope() {\n return this.dynamicScopeStack.current;\n };\n\n VM.prototype.pushChildScope = function pushChildScope() {\n this.scopeStack.push(this.scope().child());\n };\n\n VM.prototype.pushCallerScope = function pushCallerScope() {\n var childScope = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var callerScope = this.scope().getCallerScope();\n this.scopeStack.push(childScope ? callerScope.child() : callerScope);\n };\n\n VM.prototype.pushDynamicScope = function pushDynamicScope() {\n var child = this.dynamicScope().child();\n this.dynamicScopeStack.push(child);\n return child;\n };\n\n VM.prototype.pushRootScope = function pushRootScope(size, bindCaller) {\n var scope = Scope.sized(size);\n if (bindCaller) scope.bindCallerScope(this.scope());\n this.scopeStack.push(scope);\n return scope;\n };\n\n VM.prototype.popScope = function popScope() {\n this.scopeStack.pop();\n };\n\n VM.prototype.popDynamicScope = function popDynamicScope() {\n this.dynamicScopeStack.pop();\n };\n\n VM.prototype.newDestroyable = function newDestroyable(d) {\n this.elements().newDestroyable(d);\n };\n /// SCOPE HELPERS\n\n\n VM.prototype.getSelf = function getSelf() {\n return this.scope().getSelf();\n };\n\n VM.prototype.referenceForSymbol = function referenceForSymbol(symbol) {\n return this.scope().getSymbol(symbol);\n };\n /// EXECUTION\n\n\n VM.prototype.execute = function execute(start, initialize) {\n this.pc = this.heap.getaddr(start);\n if (initialize) initialize(this);\n var result = void 0;\n while (true) {\n result = this.next();\n if (result.done) break;\n }\n return result.value;\n };\n\n VM.prototype.next = function next() {\n var env = this.env,\n updatingOpcodeStack = this.updatingOpcodeStack,\n elementStack = this.elementStack;\n\n var opcode = this.nextStatement(env);\n var result = void 0;\n if (opcode !== null) {\n APPEND_OPCODES.evaluate(this, opcode, opcode.type);\n result = { done: false, value: null };\n } else {\n // Unload the stack\n this.stack.reset();\n result = {\n done: true,\n value: new RenderResult(env, updatingOpcodeStack.pop(), elementStack.popBlock())\n };\n }\n return result;\n };\n\n VM.prototype.nextStatement = function nextStatement(env) {\n var pc = this.pc;\n\n if (pc === -1) {\n return null;\n }\n var program = env.program;\n this.pc += 4;\n return program.opcode(pc);\n };\n\n VM.prototype.evaluateOpcode = function evaluateOpcode(opcode) {\n APPEND_OPCODES.evaluate(this, opcode, opcode.type);\n };\n\n VM.prototype.bindDynamicScope = function bindDynamicScope(names) {\n var scope = this.dynamicScope();\n for (var i = names.length - 1; i >= 0; i--) {\n var name = this.constants.getString(names[i]);\n scope.set(name, this.stack.pop());\n }\n };\n\n _createClass$3(VM, [{\n key: 'fp',\n get: function () {\n return this.stack.fp;\n },\n set: function (fp) {\n this.stack.fp = fp;\n }\n }, {\n key: 'sp',\n get: function () {\n return this.stack.sp;\n },\n set: function (sp) {\n this.stack.sp = sp;\n }\n }]);\n\n return VM;\n }();\n\n function _classCallCheck$14(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var TemplateIterator = function () {\n function TemplateIterator(vm) {\n _classCallCheck$14(this, TemplateIterator);\n\n this.vm = vm;\n }\n\n TemplateIterator.prototype.next = function next() {\n return this.vm.next();\n };\n\n return TemplateIterator;\n }();\n var clientId = 0;\n function templateFactory(_ref) {\n var templateId = _ref.id,\n meta = _ref.meta,\n block = _ref.block;\n\n var parsedBlock = void 0;\n var id = templateId || 'client-' + clientId++;\n var create = function (env, envMeta) {\n var newMeta = envMeta ? (0, _util.assign)({}, envMeta, meta) : meta;\n if (!parsedBlock) {\n parsedBlock = JSON.parse(block);\n }\n return new ScannableTemplate(id, newMeta, env, parsedBlock);\n };\n return { id: id, meta: meta, create: create };\n }\n\n var ScannableTemplate = function () {\n function ScannableTemplate(id, meta, env, rawBlock) {\n _classCallCheck$14(this, ScannableTemplate);\n\n this.id = id;\n this.meta = meta;\n this.env = env;\n this.entryPoint = null;\n this.layout = null;\n this.partial = null;\n this.block = null;\n this.scanner = new Scanner(rawBlock, env);\n this.symbols = rawBlock.symbols;\n this.hasEval = rawBlock.hasEval;\n }\n\n ScannableTemplate.prototype.render = function render(self, appendTo, dynamicScope) {\n var env = this.env;\n\n var elementStack = ElementStack.forInitialRender(env, appendTo, null);\n var compiled = this.asEntryPoint().compileDynamic(env);\n var vm = VM.initial(env, self, dynamicScope, elementStack, compiled);\n return new TemplateIterator(vm);\n };\n\n ScannableTemplate.prototype.asEntryPoint = function asEntryPoint() {\n if (!this.entryPoint) this.entryPoint = this.scanner.scanEntryPoint(this.compilationMeta());\n return this.entryPoint;\n };\n\n ScannableTemplate.prototype.asLayout = function asLayout(componentName, attrs) {\n if (!this.layout) this.layout = this.scanner.scanLayout(this.compilationMeta(), attrs || _util.EMPTY_ARRAY, componentName);\n return this.layout;\n };\n\n ScannableTemplate.prototype.asPartial = function asPartial() {\n if (!this.partial) this.partial = this.scanner.scanEntryPoint(this.compilationMeta(true));\n return this.partial;\n };\n\n ScannableTemplate.prototype.asBlock = function asBlock() {\n if (!this.block) this.block = this.scanner.scanBlock(this.compilationMeta());\n return this.block;\n };\n\n ScannableTemplate.prototype.compilationMeta = function compilationMeta() {\n var asPartial = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n return { templateMeta: this.meta, symbols: this.symbols, asPartial: asPartial };\n };\n\n return ScannableTemplate;\n }();\n\n function _classCallCheck$32(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var DynamicVarReference = function () {\n function DynamicVarReference(scope, nameRef) {\n _classCallCheck$32(this, DynamicVarReference);\n\n this.scope = scope;\n this.nameRef = nameRef;\n var varTag = this.varTag = _reference2.UpdatableTag.create(_reference2.CONSTANT_TAG);\n this.tag = (0, _reference2.combine)([nameRef.tag, varTag]);\n }\n\n DynamicVarReference.prototype.value = function value() {\n return this.getVar().value();\n };\n\n DynamicVarReference.prototype.get = function get(key) {\n return this.getVar().get(key);\n };\n\n DynamicVarReference.prototype.getVar = function getVar() {\n var name = String(this.nameRef.value());\n var ref = this.scope.get(name);\n this.varTag.inner.update(ref.tag);\n return ref;\n };\n\n return DynamicVarReference;\n }();\n\n function getDynamicVar(vm, args) {\n var scope = vm.dynamicScope();\n var nameRef = args.positional.at(0);\n return new DynamicVarReference(scope, nameRef);\n }\n\n function _classCallCheck$33(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var PartialDefinition = function PartialDefinition(name, // for debugging\n template) {\n _classCallCheck$33(this, PartialDefinition);\n\n this.name = name;\n this.template = template;\n };\n\n var NodeType;\n (function (NodeType) {\n NodeType[NodeType[\"Element\"] = 0] = \"Element\";\n NodeType[NodeType[\"Attribute\"] = 1] = \"Attribute\";\n NodeType[NodeType[\"Text\"] = 2] = \"Text\";\n NodeType[NodeType[\"CdataSection\"] = 3] = \"CdataSection\";\n NodeType[NodeType[\"EntityReference\"] = 4] = \"EntityReference\";\n NodeType[NodeType[\"Entity\"] = 5] = \"Entity\";\n NodeType[NodeType[\"ProcessingInstruction\"] = 6] = \"ProcessingInstruction\";\n NodeType[NodeType[\"Comment\"] = 7] = \"Comment\";\n NodeType[NodeType[\"Document\"] = 8] = \"Document\";\n NodeType[NodeType[\"DocumentType\"] = 9] = \"DocumentType\";\n NodeType[NodeType[\"DocumentFragment\"] = 10] = \"DocumentFragment\";\n NodeType[NodeType[\"Notation\"] = 11] = \"Notation\";\n })(NodeType || (NodeType = {}));\n\n var interfaces = Object.freeze({\n get NodeType() {\n return NodeType;\n }\n });\n\n exports.Simple = interfaces;\n exports.templateFactory = templateFactory;\n exports.NULL_REFERENCE = NULL_REFERENCE;\n exports.UNDEFINED_REFERENCE = UNDEFINED_REFERENCE;\n exports.PrimitiveReference = PrimitiveReference;\n exports.ConditionalReference = ConditionalReference;\n exports.OpcodeBuilderDSL = OpcodeBuilder;\n exports.compileLayout = compileLayout;\n exports.CompiledStaticTemplate = CompiledStaticTemplate;\n exports.CompiledDynamicTemplate = CompiledDynamicTemplate;\n exports.IAttributeManager = AttributeManager;\n exports.AttributeManager = AttributeManager;\n exports.PropertyManager = PropertyManager;\n exports.INPUT_VALUE_PROPERTY_MANAGER = INPUT_VALUE_PROPERTY_MANAGER;\n exports.defaultManagers = defaultManagers;\n exports.defaultAttributeManagers = defaultAttributeManagers;\n exports.defaultPropertyManagers = defaultPropertyManagers;\n exports.readDOMAttr = readDOMAttr;\n exports.Register = Register;\n exports.debugSlice = debugSlice;\n exports.normalizeTextValue = normalizeTextValue;\n exports.setDebuggerCallback = setDebuggerCallback;\n exports.resetDebuggerCallback = resetDebuggerCallback;\n exports.getDynamicVar = getDynamicVar;\n exports.BlockMacros = Blocks;\n exports.InlineMacros = Inlines;\n exports.compileList = compileList;\n exports.compileExpression = expr;\n exports.UpdatingVM = UpdatingVM;\n exports.RenderResult = RenderResult;\n exports.isSafeString = isSafeString;\n exports.Scope = Scope;\n exports.Environment = Environment;\n exports.PartialDefinition = PartialDefinition;\n exports.ComponentDefinition = ComponentDefinition;\n exports.isComponentDefinition = isComponentDefinition;\n exports.DOMChanges = helper$1;\n exports.IDOMChanges = DOMChanges;\n exports.DOMTreeConstruction = DOMTreeConstruction;\n exports.isWhitespace = isWhitespace;\n exports.insertHTMLBefore = _insertHTMLBefore;\n exports.ElementStack = ElementStack;\n exports.ConcreteBounds = ConcreteBounds;\n});","enifed('@glimmer/util', ['exports'], function (exports) {\n 'use strict';\n\n // There is a small whitelist of namespaced attributes specially\n // enumerated in\n // https://www.w3.org/TR/html/syntax.html#attributes-0\n //\n // > When a foreign element has one of the namespaced attributes given by\n // > the local name and namespace of the first and second cells of a row\n // > from the following table, it must be written using the name given by\n // > the third cell from the same row.\n //\n // In all other cases, colons are interpreted as a regular character\n // with no special meaning:\n //\n // > No other namespaced attribute can be expressed in the HTML syntax.\n var XLINK = 'http://www.w3.org/1999/xlink';\n var XML = 'http://www.w3.org/XML/1998/namespace';\n var XMLNS = 'http://www.w3.org/2000/xmlns/';\n var WHITELIST = {\n 'xlink:actuate': XLINK,\n 'xlink:arcrole': XLINK,\n 'xlink:href': XLINK,\n 'xlink:role': XLINK,\n 'xlink:show': XLINK,\n 'xlink:title': XLINK,\n 'xlink:type': XLINK,\n 'xml:base': XML,\n 'xml:lang': XML,\n 'xml:space': XML,\n 'xmlns': XMLNS,\n 'xmlns:xlink': XMLNS\n };\n function getAttrNamespace(attrName) {\n return WHITELIST[attrName] || null;\n }\n\n function unwrap(val) {\n if (val === null || val === undefined) throw new Error('Expected value to be present');\n return val;\n }\n function expect(val, message) {\n if (val === null || val === undefined) throw new Error(message);\n return val;\n }\n function unreachable() {\n return new Error('unreachable');\n }\n function typePos(lastOperand) {\n return lastOperand - 4;\n }\n\n // import Logger from './logger';\n // let alreadyWarned = false;\n // import Logger from './logger';\n function debugAssert(test, msg) {\n // if (!alreadyWarned) {\n // alreadyWarned = true;\n // Logger.warn(\"Don't leave debug assertions on in public builds\");\n // }\n if (!test) {\n throw new Error(msg || \"assertion failure\");\n }\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var LogLevel;\n (function (LogLevel) {\n LogLevel[LogLevel[\"Trace\"] = 0] = \"Trace\";\n LogLevel[LogLevel[\"Debug\"] = 1] = \"Debug\";\n LogLevel[LogLevel[\"Warn\"] = 2] = \"Warn\";\n LogLevel[LogLevel[\"Error\"] = 3] = \"Error\";\n })(LogLevel || (exports.LogLevel = LogLevel = {}));\n\n var NullConsole = function () {\n function NullConsole() {\n _classCallCheck(this, NullConsole);\n }\n\n NullConsole.prototype.log = function log(_message) {};\n\n NullConsole.prototype.warn = function warn(_message) {};\n\n NullConsole.prototype.error = function error(_message) {};\n\n NullConsole.prototype.trace = function trace() {};\n\n return NullConsole;\n }();\n\n var ALWAYS = void 0;\n var Logger = function () {\n function Logger(_ref) {\n var console = _ref.console,\n level = _ref.level;\n\n _classCallCheck(this, Logger);\n\n this.f = ALWAYS;\n this.force = ALWAYS;\n this.console = console;\n this.level = level;\n }\n\n Logger.prototype.skipped = function skipped(level) {\n return level < this.level;\n };\n\n Logger.prototype.trace = function trace(message) {\n var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref2$stackTrace = _ref2.stackTrace,\n stackTrace = _ref2$stackTrace === undefined ? false : _ref2$stackTrace;\n\n if (this.skipped(LogLevel.Trace)) return;\n this.console.log(message);\n if (stackTrace) this.console.trace();\n };\n\n Logger.prototype.debug = function debug(message) {\n var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref3$stackTrace = _ref3.stackTrace,\n stackTrace = _ref3$stackTrace === undefined ? false : _ref3$stackTrace;\n\n if (this.skipped(LogLevel.Debug)) return;\n this.console.log(message);\n if (stackTrace) this.console.trace();\n };\n\n Logger.prototype.warn = function warn(message) {\n var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref4$stackTrace = _ref4.stackTrace,\n stackTrace = _ref4$stackTrace === undefined ? false : _ref4$stackTrace;\n\n if (this.skipped(LogLevel.Warn)) return;\n this.console.warn(message);\n if (stackTrace) this.console.trace();\n };\n\n Logger.prototype.error = function error(message) {\n if (this.skipped(LogLevel.Error)) return;\n this.console.error(message);\n };\n\n return Logger;\n }();\n var _console = typeof console === 'undefined' ? new NullConsole() : console;\n ALWAYS = new Logger({ console: _console, level: LogLevel.Trace });\n var LOG_LEVEL = LogLevel.Debug;\n var logger = new Logger({ console: _console, level: LOG_LEVEL });\n\n var objKeys = Object.keys;\n\n function assign(obj) {\n for (var i = 1; i < arguments.length; i++) {\n var assignment = arguments[i];\n if (assignment === null || typeof assignment !== 'object') continue;\n var keys = objKeys(assignment);\n for (var j = 0; j < keys.length; j++) {\n var key = keys[j];\n obj[key] = assignment[key];\n }\n }\n return obj;\n }\n function fillNulls(count) {\n var arr = new Array(count);\n for (var i = 0; i < count; i++) {\n arr[i] = null;\n }\n return arr;\n }\n\n var GUID = 0;\n function initializeGuid(object) {\n return object._guid = ++GUID;\n }\n function ensureGuid(object) {\n return object._guid || initializeGuid(object);\n }\n\n function _classCallCheck$1(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var proto = Object.create(null, {\n // without this, we will always still end up with (new\n // EmptyObject()).constructor === Object\n constructor: {\n value: undefined,\n enumerable: false,\n writable: true\n }\n });\n function EmptyObject() {}\n EmptyObject.prototype = proto;\n function dict() {\n // let d = Object.create(null);\n // d.x = 1;\n // delete d.x;\n // return d;\n return new EmptyObject();\n }\n var DictSet = function () {\n function DictSet() {\n _classCallCheck$1(this, DictSet);\n\n this.dict = dict();\n }\n\n DictSet.prototype.add = function add(obj) {\n if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[ensureGuid(obj)] = obj;\n return this;\n };\n\n DictSet.prototype.delete = function _delete(obj) {\n if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];\n };\n\n DictSet.prototype.forEach = function forEach(callback) {\n var dict = this.dict;\n\n var dictKeys = Object.keys(dict);\n for (var i = 0; dictKeys.length; i++) {\n callback(dict[dictKeys[i]]);\n }\n };\n\n DictSet.prototype.toArray = function toArray() {\n return Object.keys(this.dict);\n };\n\n return DictSet;\n }();\n var Stack = function () {\n function Stack() {\n _classCallCheck$1(this, Stack);\n\n this.stack = [];\n this.current = null;\n }\n\n Stack.prototype.toArray = function toArray() {\n return this.stack;\n };\n\n Stack.prototype.push = function push(item) {\n this.current = item;\n this.stack.push(item);\n };\n\n Stack.prototype.pop = function pop() {\n var item = this.stack.pop();\n var len = this.stack.length;\n this.current = len === 0 ? null : this.stack[len - 1];\n return item === undefined ? null : item;\n };\n\n Stack.prototype.isEmpty = function isEmpty() {\n return this.stack.length === 0;\n };\n\n return Stack;\n }();\n\n function _classCallCheck$2(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var ListNode = function ListNode(value) {\n _classCallCheck$2(this, ListNode);\n\n this.next = null;\n this.prev = null;\n this.value = value;\n };\n var LinkedList = function () {\n function LinkedList() {\n _classCallCheck$2(this, LinkedList);\n\n this.clear();\n }\n\n LinkedList.fromSlice = function fromSlice(slice) {\n var list = new LinkedList();\n slice.forEachNode(function (n) {\n return list.append(n.clone());\n });\n return list;\n };\n\n LinkedList.prototype.head = function head() {\n return this._head;\n };\n\n LinkedList.prototype.tail = function tail() {\n return this._tail;\n };\n\n LinkedList.prototype.clear = function clear() {\n this._head = this._tail = null;\n };\n\n LinkedList.prototype.isEmpty = function isEmpty() {\n return this._head === null;\n };\n\n LinkedList.prototype.toArray = function toArray() {\n var out = [];\n this.forEachNode(function (n) {\n return out.push(n);\n });\n return out;\n };\n\n LinkedList.prototype.splice = function splice(start, end, reference) {\n var before = void 0;\n if (reference === null) {\n before = this._tail;\n this._tail = end;\n } else {\n before = reference.prev;\n end.next = reference;\n reference.prev = end;\n }\n if (before) {\n before.next = start;\n start.prev = before;\n }\n };\n\n LinkedList.prototype.nextNode = function nextNode(node) {\n return node.next;\n };\n\n LinkedList.prototype.prevNode = function prevNode(node) {\n return node.prev;\n };\n\n LinkedList.prototype.forEachNode = function forEachNode(callback) {\n var node = this._head;\n while (node !== null) {\n callback(node);\n node = node.next;\n }\n };\n\n LinkedList.prototype.contains = function contains(needle) {\n var node = this._head;\n while (node !== null) {\n if (node === needle) return true;\n node = node.next;\n }\n return false;\n };\n\n LinkedList.prototype.insertBefore = function insertBefore(node) {\n var reference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (reference === null) return this.append(node);\n if (reference.prev) reference.prev.next = node;else this._head = node;\n node.prev = reference.prev;\n node.next = reference;\n reference.prev = node;\n return node;\n };\n\n LinkedList.prototype.append = function append(node) {\n var tail = this._tail;\n if (tail) {\n tail.next = node;\n node.prev = tail;\n node.next = null;\n } else {\n this._head = node;\n }\n return this._tail = node;\n };\n\n LinkedList.prototype.pop = function pop() {\n if (this._tail) return this.remove(this._tail);\n return null;\n };\n\n LinkedList.prototype.prepend = function prepend(node) {\n if (this._head) return this.insertBefore(node, this._head);\n return this._head = this._tail = node;\n };\n\n LinkedList.prototype.remove = function remove(node) {\n if (node.prev) node.prev.next = node.next;else this._head = node.next;\n if (node.next) node.next.prev = node.prev;else this._tail = node.prev;\n return node;\n };\n\n return LinkedList;\n }();\n var ListSlice = function () {\n function ListSlice(head, tail) {\n _classCallCheck$2(this, ListSlice);\n\n this._head = head;\n this._tail = tail;\n }\n\n ListSlice.toList = function toList(slice) {\n var list = new LinkedList();\n slice.forEachNode(function (n) {\n return list.append(n.clone());\n });\n return list;\n };\n\n ListSlice.prototype.forEachNode = function forEachNode(callback) {\n var node = this._head;\n while (node !== null) {\n callback(node);\n node = this.nextNode(node);\n }\n };\n\n ListSlice.prototype.contains = function contains(needle) {\n var node = this._head;\n while (node !== null) {\n if (node === needle) return true;\n node = node.next;\n }\n return false;\n };\n\n ListSlice.prototype.head = function head() {\n return this._head;\n };\n\n ListSlice.prototype.tail = function tail() {\n return this._tail;\n };\n\n ListSlice.prototype.toArray = function toArray() {\n var out = [];\n this.forEachNode(function (n) {\n return out.push(n);\n });\n return out;\n };\n\n ListSlice.prototype.nextNode = function nextNode(node) {\n if (node === this._tail) return null;\n return node.next;\n };\n\n ListSlice.prototype.prevNode = function prevNode(node) {\n if (node === this._head) return null;\n return node.prev;\n };\n\n ListSlice.prototype.isEmpty = function isEmpty() {\n return false;\n };\n\n return ListSlice;\n }();\n var EMPTY_SLICE = new ListSlice(null, null);\n\n var HAS_NATIVE_WEAKMAP = function () {\n // detect if `WeakMap` is even present\n var hasWeakMap = typeof WeakMap === 'function';\n if (!hasWeakMap) {\n return false;\n }\n var instance = new WeakMap();\n // use `Object`'s `.toString` directly to prevent us from detecting\n // polyfills as native weakmaps\n return Object.prototype.toString.call(instance) === '[object WeakMap]';\n }();\n\n var HAS_TYPED_ARRAYS = typeof Uint32Array !== 'undefined';\n var A = void 0;\n if (HAS_TYPED_ARRAYS) {\n A = Uint32Array;\n } else {\n A = Array;\n }\n var A$1 = A;\n var EMPTY_ARRAY = HAS_NATIVE_WEAKMAP ? Object.freeze([]) : [];\n\n exports.getAttrNamespace = getAttrNamespace;\n exports.assert = debugAssert;\n exports.LOGGER = logger;\n exports.Logger = Logger;\n exports.LogLevel = LogLevel;\n exports.assign = assign;\n exports.fillNulls = fillNulls;\n exports.ensureGuid = ensureGuid;\n exports.initializeGuid = initializeGuid;\n exports.Stack = Stack;\n exports.DictSet = DictSet;\n exports.dict = dict;\n exports.EMPTY_SLICE = EMPTY_SLICE;\n exports.LinkedList = LinkedList;\n exports.ListNode = ListNode;\n exports.ListSlice = ListSlice;\n exports.A = A$1;\n exports.EMPTY_ARRAY = EMPTY_ARRAY;\n exports.HAS_NATIVE_WEAKMAP = HAS_NATIVE_WEAKMAP;\n exports.unwrap = unwrap;\n exports.expect = expect;\n exports.unreachable = unreachable;\n exports.typePos = typePos;\n});","enifed(\"@glimmer/wire-format\", [\"exports\"], function (exports) {\n \"use strict\";\n\n var Opcodes;\n (function (Opcodes) {\n // Statements\n Opcodes[Opcodes[\"Text\"] = 0] = \"Text\";\n Opcodes[Opcodes[\"Append\"] = 1] = \"Append\";\n Opcodes[Opcodes[\"Comment\"] = 2] = \"Comment\";\n Opcodes[Opcodes[\"Modifier\"] = 3] = \"Modifier\";\n Opcodes[Opcodes[\"Block\"] = 4] = \"Block\";\n Opcodes[Opcodes[\"Component\"] = 5] = \"Component\";\n Opcodes[Opcodes[\"OpenElement\"] = 6] = \"OpenElement\";\n Opcodes[Opcodes[\"FlushElement\"] = 7] = \"FlushElement\";\n Opcodes[Opcodes[\"CloseElement\"] = 8] = \"CloseElement\";\n Opcodes[Opcodes[\"StaticAttr\"] = 9] = \"StaticAttr\";\n Opcodes[Opcodes[\"DynamicAttr\"] = 10] = \"DynamicAttr\";\n Opcodes[Opcodes[\"Yield\"] = 11] = \"Yield\";\n Opcodes[Opcodes[\"Partial\"] = 12] = \"Partial\";\n Opcodes[Opcodes[\"DynamicArg\"] = 13] = \"DynamicArg\";\n Opcodes[Opcodes[\"StaticArg\"] = 14] = \"StaticArg\";\n Opcodes[Opcodes[\"TrustingAttr\"] = 15] = \"TrustingAttr\";\n Opcodes[Opcodes[\"Debugger\"] = 16] = \"Debugger\";\n Opcodes[Opcodes[\"ClientSideStatement\"] = 17] = \"ClientSideStatement\";\n // Expressions\n Opcodes[Opcodes[\"Unknown\"] = 18] = \"Unknown\";\n Opcodes[Opcodes[\"Get\"] = 19] = \"Get\";\n Opcodes[Opcodes[\"MaybeLocal\"] = 20] = \"MaybeLocal\";\n Opcodes[Opcodes[\"FixThisBeforeWeMerge\"] = 21] = \"FixThisBeforeWeMerge\";\n Opcodes[Opcodes[\"HasBlock\"] = 22] = \"HasBlock\";\n Opcodes[Opcodes[\"HasBlockParams\"] = 23] = \"HasBlockParams\";\n Opcodes[Opcodes[\"Undefined\"] = 24] = \"Undefined\";\n Opcodes[Opcodes[\"Helper\"] = 25] = \"Helper\";\n Opcodes[Opcodes[\"Concat\"] = 26] = \"Concat\";\n Opcodes[Opcodes[\"ClientSideExpression\"] = 27] = \"ClientSideExpression\";\n })(Opcodes || (exports.Ops = Opcodes = {}));\n\n function is(variant) {\n return function (value) {\n return Array.isArray(value) && value[0] === variant;\n };\n }\n var Expressions;\n (function (Expressions) {\n Expressions.isUnknown = is(Opcodes.Unknown);\n Expressions.isGet = is(Opcodes.Get);\n Expressions.isConcat = is(Opcodes.Concat);\n Expressions.isHelper = is(Opcodes.Helper);\n Expressions.isHasBlock = is(Opcodes.HasBlock);\n Expressions.isHasBlockParams = is(Opcodes.HasBlockParams);\n Expressions.isUndefined = is(Opcodes.Undefined);\n Expressions.isClientSide = is(Opcodes.ClientSideExpression);\n Expressions.isMaybeLocal = is(Opcodes.MaybeLocal);\n function isPrimitiveValue(value) {\n if (value === null) {\n return true;\n }\n return typeof value !== 'object';\n }\n Expressions.isPrimitiveValue = isPrimitiveValue;\n })(Expressions || (exports.Expressions = Expressions = {}));\n var Statements;\n (function (Statements) {\n Statements.isText = is(Opcodes.Text);\n Statements.isAppend = is(Opcodes.Append);\n Statements.isComment = is(Opcodes.Comment);\n Statements.isModifier = is(Opcodes.Modifier);\n Statements.isBlock = is(Opcodes.Block);\n Statements.isComponent = is(Opcodes.Component);\n Statements.isOpenElement = is(Opcodes.OpenElement);\n Statements.isFlushElement = is(Opcodes.FlushElement);\n Statements.isCloseElement = is(Opcodes.CloseElement);\n Statements.isStaticAttr = is(Opcodes.StaticAttr);\n Statements.isDynamicAttr = is(Opcodes.DynamicAttr);\n Statements.isYield = is(Opcodes.Yield);\n Statements.isPartial = is(Opcodes.Partial);\n Statements.isDynamicArg = is(Opcodes.DynamicArg);\n Statements.isStaticArg = is(Opcodes.StaticArg);\n Statements.isTrustingAttr = is(Opcodes.TrustingAttr);\n Statements.isDebugger = is(Opcodes.Debugger);\n Statements.isClientSide = is(Opcodes.ClientSideStatement);\n function isAttribute(val) {\n return val[0] === Opcodes.StaticAttr || val[0] === Opcodes.DynamicAttr || val[0] === Opcodes.TrustingAttr;\n }\n Statements.isAttribute = isAttribute;\n function isArgument(val) {\n return val[0] === Opcodes.StaticArg || val[0] === Opcodes.DynamicArg;\n }\n Statements.isArgument = isArgument;\n function isParameter(val) {\n return isAttribute(val) || isArgument(val);\n }\n Statements.isParameter = isParameter;\n function getParameterName(s) {\n return s[1];\n }\n Statements.getParameterName = getParameterName;\n })(Statements || (exports.Statements = Statements = {}));\n\n exports.is = is;\n exports.Expressions = Expressions;\n exports.Statements = Statements;\n exports.Ops = Opcodes;\n});","enifed('backburner', ['exports', 'ember-babel'], function (exports, _emberBabel) {\n 'use strict';\n\n var NUMBER = /\\d+/;\n function isString(suspect) {\n return typeof suspect === 'string';\n }\n function isFunction(suspect) {\n return typeof suspect === 'function';\n }\n function isNumber(suspect) {\n return typeof suspect === 'number';\n }\n function isCoercableNumber(suspect) {\n return isNumber(suspect) && suspect === suspect || NUMBER.test(suspect);\n }\n function noSuchQueue(name) {\n throw new Error('You attempted to schedule an action in a queue (' + name + ') that doesn\\'t exist');\n }\n function noSuchMethod(name) {\n throw new Error('You attempted to schedule an action in a queue (' + name + ') for a method that doesn\\'t exist');\n }\n function getOnError(options) {\n return options.onError || options.onErrorTarget && options.onErrorTarget[options.onErrorMethod];\n }\n function findItem(target, method, collection) {\n var index = -1;\n for (var i = 0, l = collection.length; i < l; i += 4) {\n if (collection[i] === target && collection[i + 1] === method) {\n index = i;\n break;\n }\n }\n return index;\n }\n function findTimer(timer, collection) {\n var index = -1;\n for (var i = 3; i < collection.length; i += 4) {\n if (collection[i] === timer) {\n index = i - 3;\n break;\n }\n }\n return index;\n }\n\n function binarySearch(time, timers) {\n var start = 0;\n var end = timers.length - 2;\n var middle = void 0;\n var l = void 0;\n while (start < end) {\n // since timers is an array of pairs 'l' will always\n // be an integer\n l = (end - start) / 2;\n // compensate for the index in case even number\n // of pairs inside timers\n middle = start + l - l % 2;\n if (time >= timers[middle]) {\n start = middle + 2;\n } else {\n end = middle;\n }\n }\n return time >= timers[start] ? start + 2 : start;\n }\n\n var Queue = function () {\n function Queue(name) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var globalOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n (0, _emberBabel.classCallCheck)(this, Queue);\n\n this._queueBeingFlushed = [];\n this.targetQueues = Object.create(null);\n this.index = 0;\n this._queue = [];\n this.name = name;\n this.options = options;\n this.globalOptions = globalOptions;\n }\n\n Queue.prototype.push = function push(target, method, args, stack) {\n this._queue.push(target, method, args, stack);\n return {\n queue: this,\n target: target,\n method: method\n };\n };\n\n Queue.prototype.pushUnique = function pushUnique(target, method, args, stack) {\n var guid = this.guidForTarget(target);\n if (guid) {\n this.pushUniqueWithGuid(guid, target, method, args, stack);\n } else {\n this.pushUniqueWithoutGuid(target, method, args, stack);\n }\n return {\n queue: this,\n target: target,\n method: method\n };\n };\n\n Queue.prototype.flush = function flush(sync) {\n var _options = this.options,\n before = _options.before,\n after = _options.after;\n\n var target = void 0;\n var method = void 0;\n var args = void 0;\n var errorRecordedForStack = void 0;\n this.targetQueues = Object.create(null);\n if (this._queueBeingFlushed.length === 0) {\n this._queueBeingFlushed = this._queue;\n this._queue = [];\n }\n if (before !== undefined) {\n before();\n }\n var invoke = void 0;\n var queueItems = this._queueBeingFlushed;\n if (queueItems.length > 0) {\n var onError = getOnError(this.globalOptions);\n invoke = onError ? this.invokeWithOnError : this.invoke;\n for (var i = this.index; i < queueItems.length; i += 4) {\n this.index += 4;\n method = queueItems[i + 1];\n // method could have been nullified / canceled during flush\n if (method !== null) {\n //\n // ** Attention intrepid developer **\n //\n // To find out the stack of this task when it was scheduled onto\n // the run loop, add the following to your app.js:\n //\n // Ember.run.backburner.DEBUG = true; // NOTE: This slows your app, don't leave it on in production.\n //\n // Once that is in place, when you are at a breakpoint and navigate\n // here in the stack explorer, you can look at `errorRecordedForStack.stack`,\n // which will be the captured stack when this job was scheduled.\n //\n // One possible long-term solution is the following Chrome issue:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=332624\n //\n target = queueItems[i];\n args = queueItems[i + 2];\n errorRecordedForStack = queueItems[i + 3]; // Debugging assistance\n invoke(target, method, args, onError, errorRecordedForStack);\n }\n if (this.index !== this._queueBeingFlushed.length && this.globalOptions.mustYield && this.globalOptions.mustYield()) {\n return 1 /* Pause */;\n }\n }\n }\n if (after !== undefined) {\n after();\n }\n this._queueBeingFlushed.length = 0;\n this.index = 0;\n if (sync !== false && this._queue.length > 0) {\n // check if new items have been added\n this.flush(true);\n }\n };\n\n Queue.prototype.hasWork = function hasWork() {\n return this._queueBeingFlushed.length > 0 || this._queue.length > 0;\n };\n\n Queue.prototype.cancel = function cancel(_ref) {\n var target = _ref.target,\n method = _ref.method;\n\n var queue = this._queue;\n var guid = this.guidForTarget(target);\n var targetQueue = guid ? this.targetQueues[guid] : undefined;\n if (targetQueue !== undefined) {\n var t = void 0;\n for (var i = 0, l = targetQueue.length; i < l; i += 2) {\n t = targetQueue[i];\n if (t === method) {\n targetQueue.splice(i, 2);\n break;\n }\n }\n }\n var index = findItem(target, method, queue);\n if (index > -1) {\n queue.splice(index, 4);\n return true;\n }\n // if not found in current queue\n // could be in the queue that is being flushed\n queue = this._queueBeingFlushed;\n index = findItem(target, method, queue);\n if (index > -1) {\n queue[index + 1] = null;\n return true;\n }\n return false;\n };\n\n Queue.prototype.guidForTarget = function guidForTarget(target) {\n if (!target) {\n return;\n }\n var peekGuid = this.globalOptions.peekGuid;\n if (peekGuid) {\n return peekGuid(target);\n }\n var KEY = this.globalOptions.GUID_KEY;\n if (KEY) {\n return target[KEY];\n }\n };\n\n Queue.prototype.pushUniqueWithoutGuid = function pushUniqueWithoutGuid(target, method, args, stack) {\n var queue = this._queue;\n var index = findItem(target, method, queue);\n if (index > -1) {\n queue[index + 2] = args; // replace args\n queue[index + 3] = stack; // replace stack\n } else {\n queue.push(target, method, args, stack);\n }\n };\n\n Queue.prototype.targetQueue = function targetQueue(_targetQueue, target, method, args, stack) {\n var queue = this._queue;\n for (var i = 0, l = _targetQueue.length; i < l; i += 2) {\n var currentMethod = _targetQueue[i];\n if (currentMethod === method) {\n var currentIndex = _targetQueue[i + 1];\n queue[currentIndex + 2] = args; // replace args\n queue[currentIndex + 3] = stack; // replace stack\n return;\n }\n }\n _targetQueue.push(method, queue.push(target, method, args, stack) - 4);\n };\n\n Queue.prototype.pushUniqueWithGuid = function pushUniqueWithGuid(guid, target, method, args, stack) {\n var localQueue = this.targetQueues[guid];\n if (localQueue !== undefined) {\n this.targetQueue(localQueue, target, method, args, stack);\n } else {\n this.targetQueues[guid] = [method, this._queue.push(target, method, args, stack) - 4];\n }\n };\n\n Queue.prototype.invoke = function invoke(target, method, args /*, onError, errorRecordedForStack */) {\n if (args !== undefined) {\n method.apply(target, args);\n } else {\n method.call(target);\n }\n };\n\n Queue.prototype.invokeWithOnError = function invokeWithOnError(target, method, args, onError, errorRecordedForStack) {\n try {\n if (args !== undefined) {\n method.apply(target, args);\n } else {\n method.call(target);\n }\n } catch (error) {\n onError(error, errorRecordedForStack);\n }\n };\n\n return Queue;\n }();\n\n var DeferredActionQueues = function () {\n function DeferredActionQueues() {\n var queueNames = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var options = arguments[1];\n (0, _emberBabel.classCallCheck)(this, DeferredActionQueues);\n\n this.queues = {};\n this.queueNameIndex = 0;\n this.queueNames = queueNames;\n queueNames.reduce(function (queues, queueName) {\n queues[queueName] = new Queue(queueName, options[queueName], options);\n return queues;\n }, this.queues);\n }\n /*\n @method schedule\n @param {String} queueName\n @param {Any} target\n @param {Any} method\n @param {Any} args\n @param {Boolean} onceFlag\n @param {Any} stack\n @return queue\n */\n\n\n DeferredActionQueues.prototype.schedule = function schedule(queueName, target, method, args, onceFlag, stack) {\n var queues = this.queues;\n var queue = queues[queueName];\n if (!queue) {\n noSuchQueue(queueName);\n }\n if (!method) {\n noSuchMethod(queueName);\n }\n if (onceFlag) {\n return queue.pushUnique(target, method, args, stack);\n } else {\n return queue.push(target, method, args, stack);\n }\n };\n\n DeferredActionQueues.prototype.flush = function flush() {\n var queue = void 0;\n var queueName = void 0;\n var numberOfQueues = this.queueNames.length;\n while (this.queueNameIndex < numberOfQueues) {\n queueName = this.queueNames[this.queueNameIndex];\n queue = this.queues[queueName];\n if (queue.hasWork() === false) {\n this.queueNameIndex++;\n } else {\n if (queue.flush(false /* async */) === 1 /* Pause */) {\n return 1 /* Pause */;\n }\n this.queueNameIndex = 0; // only reset to first queue if non-pause break\n }\n }\n };\n\n return DeferredActionQueues;\n }();\n\n // accepts a function that when invoked will return an iterator\n // iterator will drain until completion\n var iteratorDrain = function (fn) {\n var iterator = fn();\n var result = iterator.next();\n while (result.done === false) {\n result.value();\n result = iterator.next();\n }\n };\n\n var noop = function () {};\n var SET_TIMEOUT = setTimeout;\n function parseArgs() {\n var length = arguments.length;\n var method = void 0;\n var target = void 0;\n var args = void 0;\n if (length === 1) {\n method = arguments[0];\n target = null;\n } else {\n target = arguments[0];\n method = arguments[1];\n if (isString(method)) {\n method = target[method];\n }\n if (length > 2) {\n args = new Array(length - 2);\n for (var i = 0, l = length - 2; i < l; i++) {\n args[i] = arguments[i + 2];\n }\n }\n }\n return [target, method, args];\n }\n\n var Backburner = function () {\n function Backburner(queueNames) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _emberBabel.classCallCheck)(this, Backburner);\n\n this.DEBUG = false;\n this.currentInstance = null;\n this._timerTimeoutId = null;\n this._autorun = null;\n this.queueNames = queueNames;\n this.options = options;\n if (!this.options.defaultQueue) {\n this.options.defaultQueue = queueNames[0];\n }\n this.instanceStack = [];\n this._timers = [];\n this._debouncees = [];\n this._throttlers = [];\n this._eventCallbacks = {\n end: [],\n begin: []\n };\n this._onBegin = this.options.onBegin || noop;\n this._onEnd = this.options.onEnd || noop;\n var _platform = this.options._platform || {};\n var platform = Object.create(null);\n platform.setTimeout = _platform.setTimeout || function (fn, ms) {\n return setTimeout(fn, ms);\n };\n platform.clearTimeout = _platform.clearTimeout || function (id) {\n return clearTimeout(id);\n };\n platform.next = _platform.next || function (fn) {\n return SET_TIMEOUT(fn, 0);\n };\n platform.clearNext = _platform.clearNext || platform.clearTimeout;\n platform.now = _platform.now || function () {\n return Date.now();\n };\n this._platform = platform;\n this._boundRunExpiredTimers = function () {\n _this._runExpiredTimers();\n };\n this._boundAutorunEnd = function () {\n _this._autorun = null;\n _this.end();\n };\n }\n /*\n @method begin\n @return instantiated class DeferredActionQueues\n */\n\n\n Backburner.prototype.begin = function begin() {\n var options = this.options;\n var previousInstance = this.currentInstance;\n var current = void 0;\n if (this._autorun !== null) {\n current = previousInstance;\n this._cancelAutorun();\n } else {\n if (previousInstance !== null) {\n this.instanceStack.push(previousInstance);\n }\n current = this.currentInstance = new DeferredActionQueues(this.queueNames, options);\n this._trigger('begin', current, previousInstance);\n }\n this._onBegin(current, previousInstance);\n return current;\n };\n\n Backburner.prototype.end = function end() {\n var currentInstance = this.currentInstance;\n var nextInstance = null;\n if (currentInstance === null) {\n throw new Error('end called without begin');\n }\n // Prevent double-finally bug in Safari 6.0.2 and iOS 6\n // This bug appears to be resolved in Safari 6.0.5 and iOS 7\n var finallyAlreadyCalled = false;\n var result = void 0;\n try {\n result = currentInstance.flush();\n } finally {\n if (!finallyAlreadyCalled) {\n finallyAlreadyCalled = true;\n if (result === 1 /* Pause */) {\n var next = this._platform.next;\n this._autorun = next(this._boundAutorunEnd);\n } else {\n this.currentInstance = null;\n if (this.instanceStack.length > 0) {\n nextInstance = this.instanceStack.pop();\n this.currentInstance = nextInstance;\n }\n this._trigger('end', currentInstance, nextInstance);\n this._onEnd(currentInstance, nextInstance);\n }\n }\n }\n };\n\n Backburner.prototype.on = function on(eventName, callback) {\n if (typeof callback !== 'function') {\n throw new TypeError('Callback must be a function');\n }\n var callbacks = this._eventCallbacks[eventName];\n if (callbacks !== undefined) {\n callbacks.push(callback);\n } else {\n throw new TypeError('Cannot on() event ' + eventName + ' because it does not exist');\n }\n };\n\n Backburner.prototype.off = function off(eventName, callback) {\n var callbacks = this._eventCallbacks[eventName];\n if (!eventName || callbacks === undefined) {\n throw new TypeError('Cannot off() event ' + eventName + ' because it does not exist');\n }\n var callbackFound = false;\n if (callback) {\n for (var i = 0; i < callbacks.length; i++) {\n if (callbacks[i] === callback) {\n callbackFound = true;\n callbacks.splice(i, 1);\n i--;\n }\n }\n }\n if (!callbackFound) {\n throw new TypeError('Cannot off() callback that does not exist');\n }\n };\n\n Backburner.prototype.run = function run() {\n var _parseArgs = parseArgs.apply(undefined, arguments),\n target = _parseArgs[0],\n method = _parseArgs[1],\n args = _parseArgs[2];\n\n return this._run(target, method, args);\n };\n\n Backburner.prototype.join = function join() {\n var _parseArgs2 = parseArgs.apply(undefined, arguments),\n target = _parseArgs2[0],\n method = _parseArgs2[1],\n args = _parseArgs2[2];\n\n return this._join(target, method, args);\n };\n\n Backburner.prototype.defer = function defer() {\n return this.schedule.apply(this, arguments);\n };\n\n Backburner.prototype.schedule = function schedule(queueName) {\n for (var _len = arguments.length, _args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n _args[_key - 1] = arguments[_key];\n }\n\n var _parseArgs3 = parseArgs.apply(undefined, _args),\n target = _parseArgs3[0],\n method = _parseArgs3[1],\n args = _parseArgs3[2];\n\n var stack = this.DEBUG ? new Error() : undefined;\n return this._ensureInstance().schedule(queueName, target, method, args, false, stack);\n };\n\n Backburner.prototype.scheduleIterable = function scheduleIterable(queueName, iterable) {\n var stack = this.DEBUG ? new Error() : undefined;\n return this._ensureInstance().schedule(queueName, null, iteratorDrain, [iterable], false, stack);\n };\n\n Backburner.prototype.deferOnce = function deferOnce() {\n return this.scheduleOnce.apply(this, arguments);\n };\n\n Backburner.prototype.scheduleOnce = function scheduleOnce(queueName) {\n for (var _len2 = arguments.length, _args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n _args[_key2 - 1] = arguments[_key2];\n }\n\n var _parseArgs4 = parseArgs.apply(undefined, _args),\n target = _parseArgs4[0],\n method = _parseArgs4[1],\n args = _parseArgs4[2];\n\n var stack = this.DEBUG ? new Error() : undefined;\n return this._ensureInstance().schedule(queueName, target, method, args, true, stack);\n };\n\n Backburner.prototype.setTimeout = function setTimeout() {\n return this.later.apply(this, arguments);\n };\n\n Backburner.prototype.later = function later() {\n for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n var length = args.length;\n var wait = 0;\n var method = void 0;\n var target = void 0;\n var methodOrTarget = void 0;\n var methodOrWait = void 0;\n var methodOrArgs = void 0;\n if (length === 0) {\n return;\n } else if (length === 1) {\n method = args.shift();\n } else if (length === 2) {\n methodOrTarget = args[0];\n methodOrWait = args[1];\n if (isFunction(methodOrWait)) {\n target = args.shift();\n method = args.shift();\n } else if (methodOrTarget !== null && isString(methodOrWait) && methodOrWait in methodOrTarget) {\n target = args.shift();\n method = target[args.shift()];\n } else if (isCoercableNumber(methodOrWait)) {\n method = args.shift();\n wait = parseInt(args.shift(), 10);\n } else {\n method = args.shift();\n }\n } else {\n var last = args[args.length - 1];\n if (isCoercableNumber(last)) {\n wait = parseInt(args.pop(), 10);\n }\n methodOrTarget = args[0];\n methodOrArgs = args[1];\n if (isFunction(methodOrArgs)) {\n target = args.shift();\n method = args.shift();\n } else if (methodOrTarget !== null && isString(methodOrArgs) && methodOrArgs in methodOrTarget) {\n target = args.shift();\n method = target[args.shift()];\n } else {\n method = args.shift();\n }\n }\n var onError = getOnError(this.options);\n var executeAt = this._platform.now() + wait;\n var fn = void 0;\n if (onError) {\n fn = function () {\n try {\n method.apply(target, args);\n } catch (e) {\n onError(e);\n }\n };\n } else {\n fn = function () {\n method.apply(target, args);\n };\n }\n return this._setTimeout(fn, executeAt);\n };\n\n Backburner.prototype.throttle = function throttle(target, method) /*, ...args, wait, [immediate] */{\n var _this2 = this;\n\n for (var _len4 = arguments.length, args = Array(_len4 > 2 ? _len4 - 2 : 0), _key4 = 2; _key4 < _len4; _key4++) {\n args[_key4 - 2] = arguments[_key4];\n }\n\n var immediate = args.pop();\n var isImmediate = void 0;\n var wait = void 0;\n if (isCoercableNumber(immediate)) {\n wait = immediate;\n isImmediate = true;\n } else {\n wait = args.pop();\n isImmediate = immediate === true;\n }\n if (isString(method)) {\n method = target[method];\n }\n var index = findItem(target, method, this._throttlers);\n if (index > -1) {\n this._throttlers[index + 2] = args;\n return this._throttlers[index + 3];\n } // throttled\n wait = parseInt(wait, 10);\n var timer = this._platform.setTimeout(function () {\n var i = findTimer(timer, _this2._throttlers);\n\n var _throttlers$splice = _this2._throttlers.splice(i, 4),\n context = _throttlers$splice[0],\n func = _throttlers$splice[1],\n params = _throttlers$splice[2];\n\n if (isImmediate === false) {\n _this2._run(context, func, params);\n }\n }, wait);\n if (isImmediate) {\n this._join(target, method, args);\n }\n this._throttlers.push(target, method, args, timer);\n return timer;\n };\n\n Backburner.prototype.debounce = function debounce(target, method) /* , wait, [immediate] */{\n var _this3 = this;\n\n for (var _len5 = arguments.length, args = Array(_len5 > 2 ? _len5 - 2 : 0), _key5 = 2; _key5 < _len5; _key5++) {\n args[_key5 - 2] = arguments[_key5];\n }\n\n var immediate = args.pop();\n var isImmediate = void 0;\n var wait = void 0;\n if (isCoercableNumber(immediate)) {\n wait = immediate;\n isImmediate = false;\n } else {\n wait = args.pop();\n isImmediate = immediate === true;\n }\n if (isString(method)) {\n method = target[method];\n }\n wait = parseInt(wait, 10);\n // Remove debouncee\n var index = findItem(target, method, this._debouncees);\n if (index > -1) {\n var timerId = this._debouncees[index + 3];\n this._platform.clearTimeout(timerId);\n this._debouncees.splice(index, 4);\n }\n var timer = this._platform.setTimeout(function () {\n var i = findTimer(timer, _this3._debouncees);\n\n var _debouncees$splice = _this3._debouncees.splice(i, 4),\n context = _debouncees$splice[0],\n func = _debouncees$splice[1],\n params = _debouncees$splice[2];\n\n if (isImmediate === false) {\n _this3._run(context, func, params);\n }\n }, wait);\n if (isImmediate && index === -1) {\n this._join(target, method, args);\n }\n this._debouncees.push(target, method, args, timer);\n return timer;\n };\n\n Backburner.prototype.cancelTimers = function cancelTimers() {\n for (var i = 3; i < this._throttlers.length; i += 4) {\n this._platform.clearTimeout(this._throttlers[i]);\n }\n this._throttlers = [];\n for (var t = 3; t < this._debouncees.length; t += 4) {\n this._platform.clearTimeout(this._debouncees[t]);\n }\n this._debouncees = [];\n this._clearTimerTimeout();\n this._timers = [];\n this._cancelAutorun();\n };\n\n Backburner.prototype.hasTimers = function hasTimers() {\n return this._timers.length > 0 || this._debouncees.length > 0 || this._throttlers.length > 0 || this._autorun !== null;\n };\n\n Backburner.prototype.cancel = function cancel(timer) {\n if (!timer) {\n return false;\n }\n var timerType = typeof timer;\n if (timerType === 'number' || timerType === 'string') {\n return this._cancelItem(timer, this._throttlers) || this._cancelItem(timer, this._debouncees);\n } else if (timerType === 'function') {\n return this._cancelLaterTimer(timer);\n } else if (timerType === 'object' && timer.queue && timer.method) {\n return timer.queue.cancel(timer);\n }\n return false;\n };\n\n Backburner.prototype.ensureInstance = function ensureInstance() {\n this._ensureInstance();\n };\n\n Backburner.prototype._join = function _join(target, method, args) {\n if (this.currentInstance === null) {\n return this._run(target, method, args);\n }\n if (target === undefined && args === undefined) {\n return method();\n } else {\n return method.apply(target, args);\n }\n };\n\n Backburner.prototype._run = function _run(target, method, args) {\n var onError = getOnError(this.options);\n this.begin();\n if (onError) {\n try {\n return method.apply(target, args);\n } catch (error) {\n onError(error);\n } finally {\n this.end();\n }\n } else {\n try {\n return method.apply(target, args);\n } finally {\n this.end();\n }\n }\n };\n\n Backburner.prototype._cancelAutorun = function _cancelAutorun() {\n if (this._autorun !== null) {\n this._platform.clearNext(this._autorun);\n this._autorun = null;\n }\n };\n\n Backburner.prototype._setTimeout = function _setTimeout(fn, executeAt) {\n if (this._timers.length === 0) {\n this._timers.push(executeAt, fn);\n this._installTimerTimeout();\n return fn;\n }\n // find position to insert\n var i = binarySearch(executeAt, this._timers);\n this._timers.splice(i, 0, executeAt, fn);\n // we should be the new earliest timer if i == 0\n if (i === 0) {\n this._reinstallTimerTimeout();\n }\n return fn;\n };\n\n Backburner.prototype._cancelLaterTimer = function _cancelLaterTimer(timer) {\n for (var i = 1; i < this._timers.length; i += 2) {\n if (this._timers[i] === timer) {\n i = i - 1;\n this._timers.splice(i, 2); // remove the two elements\n if (i === 0) {\n this._reinstallTimerTimeout();\n }\n return true;\n }\n }\n return false;\n };\n\n Backburner.prototype._cancelItem = function _cancelItem(timer, array) {\n var index = findTimer(timer, array);\n if (index > -1) {\n this._platform.clearTimeout(timer);\n array.splice(index, 4);\n return true;\n }\n return false;\n };\n\n Backburner.prototype._trigger = function _trigger(eventName, arg1, arg2) {\n var callbacks = this._eventCallbacks[eventName];\n if (callbacks !== undefined) {\n for (var i = 0; i < callbacks.length; i++) {\n callbacks[i](arg1, arg2);\n }\n }\n };\n\n Backburner.prototype._runExpiredTimers = function _runExpiredTimers() {\n this._timerTimeoutId = null;\n if (this._timers.length === 0) {\n return;\n }\n this.begin();\n this._scheduleExpiredTimers();\n this.end();\n };\n\n Backburner.prototype._scheduleExpiredTimers = function _scheduleExpiredTimers() {\n var timers = this._timers;\n var l = timers.length;\n var i = 0;\n var defaultQueue = this.options.defaultQueue;\n var n = this._platform.now();\n for (; i < l; i += 2) {\n var executeAt = timers[i];\n if (executeAt <= n) {\n var fn = timers[i + 1];\n this.schedule(defaultQueue, null, fn);\n } else {\n break;\n }\n }\n timers.splice(0, i);\n this._installTimerTimeout();\n };\n\n Backburner.prototype._reinstallTimerTimeout = function _reinstallTimerTimeout() {\n this._clearTimerTimeout();\n this._installTimerTimeout();\n };\n\n Backburner.prototype._clearTimerTimeout = function _clearTimerTimeout() {\n if (this._timerTimeoutId === null) {\n return;\n }\n this._platform.clearTimeout(this._timerTimeoutId);\n this._timerTimeoutId = null;\n };\n\n Backburner.prototype._installTimerTimeout = function _installTimerTimeout() {\n if (this._timers.length === 0) {\n return;\n }\n var minExpiresAt = this._timers[0];\n var n = this._platform.now();\n var wait = Math.max(0, minExpiresAt - n);\n this._timerTimeoutId = this._platform.setTimeout(this._boundRunExpiredTimers, wait);\n };\n\n Backburner.prototype._ensureInstance = function _ensureInstance() {\n var currentInstance = this.currentInstance;\n if (currentInstance === null) {\n currentInstance = this.begin();\n var next = this._platform.next;\n this._autorun = next(this._boundAutorunEnd);\n }\n return currentInstance;\n };\n\n return Backburner;\n }();\n\n Backburner.Queue = Queue;\n\n exports.default = Backburner;\n});","enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'ember/features'], function (exports, _emberBabel, _emberUtils, _emberDebug, _features) {\n 'use strict';\n\n exports.Container = exports.privatize = exports.Registry = undefined;\n\n\n /* globals Proxy */\n var CONTAINER_OVERRIDE = (0, _emberUtils.symbol)('CONTAINER_OVERRIDE');\n\n /**\n A container used to instantiate and cache objects.\n \n Every `Container` must be associated with a `Registry`, which is referenced\n to determine the factory and options that should be used to instantiate\n objects.\n \n The public API for `Container` is still in flux and should not be considered\n stable.\n \n @private\n @class Container\n */\n\n var Container = function () {\n function Container(registry) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _emberBabel.classCallCheck)(this, Container);\n\n this.registry = registry;\n this.owner = options.owner || null;\n this.cache = (0, _emberUtils.dictionary)(options.cache || null);\n this.factoryManagerCache = (0, _emberUtils.dictionary)(options.factoryManagerCache || null);\n this[CONTAINER_OVERRIDE] = undefined;\n this.isDestroyed = false;\n\n if (true) {\n this.validationCache = (0, _emberUtils.dictionary)(options.validationCache || null);\n }\n }\n\n /**\n @private\n @property registry\n @type Registry\n @since 1.11.0\n */\n\n /**\n @private\n @property cache\n @type InheritingDict\n */\n\n /**\n @private\n @property validationCache\n @type InheritingDict\n */\n\n /**\n Given a fullName return a corresponding instance.\n The default behavior is for lookup to return a singleton instance.\n The singleton is scoped to the container, allowing multiple containers\n to all have their own locally scoped singletons.\n ```javascript\n let registry = new Registry();\n let container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter');\n twitter instanceof Twitter; // => true\n // by default the container will return singletons\n let twitter2 = container.lookup('api:twitter');\n twitter2 instanceof Twitter; // => true\n twitter === twitter2; //=> true\n ```\n If singletons are not wanted, an optional flag can be provided at lookup.\n ```javascript\n let registry = new Registry();\n let container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter', { singleton: false });\n let twitter2 = container.lookup('api:twitter', { singleton: false });\n twitter === twitter2; //=> false\n ```\n @private\n @method lookup\n @param {String} fullName\n @param {Object} [options]\n @param {String} [options.source] The fullname of the request source (used for local lookup)\n @return {any}\n */\n\n\n Container.prototype.lookup = function lookup(fullName, options) {\n (true && !(this.registry.isValidFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.isValidFullName(fullName)));\n\n return _lookup(this, this.registry.normalize(fullName), options);\n };\n\n Container.prototype.destroy = function destroy() {\n destroyDestroyables(this);\n this.isDestroyed = true;\n };\n\n Container.prototype.reset = function reset(fullName) {\n if (fullName === undefined) {\n resetCache(this);\n } else {\n resetMember(this, this.registry.normalize(fullName));\n }\n };\n\n Container.prototype.ownerInjection = function ownerInjection() {\n var _ref;\n\n return _ref = {}, _ref[_emberUtils.OWNER] = this.owner, _ref;\n };\n\n Container.prototype._resolverCacheKey = function _resolverCacheKey(name, options) {\n return this.registry.resolverCacheKey(name, options);\n };\n\n Container.prototype.factoryFor = function factoryFor(fullName) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var normalizedName = this.registry.normalize(fullName);\n\n (true && !(this.registry.isValidFullName(normalizedName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.isValidFullName(normalizedName)));\n\n\n if (options.source) {\n var expandedFullName = this.registry.expandLocalLookup(fullName, options);\n // if expandLocalLookup returns falsey, we do not support local lookup\n if (!_features.EMBER_MODULE_UNIFICATION) {\n if (!expandedFullName) {\n return;\n }\n\n normalizedName = expandedFullName;\n } else if (expandedFullName) {\n // with ember-module-unification, if expandLocalLookup returns something,\n // pass it to the resolve without the source\n normalizedName = expandedFullName;\n options = {};\n }\n }\n\n var cacheKey = this._resolverCacheKey(normalizedName, options);\n var cached = this.factoryManagerCache[cacheKey];\n\n if (cached !== undefined) {\n return cached;\n }\n\n var factory = _features.EMBER_MODULE_UNIFICATION ? this.registry.resolve(normalizedName, options) : this.registry.resolve(normalizedName);\n\n if (factory === undefined) {\n return;\n }\n\n if (true && factory && typeof factory._onLookup === 'function') {\n factory._onLookup(fullName);\n }\n\n var manager = new FactoryManager(this, factory, fullName, normalizedName);\n\n if (true) {\n manager = wrapManagerInDeprecationProxy(manager);\n }\n\n this.factoryManagerCache[cacheKey] = manager;\n return manager;\n };\n\n return Container;\n }();\n\n /*\n * Wrap a factory manager in a proxy which will not permit properties to be\n * set on the manager.\n */\n function wrapManagerInDeprecationProxy(manager) {\n if (_emberUtils.HAS_NATIVE_PROXY) {\n var validator = {\n set: function (obj, prop, value) {\n throw new Error('You attempted to set \"' + prop + '\" on a factory manager created by container#factoryFor. A factory manager is a read-only construct.');\n }\n };\n\n // Note:\n // We have to proxy access to the manager here so that private property\n // access doesn't cause the above errors to occur.\n var m = manager;\n var proxiedManager = {\n class: m.class,\n create: function (props) {\n return m.create(props);\n }\n };\n\n return new Proxy(proxiedManager, validator);\n }\n\n return manager;\n }\n\n function isSingleton(container, fullName) {\n return container.registry.getOption(fullName, 'singleton') !== false;\n }\n\n function isInstantiatable(container, fullName) {\n return container.registry.getOption(fullName, 'instantiate') !== false;\n }\n\n function _lookup(container, fullName) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (options.source) {\n var expandedFullName = container.registry.expandLocalLookup(fullName, options);\n\n if (!_features.EMBER_MODULE_UNIFICATION) {\n // if expandLocalLookup returns falsey, we do not support local lookup\n if (!expandedFullName) {\n return;\n }\n\n fullName = expandedFullName;\n } else if (expandedFullName) {\n // with ember-module-unification, if expandLocalLookup returns something,\n // pass it to the resolve without the source\n fullName = expandedFullName;\n options = {};\n }\n }\n\n if (options.singleton !== false) {\n var cacheKey = container._resolverCacheKey(fullName, options);\n var cached = container.cache[cacheKey];\n if (cached !== undefined) {\n return cached;\n }\n }\n\n return instantiateFactory(container, fullName, options);\n }\n\n function isSingletonClass(container, fullName, _ref2) {\n var instantiate = _ref2.instantiate,\n singleton = _ref2.singleton;\n\n return singleton !== false && !instantiate && isSingleton(container, fullName) && !isInstantiatable(container, fullName);\n }\n\n function isSingletonInstance(container, fullName, _ref3) {\n var instantiate = _ref3.instantiate,\n singleton = _ref3.singleton;\n\n return singleton !== false && instantiate !== false && isSingleton(container, fullName) && isInstantiatable(container, fullName);\n }\n\n function isFactoryClass(container, fullname, _ref4) {\n var instantiate = _ref4.instantiate,\n singleton = _ref4.singleton;\n\n return instantiate === false && (singleton === false || !isSingleton(container, fullname)) && !isInstantiatable(container, fullname);\n }\n\n function isFactoryInstance(container, fullName, _ref5) {\n var instantiate = _ref5.instantiate,\n singleton = _ref5.singleton;\n\n return instantiate !== false && (singleton !== false || isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n }\n\n function instantiateFactory(container, fullName, options) {\n var factoryManager = _features.EMBER_MODULE_UNIFICATION && options && options.source ? container.factoryFor(fullName, options) : container.factoryFor(fullName);\n\n if (factoryManager === undefined) {\n return;\n }\n\n // SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}\n // By default majority of objects fall into this case\n if (isSingletonInstance(container, fullName, options)) {\n var cacheKey = container._resolverCacheKey(fullName, options);\n return container.cache[cacheKey] = factoryManager.create();\n }\n\n // SomeClass { singleton: false, instantiate: true }\n if (isFactoryInstance(container, fullName, options)) {\n return factoryManager.create();\n }\n\n // SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false }\n if (isSingletonClass(container, fullName, options) || isFactoryClass(container, fullName, options)) {\n return factoryManager.class;\n }\n\n throw new Error('Could not create factory');\n }\n\n function buildInjections(container, injections) {\n var hash = {};\n var isDynamic = false;\n\n if (injections.length > 0) {\n if (true) {\n container.registry.validateInjections(injections);\n }\n\n var injection = void 0;\n for (var i = 0; i < injections.length; i++) {\n injection = injections[i];\n hash[injection.property] = _lookup(container, injection.fullName);\n if (!isDynamic) {\n isDynamic = !isSingleton(container, injection.fullName);\n }\n }\n }\n\n return { injections: hash, isDynamic: isDynamic };\n }\n\n function injectionsFor(container, fullName) {\n var registry = container.registry;\n\n var _fullName$split = fullName.split(':'),\n type = _fullName$split[0];\n\n var injections = registry.getTypeInjections(type).concat(registry.getInjections(fullName));\n return buildInjections(container, injections);\n }\n\n function destroyDestroyables(container) {\n var cache = container.cache;\n var keys = Object.keys(cache);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = cache[key];\n\n if (value.destroy) {\n value.destroy();\n }\n }\n }\n\n function resetCache(container) {\n destroyDestroyables(container);\n container.cache = (0, _emberUtils.dictionary)(null);\n container.factoryManagerCache = (0, _emberUtils.dictionary)(null);\n }\n\n function resetMember(container, fullName) {\n var member = container.cache[fullName];\n\n delete container.factoryManagerCache[fullName];\n\n if (member) {\n delete container.cache[fullName];\n\n if (member.destroy) {\n member.destroy();\n }\n }\n }\n\n var FactoryManager = function () {\n function FactoryManager(container, factory, fullName, normalizedName) {\n (0, _emberBabel.classCallCheck)(this, FactoryManager);\n\n this.container = container;\n this.owner = container.owner;\n this.class = factory;\n this.fullName = fullName;\n this.normalizedName = normalizedName;\n this.madeToString = undefined;\n this.injections = undefined;\n }\n\n FactoryManager.prototype.toString = function toString() {\n if (this.madeToString === undefined) {\n this.madeToString = this.container.registry.makeToString(this.class, this.fullName);\n }\n\n return this.madeToString;\n };\n\n FactoryManager.prototype.create = function create() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var injectionsCache = this.injections;\n if (injectionsCache === undefined) {\n var _injectionsFor = injectionsFor(this.container, this.normalizedName),\n injections = _injectionsFor.injections,\n isDynamic = _injectionsFor.isDynamic;\n\n injectionsCache = injections;\n if (!isDynamic) {\n this.injections = injections;\n }\n }\n\n var props = (0, _emberUtils.assign)({}, injectionsCache, options);\n\n if (true) {\n var lazyInjections = void 0;\n var validationCache = this.container.validationCache;\n // Ensure that all lazy injections are valid at instantiation time\n if (!validationCache[this.fullName] && this.class && typeof this.class._lazyInjections === 'function') {\n lazyInjections = this.class._lazyInjections();\n lazyInjections = this.container.registry.normalizeInjectionsHash(lazyInjections);\n\n this.container.registry.validateInjections(lazyInjections);\n }\n\n validationCache[this.fullName] = true;\n }\n\n if (!this.class.create) {\n throw new Error('Failed to create an instance of \\'' + this.normalizedName + '\\'. Most likely an improperly defined class or' + ' an invalid module export.');\n }\n\n // required to allow access to things like\n // the customized toString, _debugContainerKey,\n // owner, etc. without a double extend and without\n // modifying the objects properties\n if (typeof this.class._initFactory === 'function') {\n this.class._initFactory(this);\n } else {\n // in the non-EmberObject case we need to still setOwner\n // this is required for supporting glimmer environment and\n // template instantiation which rely heavily on\n // `options[OWNER]` being passed into `create`\n // TODO: clean this up, and remove in future versions\n (0, _emberUtils.setOwner)(props, this.owner);\n }\n\n return this.class.create(props);\n };\n\n return FactoryManager;\n }();\n\n var VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/;\n\n /**\n A registry used to store factory and option information keyed\n by type.\n \n A `Registry` stores the factory and option information needed by a\n `Container` to instantiate and cache objects.\n \n The API for `Registry` is still in flux and should not be considered stable.\n \n @private\n @class Registry\n @since 1.11.0\n */\n\n var Registry = function () {\n function Registry() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n (0, _emberBabel.classCallCheck)(this, Registry);\n\n this.fallback = options.fallback || null;\n this.resolver = options.resolver || null;\n\n if (typeof this.resolver === 'function') {\n deprecateResolverFunction(this);\n }\n\n this.registrations = (0, _emberUtils.dictionary)(options.registrations || null);\n\n this._typeInjections = (0, _emberUtils.dictionary)(null);\n this._injections = (0, _emberUtils.dictionary)(null);\n\n this._localLookupCache = Object.create(null);\n this._normalizeCache = (0, _emberUtils.dictionary)(null);\n this._resolveCache = (0, _emberUtils.dictionary)(null);\n this._failCache = (0, _emberUtils.dictionary)(null);\n\n this._options = (0, _emberUtils.dictionary)(null);\n this._typeOptions = (0, _emberUtils.dictionary)(null);\n }\n\n /**\n A backup registry for resolving registrations when no matches can be found.\n @private\n @property fallback\n @type Registry\n */\n\n /**\n An object that has a `resolve` method that resolves a name.\n @private\n @property resolver\n @type Resolver\n */\n\n /**\n @private\n @property registrations\n @type InheritingDict\n */\n\n /**\n @private\n @property _typeInjections\n @type InheritingDict\n */\n\n /**\n @private\n @property _injections\n @type InheritingDict\n */\n\n /**\n @private\n @property _normalizeCache\n @type InheritingDict\n */\n\n /**\n @private\n @property _resolveCache\n @type InheritingDict\n */\n\n /**\n @private\n @property _options\n @type InheritingDict\n */\n\n /**\n @private\n @property _typeOptions\n @type InheritingDict\n */\n\n /**\n Creates a container based on this registry.\n @private\n @method container\n @param {Object} options\n @return {Container} created container\n */\n\n\n Registry.prototype.container = function container(options) {\n return new Container(this, options);\n };\n\n Registry.prototype.register = function register(fullName, factory) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n (true && !(this.isValidFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.isValidFullName(fullName)));\n (true && !(factory !== undefined) && (0, _emberDebug.assert)('Attempting to register an unknown factory: \\'' + fullName + '\\'', factory !== undefined));\n\n\n var normalizedName = this.normalize(fullName);\n (true && !(!this._resolveCache[normalizedName]) && (0, _emberDebug.assert)('Cannot re-register: \\'' + fullName + '\\', as it has already been resolved.', !this._resolveCache[normalizedName]));\n\n\n delete this._failCache[normalizedName];\n this.registrations[normalizedName] = factory;\n this._options[normalizedName] = options;\n };\n\n Registry.prototype.unregister = function unregister(fullName) {\n (true && !(this.isValidFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.isValidFullName(fullName)));\n\n\n var normalizedName = this.normalize(fullName);\n\n this._localLookupCache = Object.create(null);\n\n delete this.registrations[normalizedName];\n delete this._resolveCache[normalizedName];\n delete this._failCache[normalizedName];\n delete this._options[normalizedName];\n };\n\n Registry.prototype.resolve = function resolve(fullName, options) {\n (true && !(this.isValidFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.isValidFullName(fullName)));\n\n var factory = _resolve(this, this.normalize(fullName), options);\n if (factory === undefined && this.fallback !== null) {\n var _fallback;\n\n factory = (_fallback = this.fallback).resolve.apply(_fallback, arguments);\n }\n return factory;\n };\n\n Registry.prototype.describe = function describe(fullName) {\n if (this.resolver !== null && this.resolver.lookupDescription) {\n return this.resolver.lookupDescription(fullName);\n } else if (this.fallback !== null) {\n return this.fallback.describe(fullName);\n } else {\n return fullName;\n }\n };\n\n Registry.prototype.normalizeFullName = function normalizeFullName(fullName) {\n if (this.resolver !== null && this.resolver.normalize) {\n return this.resolver.normalize(fullName);\n } else if (this.fallback !== null) {\n return this.fallback.normalizeFullName(fullName);\n } else {\n return fullName;\n }\n };\n\n Registry.prototype.normalize = function normalize(fullName) {\n return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this.normalizeFullName(fullName));\n };\n\n Registry.prototype.makeToString = function makeToString(factory, fullName) {\n if (this.resolver !== null && this.resolver.makeToString) {\n return this.resolver.makeToString(factory, fullName);\n } else if (this.fallback !== null) {\n return this.fallback.makeToString(factory, fullName);\n } else {\n return factory.toString();\n }\n };\n\n Registry.prototype.has = function has(fullName, options) {\n if (!this.isValidFullName(fullName)) {\n return false;\n }\n\n var source = options && options.source && this.normalize(options.source);\n\n return _has(this, this.normalize(fullName), source);\n };\n\n Registry.prototype.optionsForType = function optionsForType(type, options) {\n this._typeOptions[type] = options;\n };\n\n Registry.prototype.getOptionsForType = function getOptionsForType(type) {\n var optionsForType = this._typeOptions[type];\n if (optionsForType === undefined && this.fallback !== null) {\n optionsForType = this.fallback.getOptionsForType(type);\n }\n return optionsForType;\n };\n\n Registry.prototype.options = function options(fullName) {\n var _options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var normalizedName = this.normalize(fullName);\n this._options[normalizedName] = _options;\n };\n\n Registry.prototype.getOptions = function getOptions(fullName) {\n var normalizedName = this.normalize(fullName);\n var options = this._options[normalizedName];\n\n if (options === undefined && this.fallback !== null) {\n options = this.fallback.getOptions(fullName);\n }\n return options;\n };\n\n Registry.prototype.getOption = function getOption(fullName, optionName) {\n var options = this._options[fullName];\n\n if (options && options[optionName] !== undefined) {\n return options[optionName];\n }\n\n var type = fullName.split(':')[0];\n options = this._typeOptions[type];\n\n if (options && options[optionName] !== undefined) {\n return options[optionName];\n } else if (this.fallback !== null) {\n return this.fallback.getOption(fullName, optionName);\n }\n };\n\n Registry.prototype.typeInjection = function typeInjection(type, property, fullName) {\n (true && !(this.isValidFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.isValidFullName(fullName)));\n\n\n var fullNameType = fullName.split(':')[0];\n (true && !(fullNameType !== type) && (0, _emberDebug.assert)('Cannot inject a \\'' + fullName + '\\' on other ' + type + '(s).', fullNameType !== type));\n\n\n var injections = this._typeInjections[type] || (this._typeInjections[type] = []);\n\n injections.push({ property: property, fullName: fullName });\n };\n\n Registry.prototype.injection = function injection(fullName, property, injectionName) {\n (true && !(this.isValidFullName(injectionName)) && (0, _emberDebug.assert)('Invalid injectionName, expected: \\'type:name\\' got: ' + injectionName, this.isValidFullName(injectionName)));\n\n\n var normalizedInjectionName = this.normalize(injectionName);\n\n if (fullName.indexOf(':') === -1) {\n return this.typeInjection(fullName, property, normalizedInjectionName);\n }\n\n (true && !(this.isValidFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.isValidFullName(fullName)));\n\n var normalizedName = this.normalize(fullName);\n\n var injections = this._injections[normalizedName] || (this._injections[normalizedName] = []);\n\n injections.push({ property: property, fullName: normalizedInjectionName });\n };\n\n Registry.prototype.knownForType = function knownForType(type) {\n var fallbackKnown = void 0,\n resolverKnown = void 0;\n\n var localKnown = (0, _emberUtils.dictionary)(null);\n var registeredNames = Object.keys(this.registrations);\n for (var index = 0; index < registeredNames.length; index++) {\n var fullName = registeredNames[index];\n var itemType = fullName.split(':')[0];\n\n if (itemType === type) {\n localKnown[fullName] = true;\n }\n }\n\n if (this.fallback !== null) {\n fallbackKnown = this.fallback.knownForType(type);\n }\n\n if (this.resolver !== null && this.resolver.knownForType) {\n resolverKnown = this.resolver.knownForType(type);\n }\n\n return (0, _emberUtils.assign)({}, fallbackKnown, localKnown, resolverKnown);\n };\n\n Registry.prototype.isValidFullName = function isValidFullName(fullName) {\n return VALID_FULL_NAME_REGEXP.test(fullName);\n };\n\n Registry.prototype.getInjections = function getInjections(fullName) {\n var injections = this._injections[fullName] || [];\n if (this.fallback !== null) {\n injections = injections.concat(this.fallback.getInjections(fullName));\n }\n return injections;\n };\n\n Registry.prototype.getTypeInjections = function getTypeInjections(type) {\n var injections = this._typeInjections[type] || [];\n if (this.fallback !== null) {\n injections = injections.concat(this.fallback.getTypeInjections(type));\n }\n return injections;\n };\n\n Registry.prototype.resolverCacheKey = function resolverCacheKey(name, options) {\n if (!_features.EMBER_MODULE_UNIFICATION) {\n return name;\n }\n\n return options && options.source ? options.source + ':' + name : name;\n };\n\n Registry.prototype.expandLocalLookup = function expandLocalLookup(fullName, options) {\n if (this.resolver !== null && this.resolver.expandLocalLookup) {\n (true && !(this.isValidFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.isValidFullName(fullName)));\n (true && !(options && options.source) && (0, _emberDebug.assert)('options.source must be provided to expandLocalLookup', options && options.source));\n (true && !(this.isValidFullName(options.source)) && (0, _emberDebug.assert)('options.source must be a proper full name', this.isValidFullName(options.source)));\n\n\n var normalizedFullName = this.normalize(fullName);\n var normalizedSource = this.normalize(options.source);\n\n return _expandLocalLookup(this, normalizedFullName, normalizedSource);\n } else if (this.fallback !== null) {\n return this.fallback.expandLocalLookup(fullName, options);\n } else {\n return null;\n }\n };\n\n return Registry;\n }();\n\n function deprecateResolverFunction(registry) {\n (true && !(false) && (0, _emberDebug.deprecate)('Passing a `resolver` function into a Registry is deprecated. Please pass in a Resolver object with a `resolve` method.', false, { id: 'ember-application.registry-resolver-as-function', until: '3.0.0', url: 'https://emberjs.com/deprecations/v2.x#toc_registry-resolver-as-function' }));\n\n registry.resolver = { resolve: registry.resolver };\n }\n\n if (true) {\n Registry.prototype.normalizeInjectionsHash = function (hash) {\n var injections = [];\n\n for (var key in hash) {\n if (hash.hasOwnProperty(key)) {\n (true && !(this.isValidFullName(hash[key])) && (0, _emberDebug.assert)('Expected a proper full name, given \\'' + hash[key] + '\\'', this.isValidFullName(hash[key])));\n\n\n injections.push({\n property: key,\n fullName: hash[key]\n });\n }\n }\n\n return injections;\n };\n\n Registry.prototype.validateInjections = function (injections) {\n if (!injections) {\n return;\n }\n\n var fullName = void 0;\n\n for (var i = 0; i < injections.length; i++) {\n fullName = injections[i].fullName;\n\n (true && !(this.has(fullName)) && (0, _emberDebug.assert)('Attempting to inject an unknown injection: \\'' + fullName + '\\'', this.has(fullName)));\n }\n };\n }\n\n function _expandLocalLookup(registry, normalizedName, normalizedSource) {\n var cache = registry._localLookupCache;\n var normalizedNameCache = cache[normalizedName];\n\n if (!normalizedNameCache) {\n normalizedNameCache = cache[normalizedName] = Object.create(null);\n }\n\n var cached = normalizedNameCache[normalizedSource];\n\n if (cached !== undefined) {\n return cached;\n }\n\n var expanded = registry.resolver.expandLocalLookup(normalizedName, normalizedSource);\n\n return normalizedNameCache[normalizedSource] = expanded;\n }\n\n function _resolve(registry, normalizedName, options) {\n if (options && options.source) {\n // when `source` is provided expand normalizedName\n // and source into the full normalizedName\n var expandedNormalizedName = registry.expandLocalLookup(normalizedName, options);\n\n // if expandLocalLookup returns falsey, we do not support local lookup\n if (!_features.EMBER_MODULE_UNIFICATION) {\n if (!expandedNormalizedName) {\n return;\n }\n\n normalizedName = expandedNormalizedName;\n } else if (expandedNormalizedName) {\n // with ember-module-unification, if expandLocalLookup returns something,\n // pass it to the resolve without the source\n normalizedName = expandedNormalizedName;\n options = {};\n }\n }\n\n var cacheKey = registry.resolverCacheKey(normalizedName, options);\n var cached = registry._resolveCache[cacheKey];\n if (cached !== undefined) {\n return cached;\n }\n if (registry._failCache[cacheKey]) {\n return;\n }\n\n var resolved = void 0;\n\n if (registry.resolver) {\n resolved = registry.resolver.resolve(normalizedName, options && options.source);\n }\n\n if (resolved === undefined) {\n resolved = registry.registrations[normalizedName];\n }\n\n if (resolved === undefined) {\n registry._failCache[cacheKey] = true;\n } else {\n registry._resolveCache[cacheKey] = resolved;\n }\n\n return resolved;\n }\n\n function _has(registry, fullName, source) {\n return registry.resolve(fullName, { source: source }) !== undefined;\n }\n\n var privateNames = (0, _emberUtils.dictionary)(null);\n var privateSuffix = ('' + Math.random() + Date.now()).replace('.', '');\n\n function privatize(_ref6) {\n var fullName = _ref6[0];\n\n var name = privateNames[fullName];\n if (name) {\n return name;\n }\n\n var _fullName$split2 = fullName.split(':'),\n type = _fullName$split2[0],\n rawName = _fullName$split2[1];\n\n return privateNames[fullName] = (0, _emberUtils.intern)(type + ':' + rawName + '-' + privateSuffix);\n }\n\n /*\n Public API for the container is still in flux.\n The public API, specified on the application namespace should be considered the stable API.\n // @module container\n @private\n */\n\n exports.Registry = Registry;\n exports.privatize = privatize;\n exports.Container = Container;\n});","enifed(\"dag-map\", [\"exports\"], function (exports) {\n \"use strict\";\n\n /**\n * A topologically ordered map of key/value pairs with a simple API for adding constraints.\n *\n * Edges can forward reference keys that have not been added yet (the forward reference will\n * map the key to undefined).\n */\n var DAG = function () {\n function DAG() {\n this._vertices = new Vertices();\n }\n /**\n * Adds a key/value pair with dependencies on other key/value pairs.\n *\n * @public\n * @param key The key of the vertex to be added.\n * @param value The value of that vertex.\n * @param before A key or array of keys of the vertices that must\n * be visited before this vertex.\n * @param after An string or array of strings with the keys of the\n * vertices that must be after this vertex is visited.\n */\n DAG.prototype.add = function (key, value, before, after) {\n if (!key) throw new Error('argument `key` is required');\n var vertices = this._vertices;\n var v = vertices.add(key);\n v.val = value;\n if (before) {\n if (typeof before === \"string\") {\n vertices.addEdge(v, vertices.add(before));\n } else {\n for (var i = 0; i < before.length; i++) {\n vertices.addEdge(v, vertices.add(before[i]));\n }\n }\n }\n if (after) {\n if (typeof after === \"string\") {\n vertices.addEdge(vertices.add(after), v);\n } else {\n for (var i = 0; i < after.length; i++) {\n vertices.addEdge(vertices.add(after[i]), v);\n }\n }\n }\n };\n /**\n * @deprecated please use add.\n */\n DAG.prototype.addEdges = function (key, value, before, after) {\n this.add(key, value, before, after);\n };\n /**\n * Visits key/value pairs in topological order.\n *\n * @public\n * @param callback The function to be invoked with each key/value.\n */\n DAG.prototype.each = function (callback) {\n this._vertices.walk(callback);\n };\n /**\n * @deprecated please use each.\n */\n DAG.prototype.topsort = function (callback) {\n this.each(callback);\n };\n return DAG;\n }();\n exports.default = DAG;\n\n /** @private */\n var Vertices = function () {\n function Vertices() {\n this.length = 0;\n this.stack = new IntStack();\n this.path = new IntStack();\n this.result = new IntStack();\n }\n Vertices.prototype.add = function (key) {\n if (!key) throw new Error(\"missing key\");\n var l = this.length | 0;\n var vertex;\n for (var i = 0; i < l; i++) {\n vertex = this[i];\n if (vertex.key === key) return vertex;\n }\n this.length = l + 1;\n return this[l] = {\n idx: l,\n key: key,\n val: undefined,\n out: false,\n flag: false,\n length: 0\n };\n };\n Vertices.prototype.addEdge = function (v, w) {\n this.check(v, w.key);\n var l = w.length | 0;\n for (var i = 0; i < l; i++) {\n if (w[i] === v.idx) return;\n }\n w.length = l + 1;\n w[l] = v.idx;\n v.out = true;\n };\n Vertices.prototype.walk = function (cb) {\n this.reset();\n for (var i = 0; i < this.length; i++) {\n var vertex = this[i];\n if (vertex.out) continue;\n this.visit(vertex, \"\");\n }\n this.each(this.result, cb);\n };\n Vertices.prototype.check = function (v, w) {\n if (v.key === w) {\n throw new Error(\"cycle detected: \" + w + \" <- \" + w);\n }\n // quick check\n if (v.length === 0) return;\n // shallow check\n for (var i = 0; i < v.length; i++) {\n var key = this[v[i]].key;\n if (key === w) {\n throw new Error(\"cycle detected: \" + w + \" <- \" + v.key + \" <- \" + w);\n }\n }\n // deep check\n this.reset();\n this.visit(v, w);\n if (this.path.length > 0) {\n var msg_1 = \"cycle detected: \" + w;\n this.each(this.path, function (key) {\n msg_1 += \" <- \" + key;\n });\n throw new Error(msg_1);\n }\n };\n Vertices.prototype.reset = function () {\n this.stack.length = 0;\n this.path.length = 0;\n this.result.length = 0;\n for (var i = 0, l = this.length; i < l; i++) {\n this[i].flag = false;\n }\n };\n Vertices.prototype.visit = function (start, search) {\n var _a = this,\n stack = _a.stack,\n path = _a.path,\n result = _a.result;\n stack.push(start.idx);\n while (stack.length) {\n var index = stack.pop() | 0;\n if (index >= 0) {\n // enter\n var vertex = this[index];\n if (vertex.flag) continue;\n vertex.flag = true;\n path.push(index);\n if (search === vertex.key) break;\n // push exit\n stack.push(~index);\n this.pushIncoming(vertex);\n } else {\n // exit\n path.pop();\n result.push(~index);\n }\n }\n };\n Vertices.prototype.pushIncoming = function (incomming) {\n var stack = this.stack;\n for (var i = incomming.length - 1; i >= 0; i--) {\n var index = incomming[i];\n if (!this[index].flag) {\n stack.push(index);\n }\n }\n };\n Vertices.prototype.each = function (indices, cb) {\n for (var i = 0, l = indices.length; i < l; i++) {\n var vertex = this[indices[i]];\n cb(vertex.key, vertex.val);\n }\n };\n return Vertices;\n }();\n /** @private */\n var IntStack = function () {\n function IntStack() {\n this.length = 0;\n }\n IntStack.prototype.push = function (n) {\n this[this.length++] = n | 0;\n };\n IntStack.prototype.pop = function () {\n return this[--this.length] | 0;\n };\n return IntStack;\n }();\n});","enifed('ember-application/index', ['exports', 'ember-application/system/application', 'ember-application/system/application-instance', 'ember-application/system/resolver', 'ember-application/system/engine', 'ember-application/system/engine-instance', 'ember-application/system/engine-parent', 'ember-application/initializers/dom-templates'], function (exports, _application, _applicationInstance, _resolver, _engine, _engineInstance, _engineParent) {\n 'use strict';\n\n exports.setEngineParent = exports.getEngineParent = exports.EngineInstance = exports.Engine = exports.Resolver = exports.ApplicationInstance = exports.Application = undefined;\n Object.defineProperty(exports, 'Application', {\n enumerable: true,\n get: function () {\n return _application.default;\n }\n });\n Object.defineProperty(exports, 'ApplicationInstance', {\n enumerable: true,\n get: function () {\n return _applicationInstance.default;\n }\n });\n Object.defineProperty(exports, 'Resolver', {\n enumerable: true,\n get: function () {\n return _resolver.default;\n }\n });\n Object.defineProperty(exports, 'Engine', {\n enumerable: true,\n get: function () {\n return _engine.default;\n }\n });\n Object.defineProperty(exports, 'EngineInstance', {\n enumerable: true,\n get: function () {\n return _engineInstance.default;\n }\n });\n Object.defineProperty(exports, 'getEngineParent', {\n enumerable: true,\n get: function () {\n return _engineParent.getEngineParent;\n }\n });\n Object.defineProperty(exports, 'setEngineParent', {\n enumerable: true,\n get: function () {\n return _engineParent.setEngineParent;\n }\n });\n});","enifed('ember-application/initializers/dom-templates', ['require', 'ember-glimmer', 'ember-environment', 'ember-application/system/application'], function (_require2, _emberGlimmer, _emberEnvironment, _application) {\n 'use strict';\n\n var bootstrap = function () {};\n\n _application.default.initializer({\n name: 'domTemplates',\n initialize: function () {\n var bootstrapModuleId = 'ember-template-compiler/system/bootstrap';\n var context = void 0;\n if (_emberEnvironment.environment.hasDOM && (0, _require2.has)(bootstrapModuleId)) {\n bootstrap = (0, _require2.default)(bootstrapModuleId).default;\n context = document;\n }\n\n bootstrap({ context: context, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n }\n });\n});","enifed('ember-application/system/application-instance', ['exports', 'ember-utils', 'ember-metal', 'ember-runtime', 'ember-environment', 'ember-views', 'ember-application/system/engine-instance'], function (exports, _emberUtils, _emberMetal, _emberRuntime, _emberEnvironment, _emberViews, _engineInstance) {\n 'use strict';\n\n /**\n The `ApplicationInstance` encapsulates all of the stateful aspects of a\n running `Application`.\n \n At a high-level, we break application boot into two distinct phases:\n \n * Definition time, where all of the classes, templates, and other\n dependencies are loaded (typically in the browser).\n * Run time, where we begin executing the application once everything\n has loaded.\n \n Definition time can be expensive and only needs to happen once since it is\n an idempotent operation. For example, between test runs and FastBoot\n requests, the application stays the same. It is only the state that we want\n to reset.\n \n That state is what the `ApplicationInstance` manages: it is responsible for\n creating the container that contains all application state, and disposing of\n it once the particular test run or FastBoot request has finished.\n \n @public\n @class ApplicationInstance\n @extends EngineInstance\n */\n\n /**\n @module @ember/application\n */\n\n var ApplicationInstance = _engineInstance.default.extend({\n /**\n The `Application` for which this is an instance.\n @property {Application} application\n @private\n */\n application: null,\n\n /**\n The DOM events for which the event dispatcher should listen.\n By default, the application's `Ember.EventDispatcher` listens\n for a set of standard DOM events, such as `mousedown` and\n `keyup`, and delegates them to your application's `Ember.View`\n instances.\n @private\n @property {Object} customEvents\n */\n customEvents: null,\n\n /**\n The root DOM element of the Application as an element or a\n [jQuery-compatible selector\n string](http://api.jquery.com/category/selectors/).\n @private\n @property {String|DOMElement} rootElement\n */\n rootElement: null,\n\n init: function () {\n this._super.apply(this, arguments);\n\n // Register this instance in the per-instance registry.\n //\n // Why do we need to register the instance in the first place?\n // Because we need a good way for the root route (a.k.a ApplicationRoute)\n // to notify us when it has created the root-most view. That view is then\n // appended to the rootElement, in the case of apps, to the fixture harness\n // in tests, or rendered to a string in the case of FastBoot.\n this.register('-application-instance:main', this, { instantiate: false });\n },\n _bootSync: function (options) {\n if (this._booted) {\n return this;\n }\n\n options = new BootOptions(options);\n\n this.setupRegistry(options);\n\n if (options.rootElement) {\n this.rootElement = options.rootElement;\n } else {\n this.rootElement = this.application.rootElement;\n }\n\n if (options.location) {\n var router = (0, _emberMetal.get)(this, 'router');\n (0, _emberMetal.set)(router, 'location', options.location);\n }\n\n this.application.runInstanceInitializers(this);\n\n if (options.isInteractive) {\n this.setupEventDispatcher();\n }\n\n this._booted = true;\n\n return this;\n },\n setupRegistry: function (options) {\n this.constructor.setupRegistry(this.__registry__, options);\n },\n\n\n router: (0, _emberMetal.computed)(function () {\n return this.lookup('router:main');\n }).readOnly(),\n\n didCreateRootView: function (view) {\n view.appendTo(this.rootElement);\n },\n startRouting: function () {\n var router = (0, _emberMetal.get)(this, 'router');\n router.startRouting();\n this._didSetupRouter = true;\n },\n setupRouter: function () {\n if (this._didSetupRouter) {\n return;\n }\n this._didSetupRouter = true;\n\n var router = (0, _emberMetal.get)(this, 'router');\n router.setupRouter();\n },\n handleURL: function (url) {\n var router = (0, _emberMetal.get)(this, 'router');\n\n this.setupRouter();\n return router.handleURL(url);\n },\n setupEventDispatcher: function () {\n var dispatcher = this.lookup('event_dispatcher:main');\n var applicationCustomEvents = (0, _emberMetal.get)(this.application, 'customEvents');\n var instanceCustomEvents = (0, _emberMetal.get)(this, 'customEvents');\n\n var customEvents = (0, _emberUtils.assign)({}, applicationCustomEvents, instanceCustomEvents);\n dispatcher.setup(customEvents, this.rootElement);\n\n return dispatcher;\n },\n getURL: function () {\n return (0, _emberMetal.get)(this, 'router.url');\n },\n visit: function (url) {\n var _this = this;\n\n this.setupRouter();\n\n var bootOptions = this.__container__.lookup('-environment:main');\n\n var router = (0, _emberMetal.get)(this, 'router');\n\n var handleTransitionResolve = function () {\n if (!bootOptions.options.shouldRender) {\n // No rendering is needed, and routing has completed, simply return.\n return _this;\n } else {\n return new _emberRuntime.RSVP.Promise(function (resolve) {\n // Resolve once rendering is completed. `router.handleURL` returns the transition (as a thennable)\n // which resolves once the transition is completed, but the transition completion only queues up\n // a scheduled revalidation (into the `render` queue) in the Renderer.\n //\n // This uses `run.schedule('afterRender', ....)` to resolve after that rendering has completed.\n _emberMetal.run.schedule('afterRender', null, resolve, _this);\n });\n }\n };\n\n var handleTransitionReject = function (error) {\n if (error.error) {\n throw error.error;\n } else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {\n return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);\n } else if (error.name === 'TransitionAborted') {\n throw new Error(error.message);\n } else {\n throw error;\n }\n };\n\n var location = (0, _emberMetal.get)(router, 'location');\n\n // Keeps the location adapter's internal URL in-sync\n location.setURL(url);\n\n // getURL returns the set url with the rootURL stripped off\n return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);\n }\n });\n\n ApplicationInstance.reopenClass({\n setupRegistry: function (registry) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!options.toEnvironment) {\n options = new BootOptions(options);\n }\n\n registry.register('-environment:main', options.toEnvironment(), { instantiate: false });\n registry.register('service:-document', options.document, { instantiate: false });\n\n this._super(registry, options);\n }\n });\n\n /**\n A list of boot-time configuration options for customizing the behavior of\n an `Ember.ApplicationInstance`.\n \n This is an interface class that exists purely to document the available\n options; you do not need to construct it manually. Simply pass a regular\n JavaScript object containing the desired options into methods that require\n one of these options object:\n \n ```javascript\n MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n ```\n \n Not all combinations of the supported options are valid. See the documentation\n on `Ember.Application#visit` for the supported configurations.\n \n Internal, experimental or otherwise unstable flags are marked as private.\n \n @class BootOptions\n @namespace ApplicationInstance\n @public\n */\n function BootOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n /**\n Provide a specific instance of jQuery. This is useful in conjunction with\n the `document` option, as it allows you to use a copy of `jQuery` that is\n appropriately bound to the foreign `document` (e.g. a jsdom).\n This is highly experimental and support very incomplete at the moment.\n @property jQuery\n @type Object\n @default auto-detected\n @private\n */\n this.jQuery = _emberViews.jQuery; // This default is overridable below\n\n /**\n Interactive mode: whether we need to set up event delegation and invoke\n lifecycle callbacks on Components.\n @property isInteractive\n @type boolean\n @default auto-detected\n @private\n */\n this.isInteractive = _emberEnvironment.environment.hasDOM; // This default is overridable below\n\n /**\n Run in a full browser environment.\n When this flag is set to `false`, it will disable most browser-specific\n and interactive features. Specifically:\n * It does not use `jQuery` to append the root view; the `rootElement`\n (either specified as a subsequent option or on the application itself)\n must already be an `Element` in the given `document` (as opposed to a\n string selector).\n * It does not set up an `EventDispatcher`.\n * It does not run any `Component` lifecycle hooks (such as `didInsertElement`).\n * It sets the `location` option to `\"none\"`. (If you would like to use\n the location adapter specified in the app's router instead, you can also\n specify `{ location: null }` to specifically opt-out.)\n @property isBrowser\n @type boolean\n @default auto-detected\n @public\n */\n if (options.isBrowser !== undefined) {\n this.isBrowser = !!options.isBrowser;\n } else {\n this.isBrowser = _emberEnvironment.environment.hasDOM;\n }\n\n if (!this.isBrowser) {\n this.jQuery = null;\n this.isInteractive = false;\n this.location = 'none';\n }\n\n /**\n Disable rendering completely.\n When this flag is set to `true`, it will disable the entire rendering\n pipeline. Essentially, this puts the app into \"routing-only\" mode. No\n templates will be rendered, and no Components will be created.\n @property shouldRender\n @type boolean\n @default true\n @public\n */\n if (options.shouldRender !== undefined) {\n this.shouldRender = !!options.shouldRender;\n } else {\n this.shouldRender = true;\n }\n\n if (!this.shouldRender) {\n this.jQuery = null;\n this.isInteractive = false;\n }\n\n /**\n If present, render into the given `Document` object instead of the\n global `window.document` object.\n In practice, this is only useful in non-browser environment or in\n non-interactive mode, because Ember's `jQuery` dependency is\n implicitly bound to the current document, causing event delegation\n to not work properly when the app is rendered into a foreign\n document object (such as an iframe's `contentDocument`).\n In non-browser mode, this could be a \"`Document`-like\" object as\n Ember only interact with a small subset of the DOM API in non-\n interactive mode. While the exact requirements have not yet been\n formalized, the `SimpleDOM` library's implementation is known to\n work.\n @property document\n @type Document\n @default the global `document` object\n @public\n */\n if (options.document) {\n this.document = options.document;\n } else {\n this.document = typeof document !== 'undefined' ? document : null;\n }\n\n /**\n If present, overrides the application's `rootElement` property on\n the instance. This is useful for testing environment, where you\n might want to append the root view to a fixture area.\n In non-browser mode, because Ember does not have access to jQuery,\n this options must be specified as a DOM `Element` object instead of\n a selector string.\n See the documentation on `Ember.Applications`'s `rootElement` for\n details.\n @property rootElement\n @type String|Element\n @default null\n @public\n */\n if (options.rootElement) {\n this.rootElement = options.rootElement;\n }\n\n // Set these options last to give the user a chance to override the\n // defaults from the \"combo\" options like `isBrowser` (although in\n // practice, the resulting combination is probably invalid)\n\n /**\n If present, overrides the router's `location` property with this\n value. This is useful for environments where trying to modify the\n URL would be inappropriate.\n @property location\n @type string\n @default null\n @public\n */\n if (options.location !== undefined) {\n this.location = options.location;\n }\n\n if (options.jQuery !== undefined) {\n this.jQuery = options.jQuery;\n }\n\n if (options.isInteractive !== undefined) {\n this.isInteractive = !!options.isInteractive;\n }\n }\n\n BootOptions.prototype.toEnvironment = function () {\n var env = (0, _emberUtils.assign)({}, _emberEnvironment.environment);\n // For compatibility with existing code\n env.hasDOM = this.isBrowser;\n env.isInteractive = this.isInteractive;\n env.options = this;\n return env;\n };\n\n Object.defineProperty(ApplicationInstance.prototype, 'registry', {\n configurable: true,\n enumerable: false,\n get: function () {\n return (0, _emberRuntime.buildFakeRegistryWithDeprecations)(this, 'ApplicationInstance');\n }\n });\n\n exports.default = ApplicationInstance;\n});","enifed('ember-application/system/application', ['exports', 'ember-babel', 'ember-utils', 'ember-environment', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-views', 'ember-routing', 'ember-application/system/application-instance', 'container', 'ember-application/system/engine', 'ember-glimmer', 'ember/features'], function (exports, _emberBabel, _emberUtils, _emberEnvironment, _emberDebug, _emberMetal, _emberRuntime, _emberViews, _emberRouting, _applicationInstance, _container, _engine, _emberGlimmer, _features) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['-bucket-cache:main'], ['-bucket-cache:main']);\n\n var librariesRegistered = false;\n\n /**\n An instance of `Ember.Application` is the starting point for every Ember\n application. It helps to instantiate, initialize and coordinate the many\n objects that make up your app.\n \n Each Ember app has one and only one `Ember.Application` object. In fact, the\n very first thing you should do in your application is create the instance:\n \n ```javascript\n window.App = Ember.Application.create();\n ```\n \n Typically, the application object is the only global variable. All other\n classes in your app should be properties on the `Ember.Application` instance,\n which highlights its first role: a global namespace.\n \n For example, if you define a view class, it might look like this:\n \n ```javascript\n App.MyView = Ember.View.extend();\n ```\n \n By default, calling `Ember.Application.create()` will automatically initialize\n your application by calling the `Ember.Application.initialize()` method. If\n you need to delay initialization, you can call your app's `deferReadiness()`\n method. When you are ready for your app to be initialized, call its\n `advanceReadiness()` method.\n \n You can define a `ready` method on the `Ember.Application` instance, which\n will be run by Ember when the application is initialized.\n \n Because `Ember.Application` inherits from `Ember.Namespace`, any classes\n you create will have useful string representations when calling `toString()`.\n See the `Ember.Namespace` documentation for more information.\n \n While you can think of your `Ember.Application` as a container that holds the\n other classes in your application, there are several other responsibilities\n going on under-the-hood that you may want to understand.\n \n ### Event Delegation\n \n Ember uses a technique called _event delegation_. This allows the framework\n to set up a global, shared event listener instead of requiring each view to\n do it manually. For example, instead of each view registering its own\n `mousedown` listener on its associated element, Ember sets up a `mousedown`\n listener on the `body`.\n \n If a `mousedown` event occurs, Ember will look at the target of the event and\n start walking up the DOM node tree, finding corresponding views and invoking\n their `mouseDown` method as it goes.\n \n `Ember.Application` has a number of default events that it listens for, as\n well as a mapping from lowercase events to camel-cased view method names. For\n example, the `keypress` event causes the `keyPress` method on the view to be\n called, the `dblclick` event causes `doubleClick` to be called, and so on.\n \n If there is a bubbling browser event that Ember does not listen for by\n default, you can specify custom events and their corresponding view method\n names by setting the application's `customEvents` property:\n \n ```javascript\n let App = Ember.Application.create({\n customEvents: {\n // add support for the paste event\n paste: 'paste'\n }\n });\n ```\n \n To prevent Ember from setting up a listener for a default event,\n specify the event name with a `null` value in the `customEvents`\n property:\n \n ```javascript\n let App = Ember.Application.create({\n customEvents: {\n // prevent listeners for mouseenter/mouseleave events\n mouseenter: null,\n mouseleave: null\n }\n });\n ```\n \n By default, the application sets up these event listeners on the document\n body. However, in cases where you are embedding an Ember application inside\n an existing page, you may want it to set up the listeners on an element\n inside the body.\n \n For example, if only events inside a DOM element with the ID of `ember-app`\n should be delegated, set your application's `rootElement` property:\n \n ```javascript\n let App = Ember.Application.create({\n rootElement: '#ember-app'\n });\n ```\n \n The `rootElement` can be either a DOM element or a jQuery-compatible selector\n string. Note that *views appended to the DOM outside the root element will\n not receive events.* If you specify a custom root element, make sure you only\n append views inside it!\n \n To learn more about the events Ember components use, see\n [components/handling-events](https://guides.emberjs.com/v2.6.0/components/handling-events/#toc_event-names).\n \n ### Initializers\n \n Libraries on top of Ember can add initializers, like so:\n \n ```javascript\n Ember.Application.initializer({\n name: 'api-adapter',\n \n initialize: function(application) {\n application.register('api-adapter:main', ApiAdapter);\n }\n });\n ```\n \n Initializers provide an opportunity to access the internal registry, which\n organizes the different components of an Ember application. Additionally\n they provide a chance to access the instantiated application. Beyond\n being used for libraries, initializers are also a great way to organize\n dependency injection or setup in your own application.\n \n ### Routing\n \n In addition to creating your application's router, `Ember.Application` is\n also responsible for telling the router when to start routing. Transitions\n between routes can be logged with the `LOG_TRANSITIONS` flag, and more\n detailed intra-transition logging can be logged with\n the `LOG_TRANSITIONS_INTERNAL` flag:\n \n ```javascript\n let App = Ember.Application.create({\n LOG_TRANSITIONS: true, // basic logging of successful transitions\n LOG_TRANSITIONS_INTERNAL: true // detailed logging of all routing steps\n });\n ```\n \n By default, the router will begin trying to translate the current URL into\n application state once the browser emits the `DOMContentReady` event. If you\n need to defer routing, you can call the application's `deferReadiness()`\n method. Once routing can begin, call the `advanceReadiness()` method.\n \n If there is any setup required before routing begins, you can implement a\n `ready()` method on your app that will be invoked immediately before routing\n begins.\n \n @class Application\n @extends Engine\n @uses RegistryProxyMixin\n @public\n */\n\n var Application = _engine.default.extend({\n /**\n The root DOM element of the Application. This can be specified as an\n element or a\n [jQuery-compatible selector string](http://api.jquery.com/category/selectors/).\n This is the element that will be passed to the Application's,\n `eventDispatcher`, which sets up the listeners for event delegation. Every\n view in your application should be a child of the element you specify here.\n @property rootElement\n @type DOMElement\n @default 'body'\n @public\n */\n rootElement: 'body',\n\n /**\n The `Ember.EventDispatcher` responsible for delegating events to this\n application's views.\n The event dispatcher is created by the application at initialization time\n and sets up event listeners on the DOM element described by the\n application's `rootElement` property.\n See the documentation for `Ember.EventDispatcher` for more information.\n @property eventDispatcher\n @type Ember.EventDispatcher\n @default null\n @public\n */\n eventDispatcher: null,\n\n /**\n The DOM events for which the event dispatcher should listen.\n By default, the application's `Ember.EventDispatcher` listens\n for a set of standard DOM events, such as `mousedown` and\n `keyup`, and delegates them to your application's `Ember.View`\n instances.\n If you would like additional bubbling events to be delegated to your\n views, set your `Ember.Application`'s `customEvents` property\n to a hash containing the DOM event name as the key and the\n corresponding view method name as the value. Setting an event to\n a value of `null` will prevent a default event listener from being\n added for that event.\n To add new events to be listened to:\n ```javascript\n let App = Ember.Application.create({\n customEvents: {\n // add support for the paste event\n paste: 'paste'\n }\n });\n ```\n To prevent default events from being listened to:\n ```javascript\n let App = Ember.Application.create({\n customEvents: {\n // remove support for mouseenter / mouseleave events\n mouseenter: null,\n mouseleave: null\n }\n });\n ```\n @property customEvents\n @type Object\n @default null\n @public\n */\n customEvents: null,\n\n /**\n Whether the application should automatically start routing and render\n templates to the `rootElement` on DOM ready. While default by true,\n other environments such as FastBoot or a testing harness can set this\n property to `false` and control the precise timing and behavior of the boot\n process.\n @property autoboot\n @type Boolean\n @default true\n @private\n */\n autoboot: true,\n\n /**\n Whether the application should be configured for the legacy \"globals mode\".\n Under this mode, the Application object serves as a global namespace for all\n classes.\n ```javascript\n let App = Ember.Application.create({\n ...\n });\n App.Router.reopen({\n location: 'none'\n });\n App.Router.map({\n ...\n });\n App.MyComponent = Ember.Component.extend({\n ...\n });\n ```\n This flag also exposes other internal APIs that assumes the existence of\n a special \"default instance\", like `App.__container__.lookup(...)`.\n This option is currently not configurable, its value is derived from\n the `autoboot` flag – disabling `autoboot` also implies opting-out of\n globals mode support, although they are ultimately orthogonal concerns.\n Some of the global modes features are already deprecated in 1.x. The\n existence of this flag is to untangle the globals mode code paths from\n the autoboot code paths, so that these legacy features can be reviewed\n for deprecation/removal separately.\n Forcing the (autoboot=true, _globalsMode=false) here and running the tests\n would reveal all the places where we are still relying on these legacy\n behavior internally (mostly just tests).\n @property _globalsMode\n @type Boolean\n @default true\n @private\n */\n _globalsMode: true,\n\n init: function (options) {\n this._super.apply(this, arguments);\n\n if (!this.$) {\n this.$ = _emberViews.jQuery;\n }\n\n registerLibraries();\n\n if (true) {\n logLibraryVersions();\n }\n\n // Start off the number of deferrals at 1. This will be decremented by\n // the Application's own `boot` method.\n this._readinessDeferrals = 1;\n this._booted = false;\n\n this.autoboot = this._globalsMode = !!this.autoboot;\n\n if (this._globalsMode) {\n this._prepareForGlobalsMode();\n }\n\n if (this.autoboot) {\n this.waitForDOMReady();\n }\n },\n buildInstance: function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n options.base = this;\n options.application = this;\n return _applicationInstance.default.create(options);\n },\n _prepareForGlobalsMode: function () {\n // Create subclass of Ember.Router for this Application instance.\n // This is to ensure that someone reopening `App.Router` does not\n // tamper with the default `Ember.Router`.\n this.Router = (this.Router || _emberRouting.Router).extend();\n\n this._buildDeprecatedInstance();\n },\n _buildDeprecatedInstance: function () {\n // Build a default instance\n var instance = this.buildInstance();\n\n // Legacy support for App.__container__ and other global methods\n // on App that rely on a single, default instance.\n this.__deprecatedInstance__ = instance;\n this.__container__ = instance.__container__;\n },\n waitForDOMReady: function () {\n if (!this.$ || this.$.isReady) {\n _emberMetal.run.schedule('actions', this, 'domReady');\n } else {\n this.$().ready(_emberMetal.run.bind(this, 'domReady'));\n }\n },\n domReady: function () {\n if (this.isDestroyed) {\n return;\n }\n\n this._bootSync();\n\n // Continues to `didBecomeReady`\n },\n deferReadiness: function () {\n (true && !(this instanceof Application) && (0, _emberDebug.assert)('You must call deferReadiness on an instance of Ember.Application', this instanceof Application));\n (true && !(this._readinessDeferrals > 0) && (0, _emberDebug.assert)('You cannot defer readiness since the `ready()` hook has already been called.', this._readinessDeferrals > 0));\n\n this._readinessDeferrals++;\n },\n advanceReadiness: function () {\n (true && !(this instanceof Application) && (0, _emberDebug.assert)('You must call advanceReadiness on an instance of Ember.Application', this instanceof Application));\n\n this._readinessDeferrals--;\n\n if (this._readinessDeferrals === 0) {\n _emberMetal.run.once(this, this.didBecomeReady);\n }\n },\n boot: function () {\n if (this._bootPromise) {\n return this._bootPromise;\n }\n\n try {\n this._bootSync();\n } catch (_) {\n // Ignore th error: in the asynchronous boot path, the error is already reflected\n // in the promise rejection\n }\n\n return this._bootPromise;\n },\n _bootSync: function () {\n if (this._booted) {\n return;\n }\n\n // Even though this returns synchronously, we still need to make sure the\n // boot promise exists for book-keeping purposes: if anything went wrong in\n // the boot process, we need to store the error as a rejection on the boot\n // promise so that a future caller of `boot()` can tell what failed.\n var defer = this._bootResolver = _emberRuntime.RSVP.defer();\n this._bootPromise = defer.promise;\n\n try {\n this.runInitializers();\n (0, _emberRuntime.runLoadHooks)('application', this);\n this.advanceReadiness();\n // Continues to `didBecomeReady`\n } catch (error) {\n // For the asynchronous boot path\n defer.reject(error);\n\n // For the synchronous boot path\n throw error;\n }\n },\n reset: function () {\n (true && !(this._globalsMode && this.autoboot) && (0, _emberDebug.assert)('Calling reset() on instances of `Ember.Application` is not\\n supported when globals mode is disabled; call `visit()` to\\n create new `Ember.ApplicationInstance`s and dispose them\\n via their `destroy()` method instead.', this._globalsMode && this.autoboot));\n\n\n var instance = this.__deprecatedInstance__;\n\n this._readinessDeferrals = 1;\n this._bootPromise = null;\n this._bootResolver = null;\n this._booted = false;\n\n function handleReset() {\n (0, _emberMetal.run)(instance, 'destroy');\n this._buildDeprecatedInstance();\n _emberMetal.run.schedule('actions', this, '_bootSync');\n }\n\n _emberMetal.run.join(this, handleReset);\n },\n didBecomeReady: function () {\n try {\n // TODO: Is this still needed for _globalsMode = false?\n if (!(0, _emberDebug.isTesting)()) {\n // Eagerly name all classes that are already loaded\n _emberRuntime.Namespace.processAll();\n (0, _emberRuntime.setNamespaceSearchDisabled)(true);\n }\n\n // See documentation on `_autoboot()` for details\n if (this.autoboot) {\n var instance = void 0;\n\n if (this._globalsMode) {\n // If we already have the __deprecatedInstance__ lying around, boot it to\n // avoid unnecessary work\n instance = this.__deprecatedInstance__;\n } else {\n // Otherwise, build an instance and boot it. This is currently unreachable,\n // because we forced _globalsMode to === autoboot; but having this branch\n // allows us to locally toggle that flag for weeding out legacy globals mode\n // dependencies independently\n instance = this.buildInstance();\n }\n\n instance._bootSync();\n\n // TODO: App.ready() is not called when autoboot is disabled, is this correct?\n this.ready();\n\n instance.startRouting();\n }\n\n // For the asynchronous boot path\n this._bootResolver.resolve(this);\n\n // For the synchronous boot path\n this._booted = true;\n } catch (error) {\n // For the asynchronous boot path\n this._bootResolver.reject(error);\n\n // For the synchronous boot path\n throw error;\n }\n },\n ready: function () {\n return this;\n },\n willDestroy: function () {\n this._super.apply(this, arguments);\n (0, _emberRuntime.setNamespaceSearchDisabled)(false);\n this._booted = false;\n this._bootPromise = null;\n this._bootResolver = null;\n\n if (_emberRuntime._loaded.application === this) {\n _emberRuntime._loaded.application = undefined;\n }\n\n if (this._globalsMode && this.__deprecatedInstance__) {\n this.__deprecatedInstance__.destroy();\n }\n },\n visit: function (url, options) {\n var _this = this;\n\n return this.boot().then(function () {\n var instance = _this.buildInstance();\n\n return instance.boot(options).then(function () {\n return instance.visit(url);\n }).catch(function (error) {\n (0, _emberMetal.run)(instance, 'destroy');\n throw error;\n });\n });\n }\n });\n\n Object.defineProperty(Application.prototype, 'registry', {\n configurable: true,\n enumerable: false,\n get: function () {\n return (0, _emberRuntime.buildFakeRegistryWithDeprecations)(this, 'Application');\n }\n });\n\n Application.reopenClass({\n buildRegistry: function (application) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var registry = this._super.apply(this, arguments);\n\n commonSetupRegistry(registry);\n\n (0, _emberGlimmer.setupApplicationRegistry)(registry);\n\n return registry;\n }\n });\n\n function commonSetupRegistry(registry) {\n registry.register('router:main', _emberRouting.Router.extend());\n registry.register('-view-registry:main', {\n create: function () {\n return (0, _emberUtils.dictionary)(null);\n }\n });\n\n registry.register('route:basic', _emberRouting.Route);\n registry.register('event_dispatcher:main', _emberViews.EventDispatcher);\n\n registry.injection('router:main', 'namespace', 'application:main');\n\n registry.register('location:auto', _emberRouting.AutoLocation);\n registry.register('location:hash', _emberRouting.HashLocation);\n registry.register('location:history', _emberRouting.HistoryLocation);\n registry.register('location:none', _emberRouting.NoneLocation);\n\n registry.register((0, _container.privatize)(_templateObject), _emberRouting.BucketCache);\n\n if (_features.EMBER_ROUTING_ROUTER_SERVICE) {\n registry.register('service:router', _emberRouting.RouterService);\n registry.injection('service:router', '_router', 'router:main');\n }\n }\n\n function registerLibraries() {\n if (!librariesRegistered) {\n librariesRegistered = true;\n\n if (_emberEnvironment.environment.hasDOM && typeof _emberViews.jQuery === 'function') {\n _emberMetal.libraries.registerCoreLibrary('jQuery', (0, _emberViews.jQuery)().jquery);\n }\n }\n }\n\n function logLibraryVersions() {\n if (true) {\n if (_emberEnvironment.ENV.LOG_VERSION) {\n // we only need to see this once per Application#init\n _emberEnvironment.ENV.LOG_VERSION = false;\n var libs = _emberMetal.libraries._registry;\n\n var nameLengths = libs.map(function (item) {\n return (0, _emberMetal.get)(item, 'name.length');\n });\n\n var maxNameLength = Math.max.apply(this, nameLengths);\n\n (0, _emberDebug.debug)('-------------------------------');\n for (var i = 0; i < libs.length; i++) {\n var lib = libs[i];\n var spaces = new Array(maxNameLength - lib.name.length + 1).join(' ');\n (0, _emberDebug.debug)([lib.name, spaces, ' : ', lib.version].join(''));\n }\n (0, _emberDebug.debug)('-------------------------------');\n }\n }\n }\n\n exports.default = Application;\n});","enifed('ember-application/system/engine-instance', ['exports', 'ember-babel', 'ember-utils', 'ember-runtime', 'ember-debug', 'ember-metal', 'container', 'ember-application/system/engine-parent'], function (exports, _emberBabel, _emberUtils, _emberRuntime, _emberDebug, _emberMetal, _container, _engineParent) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['-bucket-cache:main'], ['-bucket-cache:main']);\n\n /**\n The `EngineInstance` encapsulates all of the stateful aspects of a\n running `Engine`.\n \n @public\n @class EngineInstance\n @extends EmberObject\n @uses RegistryProxyMixin\n @uses ContainerProxyMixin\n */\n\n var EngineInstance = _emberRuntime.Object.extend(_emberRuntime.RegistryProxyMixin, _emberRuntime.ContainerProxyMixin, {\n /**\n The base `Engine` for which this is an instance.\n @property {Ember.Engine} engine\n @private\n */\n base: null,\n\n init: function () {\n this._super.apply(this, arguments);\n\n (0, _emberUtils.guidFor)(this);\n\n var base = this.base;\n\n if (!base) {\n base = this.application;\n this.base = base;\n }\n\n // Create a per-instance registry that will use the application's registry\n // as a fallback for resolving registrations.\n var registry = this.__registry__ = new _container.Registry({\n fallback: base.__registry__\n });\n\n // Create a per-instance container from the instance's registry\n this.__container__ = registry.container({ owner: this });\n\n this._booted = false;\n },\n boot: function (options) {\n var _this = this;\n\n if (this._bootPromise) {\n return this._bootPromise;\n }\n\n this._bootPromise = new _emberRuntime.RSVP.Promise(function (resolve) {\n return resolve(_this._bootSync(options));\n });\n\n return this._bootPromise;\n },\n _bootSync: function (options) {\n if (this._booted) {\n return this;\n }\n\n (true && !((0, _engineParent.getEngineParent)(this)) && (0, _emberDebug.assert)('An engine instance\\'s parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.', (0, _engineParent.getEngineParent)(this)));\n\n\n this.cloneParentDependencies();\n\n this.setupRegistry(options);\n\n this.base.runInstanceInitializers(this);\n\n this._booted = true;\n\n return this;\n },\n setupRegistry: function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.__container__.lookup('-environment:main');\n\n this.constructor.setupRegistry(this.__registry__, options);\n },\n unregister: function (fullName) {\n this.__container__.reset(fullName);\n this._super.apply(this, arguments);\n },\n buildChildEngineInstance: function (name) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var Engine = this.lookup('engine:' + name);\n\n if (!Engine) {\n throw new _emberDebug.Error('You attempted to mount the engine \\'' + name + '\\', but it is not registered with its parent.');\n }\n\n var engineInstance = Engine.buildInstance(options);\n\n (0, _engineParent.setEngineParent)(engineInstance, this);\n\n return engineInstance;\n },\n cloneParentDependencies: function () {\n var _this2 = this;\n\n var parent = (0, _engineParent.getEngineParent)(this);\n\n var registrations = ['route:basic', 'service:-routing', 'service:-glimmer-environment'];\n\n registrations.forEach(function (key) {\n return _this2.register(key, parent.resolveRegistration(key));\n });\n\n var env = parent.lookup('-environment:main');\n this.register('-environment:main', env, { instantiate: false });\n\n var singletons = ['router:main', (0, _container.privatize)(_templateObject), '-view-registry:main', 'renderer:-' + (env.isInteractive ? 'dom' : 'inert'), 'service:-document'];\n\n if (env.isInteractive) {\n singletons.push('event_dispatcher:main');\n }\n\n singletons.forEach(function (key) {\n return _this2.register(key, parent.lookup(key), { instantiate: false });\n });\n\n this.inject('view', '_environment', '-environment:main');\n this.inject('route', '_environment', '-environment:main');\n }\n });\n\n EngineInstance.reopenClass({\n setupRegistry: function (registry, options) {\n // when no options/environment is present, do nothing\n if (!options) {\n return;\n }\n\n registry.injection('view', '_environment', '-environment:main');\n registry.injection('route', '_environment', '-environment:main');\n\n if (options.isInteractive) {\n registry.injection('view', 'renderer', 'renderer:-dom');\n registry.injection('component', 'renderer', 'renderer:-dom');\n } else {\n registry.injection('view', 'renderer', 'renderer:-inert');\n registry.injection('component', 'renderer', 'renderer:-inert');\n }\n }\n });\n\n exports.default = EngineInstance;\n});","enifed('ember-application/system/engine-parent', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n 'use strict';\n\n exports.ENGINE_PARENT = undefined;\n exports.getEngineParent = getEngineParent;\n exports.setEngineParent = setEngineParent;\n var ENGINE_PARENT = exports.ENGINE_PARENT = (0, _emberUtils.symbol)('ENGINE_PARENT');\n\n /**\n `getEngineParent` retrieves an engine instance's parent instance.\n \n @method getEngineParent\n @param {EngineInstance} engine An engine instance.\n @return {EngineInstance} The parent engine instance.\n @for @ember/engine\n @static\n @private\n */\n function getEngineParent(engine) {\n return engine[ENGINE_PARENT];\n }\n\n /**\n `setEngineParent` sets an engine instance's parent instance.\n \n @method setEngineParent\n @param {EngineInstance} engine An engine instance.\n @param {EngineInstance} parent The parent engine instance.\n @private\n */\n function setEngineParent(engine, parent) {\n engine[ENGINE_PARENT] = parent;\n }\n});","enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-utils', 'ember-runtime', 'container', 'dag-map', 'ember-debug', 'ember-metal', 'ember-application/system/resolver', 'ember-application/system/engine-instance', 'ember-routing', 'ember-extension-support', 'ember-views', 'ember-glimmer'], function (exports, _emberBabel, _emberUtils, _emberRuntime, _container, _dagMap, _emberDebug, _emberMetal, _resolver, _engineInstance, _emberRouting, _emberExtensionSupport, _emberViews, _emberGlimmer) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['-bucket-cache:main'], ['-bucket-cache:main']);\n\n function props(obj) {\n var properties = [];\n\n for (var key in obj) {\n properties.push(key);\n }\n\n return properties;\n }\n\n /**\n The `Engine` class contains core functionality for both applications and\n engines.\n \n Each engine manages a registry that's used for dependency injection and\n exposed through `RegistryProxy`.\n \n Engines also manage initializers and instance initializers.\n \n Engines can spawn `EngineInstance` instances via `buildInstance()`.\n \n @class Engine\n @extends Ember.Namespace\n @uses RegistryProxy\n @public\n */\n var Engine = _emberRuntime.Namespace.extend(_emberRuntime.RegistryProxyMixin, {\n init: function () {\n this._super.apply(this, arguments);\n\n this.buildRegistry();\n },\n\n\n /**\n A private flag indicating whether an engine's initializers have run yet.\n @private\n @property _initializersRan\n */\n _initializersRan: false,\n\n ensureInitializers: function () {\n if (!this._initializersRan) {\n this.runInitializers();\n this._initializersRan = true;\n }\n },\n buildInstance: function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n this.ensureInitializers();\n options.base = this;\n return _engineInstance.default.create(options);\n },\n buildRegistry: function () {\n var registry = this.__registry__ = this.constructor.buildRegistry(this);\n\n return registry;\n },\n initializer: function (options) {\n this.constructor.initializer(options);\n },\n instanceInitializer: function (options) {\n this.constructor.instanceInitializer(options);\n },\n runInitializers: function () {\n var _this = this;\n\n this._runInitializer('initializers', function (name, initializer) {\n (true && !(!!initializer) && (0, _emberDebug.assert)('No application initializer named \\'' + name + '\\'', !!initializer));\n\n if (initializer.initialize.length === 2) {\n (true && !(false) && (0, _emberDebug.deprecate)('The `initialize` method for Application initializer \\'' + name + '\\' should take only one argument - `App`, an instance of an `Application`.', false, {\n id: 'ember-application.app-initializer-initialize-arguments',\n until: '3.0.0',\n url: 'https://emberjs.com/deprecations/v2.x/#toc_initializer-arity'\n }));\n\n\n initializer.initialize(_this.__registry__, _this);\n } else {\n initializer.initialize(_this);\n }\n });\n },\n runInstanceInitializers: function (instance) {\n this._runInitializer('instanceInitializers', function (name, initializer) {\n (true && !(!!initializer) && (0, _emberDebug.assert)('No instance initializer named \\'' + name + '\\'', !!initializer));\n\n initializer.initialize(instance);\n });\n },\n _runInitializer: function (bucketName, cb) {\n var initializersByName = (0, _emberMetal.get)(this.constructor, bucketName);\n var initializers = props(initializersByName);\n var graph = new _dagMap.default();\n var initializer = void 0;\n\n for (var i = 0; i < initializers.length; i++) {\n initializer = initializersByName[initializers[i]];\n graph.add(initializer.name, initializer, initializer.before, initializer.after);\n }\n\n graph.topsort(cb);\n }\n });\n\n Engine.reopenClass({\n initializers: Object.create(null),\n instanceInitializers: Object.create(null),\n\n /**\n The goal of initializers should be to register dependencies and injections.\n This phase runs once. Because these initializers may load code, they are\n allowed to defer application readiness and advance it. If you need to access\n the container or store you should use an InstanceInitializer that will be run\n after all initializers and therefore after all code is loaded and the app is\n ready.\n Initializer receives an object which has the following attributes:\n `name`, `before`, `after`, `initialize`. The only required attribute is\n `initialize`, all others are optional.\n * `name` allows you to specify under which name the initializer is registered.\n This must be a unique name, as trying to register two initializers with the\n same name will result in an error.\n ```app/initializer/named-initializer.js\n import { debug } from '@ember/debug';\n export function initialize() {\n debug('Running namedInitializer!');\n }\n export default {\n name: 'named-initializer',\n initialize\n };\n ```\n * `before` and `after` are used to ensure that this initializer is ran prior\n or after the one identified by the value. This value can be a single string\n or an array of strings, referencing the `name` of other initializers.\n An example of ordering initializers, we create an initializer named `first`:\n ```app/initializer/first.js\n import { debug } from '@ember/debug';\n export function initialize() {\n debug('First initializer!');\n }\n export default {\n name: 'first',\n initialize\n };\n ```\n ```bash\n // DEBUG: First initializer!\n ```\n We add another initializer named `second`, specifying that it should run\n after the initializer named `first`:\n ```app/initializer/second.js\n import { debug } from '@ember/debug';\n export function initialize() {\n debug('Second initializer!');\n }\n export default {\n name: 'second',\n after: 'first',\n initialize\n };\n ```\n ```\n // DEBUG: First initializer!\n // DEBUG: Second initializer!\n ```\n Afterwards we add a further initializer named `pre`, this time specifying\n that it should run before the initializer named `first`:\n ```app/initializer/pre.js\n import { debug } from '@ember/debug';\n export function initialize() {\n debug('Pre initializer!');\n }\n export default {\n name: 'pre',\n before: 'first',\n initialize\n };\n ```\n ```bash\n // DEBUG: Pre initializer!\n // DEBUG: First initializer!\n // DEBUG: Second initializer!\n ```\n Finally we add an initializer named `post`, specifying it should run after\n both the `first` and the `second` initializers:\n ```app/initializer/post.js\n import { debug } from '@ember/debug';\n export function initialize() {\n debug('Post initializer!');\n }\n export default {\n name: 'post',\n after: ['first', 'second'],\n initialize\n };\n ```\n ```bash\n // DEBUG: Pre initializer!\n // DEBUG: First initializer!\n // DEBUG: Second initializer!\n // DEBUG: Post initializer!\n ```\n * `initialize` is a callback function that receives one argument,\n `application`, on which you can operate.\n Example of using `application` to register an adapter:\n ```app/initializer/api-adapter.js\n import ApiAdapter from '../utils/api-adapter';\n export function initialize(application) {\n application.register('api-adapter:main', ApiAdapter);\n }\n export default {\n name: 'post',\n after: ['first', 'second'],\n initialize\n };\n ```\n @method initializer\n @param initializer {Object}\n @public\n */\n\n initializer: buildInitializerMethod('initializers', 'initializer'),\n\n /**\n Instance initializers run after all initializers have run. Because\n instance initializers run after the app is fully set up. We have access\n to the store, container, and other items. However, these initializers run\n after code has loaded and are not allowed to defer readiness.\n Instance initializer receives an object which has the following attributes:\n `name`, `before`, `after`, `initialize`. The only required attribute is\n `initialize`, all others are optional.\n * `name` allows you to specify under which name the instanceInitializer is\n registered. This must be a unique name, as trying to register two\n instanceInitializer with the same name will result in an error.\n ```app/initializer/named-instance-initializer.js\n import { debug } from '@ember/debug';\n export function initialize() {\n debug('Running named-instance-initializer!');\n }\n export default {\n name: 'named-instance-initializer',\n initialize\n };\n ```\n * `before` and `after` are used to ensure that this initializer is ran prior\n or after the one identified by the value. This value can be a single string\n or an array of strings, referencing the `name` of other initializers.\n * See Ember.Application.initializer for discussion on the usage of before\n and after.\n Example instanceInitializer to preload data into the store.\n ```app/initializer/preload-data.js\n import $ from 'jquery';\n export function initialize(application) {\n var userConfig, userConfigEncoded, store;\n // We have a HTML escaped JSON representation of the user's basic\n // configuration generated server side and stored in the DOM of the main\n // index.html file. This allows the app to have access to a set of data\n // without making any additional remote calls. Good for basic data that is\n // needed for immediate rendering of the page. Keep in mind, this data,\n // like all local models and data can be manipulated by the user, so it\n // should not be relied upon for security or authorization.\n // Grab the encoded data from the meta tag\n userConfigEncoded = $('head meta[name=app-user-config]').attr('content');\n // Unescape the text, then parse the resulting JSON into a real object\n userConfig = JSON.parse(unescape(userConfigEncoded));\n // Lookup the store\n store = application.lookup('service:store');\n // Push the encoded JSON into the store\n store.pushPayload(userConfig);\n }\n export default {\n name: 'named-instance-initializer',\n initialize\n };\n ```\n @method instanceInitializer\n @param instanceInitializer\n @public\n */\n instanceInitializer: buildInitializerMethod('instanceInitializers', 'instance initializer'),\n\n buildRegistry: function (namespace) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var registry = new _container.Registry({\n resolver: resolverFor(namespace)\n });\n\n registry.set = _emberMetal.set;\n\n registry.register('application:main', namespace, { instantiate: false });\n\n commonSetupRegistry(registry);\n (0, _emberGlimmer.setupEngineRegistry)(registry);\n\n return registry;\n },\n\n\n /**\n Set this to provide an alternate class to `Ember.DefaultResolver`\n @deprecated Use 'Resolver' instead\n @property resolver\n @public\n */\n resolver: null,\n\n /**\n Set this to provide an alternate class to `Ember.DefaultResolver`\n @property resolver\n @public\n */\n Resolver: null\n });\n\n /**\n This function defines the default lookup rules for container lookups:\n \n * templates are looked up on `Ember.TEMPLATES`\n * other names are looked up on the application after classifying the name.\n For example, `controller:post` looks up `App.PostController` by default.\n * if the default lookup fails, look for registered classes on the container\n \n This allows the application to register default injections in the container\n that could be overridden by the normal naming convention.\n \n @private\n @method resolverFor\n @param {Ember.Namespace} namespace the namespace to look for classes\n @return {*} the resolved value for a given lookup\n */\n function resolverFor(namespace) {\n var ResolverClass = namespace.get('Resolver') || _resolver.default;\n\n return ResolverClass.create({\n namespace: namespace\n });\n }\n\n function buildInitializerMethod(bucketName, humanName) {\n return function (initializer) {\n // If this is the first initializer being added to a subclass, we are going to reopen the class\n // to make sure we have a new `initializers` object, which extends from the parent class' using\n // prototypal inheritance. Without this, attempting to add initializers to the subclass would\n // pollute the parent class as well as other subclasses.\n if (this.superclass[bucketName] !== undefined && this.superclass[bucketName] === this[bucketName]) {\n var attrs = {};\n attrs[bucketName] = Object.create(this[bucketName]);\n this.reopenClass(attrs);\n }\n\n (true && !(!this[bucketName][initializer.name]) && (0, _emberDebug.assert)('The ' + humanName + ' \\'' + initializer.name + '\\' has already been registered', !this[bucketName][initializer.name]));\n (true && !((0, _emberUtils.canInvoke)(initializer, 'initialize')) && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without an initialize function', (0, _emberUtils.canInvoke)(initializer, 'initialize')));\n (true && !(initializer.name !== undefined) && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without a name property', initializer.name !== undefined));\n\n\n this[bucketName][initializer.name] = initializer;\n };\n }\n\n function commonSetupRegistry(registry) {\n registry.optionsForType('component', { singleton: false });\n registry.optionsForType('view', { singleton: false });\n\n registry.register('controller:basic', _emberRuntime.Controller, { instantiate: false });\n\n registry.injection('view', '_viewRegistry', '-view-registry:main');\n registry.injection('renderer', '_viewRegistry', '-view-registry:main');\n registry.injection('event_dispatcher:main', '_viewRegistry', '-view-registry:main');\n\n registry.injection('route', '_topLevelViewTemplate', 'template:-outlet');\n\n registry.injection('view:-outlet', 'namespace', 'application:main');\n\n registry.injection('controller', 'target', 'router:main');\n registry.injection('controller', 'namespace', 'application:main');\n\n registry.injection('router', '_bucketCache', (0, _container.privatize)(_templateObject));\n registry.injection('route', '_bucketCache', (0, _container.privatize)(_templateObject));\n\n registry.injection('route', 'router', 'router:main');\n\n // Register the routing service...\n registry.register('service:-routing', _emberRouting.RoutingService);\n // Then inject the app router into it\n registry.injection('service:-routing', 'router', 'router:main');\n\n // DEBUGGING\n registry.register('resolver-for-debugging:main', registry.resolver, { instantiate: false });\n registry.injection('container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n registry.injection('data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main');\n // Custom resolver authors may want to register their own ContainerDebugAdapter with this key\n\n registry.register('container-debug-adapter:main', _emberExtensionSupport.ContainerDebugAdapter);\n\n registry.register('component-lookup:main', _emberViews.ComponentLookup);\n }\n\n exports.default = Engine;\n});","enifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-metal', 'ember-debug', 'ember-runtime', 'ember-application/utils/validate-type', 'ember-glimmer'], function (exports, _emberUtils, _emberMetal, _emberDebug, _emberRuntime, _validateType, _emberGlimmer) {\n 'use strict';\n\n exports.Resolver = undefined;\n /**\n @module @ember/application\n */\n\n var Resolver = exports.Resolver = _emberRuntime.Object.extend({\n /*\n This will be set to the Application instance when it is\n created.\n @property namespace\n */\n namespace: null,\n normalize: null, // required\n resolve: null, // required\n parseName: null, // required\n lookupDescription: null, // required\n makeToString: null, // required\n resolveOther: null, // required\n _logLookup: null // required\n });\n\n /**\n The DefaultResolver defines the default lookup rules to resolve\n container lookups before consulting the container for registered\n items:\n \n * templates are looked up on `Ember.TEMPLATES`\n * other names are looked up on the application after converting\n the name. For example, `controller:post` looks up\n `App.PostController` by default.\n * there are some nuances (see examples below)\n \n ### How Resolving Works\n \n The container calls this object's `resolve` method with the\n `fullName` argument.\n \n It first parses the fullName into an object using `parseName`.\n \n Then it checks for the presence of a type-specific instance\n method of the form `resolve[Type]` and calls it if it exists.\n For example if it was resolving 'template:post', it would call\n the `resolveTemplate` method.\n \n Its last resort is to call the `resolveOther` method.\n \n The methods of this object are designed to be easy to override\n in a subclass. For example, you could enhance how a template\n is resolved like so:\n \n ```app/app.js\n import Application from '@ember/application';\n import GlobalsResolver from '@ember/application/globals-resolver';\n \n App = Application.create({\n Resolver: GlobalsResolver.extend({\n resolveTemplate(parsedName) {\n let resolvedTemplate = this._super(parsedName);\n if (resolvedTemplate) { return resolvedTemplate; }\n \n return Ember.TEMPLATES['not_found'];\n }\n })\n });\n ```\n \n Some examples of how names are resolved:\n \n ```text\n 'template:post' //=> Ember.TEMPLATES['post']\n 'template:posts/byline' //=> Ember.TEMPLATES['posts/byline']\n 'template:posts.byline' //=> Ember.TEMPLATES['posts/byline']\n 'template:blogPost' //=> Ember.TEMPLATES['blog-post']\n 'controller:post' //=> App.PostController\n 'controller:posts.index' //=> App.PostsIndexController\n 'controller:blog/post' //=> Blog.PostController\n 'controller:basic' //=> Controller\n 'route:post' //=> App.PostRoute\n 'route:posts.index' //=> App.PostsIndexRoute\n 'route:blog/post' //=> Blog.PostRoute\n 'route:basic' //=> Route\n 'foo:post' //=> App.PostFoo\n 'model:post' //=> App.Post\n ```\n \n @class GlobalsResolver\n @extends EmberObject\n @public\n */\n\n var DefaultResolver = _emberRuntime.Object.extend({\n /**\n This will be set to the Application instance when it is\n created.\n @property namespace\n @public\n */\n namespace: null,\n\n init: function () {\n this._parseNameCache = (0, _emberUtils.dictionary)(null);\n },\n normalize: function (fullName) {\n var _fullName$split = fullName.split(':'),\n type = _fullName$split[0],\n name = _fullName$split[1];\n\n (true && !(fullName.split(':').length === 2) && (0, _emberDebug.assert)('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2));\n\n\n if (type !== 'template') {\n var result = name.replace(/(\\.|_|-)./g, function (m) {\n return m.charAt(1).toUpperCase();\n });\n\n return type + ':' + result;\n } else {\n return fullName;\n }\n },\n resolve: function (fullName) {\n var parsedName = this.parseName(fullName);\n var resolveMethodName = parsedName.resolveMethodName;\n var resolved = void 0;\n\n if (this[resolveMethodName]) {\n resolved = this[resolveMethodName](parsedName);\n }\n\n resolved = resolved || this.resolveOther(parsedName);\n\n if (true) {\n if (parsedName.root && parsedName.root.LOG_RESOLVER) {\n this._logLookup(resolved, parsedName);\n }\n }\n\n if (resolved) {\n (0, _validateType.default)(resolved, parsedName);\n }\n\n return resolved;\n },\n parseName: function (fullName) {\n return this._parseNameCache[fullName] || (this._parseNameCache[fullName] = this._parseName(fullName));\n },\n _parseName: function (fullName) {\n var _fullName$split2 = fullName.split(':'),\n type = _fullName$split2[0],\n fullNameWithoutType = _fullName$split2[1];\n\n var name = fullNameWithoutType;\n var namespace = (0, _emberMetal.get)(this, 'namespace');\n var root = namespace;\n var lastSlashIndex = name.lastIndexOf('/');\n var dirname = lastSlashIndex !== -1 ? name.slice(0, lastSlashIndex) : null;\n\n if (type !== 'template' && lastSlashIndex !== -1) {\n var parts = name.split('/');\n name = parts[parts.length - 1];\n var namespaceName = _emberRuntime.String.capitalize(parts.slice(0, -1).join('.'));\n root = _emberRuntime.Namespace.byName(namespaceName);\n\n (true && !(root) && (0, _emberDebug.assert)('You are looking for a ' + name + ' ' + type + ' in the ' + namespaceName + ' namespace, but the namespace could not be found', root));\n }\n\n var resolveMethodName = fullNameWithoutType === 'main' ? 'Main' : _emberRuntime.String.classify(type);\n\n if (!(name && type)) {\n throw new TypeError('Invalid fullName: `' + fullName + '`, must be of the form `type:name` ');\n }\n\n return {\n fullName: fullName,\n type: type,\n fullNameWithoutType: fullNameWithoutType,\n dirname: dirname,\n name: name,\n root: root,\n resolveMethodName: 'resolve' + resolveMethodName\n };\n },\n lookupDescription: function (fullName) {\n var parsedName = this.parseName(fullName);\n var description = void 0;\n\n if (parsedName.type === 'template') {\n return 'template at ' + parsedName.fullNameWithoutType.replace(/\\./g, '/');\n }\n\n description = parsedName.root + '.' + _emberRuntime.String.classify(parsedName.name).replace(/\\./g, '');\n\n if (parsedName.type !== 'model') {\n description += _emberRuntime.String.classify(parsedName.type);\n }\n\n return description;\n },\n makeToString: function (factory, fullName) {\n return factory.toString();\n },\n useRouterNaming: function (parsedName) {\n if (parsedName.name === 'basic') {\n parsedName.name = '';\n } else {\n parsedName.name = parsedName.name.replace(/\\./g, '_');\n }\n },\n resolveTemplate: function (parsedName) {\n var templateName = parsedName.fullNameWithoutType.replace(/\\./g, '/');\n\n return (0, _emberGlimmer.getTemplate)(templateName) || (0, _emberGlimmer.getTemplate)(_emberRuntime.String.decamelize(templateName));\n },\n resolveView: function (parsedName) {\n this.useRouterNaming(parsedName);\n return this.resolveOther(parsedName);\n },\n resolveController: function (parsedName) {\n this.useRouterNaming(parsedName);\n return this.resolveOther(parsedName);\n },\n resolveRoute: function (parsedName) {\n this.useRouterNaming(parsedName);\n return this.resolveOther(parsedName);\n },\n resolveModel: function (parsedName) {\n var className = _emberRuntime.String.classify(parsedName.name);\n var factory = (0, _emberMetal.get)(parsedName.root, className);\n\n return factory;\n },\n resolveHelper: function (parsedName) {\n return this.resolveOther(parsedName);\n },\n resolveOther: function (parsedName) {\n var className = _emberRuntime.String.classify(parsedName.name) + _emberRuntime.String.classify(parsedName.type);\n var factory = (0, _emberMetal.get)(parsedName.root, className);\n return factory;\n },\n resolveMain: function (parsedName) {\n var className = _emberRuntime.String.classify(parsedName.type);\n return (0, _emberMetal.get)(parsedName.root, className);\n },\n knownForType: function (type) {\n var namespace = (0, _emberMetal.get)(this, 'namespace');\n var suffix = _emberRuntime.String.classify(type);\n var typeRegexp = new RegExp(suffix + '$');\n\n var known = (0, _emberUtils.dictionary)(null);\n var knownKeys = Object.keys(namespace);\n for (var index = 0; index < knownKeys.length; index++) {\n var name = knownKeys[index];\n\n if (typeRegexp.test(name)) {\n var containerName = this.translateToContainerFullname(type, name);\n\n known[containerName] = true;\n }\n }\n\n return known;\n },\n translateToContainerFullname: function (type, name) {\n var suffix = _emberRuntime.String.classify(type);\n var namePrefix = name.slice(0, suffix.length * -1);\n var dasherizedName = _emberRuntime.String.dasherize(namePrefix);\n\n return type + ':' + dasherizedName;\n }\n });\n\n exports.default = DefaultResolver;\n\n\n if (true) {\n DefaultResolver.reopen({\n _logLookup: function (found, parsedName) {\n var symbol = found ? '[✓]' : '[ ]';\n\n var padding = void 0;\n if (parsedName.fullName.length > 60) {\n padding = '.';\n } else {\n padding = new Array(60 - parsedName.fullName.length).join('.');\n }\n\n (0, _emberDebug.info)(symbol, parsedName.fullName, padding, this.lookupDescription(parsedName.fullName));\n }\n });\n }\n});","enifed('ember-application/utils/validate-type', ['exports', 'ember-debug'], function (exports, _emberDebug) {\n 'use strict';\n\n exports.default = validateType;\n\n\n var VALIDATED_TYPES = {\n route: ['assert', 'isRouteFactory', 'Ember.Route'],\n component: ['deprecate', 'isComponentFactory', 'Ember.Component'],\n view: ['deprecate', 'isViewFactory', 'Ember.View'],\n service: ['deprecate', 'isServiceFactory', 'Ember.Service']\n };\n\n function validateType(resolvedType, parsedName) {\n var validationAttributes = VALIDATED_TYPES[parsedName.type];\n\n if (!validationAttributes) {\n return;\n }\n\n var action = validationAttributes[0],\n factoryFlag = validationAttributes[1],\n expectedType = validationAttributes[2];\n (true && !(!!resolvedType[factoryFlag]) && (0, _emberDebug.assert)('Expected ' + parsedName.fullName + ' to resolve to an ' + expectedType + ' but ' + ('instead it was ' + resolvedType + '.'), !!resolvedType[factoryFlag]));\n }\n});","enifed('ember-babel', ['exports'], function (exports) {\n 'use strict';\n\n exports.classCallCheck = classCallCheck;\n exports.inherits = inherits;\n exports.taggedTemplateLiteralLoose = taggedTemplateLiteralLoose;\n exports.createClass = createClass;\n exports.defaults = defaults;\n function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n\n function inherits(subClass, superClass) {\n if (typeof superClass !== 'function' && superClass !== null) {\n throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : defaults(subClass, superClass);\n }\n\n function taggedTemplateLiteralLoose(strings, raw) {\n strings.raw = raw;\n return strings;\n }\n\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if ('value' in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n function createClass(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n }\n\n function defaults(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = Object.getOwnPropertyDescriptor(defaults, key);\n if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }\n return obj;\n }\n\n var possibleConstructorReturn = exports.possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError('this hasn\\'t been initialized - super() hasn\\'t been called');\n }\n return call && (typeof call === 'object' || typeof call === 'function') ? call : self;\n };\n\n var slice = exports.slice = Array.prototype.slice;\n});","enifed('ember-console', ['exports', 'ember-environment'], function (exports, _emberEnvironment) {\n 'use strict';\n\n function K() {}\n\n function consoleMethod(name) {\n var consoleObj = void 0;\n if (_emberEnvironment.context.imports.console) {\n consoleObj = _emberEnvironment.context.imports.console;\n } else if (typeof console !== 'undefined') {\n // eslint-disable-line no-undef\n consoleObj = console; // eslint-disable-line no-undef\n }\n\n var method = typeof consoleObj === 'object' ? consoleObj[name] : null;\n\n if (typeof method !== 'function') {\n return;\n }\n\n return method.bind(consoleObj);\n }\n\n function assertPolyfill(test, message) {\n if (!test) {\n try {\n // attempt to preserve the stack\n throw new Error('assertion failed: ' + message);\n } catch (error) {\n setTimeout(function () {\n throw error;\n }, 0);\n }\n }\n }\n\n /**\n Inside Ember-Metal, simply uses the methods from `imports.console`.\n Override this to provide more robust logging functionality.\n \n @class Logger\n @namespace Ember\n @public\n */\n var index = {\n /**\n Logs the arguments to the console.\n You can pass as many arguments as you want and they will be joined together with a space.\n ```javascript\n var foo = 1;\n Ember.Logger.log('log value of foo:', foo);\n // \"log value of foo: 1\" will be printed to the console\n ```\n @method log\n @for Ember.Logger\n @param {*} arguments\n @public\n */\n log: consoleMethod('log') || K,\n\n /**\n Prints the arguments to the console with a warning icon.\n You can pass as many arguments as you want and they will be joined together with a space.\n ```javascript\n Ember.Logger.warn('Something happened!');\n // \"Something happened!\" will be printed to the console with a warning icon.\n ```\n @method warn\n @for Ember.Logger\n @param {*} arguments\n @public\n */\n warn: consoleMethod('warn') || K,\n\n /**\n Prints the arguments to the console with an error icon, red text and a stack trace.\n You can pass as many arguments as you want and they will be joined together with a space.\n ```javascript\n Ember.Logger.error('Danger! Danger!');\n // \"Danger! Danger!\" will be printed to the console in red text.\n ```\n @method error\n @for Ember.Logger\n @param {*} arguments\n @public\n */\n error: consoleMethod('error') || K,\n\n /**\n Logs the arguments to the console.\n You can pass as many arguments as you want and they will be joined together with a space.\n ```javascript\n var foo = 1;\n Ember.Logger.info('log value of foo:', foo);\n // \"log value of foo: 1\" will be printed to the console\n ```\n @method info\n @for Ember.Logger\n @param {*} arguments\n @public\n */\n info: consoleMethod('info') || K,\n\n /**\n Logs the arguments to the console in blue text.\n You can pass as many arguments as you want and they will be joined together with a space.\n ```javascript\n var foo = 1;\n Ember.Logger.debug('log value of foo:', foo);\n // \"log value of foo: 1\" will be printed to the console\n ```\n @method debug\n @for Ember.Logger\n @param {*} arguments\n @public\n */\n debug: consoleMethod('debug') || consoleMethod('info') || K,\n\n /**\n If the value passed into `Ember.Logger.assert` is not truthy it will throw an error with a stack trace.\n ```javascript\n Ember.Logger.assert(true); // undefined\n Ember.Logger.assert(true === false); // Throws an Assertion failed error.\n Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message.\n ```\n @method assert\n @for Ember.Logger\n @param {Boolean} bool Value to test\n @param {String} message Assertion message on failed\n @public\n */\n assert: consoleMethod('assert') || assertPolyfill\n };\n\n exports.default = index;\n});","enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console', 'ember-environment', 'ember-debug/handlers'], function (exports, _error, _emberConsole, _emberEnvironment, _handlers) {\n 'use strict';\n\n exports.missingOptionsUntilDeprecation = exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = exports.registerHandler = undefined;\n\n /**\n @module @ember/debug\n @public\n */\n /**\n Allows for runtime registration of handler functions that override the default deprecation behavior.\n Deprecations are invoked by calls to [Ember.deprecate](https://emberjs.com/api/classes/Ember.html#method_deprecate).\n The following example demonstrates its usage by registering a handler that throws an error if the\n message contains the word \"should\", otherwise defers to the default handler.\n \n ```javascript\n Ember.Debug.registerDeprecationHandler((message, options, next) => {\n if (message.indexOf('should') !== -1) {\n throw new Error(`Deprecation message with should: ${message}`);\n } else {\n // defer to whatever handler was registered before this one\n next(message, options);\n }\n });\n ```\n \n The handler function takes the following arguments:\n \n <ul>\n <li> <code>message</code> - The message received from the deprecation call.</li>\n <li> <code>options</code> - An object passed in with the deprecation call containing additional information including:</li>\n <ul>\n <li> <code>id</code> - An id of the deprecation in the form of <code>package-name.specific-deprecation</code>.</li>\n <li> <code>until</code> - The Ember version number the feature and deprecation will be removed in.</li>\n </ul>\n <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n </ul>\n \n @public\n @static\n @method registerDeprecationHandler\n @for @ember/debug\n @param handler {Function} A function to handle deprecation calls.\n @since 2.1.0\n */\n var registerHandler = function () {}; /*global __fail__*/\n\n var missingOptionsDeprecation = void 0,\n missingOptionsIdDeprecation = void 0,\n missingOptionsUntilDeprecation = void 0,\n deprecate = void 0;\n\n if (true) {\n exports.registerHandler = registerHandler = function registerHandler(handler) {\n (0, _handlers.registerHandler)('deprecate', handler);\n };\n\n var formatMessage = function formatMessage(_message, options) {\n var message = _message;\n\n if (options && options.id) {\n message = message + (' [deprecation id: ' + options.id + ']');\n }\n\n if (options && options.url) {\n message += ' See ' + options.url + ' for more details.';\n }\n\n return message;\n };\n\n registerHandler(function logDeprecationToConsole(message, options) {\n var updatedMessage = formatMessage(message, options);\n\n _emberConsole.default.warn('DEPRECATION: ' + updatedMessage);\n });\n\n var captureErrorForStack = void 0;\n\n if (new Error().stack) {\n captureErrorForStack = function () {\n return new Error();\n };\n } else {\n captureErrorForStack = function () {\n try {\n __fail__.fail();\n } catch (e) {\n return e;\n }\n };\n }\n\n registerHandler(function logDeprecationStackTrace(message, options, next) {\n if (_emberEnvironment.ENV.LOG_STACKTRACE_ON_DEPRECATION) {\n var stackStr = '';\n var error = captureErrorForStack();\n var stack = void 0;\n\n if (error.stack) {\n if (error['arguments']) {\n // Chrome\n stack = error.stack.replace(/^\\s+at\\s+/gm, '').replace(/^([^\\(]+?)([\\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\\s*\\(([^\\)]+)\\)/gm, '{anonymous}($1)').split('\\n');\n stack.shift();\n } else {\n // Firefox\n stack = error.stack.replace(/(?:\\n@:0)?\\s+$/m, '').replace(/^\\(/gm, '{anonymous}(').split('\\n');\n }\n\n stackStr = '\\n ' + stack.slice(2).join('\\n ');\n }\n\n var updatedMessage = formatMessage(message, options);\n\n _emberConsole.default.warn('DEPRECATION: ' + updatedMessage + stackStr);\n } else {\n next.apply(undefined, arguments);\n }\n });\n\n registerHandler(function raiseOnDeprecation(message, options, next) {\n if (_emberEnvironment.ENV.RAISE_ON_DEPRECATION) {\n var updatedMessage = formatMessage(message);\n\n throw new _error.default(updatedMessage);\n } else {\n next.apply(undefined, arguments);\n }\n });\n\n exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `Ember.deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';\n exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `Ember.deprecate` you must provide `id` in options.';\n exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation = 'When calling `Ember.deprecate` you must provide `until` in options.';\n /**\n @module @ember/application\n @public\n */\n /**\n Display a deprecation warning with the provided message and a stack trace\n (Chrome and Firefox only).\n * In a production build, this method is defined as an empty function (NOP).\n Uses of this method in Ember itself are stripped from the ember.prod.js build.\n @method deprecate\n @for @ember/application/deprecations\n @param {String} message A description of the deprecation.\n @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.\n @param {Object} options\n @param {String} options.id A unique id for this deprecation. The id can be\n used by Ember debugging tools to change the behavior (raise, log or silence)\n for that specific deprecation. The id should be namespaced by dots, e.g.\n \"view.helper.select\".\n @param {string} options.until The version of Ember when this deprecation\n warning will be removed.\n @param {String} [options.url] An optional url to the transition guide on the\n emberjs.com website.\n @static\n @public\n @since 1.0.0\n */\n deprecate = function deprecate(message, test, options) {\n if (!options || !options.id && !options.until) {\n deprecate(missingOptionsDeprecation, false, {\n id: 'ember-debug.deprecate-options-missing',\n until: '3.0.0',\n url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n });\n }\n\n if (options && !options.id) {\n deprecate(missingOptionsIdDeprecation, false, {\n id: 'ember-debug.deprecate-id-missing',\n until: '3.0.0',\n url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n });\n }\n\n if (options && !options.until) {\n deprecate(missingOptionsUntilDeprecation, options && options.until, {\n id: 'ember-debug.deprecate-until-missing',\n until: '3.0.0',\n url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n });\n }\n\n _handlers.invoke.apply(undefined, ['deprecate'].concat(Array.prototype.slice.call(arguments)));\n };\n }\n\n exports.default = deprecate;\n exports.registerHandler = registerHandler;\n exports.missingOptionsDeprecation = missingOptionsDeprecation;\n exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation;\n});","enifed(\"ember-debug/error\", [\"exports\", \"ember-babel\"], function (exports, _emberBabel) {\n \"use strict\";\n\n /**\n @module @ember/error\n */\n function ExtendBuiltin(klass) {\n function ExtendableBuiltin() {\n klass.apply(this, arguments);\n }\n\n ExtendableBuiltin.prototype = Object.create(klass.prototype);\n ExtendableBuiltin.prototype.constructor = ExtendableBuiltin;\n return ExtendableBuiltin;\n }\n\n /**\n A subclass of the JavaScript Error object for use in Ember.\n \n @class EmberError\n @extends Error\n @constructor\n @public\n */\n\n var EmberError = function (_ExtendBuiltin) {\n (0, _emberBabel.inherits)(EmberError, _ExtendBuiltin);\n\n function EmberError(message) {\n (0, _emberBabel.classCallCheck)(this, EmberError);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ExtendBuiltin.call(this));\n\n if (!(_this instanceof EmberError)) {\n var _ret;\n\n return _ret = new EmberError(message), (0, _emberBabel.possibleConstructorReturn)(_this, _ret);\n }\n\n var error = Error.call(_this, message);\n _this.stack = error.stack;\n _this.description = error.description;\n _this.fileName = error.fileName;\n _this.lineNumber = error.lineNumber;\n _this.message = error.message;\n _this.name = error.name;\n _this.number = error.number;\n _this.code = error.code;\n return _this;\n }\n\n return EmberError;\n }(ExtendBuiltin(Error));\n\n exports.default = EmberError;\n});","enifed('ember-debug/features', ['exports', 'ember-environment', 'ember/features'], function (exports, _emberEnvironment, _features) {\n 'use strict';\n\n exports.default = isEnabled;\n var FEATURES = _features.FEATURES;\n\n\n /**\n @module ember\n */\n\n /**\n The hash of enabled Canary features. Add to this, any canary features\n before creating your application.\n \n Alternatively (and recommended), you can also define `EmberENV.FEATURES`\n if you need to enable features flagged at runtime.\n \n @class FEATURES\n @namespace Ember\n @static\n @since 1.1.0\n @public\n */\n\n // Auto-generated\n\n /**\n Determine whether the specified `feature` is enabled. Used by Ember's\n build tools to exclude experimental features from beta/stable builds.\n \n You can define the following configuration options:\n \n * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n enabled/disabled.\n \n @method isEnabled\n @param {String} feature The feature to check\n @return {Boolean}\n @for Ember.FEATURES\n @since 1.1.0\n @public\n */\n function isEnabled(feature) {\n var featureValue = FEATURES[feature];\n\n if (featureValue === true || featureValue === false || featureValue === undefined) {\n return featureValue;\n } else if (_emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES) {\n return true;\n } else {\n return false;\n }\n }\n});","enifed('ember-debug/handlers', ['exports'], function (exports) {\n 'use strict';\n\n var HANDLERS = exports.HANDLERS = {};\n\n var registerHandler = function () {};\n var invoke = function () {};\n\n if (true) {\n exports.registerHandler = registerHandler = function registerHandler(type, callback) {\n var nextHandler = HANDLERS[type] || function () {};\n\n HANDLERS[type] = function (message, options) {\n callback(message, options, nextHandler);\n };\n };\n\n exports.invoke = invoke = function invoke(type, message, test, options) {\n if (test) {\n return;\n }\n\n var handlerForType = HANDLERS[type];\n\n if (handlerForType) {\n handlerForType(message, options);\n }\n };\n }\n\n exports.registerHandler = registerHandler;\n exports.invoke = invoke;\n});","enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/deprecate', 'ember-debug/features', 'ember-debug/error', 'ember-debug/testing', 'ember-environment', 'ember-console', 'ember/features'], function (exports, _warn2, _deprecate2, _features, _error, _testing, _emberEnvironment, _emberConsole, _features2) {\n 'use strict';\n\n exports._warnIfUsingStrippedFeatureFlags = exports.getDebugFunction = exports.setDebugFunction = exports.deprecateFunc = exports.runInDebug = exports.debugFreeze = exports.debugSeal = exports.deprecate = exports.debug = exports.warn = exports.info = exports.assert = exports.setTesting = exports.isTesting = exports.Error = exports.isFeatureEnabled = exports.registerDeprecationHandler = exports.registerWarnHandler = undefined;\n Object.defineProperty(exports, 'registerWarnHandler', {\n enumerable: true,\n get: function () {\n return _warn2.registerHandler;\n }\n });\n Object.defineProperty(exports, 'registerDeprecationHandler', {\n enumerable: true,\n get: function () {\n return _deprecate2.registerHandler;\n }\n });\n Object.defineProperty(exports, 'isFeatureEnabled', {\n enumerable: true,\n get: function () {\n return _features.default;\n }\n });\n Object.defineProperty(exports, 'Error', {\n enumerable: true,\n get: function () {\n return _error.default;\n }\n });\n Object.defineProperty(exports, 'isTesting', {\n enumerable: true,\n get: function () {\n return _testing.isTesting;\n }\n });\n Object.defineProperty(exports, 'setTesting', {\n enumerable: true,\n get: function () {\n return _testing.setTesting;\n }\n });\n var DEFAULT_FEATURES = _features2.DEFAULT_FEATURES,\n FEATURES = _features2.FEATURES;\n\n\n // These are the default production build versions:\n var noop = function () {};\n\n var assert = noop;\n var info = noop;\n var warn = noop;\n var debug = noop;\n var deprecate = noop;\n var debugSeal = noop;\n var debugFreeze = noop;\n var runInDebug = noop;\n var setDebugFunction = noop;\n var getDebugFunction = noop;\n\n var deprecateFunc = function () {\n return arguments[arguments.length - 1];\n };\n\n if (true) {\n exports.setDebugFunction = setDebugFunction = function (type, callback) {\n switch (type) {\n case 'assert':\n return exports.assert = assert = callback;\n case 'info':\n return exports.info = info = callback;\n case 'warn':\n return exports.warn = warn = callback;\n case 'debug':\n return exports.debug = debug = callback;\n case 'deprecate':\n return exports.deprecate = deprecate = callback;\n case 'debugSeal':\n return exports.debugSeal = debugSeal = callback;\n case 'debugFreeze':\n return exports.debugFreeze = debugFreeze = callback;\n case 'runInDebug':\n return exports.runInDebug = runInDebug = callback;\n case 'deprecateFunc':\n return exports.deprecateFunc = deprecateFunc = callback;\n }\n };\n\n exports.getDebugFunction = getDebugFunction = function (type) {\n switch (type) {\n case 'assert':\n return assert;\n case 'info':\n return info;\n case 'warn':\n return warn;\n case 'debug':\n return debug;\n case 'deprecate':\n return deprecate;\n case 'debugSeal':\n return debugSeal;\n case 'debugFreeze':\n return debugFreeze;\n case 'runInDebug':\n return runInDebug;\n case 'deprecateFunc':\n return deprecateFunc;\n }\n };\n }\n\n /**\n @module @ember/debug\n */\n\n if (true) {\n /**\n Define an assertion that will throw an exception if the condition is not met.\n * In a production build, this method is defined as an empty function (NOP).\n Uses of this method in Ember itself are stripped from the ember.prod.js build.\n ```javascript\n import { assert } from '@ember/debug';\n // Test for truthiness\n assert('Must pass a valid object', obj);\n // Fail unconditionally\n assert('This code path should never be run');\n ```\n @method assert\n @static\n @for @ember/debug\n @param {String} desc A description of the assertion. This will become\n the text of the Error thrown if the assertion fails.\n @param {Boolean} test Must be truthy for the assertion to pass. If\n falsy, an exception will be thrown.\n @public\n @since 1.0.0\n */\n setDebugFunction('assert', function assert(desc, test) {\n if (!test) {\n throw new _error.default('Assertion Failed: ' + desc);\n }\n });\n\n /**\n Display a debug notice.\n * In a production build, this method is defined as an empty function (NOP).\n Uses of this method in Ember itself are stripped from the ember.prod.js build.\n ```javascript\n import { debug } from '@ember/debug';\n debug('I\\'m a debug notice!');\n ```\n @method debug\n @for @ember/debug\n @static\n @param {String} message A debug message to display.\n @public\n */\n setDebugFunction('debug', function debug(message) {\n _emberConsole.default.debug('DEBUG: ' + message);\n });\n\n /**\n Display an info notice.\n * In a production build, this method is defined as an empty function (NOP).\n Uses of this method in Ember itself are stripped from the ember.prod.js build.\n @method info\n @private\n */\n setDebugFunction('info', function info() {\n _emberConsole.default.info.apply(undefined, arguments);\n });\n\n /**\n @module @ember/application\n @public\n */\n\n /**\n Alias an old, deprecated method with its new counterpart.\n Display a deprecation warning with the provided message and a stack trace\n (Chrome and Firefox only) when the assigned method is called.\n * In a production build, this method is defined as an empty function (NOP).\n ```javascript\n Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);\n ```\n @method deprecateFunc\n @static\n @for @ember/application/deprecations\n @param {String} message A description of the deprecation.\n @param {Object} [options] The options object for Ember.deprecate.\n @param {Function} func The new function called to replace its deprecated counterpart.\n @return {Function} A new function that wraps the original function with a deprecation warning\n @private\n */\n setDebugFunction('deprecateFunc', function deprecateFunc() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (args.length === 3) {\n var message = args[0],\n options = args[1],\n func = args[2];\n\n return function () {\n deprecate(message, false, options);\n return func.apply(this, arguments);\n };\n } else {\n var _message = args[0],\n _func = args[1];\n\n return function () {\n deprecate(_message);\n return _func.apply(this, arguments);\n };\n }\n });\n\n /**\n @module @ember/debug\n @public\n */\n /**\n Run a function meant for debugging.\n * In a production build, this method is defined as an empty function (NOP).\n Uses of this method in Ember itself are stripped from the ember.prod.js build.\n ```javascript\n import Component from '@ember/component';\n import { runInDebug } from '@ember/debug';\n runInDebug(() => {\n Component.reopen({\n didInsertElement() {\n console.log(\"I'm happy\");\n }\n });\n });\n ```\n @method runInDebug\n @for @ember/debug\n @static\n @param {Function} func The function to be executed.\n @since 1.5.0\n @public\n */\n setDebugFunction('runInDebug', function runInDebug(func) {\n func();\n });\n\n setDebugFunction('debugSeal', function debugSeal(obj) {\n Object.seal(obj);\n });\n\n setDebugFunction('debugFreeze', function debugFreeze(obj) {\n Object.freeze(obj);\n });\n\n setDebugFunction('deprecate', _deprecate2.default);\n\n setDebugFunction('warn', _warn2.default);\n }\n\n var _warnIfUsingStrippedFeatureFlags = void 0;\n\n if (true && !(0, _testing.isTesting)()) {\n /**\n Will call `warn()` if ENABLE_OPTIONAL_FEATURES or\n any specific FEATURES flag is truthy.\n This method is called automatically in debug canary builds.\n @private\n @method _warnIfUsingStrippedFeatureFlags\n @return {void}\n */\n exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags = function _warnIfUsingStrippedFeatureFlags(FEATURES, knownFeatures, featuresWereStripped) {\n if (featuresWereStripped) {\n warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !_emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES, { id: 'ember-debug.feature-flag-with-features-stripped' });\n\n var keys = Object.keys(FEATURES || {});\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key === 'isEnabled' || !(key in knownFeatures)) {\n continue;\n }\n\n warn('FEATURE[\"' + key + '\"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key], { id: 'ember-debug.feature-flag-with-features-stripped' });\n }\n }\n };\n\n // Complain if they're using FEATURE flags in builds other than canary\n FEATURES['features-stripped-test'] = true;\n var featuresWereStripped = true;\n\n if ((0, _features.default)('features-stripped-test')) {\n featuresWereStripped = false;\n }\n\n delete FEATURES['features-stripped-test'];\n _warnIfUsingStrippedFeatureFlags(_emberEnvironment.ENV.FEATURES, DEFAULT_FEATURES, featuresWereStripped);\n\n // Inform the developer about the Ember Inspector if not installed.\n var isFirefox = _emberEnvironment.environment.isFirefox;\n var isChrome = _emberEnvironment.environment.isChrome;\n\n if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) {\n window.addEventListener('load', function () {\n if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {\n var downloadURL = void 0;\n\n if (isChrome) {\n downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';\n } else if (isFirefox) {\n downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';\n }\n\n debug('For more advanced debugging, install the Ember Inspector from ' + downloadURL);\n }\n }, false);\n }\n }\n\n exports.assert = assert;\n exports.info = info;\n exports.warn = warn;\n exports.debug = debug;\n exports.deprecate = deprecate;\n exports.debugSeal = debugSeal;\n exports.debugFreeze = debugFreeze;\n exports.runInDebug = runInDebug;\n exports.deprecateFunc = deprecateFunc;\n exports.setDebugFunction = setDebugFunction;\n exports.getDebugFunction = getDebugFunction;\n exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;\n});","enifed(\"ember-debug/testing\", [\"exports\"], function (exports) {\n \"use strict\";\n\n exports.isTesting = isTesting;\n exports.setTesting = setTesting;\n var testing = false;\n\n function isTesting() {\n return testing;\n }\n\n function setTesting(value) {\n testing = !!value;\n }\n});","enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate', 'ember-debug/handlers'], function (exports, _emberConsole, _deprecate, _handlers) {\n 'use strict';\n\n exports.missingOptionsDeprecation = exports.missingOptionsIdDeprecation = exports.registerHandler = undefined;\n\n\n var registerHandler = function () {};\n var warn = function () {};\n var missingOptionsDeprecation = void 0,\n missingOptionsIdDeprecation = void 0;\n\n /**\n @module @ember/debug\n */\n\n if (true) {\n /**\n Allows for runtime registration of handler functions that override the default warning behavior.\n Warnings are invoked by calls made to [warn](https://emberjs.com/api/classes/Ember.html#method_warn).\n The following example demonstrates its usage by registering a handler that does nothing overriding Ember's\n default warning behavior.\n ```javascript\n import { registerWarnHandler } from '@ember/debug';\n // next is not called, so no warnings get the default behavior\n registerWarnHandler(() => {});\n ```\n The handler function takes the following arguments:\n <ul>\n <li> <code>message</code> - The message received from the warn call. </li>\n <li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>\n <ul>\n <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>\n </ul>\n <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n </ul>\n @public\n @static\n @method registerWarnHandler\n @for @ember/debug\n @param handler {Function} A function to handle warnings.\n @since 2.1.0\n */\n exports.registerHandler = registerHandler = function registerHandler(handler) {\n (0, _handlers.registerHandler)('warn', handler);\n };\n\n registerHandler(function logWarning(message, options) {\n _emberConsole.default.warn('WARNING: ' + message);\n if ('trace' in _emberConsole.default) {\n _emberConsole.default.trace();\n }\n });\n\n exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';\n exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';\n\n /**\n Display a warning with the provided message.\n * In a production build, this method is defined as an empty function (NOP).\n Uses of this method in Ember itself are stripped from the ember.prod.js build.\n @method warn\n @for @ember/debug\n @static\n @param {String} message A warning to display.\n @param {Boolean} test An optional boolean. If falsy, the warning\n will be displayed.\n @param {Object} options An object that can be used to pass a unique\n `id` for this warning. The `id` can be used by Ember debugging tools\n to change the behavior (raise, log, or silence) for that specific warning.\n The `id` should be namespaced by dots, e.g. \"ember-debug.feature-flag-with-features-stripped\"\n @public\n @since 1.0.0\n */\n warn = function warn(message, test, options) {\n if (arguments.length === 2 && typeof test === 'object') {\n options = test;\n test = false;\n }\n if (!options) {\n (0, _deprecate.default)(missingOptionsDeprecation, false, {\n id: 'ember-debug.warn-options-missing',\n until: '3.0.0',\n url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n });\n }\n\n if (options && !options.id) {\n (0, _deprecate.default)(missingOptionsIdDeprecation, false, {\n id: 'ember-debug.warn-id-missing',\n until: '3.0.0',\n url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'\n });\n }\n\n (0, _handlers.invoke)('warn', message, test, options);\n };\n }\n\n exports.default = warn;\n exports.registerHandler = registerHandler;\n exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n exports.missingOptionsDeprecation = missingOptionsDeprecation;\n});","enifed('ember-environment', ['exports'], function (exports) {\n 'use strict';\n\n /* globals global, window, self, mainContext */\n\n // from lodash to catch fake globals\n function checkGlobal(value) {\n return value && value.Object === Object ? value : undefined;\n }\n\n // element ids can ruin global miss checks\n function checkElementIdShadowing(value) {\n return value && value.nodeType === undefined ? value : undefined;\n }\n\n // export real global\n var global$1 = checkGlobal(checkElementIdShadowing(typeof global === 'object' && global)) || checkGlobal(typeof self === 'object' && self) || checkGlobal(typeof window === 'object' && window) || mainContext || // set before strict mode in Ember loader/wrapper\n new Function('return this')(); // eval outside of strict mode\n\n function defaultTrue(v) {\n return v === false ? false : true;\n }\n\n function defaultFalse(v) {\n return v === true ? true : false;\n }\n\n function normalizeExtendPrototypes(obj) {\n if (obj === false) {\n return { String: false, Array: false, Function: false };\n } else if (!obj || obj === true) {\n return { String: true, Array: true, Function: true };\n } else {\n return {\n String: defaultTrue(obj.String),\n Array: defaultTrue(obj.Array),\n Function: defaultTrue(obj.Function)\n };\n }\n }\n\n /* globals module */\n /**\n The hash of environment variables used to control various configuration\n settings. To specify your own or override default settings, add the\n desired properties to a global hash named `EmberENV` (or `ENV` for\n backwards compatibility with earlier versions of Ember). The `EmberENV`\n hash must be created before loading Ember.\n \n @class EmberENV\n @type Object\n @public\n */\n var ENV = typeof global$1.EmberENV === 'object' && global$1.EmberENV || typeof global$1.ENV === 'object' && global$1.ENV || {};\n\n // ENABLE_ALL_FEATURES was documented, but you can't actually enable non optional features.\n if (ENV.ENABLE_ALL_FEATURES) {\n ENV.ENABLE_OPTIONAL_FEATURES = true;\n }\n\n /**\n Determines whether Ember should add to `Array`, `Function`, and `String`\n native object prototypes, a few extra methods in order to provide a more\n friendly API.\n \n We generally recommend leaving this option set to true however, if you need\n to turn it off, you can add the configuration property\n `EXTEND_PROTOTYPES` to `EmberENV` and set it to `false`.\n \n Note, when disabled (the default configuration for Ember Addons), you will\n instead have to access all methods and functions from the Ember\n namespace.\n \n @property EXTEND_PROTOTYPES\n @type Boolean\n @default true\n @for EmberENV\n @public\n */\n ENV.EXTEND_PROTOTYPES = normalizeExtendPrototypes(ENV.EXTEND_PROTOTYPES);\n\n /**\n The `LOG_STACKTRACE_ON_DEPRECATION` property, when true, tells Ember to log\n a full stack trace during deprecation warnings.\n \n @property LOG_STACKTRACE_ON_DEPRECATION\n @type Boolean\n @default true\n @for EmberENV\n @public\n */\n ENV.LOG_STACKTRACE_ON_DEPRECATION = defaultTrue(ENV.LOG_STACKTRACE_ON_DEPRECATION);\n\n /**\n The `LOG_VERSION` property, when true, tells Ember to log versions of all\n dependent libraries in use.\n \n @property LOG_VERSION\n @type Boolean\n @default true\n @for EmberENV\n @public\n */\n ENV.LOG_VERSION = defaultTrue(ENV.LOG_VERSION);\n\n /**\n Debug parameter you can turn on. This will log all bindings that fire to\n the console. This should be disabled in production code. Note that you\n can also enable this from the console or temporarily.\n \n @property LOG_BINDINGS\n @for EmberENV\n @type Boolean\n @default false\n @public\n */\n ENV.LOG_BINDINGS = defaultFalse(ENV.LOG_BINDINGS);\n\n ENV.RAISE_ON_DEPRECATION = defaultFalse(ENV.RAISE_ON_DEPRECATION);\n\n // check if window exists and actually is the global\n var hasDOM = typeof window !== 'undefined' && window === global$1 && window.document && window.document.createElement && !ENV.disableBrowserEnvironment; // is this a public thing?\n\n // legacy imports/exports/lookup stuff (should we keep this??)\n var originalContext = global$1.Ember || {};\n\n var context = {\n // import jQuery\n imports: originalContext.imports || global$1,\n // export Ember\n exports: originalContext.exports || global$1,\n // search for Namespaces\n lookup: originalContext.lookup || global$1\n };\n\n // TODO: cleanup single source of truth issues with this stuff\n var environment = hasDOM ? {\n hasDOM: true,\n isChrome: !!window.chrome && !window.opera,\n isFirefox: typeof InstallTrigger !== 'undefined',\n isPhantom: !!window.callPhantom,\n location: window.location,\n history: window.history,\n userAgent: window.navigator.userAgent,\n window: window\n } : {\n hasDOM: false,\n isChrome: false,\n isFirefox: false,\n isPhantom: false,\n location: null,\n history: null,\n userAgent: 'Lynx (textmode)',\n window: null\n };\n\n exports.ENV = ENV;\n exports.context = context;\n exports.environment = environment;\n});","enifed('ember-extension-support/container_debug_adapter', ['exports', 'ember-metal', 'ember-runtime'], function (exports, _emberMetal, _emberRuntime) {\n 'use strict';\n\n exports.default = _emberRuntime.Object.extend({\n /**\n The resolver instance of the application\n being debugged. This property will be injected\n on creation.\n @property resolver\n @default null\n @public\n */\n resolver: null,\n\n /**\n Returns true if it is possible to catalog a list of available\n classes in the resolver for a given type.\n @method canCatalogEntriesByType\n @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n @return {boolean} whether a list is available for this type.\n @public\n */\n canCatalogEntriesByType: function (type) {\n if (type === 'model' || type === 'template') {\n return false;\n }\n\n return true;\n },\n\n\n /**\n Returns the available classes a given type.\n @method catalogEntriesByType\n @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n @return {Array} An array of strings.\n @public\n */\n catalogEntriesByType: function (type) {\n var namespaces = (0, _emberRuntime.A)(_emberRuntime.Namespace.NAMESPACES);\n var types = (0, _emberRuntime.A)();\n var typeSuffixRegex = new RegExp(_emberRuntime.String.classify(type) + '$');\n\n namespaces.forEach(function (namespace) {\n if (namespace !== _emberMetal.default) {\n for (var key in namespace) {\n if (!namespace.hasOwnProperty(key)) {\n continue;\n }\n if (typeSuffixRegex.test(key)) {\n var klass = namespace[key];\n if ((0, _emberRuntime.typeOf)(klass) === 'class') {\n types.push(_emberRuntime.String.dasherize(key.replace(typeSuffixRegex, '')));\n }\n }\n }\n }\n });\n return types;\n }\n });\n});","enifed('ember-extension-support/data_adapter', ['exports', 'ember-utils', 'ember-metal', 'ember-runtime'], function (exports, _emberUtils, _emberMetal, _emberRuntime) {\n 'use strict';\n\n exports.default = _emberRuntime.Object.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.releaseMethods = (0, _emberRuntime.A)();\n },\n\n\n /**\n The container-debug-adapter which is used\n to list all models.\n @property containerDebugAdapter\n @default undefined\n @since 1.5.0\n @public\n **/\n containerDebugAdapter: undefined,\n\n /**\n The number of attributes to send\n as columns. (Enough to make the record\n identifiable).\n @private\n @property attributeLimit\n @default 3\n @since 1.3.0\n */\n attributeLimit: 3,\n\n /**\n Ember Data > v1.0.0-beta.18\n requires string model names to be passed\n around instead of the actual factories.\n This is a stamp for the Ember Inspector\n to differentiate between the versions\n to be able to support older versions too.\n @public\n @property acceptsModelName\n */\n acceptsModelName: true,\n\n /**\n Stores all methods that clear observers.\n These methods will be called on destruction.\n @private\n @property releaseMethods\n @since 1.3.0\n */\n releaseMethods: (0, _emberRuntime.A)(),\n\n /**\n Specifies how records can be filtered.\n Records returned will need to have a `filterValues`\n property with a key for every name in the returned array.\n @public\n @method getFilters\n @return {Array} List of objects defining filters.\n The object should have a `name` and `desc` property.\n */\n getFilters: function () {\n return (0, _emberRuntime.A)();\n },\n\n\n /**\n Fetch the model types and observe them for changes.\n @public\n @method watchModelTypes\n @param {Function} typesAdded Callback to call to add types.\n Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n @param {Function} typesUpdated Callback to call when a type has changed.\n Takes an array of objects containing wrapped types.\n @return {Function} Method to call to remove all observers\n */\n watchModelTypes: function (typesAdded, typesUpdated) {\n var _this = this;\n\n var modelTypes = this.getModelTypes();\n var releaseMethods = (0, _emberRuntime.A)();\n var typesToSend = void 0;\n\n typesToSend = modelTypes.map(function (type) {\n var klass = type.klass;\n var wrapped = _this.wrapModelType(klass, type.name);\n releaseMethods.push(_this.observeModelType(type.name, typesUpdated));\n return wrapped;\n });\n\n typesAdded(typesToSend);\n\n var release = function () {\n releaseMethods.forEach(function (fn) {\n return fn();\n });\n _this.releaseMethods.removeObject(release);\n };\n this.releaseMethods.pushObject(release);\n return release;\n },\n _nameToClass: function (type) {\n if (typeof type === 'string') {\n var owner = (0, _emberUtils.getOwner)(this);\n var Factory = owner.factoryFor('model:' + type);\n type = Factory && Factory.class;\n }\n return type;\n },\n\n\n /**\n Fetch the records of a given type and observe them for changes.\n @public\n @method watchRecords\n @param {String} modelName The model name.\n @param {Function} recordsAdded Callback to call to add records.\n Takes an array of objects containing wrapped records.\n The object should have the following properties:\n columnValues: {Object} The key and value of a table cell.\n object: {Object} The actual record object.\n @param {Function} recordsUpdated Callback to call when a record has changed.\n Takes an array of objects containing wrapped records.\n @param {Function} recordsRemoved Callback to call when a record has removed.\n Takes the following parameters:\n index: The array index where the records were removed.\n count: The number of records removed.\n @return {Function} Method to call to remove all observers.\n */\n watchRecords: function (modelName, recordsAdded, recordsUpdated, recordsRemoved) {\n var _this2 = this;\n\n var releaseMethods = (0, _emberRuntime.A)();\n var klass = this._nameToClass(modelName);\n var records = this.getRecords(klass, modelName);\n var release = void 0;\n\n function recordUpdated(updatedRecord) {\n recordsUpdated([updatedRecord]);\n }\n\n var recordsToSend = records.map(function (record) {\n releaseMethods.push(_this2.observeRecord(record, recordUpdated));\n return _this2.wrapRecord(record);\n });\n\n var contentDidChange = function (array, idx, removedCount, addedCount) {\n for (var i = idx; i < idx + addedCount; i++) {\n var record = (0, _emberRuntime.objectAt)(array, i);\n var wrapped = _this2.wrapRecord(record);\n releaseMethods.push(_this2.observeRecord(record, recordUpdated));\n recordsAdded([wrapped]);\n }\n\n if (removedCount) {\n recordsRemoved(idx, removedCount);\n }\n };\n\n var observer = { didChange: contentDidChange, willChange: function () {\n return this;\n }\n };\n (0, _emberRuntime.addArrayObserver)(records, this, observer);\n\n release = function () {\n releaseMethods.forEach(function (fn) {\n return fn();\n });\n (0, _emberRuntime.removeArrayObserver)(records, _this2, observer);\n _this2.releaseMethods.removeObject(release);\n };\n\n recordsAdded(recordsToSend);\n\n this.releaseMethods.pushObject(release);\n return release;\n },\n\n\n /**\n Clear all observers before destruction\n @private\n @method willDestroy\n */\n willDestroy: function () {\n this._super.apply(this, arguments);\n this.releaseMethods.forEach(function (fn) {\n return fn();\n });\n },\n\n\n /**\n Detect whether a class is a model.\n Test that against the model class\n of your persistence library.\n @private\n @method detect\n @param {Class} klass The class to test.\n @return boolean Whether the class is a model class or not.\n */\n detect: function (klass) {\n return false;\n },\n\n\n /**\n Get the columns for a given model type.\n @private\n @method columnsForType\n @param {Class} type The model type.\n @return {Array} An array of columns of the following format:\n name: {String} The name of the column.\n desc: {String} Humanized description (what would show in a table column name).\n */\n columnsForType: function (type) {\n return (0, _emberRuntime.A)();\n },\n\n\n /**\n Adds observers to a model type class.\n @private\n @method observeModelType\n @param {String} modelName The model type name.\n @param {Function} typesUpdated Called when a type is modified.\n @return {Function} The function to call to remove observers.\n */\n\n observeModelType: function (modelName, typesUpdated) {\n var _this3 = this;\n\n var klass = this._nameToClass(modelName);\n var records = this.getRecords(klass, modelName);\n\n function onChange() {\n typesUpdated([this.wrapModelType(klass, modelName)]);\n }\n\n var observer = {\n didChange: function (array, idx, removedCount, addedCount) {\n // Only re-fetch records if the record count changed\n // (which is all we care about as far as model types are concerned).\n if (removedCount > 0 || addedCount > 0) {\n _emberMetal.run.scheduleOnce('actions', this, onChange);\n }\n },\n willChange: function () {\n return this;\n }\n };\n\n (0, _emberRuntime.addArrayObserver)(records, this, observer);\n\n var release = function () {\n return (0, _emberRuntime.removeArrayObserver)(records, _this3, observer);\n };\n\n return release;\n },\n\n\n /**\n Wraps a given model type and observes changes to it.\n @private\n @method wrapModelType\n @param {Class} klass A model class.\n @param {String} modelName Name of the class.\n @return {Object} Contains the wrapped type and the function to remove observers\n Format:\n type: {Object} The wrapped type.\n The wrapped type has the following format:\n name: {String} The name of the type.\n count: {Integer} The number of records available.\n columns: {Columns} An array of columns to describe the record.\n object: {Class} The actual Model type class.\n release: {Function} The function to remove observers.\n */\n wrapModelType: function (klass, name) {\n var records = this.getRecords(klass, name);\n var typeToSend = void 0;\n\n typeToSend = {\n name: name,\n count: (0, _emberMetal.get)(records, 'length'),\n columns: this.columnsForType(klass),\n object: klass\n };\n\n return typeToSend;\n },\n\n\n /**\n Fetches all models defined in the application.\n @private\n @method getModelTypes\n @return {Array} Array of model types.\n */\n getModelTypes: function () {\n var _this4 = this;\n\n var containerDebugAdapter = this.get('containerDebugAdapter');\n var types = void 0;\n\n if (containerDebugAdapter.canCatalogEntriesByType('model')) {\n types = containerDebugAdapter.catalogEntriesByType('model');\n } else {\n types = this._getObjectsOnNamespaces();\n }\n\n // New adapters return strings instead of classes.\n types = (0, _emberRuntime.A)(types).map(function (name) {\n return {\n klass: _this4._nameToClass(name),\n name: name\n };\n });\n types = (0, _emberRuntime.A)(types).filter(function (type) {\n return _this4.detect(type.klass);\n });\n\n return (0, _emberRuntime.A)(types);\n },\n\n\n /**\n Loops over all namespaces and all objects\n attached to them.\n @private\n @method _getObjectsOnNamespaces\n @return {Array} Array of model type strings.\n */\n _getObjectsOnNamespaces: function () {\n var _this5 = this;\n\n var namespaces = (0, _emberRuntime.A)(_emberRuntime.Namespace.NAMESPACES);\n var types = (0, _emberRuntime.A)();\n\n namespaces.forEach(function (namespace) {\n for (var key in namespace) {\n if (!namespace.hasOwnProperty(key)) {\n continue;\n }\n // Even though we will filter again in `getModelTypes`,\n // we should not call `lookupFactory` on non-models\n if (!_this5.detect(namespace[key])) {\n continue;\n }\n var name = _emberRuntime.String.dasherize(key);\n types.push(name);\n }\n });\n return types;\n },\n\n\n /**\n Fetches all loaded records for a given type.\n @private\n @method getRecords\n @return {Array} An array of records.\n This array will be observed for changes,\n so it should update when new records are added/removed.\n */\n getRecords: function (type) {\n return (0, _emberRuntime.A)();\n },\n\n\n /**\n Wraps a record and observers changes to it.\n @private\n @method wrapRecord\n @param {Object} record The record instance.\n @return {Object} The wrapped record. Format:\n columnValues: {Array}\n searchKeywords: {Array}\n */\n wrapRecord: function (record) {\n var recordToSend = { object: record };\n\n recordToSend.columnValues = this.getRecordColumnValues(record);\n recordToSend.searchKeywords = this.getRecordKeywords(record);\n recordToSend.filterValues = this.getRecordFilterValues(record);\n recordToSend.color = this.getRecordColor(record);\n\n return recordToSend;\n },\n\n\n /**\n Gets the values for each column.\n @private\n @method getRecordColumnValues\n @return {Object} Keys should match column names defined\n by the model type.\n */\n getRecordColumnValues: function (record) {\n return {};\n },\n\n\n /**\n Returns keywords to match when searching records.\n @private\n @method getRecordKeywords\n @return {Array} Relevant keywords for search.\n */\n getRecordKeywords: function (record) {\n return (0, _emberRuntime.A)();\n },\n\n\n /**\n Returns the values of filters defined by `getFilters`.\n @private\n @method getRecordFilterValues\n @param {Object} record The record instance.\n @return {Object} The filter values.\n */\n getRecordFilterValues: function (record) {\n return {};\n },\n\n\n /**\n Each record can have a color that represents its state.\n @private\n @method getRecordColor\n @param {Object} record The record instance\n @return {String} The records color.\n Possible options: black, red, blue, green.\n */\n getRecordColor: function (record) {\n return null;\n },\n\n\n /**\n Observes all relevant properties and re-sends the wrapped record\n when a change occurs.\n @private\n @method observerRecord\n @param {Object} record The record instance.\n @param {Function} recordUpdated The callback to call when a record is updated.\n @return {Function} The function to call to remove all observers.\n */\n observeRecord: function (record, recordUpdated) {\n return function () {};\n }\n });\n});","enifed('ember-extension-support/index', ['exports', 'ember-extension-support/data_adapter', 'ember-extension-support/container_debug_adapter'], function (exports, _data_adapter, _container_debug_adapter) {\n 'use strict';\n\n Object.defineProperty(exports, 'DataAdapter', {\n enumerable: true,\n get: function () {\n return _data_adapter.default;\n }\n });\n Object.defineProperty(exports, 'ContainerDebugAdapter', {\n enumerable: true,\n get: function () {\n return _container_debug_adapter.default;\n }\n });\n});","enifed('ember-glimmer/component-managers/abstract', ['exports', 'ember-babel'], function (exports, _emberBabel) {\n 'use strict';\n\n var AbstractManager = function () {\n function AbstractManager() {\n (0, _emberBabel.classCallCheck)(this, AbstractManager);\n\n this.debugStack = undefined;\n }\n\n AbstractManager.prototype.prepareArgs = function prepareArgs(_definition, _args) {\n return null;\n };\n\n AbstractManager.prototype.didCreateElement = function didCreateElement(_component, _element, _operations) {}\n // noop\n\n // inheritors should also call `this.debugStack.pop()` to\n // ensure the rerendering assertion messages are properly\n // maintained\n ;\n\n AbstractManager.prototype.didRenderLayout = function didRenderLayout(_component, _bounds) {\n // noop\n };\n\n AbstractManager.prototype.didCreate = function didCreate(_bucket) {\n // noop\n };\n\n AbstractManager.prototype.getTag = function getTag(_bucket) {\n return null;\n };\n\n AbstractManager.prototype.update = function update(_bucket, _dynamicScope) {}\n // noop\n\n // inheritors should also call `this.debugStack.pop()` to\n // ensure the rerendering assertion messages are properly\n // maintained\n ;\n\n AbstractManager.prototype.didUpdateLayout = function didUpdateLayout(_bucket, _bounds) {\n // noop\n };\n\n AbstractManager.prototype.didUpdate = function didUpdate(_bucket) {\n // noop\n };\n\n return AbstractManager;\n }();\n\n exports.default = AbstractManager;\n\n if (true) {\n AbstractManager.prototype._pushToDebugStack = function (name, environment) {\n this.debugStack = environment.debugStack;\n this.debugStack.push(name);\n };\n AbstractManager.prototype._pushEngineToDebugStack = function (name, environment) {\n this.debugStack = environment.debugStack;\n this.debugStack.pushEngine(name);\n };\n }\n});","enifed('ember-glimmer/component-managers/curly', ['exports', 'ember-babel', '@glimmer/reference', '@glimmer/runtime', 'container', 'ember-debug', 'ember-metal', 'ember-utils', 'ember-views', 'ember-glimmer/component', 'ember-glimmer/utils/bindings', 'ember-glimmer/utils/curly-component-state-bucket', 'ember-glimmer/utils/process-args', 'ember-glimmer/utils/references', 'ember-glimmer/component-managers/abstract'], function (exports, _emberBabel, _reference, _runtime, _container, _emberDebug, _emberMetal, _emberUtils, _emberViews, _component, _bindings, _curlyComponentStateBucket, _processArgs, _references, _abstract) {\n 'use strict';\n\n exports.CurlyComponentDefinition = exports.PositionalArgumentReference = undefined;\n exports.validatePositionalParameters = validatePositionalParameters;\n exports.processComponentInitializationAssertions = processComponentInitializationAssertions;\n exports.initialRenderInstrumentDetails = initialRenderInstrumentDetails;\n exports.rerenderInstrumentDetails = rerenderInstrumentDetails;\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['template:components/-default'], ['template:components/-default']);\n\n var DEFAULT_LAYOUT = (0, _container.privatize)(_templateObject);\n function aliasIdToElementId(args, props) {\n if (args.named.has('id')) {\n (true && !(!args.named.has('elementId')) && (0, _emberDebug.assert)('You cannot invoke a component with both \\'id\\' and \\'elementId\\' at the same time.', !args.named.has('elementId')));\n\n props.elementId = props.id;\n }\n }\n // We must traverse the attributeBindings in reverse keeping track of\n // what has already been applied. This is essentially refining the concatenated\n // properties applying right to left.\n function applyAttributeBindings(element, attributeBindings, component, operations) {\n var seen = [];\n var i = attributeBindings.length - 1;\n while (i !== -1) {\n var binding = attributeBindings[i];\n var parsed = _bindings.AttributeBinding.parse(binding);\n var attribute = parsed[1];\n if (seen.indexOf(attribute) === -1) {\n seen.push(attribute);\n _bindings.AttributeBinding.install(element, component, parsed, operations);\n }\n i--;\n }\n if (seen.indexOf('id') === -1) {\n operations.addStaticAttribute(element, 'id', component.elementId);\n }\n if (seen.indexOf('style') === -1) {\n _bindings.IsVisibleBinding.install(element, component, operations);\n }\n }\n function tagName(vm) {\n var dynamicScope = vm.dynamicScope();\n // tslint:disable-next-line:no-shadowed-variable\n var tagName = dynamicScope.view.tagName;\n\n return _runtime.PrimitiveReference.create(tagName === '' ? null : tagName || 'div');\n }\n function ariaRole(vm) {\n return vm.getSelf().get('ariaRole');\n }\n\n var CurlyComponentLayoutCompiler = function () {\n function CurlyComponentLayoutCompiler(template) {\n (0, _emberBabel.classCallCheck)(this, CurlyComponentLayoutCompiler);\n\n this.template = template;\n }\n\n CurlyComponentLayoutCompiler.prototype.compile = function compile(builder) {\n builder.wrapLayout(this.template);\n builder.tag.dynamic(tagName);\n builder.attrs.dynamic('role', ariaRole);\n builder.attrs.static('class', 'ember-view');\n };\n\n return CurlyComponentLayoutCompiler;\n }();\n\n CurlyComponentLayoutCompiler.id = 'curly';\n\n var PositionalArgumentReference = exports.PositionalArgumentReference = function () {\n function PositionalArgumentReference(references) {\n (0, _emberBabel.classCallCheck)(this, PositionalArgumentReference);\n\n this.tag = (0, _reference.combineTagged)(references);\n this._references = references;\n }\n\n PositionalArgumentReference.prototype.value = function value() {\n return this._references.map(function (reference) {\n return reference.value();\n });\n };\n\n PositionalArgumentReference.prototype.get = function get(key) {\n return _references.PropertyReference.create(this, key);\n };\n\n return PositionalArgumentReference;\n }();\n\n var CurlyComponentManager = function (_AbstractManager) {\n (0, _emberBabel.inherits)(CurlyComponentManager, _AbstractManager);\n\n function CurlyComponentManager() {\n (0, _emberBabel.classCallCheck)(this, CurlyComponentManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractManager.apply(this, arguments));\n }\n\n CurlyComponentManager.prototype.prepareArgs = function prepareArgs(definition, args) {\n var componentPositionalParamsDefinition = definition.ComponentClass.class.positionalParams;\n if (true && componentPositionalParamsDefinition) {\n validatePositionalParameters(args.named, args.positional, componentPositionalParamsDefinition);\n }\n var componentHasRestStylePositionalParams = typeof componentPositionalParamsDefinition === 'string';\n var componentHasPositionalParams = componentHasRestStylePositionalParams || componentPositionalParamsDefinition.length > 0;\n var needsPositionalParamMunging = componentHasPositionalParams && args.positional.length !== 0;\n var isClosureComponent = definition.args;\n if (!needsPositionalParamMunging && !isClosureComponent) {\n return null;\n }\n var capturedArgs = args.capture();\n // grab raw positional references array\n var positional = capturedArgs.positional.references;\n // handle prep for closure component with positional params\n var curriedNamed = void 0;\n if (definition.args) {\n var remainingDefinitionPositionals = definition.args.positional.slice(positional.length);\n positional = positional.concat(remainingDefinitionPositionals);\n curriedNamed = definition.args.named;\n }\n // handle positionalParams\n var positionalParamsToNamed = void 0;\n if (componentHasRestStylePositionalParams) {\n var _positionalParamsToNa;\n\n positionalParamsToNamed = (_positionalParamsToNa = {}, _positionalParamsToNa[componentPositionalParamsDefinition] = new PositionalArgumentReference(positional), _positionalParamsToNa);\n positional = [];\n } else if (componentHasPositionalParams) {\n positionalParamsToNamed = {};\n var length = Math.min(positional.length, componentPositionalParamsDefinition.length);\n for (var i = 0; i < length; i++) {\n var name = componentPositionalParamsDefinition[i];\n positionalParamsToNamed[name] = positional[i];\n }\n }\n var named = (0, _emberUtils.assign)({}, curriedNamed, positionalParamsToNamed, capturedArgs.named.map);\n return { positional: positional, named: named };\n };\n\n CurlyComponentManager.prototype.create = function create(environment, definition, args, dynamicScope, callerSelfRef, hasBlock) {\n if (true) {\n this._pushToDebugStack('component:' + definition.name, environment);\n }\n var parentView = dynamicScope.view;\n var factory = definition.ComponentClass;\n var capturedArgs = args.named.capture();\n var props = (0, _processArgs.processComponentArgs)(capturedArgs);\n aliasIdToElementId(args, props);\n props.parentView = parentView;\n props[_component.HAS_BLOCK] = hasBlock;\n props._targetObject = callerSelfRef.value();\n var component = factory.create(props);\n var finalizer = (0, _emberMetal._instrumentStart)('render.component', initialRenderInstrumentDetails, component);\n dynamicScope.view = component;\n if (parentView !== null && parentView !== undefined) {\n parentView.appendChild(component);\n }\n // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n if (component.tagName === '') {\n if (environment.isInteractive) {\n component.trigger('willRender');\n }\n component._transitionTo('hasElement');\n if (environment.isInteractive) {\n component.trigger('willInsertElement');\n }\n }\n var bucket = new _curlyComponentStateBucket.default(environment, component, capturedArgs, finalizer);\n if (args.named.has('class')) {\n bucket.classRef = args.named.get('class');\n }\n if (true) {\n processComponentInitializationAssertions(component, props);\n }\n if (environment.isInteractive && component.tagName !== '') {\n component.trigger('willRender');\n }\n return bucket;\n };\n\n CurlyComponentManager.prototype.layoutFor = function layoutFor(definition, bucket, env) {\n var template = definition.template;\n if (!template) {\n template = this.templateFor(bucket.component, env);\n }\n return env.getCompiledBlock(CurlyComponentLayoutCompiler, template);\n };\n\n CurlyComponentManager.prototype.templateFor = function templateFor(component, env) {\n var Template = (0, _emberMetal.get)(component, 'layout');\n var owner = component[_emberUtils.OWNER];\n if (Template) {\n return env.getTemplate(Template, owner);\n }\n var layoutName = (0, _emberMetal.get)(component, 'layoutName');\n if (layoutName) {\n var template = owner.lookup('template:' + layoutName);\n if (template) {\n return template;\n }\n }\n return owner.lookup(DEFAULT_LAYOUT);\n };\n\n CurlyComponentManager.prototype.getSelf = function getSelf(_ref) {\n var component = _ref.component;\n\n return component[_component.ROOT_REF];\n };\n\n CurlyComponentManager.prototype.didCreateElement = function didCreateElement(_ref2, element, operations) {\n var component = _ref2.component,\n classRef = _ref2.classRef,\n environment = _ref2.environment;\n\n (0, _emberViews.setViewElement)(component, element);\n var attributeBindings = component.attributeBindings,\n classNames = component.classNames,\n classNameBindings = component.classNameBindings;\n\n if (attributeBindings && attributeBindings.length) {\n applyAttributeBindings(element, attributeBindings, component, operations);\n } else {\n operations.addStaticAttribute(element, 'id', component.elementId);\n _bindings.IsVisibleBinding.install(element, component, operations);\n }\n if (classRef) {\n // TODO should make addDynamicAttribute accept an opaque\n operations.addDynamicAttribute(element, 'class', classRef, false);\n }\n if (classNames && classNames.length) {\n classNames.forEach(function (name) {\n operations.addStaticAttribute(element, 'class', name);\n });\n }\n if (classNameBindings && classNameBindings.length) {\n classNameBindings.forEach(function (binding) {\n _bindings.ClassNameBinding.install(element, component, binding, operations);\n });\n }\n component._transitionTo('hasElement');\n if (environment.isInteractive) {\n component.trigger('willInsertElement');\n }\n };\n\n CurlyComponentManager.prototype.didRenderLayout = function didRenderLayout(bucket, bounds) {\n bucket.component[_component.BOUNDS] = bounds;\n bucket.finalize();\n if (true) {\n this.debugStack.pop();\n }\n };\n\n CurlyComponentManager.prototype.getTag = function getTag(_ref3) {\n var component = _ref3.component;\n\n return component[_component.DIRTY_TAG];\n };\n\n CurlyComponentManager.prototype.didCreate = function didCreate(_ref4) {\n var component = _ref4.component,\n environment = _ref4.environment;\n\n if (environment.isInteractive) {\n component._transitionTo('inDOM');\n component.trigger('didInsertElement');\n component.trigger('didRender');\n }\n };\n\n CurlyComponentManager.prototype.update = function update(bucket) {\n var component = bucket.component,\n args = bucket.args,\n argsRevision = bucket.argsRevision,\n environment = bucket.environment;\n\n if (true) {\n this._pushToDebugStack(component._debugContainerKey, environment);\n }\n bucket.finalizer = (0, _emberMetal._instrumentStart)('render.component', rerenderInstrumentDetails, component);\n if (!args.tag.validate(argsRevision)) {\n var props = (0, _processArgs.processComponentArgs)(args);\n bucket.argsRevision = args.tag.value();\n component[_component.IS_DISPATCHING_ATTRS] = true;\n component.setProperties(props);\n component[_component.IS_DISPATCHING_ATTRS] = false;\n component.trigger('didUpdateAttrs');\n component.trigger('didReceiveAttrs');\n }\n if (environment.isInteractive) {\n component.trigger('willUpdate');\n component.trigger('willRender');\n }\n };\n\n CurlyComponentManager.prototype.didUpdateLayout = function didUpdateLayout(bucket) {\n bucket.finalize();\n if (true) {\n this.debugStack.pop();\n }\n };\n\n CurlyComponentManager.prototype.didUpdate = function didUpdate(_ref5) {\n var component = _ref5.component,\n environment = _ref5.environment;\n\n if (environment.isInteractive) {\n component.trigger('didUpdate');\n component.trigger('didRender');\n }\n };\n\n CurlyComponentManager.prototype.getDestructor = function getDestructor(stateBucket) {\n return stateBucket;\n };\n\n return CurlyComponentManager;\n }(_abstract.default);\n\n exports.default = CurlyComponentManager;\n function validatePositionalParameters(named, positional, positionalParamsDefinition) {\n if (true) {\n if (!named || !positional || !positional.length) {\n return;\n }\n var paramType = typeof positionalParamsDefinition;\n if (paramType === 'string') {\n (true && !(!named.has(positionalParamsDefinition)) && (0, _emberDebug.assert)('You cannot specify positional parameters and the hash argument `' + positionalParamsDefinition + '`.', !named.has(positionalParamsDefinition)));\n } else {\n if (positional.length < positionalParamsDefinition.length) {\n positionalParamsDefinition = positionalParamsDefinition.slice(0, positional.length);\n }\n for (var i = 0; i < positionalParamsDefinition.length; i++) {\n var name = positionalParamsDefinition[i];\n (true && !(!named.has(name)) && (0, _emberDebug.assert)('You cannot specify both a positional param (at position ' + i + ') and the hash argument `' + name + '`.', !named.has(name)));\n }\n }\n }\n }\n function processComponentInitializationAssertions(component, props) {\n (true && !(function () {\n var classNameBindings = component.classNameBindings;\n\n for (var i = 0; i < classNameBindings.length; i++) {\n var binding = classNameBindings[i];\n if (typeof binding !== 'string' || binding.length === 0) {\n return false;\n }\n }\n return true;\n }()) && (0, _emberDebug.assert)('classNameBindings must be non-empty strings: ' + component, function () {\n var classNameBindings = component.classNameBindings;\n for (var i = 0; i < classNameBindings.length; i++) {\n var binding = classNameBindings[i];if (typeof binding !== 'string' || binding.length === 0) {\n return false;\n }\n }return true;\n }()));\n (true && !(function () {\n var classNameBindings = component.classNameBindings;\n\n for (var i = 0; i < classNameBindings.length; i++) {\n var binding = classNameBindings[i];\n if (binding.split(' ').length > 1) {\n return false;\n }\n }\n return true;\n }()) && (0, _emberDebug.assert)('classNameBindings must not have spaces in them: ' + component, function () {\n var classNameBindings = component.classNameBindings;\n for (var i = 0; i < classNameBindings.length; i++) {\n var binding = classNameBindings[i];if (binding.split(' ').length > 1) {\n return false;\n }\n }return true;\n }()));\n (true && !(component.tagName !== '' || !component.classNameBindings || component.classNameBindings.length === 0) && (0, _emberDebug.assert)('You cannot use `classNameBindings` on a tag-less component: ' + component, component.tagName !== '' || !component.classNameBindings || component.classNameBindings.length === 0));\n (true && !(component.tagName !== '' || props.id === component.elementId || !component.elementId && component.elementId !== '') && (0, _emberDebug.assert)('You cannot use `elementId` on a tag-less component: ' + component, component.tagName !== '' || props.id === component.elementId || !component.elementId && component.elementId !== ''));\n (true && !(component.tagName !== '' || !component.attributeBindings || component.attributeBindings.length === 0) && (0, _emberDebug.assert)('You cannot use `attributeBindings` on a tag-less component: ' + component, component.tagName !== '' || !component.attributeBindings || component.attributeBindings.length === 0));\n }\n function initialRenderInstrumentDetails(component) {\n return component.instrumentDetails({ initialRender: true });\n }\n function rerenderInstrumentDetails(component) {\n return component.instrumentDetails({ initialRender: false });\n }\n var MANAGER = new CurlyComponentManager();\n\n var CurlyComponentDefinition = exports.CurlyComponentDefinition = function (_ComponentDefinition) {\n (0, _emberBabel.inherits)(CurlyComponentDefinition, _ComponentDefinition);\n\n // tslint:disable-next-line:no-shadowed-variable\n function CurlyComponentDefinition(name, ComponentClass, template, args, customManager) {\n (0, _emberBabel.classCallCheck)(this, CurlyComponentDefinition);\n\n var _this2 = (0, _emberBabel.possibleConstructorReturn)(this, _ComponentDefinition.call(this, name, customManager || MANAGER, ComponentClass));\n\n _this2.template = template;\n _this2.args = args;\n return _this2;\n }\n\n return CurlyComponentDefinition;\n }(_runtime.ComponentDefinition);\n});","enifed('ember-glimmer/component-managers/mount', ['exports', 'ember-babel', '@glimmer/runtime', 'ember-routing', 'ember/features', 'ember-glimmer/utils/references', 'ember-glimmer/component-managers/abstract', 'ember-glimmer/component-managers/outlet'], function (exports, _emberBabel, _runtime, _emberRouting, _features, _references, _abstract, _outlet) {\n 'use strict';\n\n exports.MountDefinition = undefined;\n\n var MountManager = function (_AbstractManager) {\n (0, _emberBabel.inherits)(MountManager, _AbstractManager);\n\n function MountManager() {\n (0, _emberBabel.classCallCheck)(this, MountManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractManager.apply(this, arguments));\n }\n\n MountManager.prototype.create = function create(environment, _ref, args) {\n var name = _ref.name;\n\n if (true) {\n this._pushEngineToDebugStack('engine:' + name, environment);\n }\n var engine = environment.owner.buildChildEngineInstance(name);\n engine.boot();\n var bucket = { engine: engine };\n if (_features.EMBER_ENGINES_MOUNT_PARAMS) {\n bucket.modelReference = args.named.get('model');\n }\n return bucket;\n };\n\n MountManager.prototype.layoutFor = function layoutFor(_definition, _ref2, env) {\n var engine = _ref2.engine;\n\n var template = engine.lookup('template:application');\n return env.getCompiledBlock(_outlet.OutletLayoutCompiler, template);\n };\n\n MountManager.prototype.getSelf = function getSelf(bucket) {\n var engine = bucket.engine,\n modelReference = bucket.modelReference;\n\n var applicationFactory = engine.factoryFor('controller:application');\n var controllerFactory = applicationFactory || (0, _emberRouting.generateControllerFactory)(engine, 'application');\n var controller = bucket.controller = controllerFactory.create();\n if (_features.EMBER_ENGINES_MOUNT_PARAMS) {\n var model = modelReference.value();\n bucket.modelRevision = modelReference.tag.value();\n controller.set('model', model);\n }\n return new _references.RootReference(controller);\n };\n\n MountManager.prototype.getDestructor = function getDestructor(_ref3) {\n var engine = _ref3.engine;\n\n return engine;\n };\n\n MountManager.prototype.didRenderLayout = function didRenderLayout() {\n if (true) {\n this.debugStack.pop();\n }\n };\n\n MountManager.prototype.update = function update(bucket) {\n if (_features.EMBER_ENGINES_MOUNT_PARAMS) {\n var controller = bucket.controller,\n modelReference = bucket.modelReference,\n modelRevision = bucket.modelRevision;\n\n if (!modelReference.tag.validate(modelRevision)) {\n var model = modelReference.value();\n bucket.modelRevision = modelReference.tag.value();\n controller.set('model', model);\n }\n }\n };\n\n return MountManager;\n }(_abstract.default);\n\n var MOUNT_MANAGER = new MountManager();\n\n var MountDefinition = exports.MountDefinition = function (_ComponentDefinition) {\n (0, _emberBabel.inherits)(MountDefinition, _ComponentDefinition);\n\n function MountDefinition(name) {\n (0, _emberBabel.classCallCheck)(this, MountDefinition);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ComponentDefinition.call(this, name, MOUNT_MANAGER, null));\n }\n\n return MountDefinition;\n }(_runtime.ComponentDefinition);\n});","enifed('ember-glimmer/component-managers/outlet', ['exports', 'ember-babel', '@glimmer/runtime', 'ember-metal', 'ember-utils', 'ember-glimmer/utils/references', 'ember-glimmer/component-managers/abstract'], function (exports, _emberBabel, _runtime, _emberMetal, _emberUtils, _references, _abstract) {\n 'use strict';\n\n exports.OutletLayoutCompiler = exports.OutletComponentDefinition = exports.TopLevelOutletComponentDefinition = undefined;\n\n function instrumentationPayload(_ref) {\n var _ref$render = _ref.render,\n name = _ref$render.name,\n outlet = _ref$render.outlet;\n\n return { object: name + ':' + outlet };\n }\n function NOOP() {}\n\n var StateBucket = function () {\n function StateBucket(outletState) {\n (0, _emberBabel.classCallCheck)(this, StateBucket);\n\n this.outletState = outletState;\n this.instrument();\n }\n\n StateBucket.prototype.instrument = function instrument() {\n this.finalizer = (0, _emberMetal._instrumentStart)('render.outlet', instrumentationPayload, this.outletState);\n };\n\n StateBucket.prototype.finalize = function finalize() {\n var finalizer = this.finalizer;\n\n finalizer();\n this.finalizer = NOOP;\n };\n\n return StateBucket;\n }();\n\n var OutletComponentManager = function (_AbstractManager) {\n (0, _emberBabel.inherits)(OutletComponentManager, _AbstractManager);\n\n function OutletComponentManager() {\n (0, _emberBabel.classCallCheck)(this, OutletComponentManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractManager.apply(this, arguments));\n }\n\n OutletComponentManager.prototype.create = function create(environment, definition, _args, dynamicScope) {\n if (true) {\n this._pushToDebugStack('template:' + definition.template.meta.moduleName, environment);\n }\n var outletStateReference = dynamicScope.outletState = dynamicScope.outletState.get('outlets').get(definition.outletName);\n var outletState = outletStateReference.value();\n return new StateBucket(outletState);\n };\n\n OutletComponentManager.prototype.layoutFor = function layoutFor(definition, _bucket, env) {\n return env.getCompiledBlock(OutletLayoutCompiler, definition.template);\n };\n\n OutletComponentManager.prototype.getSelf = function getSelf(_ref2) {\n var outletState = _ref2.outletState;\n\n return new _references.RootReference(outletState.render.controller);\n };\n\n OutletComponentManager.prototype.didRenderLayout = function didRenderLayout(bucket) {\n bucket.finalize();\n if (true) {\n this.debugStack.pop();\n }\n };\n\n OutletComponentManager.prototype.getDestructor = function getDestructor() {\n return null;\n };\n\n return OutletComponentManager;\n }(_abstract.default);\n\n var MANAGER = new OutletComponentManager();\n\n var TopLevelOutletComponentManager = function (_OutletComponentManag) {\n (0, _emberBabel.inherits)(TopLevelOutletComponentManager, _OutletComponentManag);\n\n function TopLevelOutletComponentManager() {\n (0, _emberBabel.classCallCheck)(this, TopLevelOutletComponentManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _OutletComponentManag.apply(this, arguments));\n }\n\n TopLevelOutletComponentManager.prototype.create = function create(environment, definition, _args, dynamicScope) {\n if (true) {\n this._pushToDebugStack('template:' + definition.template.meta.moduleName, environment);\n }\n return new StateBucket(dynamicScope.outletState.value());\n };\n\n TopLevelOutletComponentManager.prototype.layoutFor = function layoutFor(definition, _bucket, env) {\n return env.getCompiledBlock(TopLevelOutletLayoutCompiler, definition.template);\n };\n\n return TopLevelOutletComponentManager;\n }(OutletComponentManager);\n\n var TOP_LEVEL_MANAGER = new TopLevelOutletComponentManager();\n\n var TopLevelOutletComponentDefinition = exports.TopLevelOutletComponentDefinition = function (_ComponentDefinition) {\n (0, _emberBabel.inherits)(TopLevelOutletComponentDefinition, _ComponentDefinition);\n\n function TopLevelOutletComponentDefinition(instance) {\n (0, _emberBabel.classCallCheck)(this, TopLevelOutletComponentDefinition);\n\n var _this3 = (0, _emberBabel.possibleConstructorReturn)(this, _ComponentDefinition.call(this, 'outlet', TOP_LEVEL_MANAGER, instance));\n\n _this3.template = instance.template;\n (0, _emberUtils.generateGuid)(_this3);\n return _this3;\n }\n\n return TopLevelOutletComponentDefinition;\n }(_runtime.ComponentDefinition);\n\n var TopLevelOutletLayoutCompiler = function () {\n function TopLevelOutletLayoutCompiler(template) {\n (0, _emberBabel.classCallCheck)(this, TopLevelOutletLayoutCompiler);\n\n this.template = template;\n }\n\n TopLevelOutletLayoutCompiler.prototype.compile = function compile(builder) {\n builder.wrapLayout(this.template);\n builder.tag.static('div');\n builder.attrs.static('id', (0, _emberUtils.guidFor)(this));\n builder.attrs.static('class', 'ember-view');\n };\n\n return TopLevelOutletLayoutCompiler;\n }();\n\n TopLevelOutletLayoutCompiler.id = 'top-level-outlet';\n\n var OutletComponentDefinition = exports.OutletComponentDefinition = function (_ComponentDefinition2) {\n (0, _emberBabel.inherits)(OutletComponentDefinition, _ComponentDefinition2);\n\n function OutletComponentDefinition(outletName, template) {\n (0, _emberBabel.classCallCheck)(this, OutletComponentDefinition);\n\n var _this4 = (0, _emberBabel.possibleConstructorReturn)(this, _ComponentDefinition2.call(this, 'outlet', MANAGER, null));\n\n _this4.outletName = outletName;\n _this4.template = template;\n (0, _emberUtils.generateGuid)(_this4);\n return _this4;\n }\n\n return OutletComponentDefinition;\n }(_runtime.ComponentDefinition);\n\n var OutletLayoutCompiler = exports.OutletLayoutCompiler = function () {\n function OutletLayoutCompiler(template) {\n (0, _emberBabel.classCallCheck)(this, OutletLayoutCompiler);\n\n this.template = template;\n }\n\n OutletLayoutCompiler.prototype.compile = function compile(builder) {\n builder.wrapLayout(this.template);\n };\n\n return OutletLayoutCompiler;\n }();\n\n OutletLayoutCompiler.id = 'outlet';\n});","enifed('ember-glimmer/component-managers/render', ['exports', 'ember-babel', '@glimmer/runtime', 'ember-debug', 'ember-routing', 'ember-glimmer/utils/references', 'ember-glimmer/component-managers/abstract', 'ember-glimmer/component-managers/outlet'], function (exports, _emberBabel, _runtime, _emberDebug, _emberRouting, _references, _abstract, _outlet) {\n 'use strict';\n\n exports.RenderDefinition = exports.NON_SINGLETON_RENDER_MANAGER = exports.SINGLETON_RENDER_MANAGER = exports.AbstractRenderManager = undefined;\n\n var AbstractRenderManager = exports.AbstractRenderManager = function (_AbstractManager) {\n (0, _emberBabel.inherits)(AbstractRenderManager, _AbstractManager);\n\n function AbstractRenderManager() {\n (0, _emberBabel.classCallCheck)(this, AbstractRenderManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractManager.apply(this, arguments));\n }\n\n AbstractRenderManager.prototype.layoutFor = function layoutFor(definition, _bucket, env) {\n // only curly components can have lazy layout\n (true && !(!!definition.template) && (0, _emberDebug.assert)('definition is missing a template', !!definition.template));\n\n return env.getCompiledBlock(_outlet.OutletLayoutCompiler, definition.template);\n };\n\n AbstractRenderManager.prototype.getSelf = function getSelf(_ref) {\n var controller = _ref.controller;\n\n return new _references.RootReference(controller);\n };\n\n return AbstractRenderManager;\n }(_abstract.default);\n\n if (true) {\n AbstractRenderManager.prototype.didRenderLayout = function () {\n this.debugStack.pop();\n };\n }\n\n var SingletonRenderManager = function (_AbstractRenderManage) {\n (0, _emberBabel.inherits)(SingletonRenderManager, _AbstractRenderManage);\n\n function SingletonRenderManager() {\n (0, _emberBabel.classCallCheck)(this, SingletonRenderManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractRenderManage.apply(this, arguments));\n }\n\n SingletonRenderManager.prototype.create = function create(env, definition, _args, dynamicScope) {\n var name = definition.name;\n\n var controller = env.owner.lookup('controller:' + name) || (0, _emberRouting.generateController)(env.owner, name);\n if (true) {\n this._pushToDebugStack('controller:' + name + ' (with the render helper)', env);\n }\n if (dynamicScope.rootOutletState) {\n dynamicScope.outletState = dynamicScope.rootOutletState.getOrphan(name);\n }\n return { controller: controller };\n };\n\n SingletonRenderManager.prototype.getDestructor = function getDestructor() {\n return null;\n };\n\n return SingletonRenderManager;\n }(AbstractRenderManager);\n\n var SINGLETON_RENDER_MANAGER = exports.SINGLETON_RENDER_MANAGER = new SingletonRenderManager();\n\n var NonSingletonRenderManager = function (_AbstractRenderManage2) {\n (0, _emberBabel.inherits)(NonSingletonRenderManager, _AbstractRenderManage2);\n\n function NonSingletonRenderManager() {\n (0, _emberBabel.classCallCheck)(this, NonSingletonRenderManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractRenderManage2.apply(this, arguments));\n }\n\n NonSingletonRenderManager.prototype.create = function create(environment, definition, args, dynamicScope) {\n var name = definition.name,\n env = definition.env;\n\n var modelRef = args.positional.at(0);\n var controllerFactory = env.owner.factoryFor('controller:' + name);\n var factory = controllerFactory || (0, _emberRouting.generateControllerFactory)(env.owner, name);\n var controller = factory.create({ model: modelRef.value() });\n if (true) {\n this._pushToDebugStack('controller:' + name + ' (with the render helper)', environment);\n }\n if (dynamicScope.rootOutletState) {\n dynamicScope.outletState = dynamicScope.rootOutletState.getOrphan(name);\n }\n return { controller: controller, model: modelRef };\n };\n\n NonSingletonRenderManager.prototype.update = function update(_ref2) {\n var controller = _ref2.controller,\n model = _ref2.model;\n\n controller.set('model', model.value());\n };\n\n NonSingletonRenderManager.prototype.getDestructor = function getDestructor(_ref3) {\n var controller = _ref3.controller;\n\n return controller;\n };\n\n return NonSingletonRenderManager;\n }(AbstractRenderManager);\n\n var NON_SINGLETON_RENDER_MANAGER = exports.NON_SINGLETON_RENDER_MANAGER = new NonSingletonRenderManager();\n\n var RenderDefinition = exports.RenderDefinition = function (_ComponentDefinition) {\n (0, _emberBabel.inherits)(RenderDefinition, _ComponentDefinition);\n\n function RenderDefinition(name, template, env, manager) {\n (0, _emberBabel.classCallCheck)(this, RenderDefinition);\n\n var _this4 = (0, _emberBabel.possibleConstructorReturn)(this, _ComponentDefinition.call(this, 'render', manager, null));\n\n _this4.name = name;\n _this4.template = template;\n _this4.env = env;\n return _this4;\n }\n\n return RenderDefinition;\n }(_runtime.ComponentDefinition);\n});","enifed('ember-glimmer/component-managers/root', ['exports', 'ember-babel', '@glimmer/runtime', 'ember-metal', 'ember-glimmer/utils/curly-component-state-bucket', 'ember-glimmer/component-managers/curly'], function (exports, _emberBabel, _runtime, _emberMetal, _curlyComponentStateBucket, _curly) {\n 'use strict';\n\n exports.RootComponentDefinition = undefined;\n\n var RootComponentManager = function (_CurlyComponentManage) {\n (0, _emberBabel.inherits)(RootComponentManager, _CurlyComponentManage);\n\n function RootComponentManager() {\n (0, _emberBabel.classCallCheck)(this, RootComponentManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _CurlyComponentManage.apply(this, arguments));\n }\n\n RootComponentManager.prototype.create = function create(environment, definition, args, dynamicScope) {\n var component = definition.ComponentClass.create();\n if (true) {\n this._pushToDebugStack(component._debugContainerKey, environment);\n }\n var finalizer = (0, _emberMetal._instrumentStart)('render.component', _curly.initialRenderInstrumentDetails, component);\n dynamicScope.view = component;\n // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n if (component.tagName === '') {\n if (environment.isInteractive) {\n component.trigger('willRender');\n }\n component._transitionTo('hasElement');\n if (environment.isInteractive) {\n component.trigger('willInsertElement');\n }\n }\n if (true) {\n (0, _curly.processComponentInitializationAssertions)(component, {});\n }\n return new _curlyComponentStateBucket.default(environment, component, args.named.capture(), finalizer);\n };\n\n return RootComponentManager;\n }(_curly.default);\n\n var ROOT_MANAGER = new RootComponentManager();\n\n var RootComponentDefinition = exports.RootComponentDefinition = function (_ComponentDefinition) {\n (0, _emberBabel.inherits)(RootComponentDefinition, _ComponentDefinition);\n\n function RootComponentDefinition(instance) {\n (0, _emberBabel.classCallCheck)(this, RootComponentDefinition);\n\n var _this2 = (0, _emberBabel.possibleConstructorReturn)(this, _ComponentDefinition.call(this, '-root', ROOT_MANAGER, {\n class: instance.constructor,\n create: function () {\n return instance;\n }\n }));\n\n _this2.template = undefined;\n _this2.args = undefined;\n return _this2;\n }\n\n return RootComponentDefinition;\n }(_runtime.ComponentDefinition);\n});","enifed('ember-glimmer/component', ['exports', '@glimmer/reference', '@glimmer/runtime', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-utils', 'ember-views', 'ember-glimmer/utils/references'], function (exports, _reference, _runtime, _emberDebug, _emberMetal, _emberRuntime, _emberUtils, _emberViews, _references) {\n 'use strict';\n\n exports.BOUNDS = exports.HAS_BLOCK = exports.IS_DISPATCHING_ATTRS = exports.ROOT_REF = exports.ARGS = exports.DIRTY_TAG = undefined;\n\n var _CoreView$extend;\n\n var DIRTY_TAG = exports.DIRTY_TAG = (0, _emberUtils.symbol)('DIRTY_TAG');\n var ARGS = exports.ARGS = (0, _emberUtils.symbol)('ARGS');\n var ROOT_REF = exports.ROOT_REF = (0, _emberUtils.symbol)('ROOT_REF');\n var IS_DISPATCHING_ATTRS = exports.IS_DISPATCHING_ATTRS = (0, _emberUtils.symbol)('IS_DISPATCHING_ATTRS');\n var HAS_BLOCK = exports.HAS_BLOCK = (0, _emberUtils.symbol)('HAS_BLOCK');\n var BOUNDS = exports.BOUNDS = (0, _emberUtils.symbol)('BOUNDS');\n /**\n @module @ember/component\n */\n /**\n A `Component` is a view that is completely\n isolated. Properties accessed in its templates go\n to the view object and actions are targeted at\n the view object. There is no access to the\n surrounding context or outer controller; all\n contextual information must be passed in.\n \n The easiest way to create a `Component` is via\n a template. If you name a template\n `app/components/my-foo.hbs`, you will be able to use\n `{{my-foo}}` in other templates, which will make\n an instance of the isolated component.\n \n ```app/components/my-foo.hbs\n {{person-profile person=currentUser}}\n ```\n \n ```app/components/person-profile.hbs\n <h1>{{person.title}}</h1>\n <img src={{person.avatar}}>\n <p class='signature'>{{person.signature}}</p>\n ```\n \n You can use `yield` inside a template to\n include the **contents** of any block attached to\n the component. The block will be executed in the\n context of the surrounding context or outer controller:\n \n ```handlebars\n {{#person-profile person=currentUser}}\n <p>Admin mode</p>\n {{! Executed in the controller's context. }}\n {{/person-profile}}\n ```\n \n ```app/components/person-profile.hbs\n <h1>{{person.title}}</h1>\n {{! Executed in the component's context. }}\n {{yield}} {{! block contents }}\n ```\n \n If you want to customize the component, in order to\n handle events or actions, you implement a subclass\n of `Component` named after the name of the\n component.\n \n For example, you could implement the action\n `hello` for the `person-profile` component:\n \n ```app/components/person-profile.js\n import Component from '@ember/component';\n \n export default Component.extend({\n actions: {\n hello(name) {\n console.log(\"Hello\", name);\n }\n }\n });\n ```\n \n And then use it in the component's template:\n \n ```app/templates/components/person-profile.hbs\n <h1>{{person.title}}</h1>\n {{yield}} <!-- block contents -->\n <button {{action 'hello' person.name}}>\n Say Hello to {{person.name}}\n </button>\n ```\n \n Components must have a `-` in their name to avoid\n conflicts with built-in controls that wrap HTML\n elements. This is consistent with the same\n requirement in web components.\n \n ## HTML Tag\n \n The default HTML tag name used for a component's DOM representation is `div`.\n This can be customized by setting the `tagName` property.\n The following component class:\n \n ```app/components/emphasized-paragraph.js\n import Component from '@ember/component';\n \n export default Component.extend({\n tagName: 'em'\n });\n ```\n \n Would result in instances with the following HTML:\n \n ```html\n <em id=\"ember1\" class=\"ember-view\"></em>\n ```\n \n ## HTML `class` Attribute\n \n The HTML `class` attribute of a component's tag can be set by providing a\n `classNames` property that is set to an array of strings:\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n \n export default Component.extend({\n classNames: ['my-class', 'my-other-class']\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view my-class my-other-class\"></div>\n ```\n \n `class` attribute values can also be set by providing a `classNameBindings`\n property set to an array of properties names for the component. The return value\n of these properties will be added as part of the value for the components's `class`\n attribute. These properties can be computed properties:\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n import { computed } from '@ember/object';\n \n export default Component.extend({\n classNameBindings: ['propertyA', 'propertyB'],\n \n propertyA: 'from-a',\n propertyB: computed(function() {\n if (someLogic) { return 'from-b'; }\n })\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view from-a from-b\"></div>\n ```\n \n If the value of a class name binding returns a boolean the property name\n itself will be used as the class name if the property is true.\n The class name will not be added if the value is `false` or `undefined`.\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n \n export default Component.extend({\n classNameBindings: ['hovered'],\n \n hovered: true\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view hovered\"></div>\n ```\n \n When using boolean class name bindings you can supply a string value other\n than the property name for use as the `class` HTML attribute by appending the\n preferred value after a \":\" character when defining the binding:\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n \n export default Component.extend({\n classNameBindings: ['awesome:so-very-cool'],\n \n awesome: true\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view so-very-cool\"></div>\n ```\n \n Boolean value class name bindings whose property names are in a\n camelCase-style format will be converted to a dasherized format:\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n \n export default Component.extend({\n classNameBindings: ['isUrgent'],\n \n isUrgent: true\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view is-urgent\"></div>\n ```\n \n Class name bindings can also refer to object values that are found by\n traversing a path relative to the component itself:\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n import EmberObject from '@ember/object';\n \n export default Component.extend({\n classNameBindings: ['messages.empty'],\n \n messages: EmberObject.create({\n empty: true\n })\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view empty\"></div>\n ```\n \n If you want to add a class name for a property which evaluates to true and\n and a different class name if it evaluates to false, you can pass a binding\n like this:\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n \n export default Component.extend({\n classNameBindings: ['isEnabled:enabled:disabled'],\n isEnabled: true\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view enabled\"></div>\n ```\n \n When isEnabled is `false`, the resulting HTML representation looks like\n this:\n \n ```html\n <div id=\"ember1\" class=\"ember-view disabled\"></div>\n ```\n \n This syntax offers the convenience to add a class if a property is `false`:\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n \n // Applies no class when isEnabled is true and class 'disabled' when isEnabled is false\n export default Component.extend({\n classNameBindings: ['isEnabled::disabled'],\n isEnabled: true\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view\"></div>\n ```\n \n When the `isEnabled` property on the component is set to `false`, it will result\n in component instances with an HTML representation of:\n \n ```html\n <div id=\"ember1\" class=\"ember-view disabled\"></div>\n ```\n \n Updates to the value of a class name binding will result in automatic\n update of the HTML `class` attribute in the component's rendered HTML\n representation. If the value becomes `false` or `undefined` the class name\n will be removed.\n Both `classNames` and `classNameBindings` are concatenated properties. See\n [EmberObject](/api/classes/Ember.Object.html) documentation for more\n information about concatenated properties.\n \n ## HTML Attributes\n \n The HTML attribute section of a component's tag can be set by providing an\n `attributeBindings` property set to an array of property names on the component.\n The return value of these properties will be used as the value of the component's\n HTML associated attribute:\n \n ```app/components/my-anchor.js\n import Component from '@ember/component';\n \n export default Component.extend({\n tagName: 'a',\n attributeBindings: ['href'],\n \n href: 'http://google.com'\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n ```\n \n One property can be mapped on to another by placing a \":\" between\n the source property and the destination property:\n \n ```app/components/my-anchor.js\n import Component from '@ember/component';\n \n export default Component.extend({\n tagName: 'a',\n attributeBindings: ['url:href'],\n \n url: 'http://google.com'\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n ```\n \n Namespaced attributes (e.g. `xlink:href`) are supported, but have to be\n mapped, since `:` is not a valid character for properties in Javascript:\n \n ```app/components/my-use.js\n import Component from '@ember/component';\n \n export default Component.extend({\n tagName: 'use',\n attributeBindings: ['xlinkHref:xlink:href'],\n \n xlinkHref: '#triangle'\n });\n ```\n \n Will result in component instances with an HTML representation of:\n \n ```html\n <use xlink:href=\"#triangle\"></use>\n ```\n \n If the return value of an `attributeBindings` monitored property is a boolean\n the attribute will be present or absent depending on the value:\n \n ```app/components/my-text-input.js\n import Component from '@ember/component';\n \n export default Component.extend({\n tagName: 'input',\n attributeBindings: ['disabled'],\n \n disabled: false\n });\n ```\n \n Will result in a component instance with an HTML representation of:\n \n ```html\n <input id=\"ember1\" class=\"ember-view\" />\n ```\n \n `attributeBindings` can refer to computed properties:\n \n ```app/components/my-text-input.js\n import Component from '@ember/component';\n import { computed } from '@ember/object';\n \n export default Component.extend({\n tagName: 'input',\n attributeBindings: ['disabled'],\n \n disabled: computed(function() {\n if (someLogic) {\n return true;\n } else {\n return false;\n }\n })\n });\n ```\n \n To prevent setting an attribute altogether, use `null` or `undefined` as the\n return value of the `attributeBindings` monitored property:\n \n ```app/components/my-text-input.js\n import Component from '@ember/component';\n \n export default Component.extend({\n tagName: 'form',\n attributeBindings: ['novalidate'],\n novalidate: null\n });\n ```\n \n Updates to the property of an attribute binding will result in automatic\n update of the HTML attribute in the component's rendered HTML representation.\n `attributeBindings` is a concatenated property. See [EmberObject](/api/classes/Ember.Object.html)\n documentation for more information about concatenated properties.\n \n ## Layouts\n \n See [Ember.Templates.helpers.yield](/api/classes/Ember.Templates.helpers.html#method_yield)\n for more information.\n \n Layout can be used to wrap content in a component. In addition\n to wrapping content in a Component's template, you can also use\n the public layout API in your Component JavaScript.\n \n ```app/templates/components/person-profile.hbs\n <h1>Person's Title</h1>\n <div class='details'>{{yield}}</div>\n ```\n \n ```app/components/person-profile.js\n import Component from '@ember/component';\n import layout from '../templates/components/person-profile';\n \n export default Component.extend({\n layout\n });\n ```\n \n The above will result in the following HTML output:\n \n ```html\n <h1>Person's Title</h1>\n <div class=\"details\">\n <h2>Chief Basket Weaver</h2>\n <h3>Fisherman Industries</h3>\n </div>\n ```\n \n ## Responding to Browser Events\n \n Components can respond to user-initiated events in one of three ways: method\n implementation, through an event manager, and through `{{action}}` helper use\n in their template or layout.\n \n ### Method Implementation\n \n Components can respond to user-initiated events by implementing a method that\n matches the event name. A `jQuery.Event` object will be passed as the\n argument to this method.\n \n ```app/components/my-widget.js\n import Component from '@ember/component';\n \n export default Component.extend({\n click(event) {\n // will be called when an instance's\n // rendered element is clicked\n }\n });\n ```\n \n ### `{{action}}` Helper\n \n See [Ember.Templates.helpers.action](/api/classes/Ember.Templates.helpers.html#method_action).\n \n ### Event Names\n \n All of the event handling approaches described above respond to the same set\n of events. The names of the built-in events are listed below. (The hash of\n built-in events exists in `Ember.EventDispatcher`.) Additional, custom events\n can be registered by using `Ember.Application.customEvents`.\n \n Touch events:\n \n * `touchStart`\n * `touchMove`\n * `touchEnd`\n * `touchCancel`\n \n Keyboard events:\n \n * `keyDown`\n * `keyUp`\n * `keyPress`\n \n Mouse events:\n \n * `mouseDown`\n * `mouseUp`\n * `contextMenu`\n * `click`\n * `doubleClick`\n * `mouseMove`\n * `focusIn`\n * `focusOut`\n * `mouseEnter`\n * `mouseLeave`\n \n Form events:\n \n * `submit`\n * `change`\n * `focusIn`\n * `focusOut`\n * `input`\n \n HTML5 drag and drop events:\n \n * `dragStart`\n * `drag`\n * `dragEnter`\n * `dragLeave`\n * `dragOver`\n * `dragEnd`\n * `drop`\n \n @class Component\n @extends Ember.CoreView\n @uses Ember.TargetActionSupport\n @uses Ember.ClassNamesSupport\n @uses Ember.ActionSupport\n @uses Ember.ViewMixin\n @uses Ember.ViewStateSupport\n @public\n */\n var Component = _emberViews.CoreView.extend(_emberViews.ChildViewsSupport, _emberViews.ViewStateSupport, _emberViews.ClassNamesSupport, _emberRuntime.TargetActionSupport, _emberViews.ActionSupport, _emberViews.ViewMixin, (_CoreView$extend = {\n isComponent: true,\n init: function () {\n var _this = this;\n\n this._super.apply(this, arguments);\n this[IS_DISPATCHING_ATTRS] = false;\n this[DIRTY_TAG] = new _reference.DirtyableTag();\n this[ROOT_REF] = new _references.RootReference(this);\n this[BOUNDS] = null;\n // If a `defaultLayout` was specified move it to the `layout` prop.\n // `layout` is no longer a CP, so this just ensures that the `defaultLayout`\n // logic is supported with a deprecation\n if (this.defaultLayout && !this.layout) {\n (true && !(false) && (0, _emberDebug.deprecate)('Specifying `defaultLayout` to ' + this + ' is deprecated. Please use `layout` instead.', false, {\n id: 'ember-views.component.defaultLayout',\n until: '3.0.0',\n url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-component-defaultlayout'\n }));\n\n this.layout = this.defaultLayout;\n }\n // If in a tagless component, assert that no event handlers are defined\n (true && !(this.tagName !== '' || !this.renderer._destinedForDOM || !function () {\n var eventDispatcher = (0, _emberUtils.getOwner)(_this).lookup('event_dispatcher:main');\n var events = eventDispatcher && eventDispatcher._finalEvents || {};\n // tslint:disable-next-line:forin\n for (var key in events) {\n var methodName = events[key];\n if (typeof _this[methodName] === 'function') {\n return true; // indicate that the assertion should be triggered\n }\n }\n return false;\n }()) && (0, _emberDebug.assert)('You can not define a function that handles DOM events in the `' + this + '` tagless component since it doesn\\'t have any DOM element.', this.tagName !== '' || !this.renderer._destinedForDOM || !function () {\n var eventDispatcher = (0, _emberUtils.getOwner)(_this).lookup('event_dispatcher:main');var events = eventDispatcher && eventDispatcher._finalEvents || {};for (var key in events) {\n var methodName = events[key];if (typeof _this[methodName] === 'function') {\n return true;\n }\n }return false;\n }()));\n (true && !(!(this.tagName && this.tagName.isDescriptor)) && (0, _emberDebug.assert)('You cannot use a computed property for the component\\'s `tagName` (' + this + ').', !(this.tagName && this.tagName.isDescriptor)));\n },\n rerender: function () {\n this[DIRTY_TAG].dirty();\n this._super();\n },\n __defineNonEnumerable: function (property) {\n this[property.name] = property.descriptor.value;\n }\n }, _CoreView$extend[_emberMetal.PROPERTY_DID_CHANGE] = function (key) {\n if (this[IS_DISPATCHING_ATTRS]) {\n return;\n }\n var args = this[ARGS];\n var reference = args && args[key];\n if (reference) {\n if (reference[_references.UPDATE]) {\n reference[_references.UPDATE]((0, _emberMetal.get)(this, key));\n }\n }\n }, _CoreView$extend.getAttr = function (key) {\n // TODO Intimate API should be deprecated\n return this.get(key);\n }, _CoreView$extend.readDOMAttr = function (name) {\n var element = (0, _emberViews.getViewElement)(this);\n return (0, _runtime.readDOMAttr)(element, name);\n }, _CoreView$extend));\n Component[_emberUtils.NAME_KEY] = 'Ember.Component';\n Component.reopenClass({\n isComponentFactory: true,\n positionalParams: []\n });\n exports.default = Component;\n});","enifed('ember-glimmer/components/checkbox', ['exports', 'ember-metal', 'ember-glimmer/component', 'ember-glimmer/templates/empty'], function (exports, _emberMetal, _component, _empty) {\n 'use strict';\n\n exports.default = _component.default.extend({\n layout: _empty.default,\n classNames: ['ember-checkbox'],\n tagName: 'input',\n attributeBindings: ['type', 'checked', 'indeterminate', 'disabled', 'tabindex', 'name', 'autofocus', 'required', 'form'],\n type: 'checkbox',\n disabled: false,\n indeterminate: false,\n didInsertElement: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.get)(this, 'element').indeterminate = !!(0, _emberMetal.get)(this, 'indeterminate');\n },\n change: function () {\n (0, _emberMetal.set)(this, 'checked', this.$().prop('checked'));\n }\n });\n});","enifed('ember-glimmer/components/link-to', ['exports', 'ember-debug', 'ember-metal', 'ember-runtime', 'ember-views', 'ember-glimmer/component', 'ember-glimmer/templates/link-to'], function (exports, _emberDebug, _emberMetal, _emberRuntime, _emberViews, _component, _linkTo) {\n 'use strict';\n\n /**\n @module @ember/routing\n */\n /**\n `LinkComponent` renders an element whose `click` event triggers a\n transition of the application's instance of `Router` to\n a supplied route by name.\n \n `LinkComponent` components are invoked with {{#link-to}}. Properties\n of this class can be overridden with `reopen` to customize application-wide\n behavior.\n \n @class LinkComponent\n @extends Component\n @see {Ember.Templates.helpers.link-to}\n @public\n **/\n var LinkComponent = _component.default.extend({\n layout: _linkTo.default,\n tagName: 'a',\n /**\n @deprecated Use current-when instead.\n @property currentWhen\n @private\n */\n currentWhen: (0, _emberRuntime.deprecatingAlias)('current-when', { id: 'ember-routing-view.deprecated-current-when', until: '3.0.0' }),\n /**\n Used to determine when this `LinkComponent` is active.\n @property current-when\n @public\n */\n 'current-when': null,\n /**\n Sets the `title` attribute of the `LinkComponent`'s HTML element.\n @property title\n @default null\n @public\n **/\n title: null,\n /**\n Sets the `rel` attribute of the `LinkComponent`'s HTML element.\n @property rel\n @default null\n @public\n **/\n rel: null,\n /**\n Sets the `tabindex` attribute of the `LinkComponent`'s HTML element.\n @property tabindex\n @default null\n @public\n **/\n tabindex: null,\n /**\n Sets the `target` attribute of the `LinkComponent`'s HTML element.\n @since 1.8.0\n @property target\n @default null\n @public\n **/\n target: null,\n /**\n The CSS class to apply to `LinkComponent`'s element when its `active`\n property is `true`.\n @property activeClass\n @type String\n @default active\n @public\n **/\n activeClass: 'active',\n /**\n The CSS class to apply to `LinkComponent`'s element when its `loading`\n property is `true`.\n @property loadingClass\n @type String\n @default loading\n @private\n **/\n loadingClass: 'loading',\n /**\n The CSS class to apply to a `LinkComponent`'s element when its `disabled`\n property is `true`.\n @property disabledClass\n @type String\n @default disabled\n @private\n **/\n disabledClass: 'disabled',\n /**\n Determines whether the `LinkComponent` will trigger routing via\n the `replaceWith` routing strategy.\n @property replace\n @type Boolean\n @default false\n @public\n **/\n replace: false,\n /**\n By default the `{{link-to}}` component will bind to the `href` and\n `title` attributes. It's discouraged that you override these defaults,\n however you can push onto the array if needed.\n @property attributeBindings\n @type Array | String\n @default ['title', 'rel', 'tabindex', 'target']\n @public\n */\n attributeBindings: ['href', 'title', 'rel', 'tabindex', 'target'],\n /**\n By default the `{{link-to}}` component will bind to the `active`, `loading`,\n and `disabled` classes. It is discouraged to override these directly.\n @property classNameBindings\n @type Array\n @default ['active', 'loading', 'disabled', 'ember-transitioning-in', 'ember-transitioning-out']\n @public\n */\n classNameBindings: ['active', 'loading', 'disabled', 'transitioningIn', 'transitioningOut'],\n /**\n By default the `{{link-to}}` component responds to the `click` event. You\n can override this globally by setting this property to your custom\n event name.\n This is particularly useful on mobile when one wants to avoid the 300ms\n click delay using some sort of custom `tap` event.\n @property eventName\n @type String\n @default click\n @private\n */\n eventName: 'click',\n init: function () {\n this._super.apply(this, arguments);\n // Map desired event name to invoke function\n var eventName = (0, _emberMetal.get)(this, 'eventName');\n this.on(eventName, this, this._invoke);\n },\n\n _routing: _emberRuntime.inject.service('-routing'),\n /**\n Accessed as a classname binding to apply the `LinkComponent`'s `disabledClass`\n CSS `class` to the element when the link is disabled.\n When `true` interactions with the element will not trigger route changes.\n @property disabled\n @private\n */\n disabled: (0, _emberMetal.computed)({\n get: function (_key) {\n // always returns false for `get` because (due to the `set` just below)\n // the cached return value from the set will prevent this getter from _ever_\n // being called after a set has occured\n return false;\n },\n set: function (_key, value) {\n this._isDisabled = value;\n return value ? (0, _emberMetal.get)(this, 'disabledClass') : false;\n }\n }),\n _isActive: function (routerState) {\n if ((0, _emberMetal.get)(this, 'loading')) {\n return false;\n }\n var currentWhen = (0, _emberMetal.get)(this, 'current-when');\n if (typeof currentWhen === 'boolean') {\n return currentWhen;\n }\n var isCurrentWhenSpecified = !!currentWhen;\n currentWhen = currentWhen || (0, _emberMetal.get)(this, 'qualifiedRouteName');\n currentWhen = currentWhen.split(' ');\n var routing = (0, _emberMetal.get)(this, '_routing');\n var models = (0, _emberMetal.get)(this, 'models');\n var resolvedQueryParams = (0, _emberMetal.get)(this, 'resolvedQueryParams');\n for (var i = 0; i < currentWhen.length; i++) {\n if (routing.isActiveForRoute(models, resolvedQueryParams, currentWhen[i], routerState, isCurrentWhenSpecified)) {\n return true;\n }\n }\n return false;\n },\n\n /**\n Accessed as a classname binding to apply the `LinkComponent`'s `activeClass`\n CSS `class` to the element when the link is active.\n A `LinkComponent` is considered active when its `currentWhen` property is `true`\n or the application's current route is the route the `LinkComponent` would trigger\n transitions into.\n The `currentWhen` property can match against multiple routes by separating\n route names using the ` ` (space) character.\n @property active\n @private\n */\n active: (0, _emberMetal.computed)('activeClass', '_active', function computeLinkToComponentActiveClass() {\n return this.get('_active') ? (0, _emberMetal.get)(this, 'activeClass') : false;\n }),\n _active: (0, _emberMetal.computed)('_routing.currentState', function computeLinkToComponentActive() {\n var currentState = (0, _emberMetal.get)(this, '_routing.currentState');\n if (!currentState) {\n return false;\n }\n return this._isActive(currentState);\n }),\n willBeActive: (0, _emberMetal.computed)('_routing.targetState', function computeLinkToComponentWillBeActive() {\n var routing = (0, _emberMetal.get)(this, '_routing');\n var targetState = (0, _emberMetal.get)(routing, 'targetState');\n if ((0, _emberMetal.get)(routing, 'currentState') === targetState) {\n return;\n }\n return this._isActive(targetState);\n }),\n transitioningIn: (0, _emberMetal.computed)('active', 'willBeActive', function computeLinkToComponentTransitioningIn() {\n if ((0, _emberMetal.get)(this, 'willBeActive') === true && !(0, _emberMetal.get)(this, '_active')) {\n return 'ember-transitioning-in';\n } else {\n return false;\n }\n }),\n transitioningOut: (0, _emberMetal.computed)('active', 'willBeActive', function computeLinkToComponentTransitioningOut() {\n if ((0, _emberMetal.get)(this, 'willBeActive') === false && (0, _emberMetal.get)(this, '_active')) {\n return 'ember-transitioning-out';\n } else {\n return false;\n }\n }),\n _invoke: function (event) {\n if (!(0, _emberViews.isSimpleClick)(event)) {\n return true;\n }\n var preventDefault = (0, _emberMetal.get)(this, 'preventDefault');\n var targetAttribute = (0, _emberMetal.get)(this, 'target');\n if (preventDefault !== false) {\n if (!targetAttribute || targetAttribute === '_self') {\n event.preventDefault();\n }\n }\n if ((0, _emberMetal.get)(this, 'bubbles') === false) {\n event.stopPropagation();\n }\n if (this._isDisabled) {\n return false;\n }\n if ((0, _emberMetal.get)(this, 'loading')) {\n (true && (0, _emberDebug.warn)('This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.', false));\n\n return false;\n }\n if (targetAttribute && targetAttribute !== '_self') {\n return false;\n }\n var qualifiedRouteName = (0, _emberMetal.get)(this, 'qualifiedRouteName');\n var models = (0, _emberMetal.get)(this, 'models');\n var queryParams = (0, _emberMetal.get)(this, 'queryParams.values');\n var shouldReplace = (0, _emberMetal.get)(this, 'replace');\n var payload = {\n queryParams: queryParams,\n routeName: qualifiedRouteName\n };\n // tslint:disable-next-line:max-line-length\n (0, _emberMetal.flaggedInstrument)('interaction.link-to', payload, this._generateTransition(payload, qualifiedRouteName, models, queryParams, shouldReplace));\n return false;\n },\n _generateTransition: function (payload, qualifiedRouteName, models, queryParams, shouldReplace) {\n var routing = (0, _emberMetal.get)(this, '_routing');\n return function () {\n payload.transition = routing.transitionTo(qualifiedRouteName, models, queryParams, shouldReplace);\n };\n },\n\n queryParams: null,\n qualifiedRouteName: (0, _emberMetal.computed)('targetRouteName', '_routing.currentState', function computeLinkToComponentQualifiedRouteName() {\n var params = (0, _emberMetal.get)(this, 'params');\n var paramsLength = params.length;\n var lastParam = params[paramsLength - 1];\n if (lastParam && lastParam.isQueryParams) {\n paramsLength--;\n }\n var onlyQueryParamsSupplied = this[_component.HAS_BLOCK] ? paramsLength === 0 : paramsLength === 1;\n if (onlyQueryParamsSupplied) {\n return (0, _emberMetal.get)(this, '_routing.currentRouteName');\n }\n return (0, _emberMetal.get)(this, 'targetRouteName');\n }),\n resolvedQueryParams: (0, _emberMetal.computed)('queryParams', function computeLinkToComponentResolvedQueryParams() {\n var resolvedQueryParams = {};\n var queryParams = (0, _emberMetal.get)(this, 'queryParams');\n if (!queryParams) {\n return resolvedQueryParams;\n }\n var values = queryParams.values;\n for (var key in values) {\n if (!values.hasOwnProperty(key)) {\n continue;\n }\n resolvedQueryParams[key] = values[key];\n }\n return resolvedQueryParams;\n }),\n /**\n Sets the element's `href` attribute to the url for\n the `LinkComponent`'s targeted route.\n If the `LinkComponent`'s `tagName` is changed to a value other\n than `a`, this property will be ignored.\n @property href\n @private\n */\n href: (0, _emberMetal.computed)('models', 'qualifiedRouteName', function computeLinkToComponentHref() {\n if ((0, _emberMetal.get)(this, 'tagName') !== 'a') {\n return;\n }\n var qualifiedRouteName = (0, _emberMetal.get)(this, 'qualifiedRouteName');\n var models = (0, _emberMetal.get)(this, 'models');\n if ((0, _emberMetal.get)(this, 'loading')) {\n return (0, _emberMetal.get)(this, 'loadingHref');\n }\n var routing = (0, _emberMetal.get)(this, '_routing');\n var queryParams = (0, _emberMetal.get)(this, 'queryParams.values');\n if (true) {\n /*\n * Unfortunately, to get decent error messages, we need to do this.\n * In some future state we should be able to use a \"feature flag\"\n * which allows us to strip this without needing to call it twice.\n *\n * if (isDebugBuild()) {\n * // Do the useful debug thing, probably including try/catch.\n * } else {\n * // Do the performant thing.\n * }\n */\n try {\n routing.generateURL(qualifiedRouteName, models, queryParams);\n } catch (e) {\n (true && !(false) && (0, _emberDebug.assert)('You attempted to define a `{{link-to \"' + qualifiedRouteName + '\"}}` but did not pass the parameters required for generating its dynamic segments. ' + e.message));\n }\n }\n return routing.generateURL(qualifiedRouteName, models, queryParams);\n }),\n loading: (0, _emberMetal.computed)('_modelsAreLoaded', 'qualifiedRouteName', function computeLinkToComponentLoading() {\n var qualifiedRouteName = (0, _emberMetal.get)(this, 'qualifiedRouteName');\n var modelsAreLoaded = (0, _emberMetal.get)(this, '_modelsAreLoaded');\n if (!modelsAreLoaded || qualifiedRouteName === null || qualifiedRouteName === undefined) {\n return (0, _emberMetal.get)(this, 'loadingClass');\n }\n }),\n _modelsAreLoaded: (0, _emberMetal.computed)('models', function computeLinkToComponentModelsAreLoaded() {\n var models = (0, _emberMetal.get)(this, 'models');\n for (var i = 0; i < models.length; i++) {\n var model = models[i];\n if (model === null || model === undefined) {\n return false;\n }\n }\n return true;\n }),\n _getModels: function (params) {\n var modelCount = params.length - 1;\n var models = new Array(modelCount);\n for (var i = 0; i < modelCount; i++) {\n var value = params[i + 1];\n while (_emberRuntime.ControllerMixin.detect(value)) {\n (true && !(false) && (0, _emberDebug.deprecate)('Providing `{{link-to}}` with a param that is wrapped in a controller is deprecated. ' + (this.parentView ? 'Please update `' + this.parentView + '` to use `{{link-to \"post\" someController.model}}` instead.' : ''), false, { id: 'ember-routing-views.controller-wrapped-param', until: '3.0.0' }));\n\n value = value.get('model');\n }\n models[i] = value;\n }\n return models;\n },\n\n /**\n The default href value to use while a link-to is loading.\n Only applies when tagName is 'a'\n @property loadingHref\n @type String\n @default #\n @private\n */\n loadingHref: '#',\n didReceiveAttrs: function () {\n var queryParams = void 0;\n var params = (0, _emberMetal.get)(this, 'params');\n if (params) {\n // Do not mutate params in place\n params = params.slice();\n }\n (true && !(params && params.length) && (0, _emberDebug.assert)('You must provide one or more parameters to the link-to component.', params && params.length));\n\n var disabledWhen = (0, _emberMetal.get)(this, 'disabledWhen');\n if (disabledWhen !== undefined) {\n this.set('disabled', disabledWhen);\n }\n // Process the positional arguments, in order.\n // 1. Inline link title comes first, if present.\n if (!this[_component.HAS_BLOCK]) {\n this.set('linkTitle', params.shift());\n }\n // 2. `targetRouteName` is now always at index 0.\n this.set('targetRouteName', params[0]);\n // 3. The last argument (if still remaining) is the `queryParams` object.\n var lastParam = params[params.length - 1];\n if (lastParam && lastParam.isQueryParams) {\n queryParams = params.pop();\n } else {\n queryParams = { values: {} };\n }\n this.set('queryParams', queryParams);\n // 4. Any remaining indices (excepting `targetRouteName` at 0) are `models`.\n if (params.length > 1) {\n this.set('models', this._getModels(params));\n } else {\n this.set('models', []);\n }\n }\n }); /**\n @module ember\n */\n /**\n The `{{link-to}}` component renders a link to the supplied\n `routeName` passing an optionally supplied model to the\n route as its `model` context of the route. The block\n for `{{link-to}}` becomes the innerHTML of the rendered\n element:\n \n ```handlebars\n {{#link-to 'photoGallery'}}\n Great Hamster Photos\n {{/link-to}}\n ```\n \n You can also use an inline form of `{{link-to}}` component by\n passing the link text as the first argument\n to the component:\n \n ```handlebars\n {{link-to 'Great Hamster Photos' 'photoGallery'}}\n ```\n \n Both will result in:\n \n ```html\n <a href=\"/hamster-photos\">\n Great Hamster Photos\n </a>\n ```\n \n ### Supplying a tagName\n By default `{{link-to}}` renders an `<a>` element. This can\n be overridden for a single use of `{{link-to}}` by supplying\n a `tagName` option:\n \n ```handlebars\n {{#link-to 'photoGallery' tagName=\"li\"}}\n Great Hamster Photos\n {{/link-to}}\n ```\n \n ```html\n <li>\n Great Hamster Photos\n </li>\n ```\n \n To override this option for your entire application, see\n \"Overriding Application-wide Defaults\".\n \n ### Disabling the `link-to` component\n By default `{{link-to}}` is enabled.\n any passed value to the `disabled` component property will disable\n the `link-to` component.\n \n static use: the `disabled` option:\n \n ```handlebars\n {{#link-to 'photoGallery' disabled=true}}\n Great Hamster Photos\n {{/link-to}}\n ```\n \n dynamic use: the `disabledWhen` option:\n \n ```handlebars\n {{#link-to 'photoGallery' disabledWhen=controller.someProperty}}\n Great Hamster Photos\n {{/link-to}}\n ```\n \n any truthy value passed to `disabled` will disable it except `undefined`.\n \n See \"Overriding Application-wide Defaults\" for more.\n \n ### Handling `href`\n `{{link-to}}` will use your application's Router to\n fill the element's `href` property with a url that\n matches the path to the supplied `routeName` for your\n router's configured `Location` scheme, which defaults\n to HashLocation.\n \n ### Handling current route\n `{{link-to}}` will apply a CSS class name of 'active'\n when the application's current route matches\n the supplied routeName. For example, if the application's\n current route is 'photoGallery.recent' the following\n use of `{{link-to}}`:\n \n ```handlebars\n {{#link-to 'photoGallery.recent'}}\n Great Hamster Photos\n {{/link-to}}\n ```\n \n will result in\n \n ```html\n <a href=\"/hamster-photos/this-week\" class=\"active\">\n Great Hamster Photos\n </a>\n ```\n \n The CSS class name used for active classes can be customized\n for a single use of `{{link-to}}` by passing an `activeClass`\n option:\n \n ```handlebars\n {{#link-to 'photoGallery.recent' activeClass=\"current-url\"}}\n Great Hamster Photos\n {{/link-to}}\n ```\n \n ```html\n <a href=\"/hamster-photos/this-week\" class=\"current-url\">\n Great Hamster Photos\n </a>\n ```\n \n To override this option for your entire application, see\n \"Overriding Application-wide Defaults\".\n \n ### Keeping a link active for other routes\n \n If you need a link to be 'active' even when it doesn't match\n the current route, you can use the `current-when` argument.\n \n ```handlebars\n {{#link-to 'photoGallery' current-when='photos'}}\n Photo Gallery\n {{/link-to}}\n ```\n \n This may be helpful for keeping links active for:\n \n * non-nested routes that are logically related\n * some secondary menu approaches\n * 'top navigation' with 'sub navigation' scenarios\n \n A link will be active if `current-when` is `true` or the current\n route is the route this link would transition to.\n \n To match multiple routes 'space-separate' the routes:\n \n ```handlebars\n {{#link-to 'gallery' current-when='photos drawings paintings'}}\n Art Gallery\n {{/link-to}}\n ```\n \n ### Supplying a model\n An optional model argument can be used for routes whose\n paths contain dynamic segments. This argument will become\n the model context of the linked route:\n \n ```javascript\n Router.map(function() {\n this.route(\"photoGallery\", {path: \"hamster-photos/:photo_id\"});\n });\n ```\n \n ```handlebars\n {{#link-to 'photoGallery' aPhoto}}\n {{aPhoto.title}}\n {{/link-to}}\n ```\n \n ```html\n <a href=\"/hamster-photos/42\">\n Tomster\n </a>\n ```\n \n ### Supplying multiple models\n For deep-linking to route paths that contain multiple\n dynamic segments, multiple model arguments can be used.\n As the router transitions through the route path, each\n supplied model argument will become the context for the\n route with the dynamic segments:\n \n ```javascript\n Router.map(function() {\n this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" }, function() {\n this.route(\"comment\", {path: \"comments/:comment_id\"});\n });\n });\n ```\n This argument will become the model context of the linked route:\n \n ```handlebars\n {{#link-to 'photoGallery.comment' aPhoto comment}}\n {{comment.body}}\n {{/link-to}}\n ```\n \n ```html\n <a href=\"/hamster-photos/42/comments/718\">\n A+++ would snuggle again.\n </a>\n ```\n \n ### Supplying an explicit dynamic segment value\n If you don't have a model object available to pass to `{{link-to}}`,\n an optional string or integer argument can be passed for routes whose\n paths contain dynamic segments. This argument will become the value\n of the dynamic segment:\n \n ```javascript\n Router.map(function() {\n this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" });\n });\n ```\n \n ```handlebars\n {{#link-to 'photoGallery' aPhotoId}}\n {{aPhoto.title}}\n {{/link-to}}\n ```\n \n ```html\n <a href=\"/hamster-photos/42\">\n Tomster\n </a>\n ```\n \n When transitioning into the linked route, the `model` hook will\n be triggered with parameters including this passed identifier.\n \n ### Allowing Default Action\n \n By default the `{{link-to}}` component prevents the default browser action\n by calling `preventDefault()` as this sort of action bubbling is normally\n handled internally and we do not want to take the browser to a new URL (for\n example).\n \n If you need to override this behavior specify `preventDefault=false` in\n your template:\n \n ```handlebars\n {{#link-to 'photoGallery' aPhotoId preventDefault=false}}\n {{aPhotoId.title}}\n {{/link-to}}\n ```\n \n ### Overriding attributes\n You can override any given property of the `LinkComponent`\n that is generated by the `{{link-to}}` component by passing\n key/value pairs, like so:\n \n ```handlebars\n {{#link-to aPhoto tagName='li' title='Following this link will change your life' classNames='pic sweet'}}\n Uh-mazing!\n {{/link-to}}\n ```\n \n See [LinkComponent](/api/classes/Ember.LinkComponent.html) for a\n complete list of overrideable properties. Be sure to also\n check out inherited properties of `LinkComponent`.\n \n ### Overriding Application-wide Defaults\n \n ``{{link-to}}`` creates an instance of `LinkComponent` for rendering. To\n override options for your entire application, export your customized\n `LinkComponent` from `app/components/link-to.js` with the desired overrides:\n \n ```javascript\n // app/components/link-to.js\n import LinkComponent from '@ember/routing/link-component';\n \n export default LinkComponent.extend({\n activeClass: \"is-active\",\n tagName: 'li'\n })\n ```\n \n It is also possible to override the default event in this manner:\n \n ```javascript\n import LinkCompoennt from '@ember/routing/link-component';\n \n export default LinkComponent.extend({\n eventName: 'customEventName'\n });\n ```\n \n @method link-to\n @for Ember.Templates.helpers\n @param {String} routeName\n @param {Object} [context]*\n @param [options] {Object} Handlebars key/value pairs of options, you can override any property of Ember.LinkComponent\n @return {String} HTML string\n @see {LinkComponent}\n @public\n */\n\n LinkComponent.toString = function () {\n return 'LinkComponent';\n };\n LinkComponent.reopenClass({\n positionalParams: 'params'\n });\n exports.default = LinkComponent;\n});","enifed('ember-glimmer/components/text_area', ['exports', 'ember-views', 'ember-glimmer/component', 'ember-glimmer/templates/empty'], function (exports, _emberViews, _component, _empty) {\n 'use strict';\n\n exports.default = _component.default.extend(_emberViews.TextSupport, {\n classNames: ['ember-text-area'],\n layout: _empty.default,\n tagName: 'textarea',\n attributeBindings: ['rows', 'cols', 'name', 'selectionEnd', 'selectionStart', 'wrap', 'lang', 'dir', 'value'],\n rows: null,\n cols: null\n });\n});","enifed('ember-glimmer/components/text_field', ['exports', 'ember-environment', 'ember-metal', 'ember-views', 'ember-glimmer/component', 'ember-glimmer/templates/empty'], function (exports, _emberEnvironment, _emberMetal, _emberViews, _component, _empty) {\n 'use strict';\n\n var inputTypes = Object.create(null); /**\n @module @ember/component\n */\n\n function canSetTypeOfInput(type) {\n if (type in inputTypes) {\n return inputTypes[type];\n }\n // if running in outside of a browser always return the\n // original type\n if (!_emberEnvironment.environment.hasDOM) {\n inputTypes[type] = type;\n return type;\n }\n var inputTypeTestElement = document.createElement('input');\n try {\n inputTypeTestElement.type = type;\n } catch (e) {\n // ignored\n }\n return inputTypes[type] = inputTypeTestElement.type === type;\n }\n /**\n \n The internal class used to create text inputs when the `{{input}}`\n helper is used with `type` of `text`.\n \n See [Ember.Templates.helpers.input](/api/classes/Ember.Templates.helpers.html#method_input) for usage details.\n \n ## Layout and LayoutName properties\n \n Because HTML `input` elements are self closing `layout` and `layoutName`\n properties will not be applied.\n \n @class TextField\n @extends Component\n @uses Ember.TextSupport\n @public\n */\n exports.default = _component.default.extend(_emberViews.TextSupport, {\n layout: _empty.default,\n classNames: ['ember-text-field'],\n tagName: 'input',\n attributeBindings: ['accept', 'autocomplete', 'autosave', 'dir', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget', 'height', 'inputmode', 'lang', 'list', 'type', 'max', 'min', 'multiple', 'name', 'pattern', 'size', 'step', 'value', 'width'],\n /**\n The `value` attribute of the input element. As the user inputs text, this\n property is updated live.\n @property value\n @type String\n @default \"\"\n @public\n */\n value: '',\n /**\n The `type` attribute of the input element.\n @property type\n @type String\n @default \"text\"\n @public\n */\n type: (0, _emberMetal.computed)({\n get: function () {\n return 'text';\n },\n set: function (_key, value) {\n var type = 'text';\n if (canSetTypeOfInput(value)) {\n type = value;\n }\n return type;\n }\n }),\n /**\n The `size` of the text field in characters.\n @property size\n @type String\n @default null\n @public\n */\n size: null,\n /**\n The `pattern` attribute of input element.\n @property pattern\n @type String\n @default null\n @public\n */\n pattern: null,\n /**\n The `min` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n @property min\n @type String\n @default null\n @since 1.4.0\n @public\n */\n min: null,\n /**\n The `max` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n @property max\n @type String\n @default null\n @since 1.4.0\n @public\n */\n max: null\n });\n});","enifed('ember-glimmer/dom', ['exports', '@glimmer/runtime', '@glimmer/node'], function (exports, _runtime, _node) {\n 'use strict';\n\n Object.defineProperty(exports, 'DOMChanges', {\n enumerable: true,\n get: function () {\n return _runtime.DOMChanges;\n }\n });\n Object.defineProperty(exports, 'DOMTreeConstruction', {\n enumerable: true,\n get: function () {\n return _runtime.DOMTreeConstruction;\n }\n });\n Object.defineProperty(exports, 'NodeDOMTreeConstruction', {\n enumerable: true,\n get: function () {\n return _node.NodeDOMTreeConstruction;\n }\n });\n});","enifed('ember-glimmer/environment', ['exports', 'ember-babel', '@glimmer/runtime', 'ember-debug', 'ember-metal', 'ember-utils', 'ember-views', 'ember-glimmer/component-managers/curly', 'ember-glimmer/syntax', 'ember-glimmer/utils/debug-stack', 'ember-glimmer/utils/iterable', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/-class', 'ember-glimmer/helpers/-html-safe', 'ember-glimmer/helpers/-input-type', 'ember-glimmer/helpers/-normalize-class', 'ember-glimmer/helpers/action', 'ember-glimmer/helpers/component', 'ember-glimmer/helpers/concat', 'ember-glimmer/helpers/each-in', 'ember-glimmer/helpers/get', 'ember-glimmer/helpers/hash', 'ember-glimmer/helpers/if-unless', 'ember-glimmer/helpers/log', 'ember-glimmer/helpers/mut', 'ember-glimmer/helpers/query-param', 'ember-glimmer/helpers/readonly', 'ember-glimmer/helpers/unbound', 'ember-glimmer/modifiers/action', 'ember-glimmer/protocol-for-url', 'ember/features'], function (exports, _emberBabel, _runtime, _emberDebug, _emberMetal, _emberUtils, _emberViews, _curly, _syntax, _debugStack, _iterable, _references, _class, _htmlSafe, _inputType, _normalizeClass, _action, _component, _concat, _eachIn, _get, _hash, _ifUnless, _log, _mut, _queryParam, _readonly, _unbound, _action2, _protocolForUrl, _features) {\n 'use strict';\n\n function instrumentationPayload(name) {\n return { object: 'component:' + name };\n }\n function isTemplateFactory(template) {\n return typeof template.create === 'function';\n }\n\n var Environment = function (_GlimmerEnvironment) {\n (0, _emberBabel.inherits)(Environment, _GlimmerEnvironment);\n\n Environment.create = function create(options) {\n return new this(options);\n };\n\n function Environment(injections) {\n (0, _emberBabel.classCallCheck)(this, Environment);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _GlimmerEnvironment.call(this, injections));\n\n _this.owner = injections[_emberUtils.OWNER];\n _this.isInteractive = _this.owner.lookup('-environment:main').isInteractive;\n // can be removed once https://github.com/tildeio/glimmer/pull/305 lands\n _this.destroyedComponents = [];\n (0, _protocolForUrl.default)(_this);\n _this._definitionCache = new _emberMetal.Cache(2000, function (_ref) {\n var name = _ref.name,\n source = _ref.source,\n owner = _ref.owner;\n\n var _lookupComponent = (0, _emberViews.lookupComponent)(owner, name, { source: source }),\n componentFactory = _lookupComponent.component,\n layout = _lookupComponent.layout;\n\n var customManager = void 0;\n if (componentFactory || layout) {\n if (_features.GLIMMER_CUSTOM_COMPONENT_MANAGER) {\n var managerId = layout && layout.meta.managerId;\n if (managerId) {\n customManager = owner.factoryFor('component-manager:' + managerId).class;\n }\n }\n return new _curly.CurlyComponentDefinition(name, componentFactory, layout, undefined, customManager);\n }\n return undefined;\n }, function (_ref2) {\n var name = _ref2.name,\n source = _ref2.source,\n owner = _ref2.owner;\n\n var expandedName = source && _this._resolveLocalLookupName(name, source, owner) || name;\n var ownerGuid = (0, _emberUtils.guidFor)(owner);\n return ownerGuid + '|' + expandedName;\n });\n _this._templateCache = new _emberMetal.Cache(1000, function (_ref3) {\n var Template = _ref3.Template,\n owner = _ref3.owner;\n\n if (isTemplateFactory(Template)) {\n var _Template$create;\n\n // we received a factory\n return Template.create((_Template$create = { env: _this }, _Template$create[_emberUtils.OWNER] = owner, _Template$create));\n } else {\n // we were provided an instance already\n return Template;\n }\n }, function (_ref4) {\n var Template = _ref4.Template,\n owner = _ref4.owner;\n return (0, _emberUtils.guidFor)(owner) + '|' + Template.id;\n });\n _this._compilerCache = new _emberMetal.Cache(10, function (Compiler) {\n return new _emberMetal.Cache(2000, function (template) {\n var compilable = new Compiler(template);\n return (0, _runtime.compileLayout)(compilable, _this);\n }, function (template) {\n var owner = template.meta.owner;\n return (0, _emberUtils.guidFor)(owner) + '|' + template.id;\n });\n }, function (Compiler) {\n return Compiler.id;\n });\n _this.builtInModifiers = {\n action: new _action2.default()\n };\n _this.builtInHelpers = {\n 'if': _ifUnless.inlineIf,\n action: _action.default,\n concat: _concat.default,\n get: _get.default,\n hash: _hash.default,\n log: _log.default,\n mut: _mut.default,\n 'query-params': _queryParam.default,\n readonly: _readonly.default,\n unbound: _unbound.default,\n 'unless': _ifUnless.inlineUnless,\n '-class': _class.default,\n '-each-in': _eachIn.default,\n '-input-type': _inputType.default,\n '-normalize-class': _normalizeClass.default,\n '-html-safe': _htmlSafe.default,\n '-get-dynamic-var': _runtime.getDynamicVar\n };\n if (true) {\n _this.debugStack = new _debugStack.default();\n }\n return _this;\n }\n // this gets clobbered by installPlatformSpecificProtocolForURL\n // it really should just delegate to a platform specific injection\n\n\n Environment.prototype.protocolForURL = function protocolForURL(s) {\n return s;\n };\n\n Environment.prototype._resolveLocalLookupName = function _resolveLocalLookupName(name, source, owner) {\n return _features.EMBER_MODULE_UNIFICATION ? source + ':' + name : owner._resolveLocalLookupName(name, source);\n };\n\n Environment.prototype.macros = function macros() {\n var macros = _GlimmerEnvironment.prototype.macros.call(this);\n (0, _syntax.populateMacros)(macros.blocks, macros.inlines);\n return macros;\n };\n\n Environment.prototype.hasComponentDefinition = function hasComponentDefinition() {\n return false;\n };\n\n Environment.prototype.getComponentDefinition = function getComponentDefinition(name, _ref5) {\n var owner = _ref5.owner,\n moduleName = _ref5.moduleName;\n\n var finalizer = (0, _emberMetal._instrumentStart)('render.getComponentDefinition', instrumentationPayload, name);\n var source = moduleName && 'template:' + moduleName;\n var definition = this._definitionCache.get({ name: name, source: source, owner: owner });\n finalizer();\n // TODO the glimmer-vm wants this to always have a def\n // but internally we need it to sometimes be undefined\n return definition;\n };\n\n Environment.prototype.getTemplate = function getTemplate(Template, owner) {\n return this._templateCache.get({ Template: Template, owner: owner });\n };\n\n Environment.prototype.getCompiledBlock = function getCompiledBlock(Compiler, template) {\n var compilerCache = this._compilerCache.get(Compiler);\n return compilerCache.get(template);\n };\n\n Environment.prototype.hasPartial = function hasPartial(name, meta) {\n return (0, _emberViews.hasPartial)(name, meta.owner);\n };\n\n Environment.prototype.lookupPartial = function lookupPartial(name, meta) {\n var partial = {\n name: name,\n template: (0, _emberViews.lookupPartial)(name, meta.owner)\n };\n if (partial.template) {\n return partial;\n } else {\n throw new Error(name + ' is not a partial');\n }\n };\n\n Environment.prototype.hasHelper = function hasHelper(name, _ref6) {\n var owner = _ref6.owner,\n moduleName = _ref6.moduleName;\n\n if (name === 'component' || this.builtInHelpers[name]) {\n return true;\n }\n var options = { source: 'template:' + moduleName };\n return owner.hasRegistration('helper:' + name, options) || owner.hasRegistration('helper:' + name);\n };\n\n Environment.prototype.lookupHelper = function lookupHelper(name, meta) {\n if (name === 'component') {\n return function (vm, args) {\n return (0, _component.default)(vm, args, meta);\n };\n }\n var owner = meta.owner,\n moduleName = meta.moduleName;\n\n var helper = this.builtInHelpers[name];\n if (helper) {\n return helper;\n }\n var options = moduleName && { source: 'template:' + moduleName } || {};\n var helperFactory = owner.factoryFor('helper:' + name, options) || owner.factoryFor('helper:' + name);\n // TODO: try to unify this into a consistent protocol to avoid wasteful closure allocations\n var HelperReference = void 0;\n if (helperFactory.class.isSimpleHelperFactory) {\n HelperReference = _references.SimpleHelperReference;\n } else if (helperFactory.class.isHelperFactory) {\n HelperReference = _references.ClassBasedHelperReference;\n } else {\n throw new Error(name + ' is not a helper');\n }\n return function (vm, args) {\n return HelperReference.create(helperFactory, vm, args.capture());\n };\n };\n\n Environment.prototype.hasModifier = function hasModifier(name) {\n return !!this.builtInModifiers[name];\n };\n\n Environment.prototype.lookupModifier = function lookupModifier(name) {\n var modifier = this.builtInModifiers[name];\n if (modifier) {\n return modifier;\n } else {\n throw new Error(name + ' is not a modifier');\n }\n };\n\n Environment.prototype.toConditionalReference = function toConditionalReference(reference) {\n return _references.ConditionalReference.create(reference);\n };\n\n Environment.prototype.iterableFor = function iterableFor(ref, key) {\n return (0, _iterable.default)(ref, key);\n };\n\n Environment.prototype.scheduleInstallModifier = function scheduleInstallModifier(modifier, manager) {\n if (this.isInteractive) {\n _GlimmerEnvironment.prototype.scheduleInstallModifier.call(this, modifier, manager);\n }\n };\n\n Environment.prototype.scheduleUpdateModifier = function scheduleUpdateModifier(modifier, manager) {\n if (this.isInteractive) {\n _GlimmerEnvironment.prototype.scheduleUpdateModifier.call(this, modifier, manager);\n }\n };\n\n Environment.prototype.didDestroy = function didDestroy(destroyable) {\n destroyable.destroy();\n };\n\n Environment.prototype.begin = function begin() {\n this.inTransaction = true;\n _GlimmerEnvironment.prototype.begin.call(this);\n };\n\n Environment.prototype.commit = function commit() {\n var destroyedComponents = this.destroyedComponents;\n this.destroyedComponents = [];\n // components queued for destruction must be destroyed before firing\n // `didCreate` to prevent errors when removing and adding a component\n // with the same name (would throw an error when added to view registry)\n for (var i = 0; i < destroyedComponents.length; i++) {\n destroyedComponents[i].destroy();\n }\n _GlimmerEnvironment.prototype.commit.call(this);\n this.inTransaction = false;\n };\n\n return Environment;\n }(_runtime.Environment);\n\n exports.default = Environment;\n\n if (true) {\n var StyleAttributeManager = function (_AttributeManager) {\n (0, _emberBabel.inherits)(StyleAttributeManager, _AttributeManager);\n\n function StyleAttributeManager() {\n (0, _emberBabel.classCallCheck)(this, StyleAttributeManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AttributeManager.apply(this, arguments));\n }\n\n StyleAttributeManager.prototype.setAttribute = function setAttribute(dom, element, value) {\n (true && (0, _emberDebug.warn)((0, _emberViews.constructStyleDeprecationMessage)(value), function () {\n if (value === null || value === undefined || (0, _runtime.isSafeString)(value)) {\n return true;\n }\n return false;\n }(), { id: 'ember-htmlbars.style-xss-warning' }));\n\n _AttributeManager.prototype.setAttribute.call(this, dom, element, value);\n };\n\n StyleAttributeManager.prototype.updateAttribute = function updateAttribute(dom, element, value) {\n (true && (0, _emberDebug.warn)((0, _emberViews.constructStyleDeprecationMessage)(value), function () {\n if (value === null || value === undefined || (0, _runtime.isSafeString)(value)) {\n return true;\n }\n return false;\n }(), { id: 'ember-htmlbars.style-xss-warning' }));\n\n _AttributeManager.prototype.updateAttribute.call(this, dom, element, value);\n };\n\n return StyleAttributeManager;\n }(_runtime.AttributeManager);\n\n var STYLE_ATTRIBUTE_MANANGER = new StyleAttributeManager('style');\n Environment.prototype.attributeFor = function (element, attribute, isTrusting) {\n if (attribute === 'style' && !isTrusting) {\n return STYLE_ATTRIBUTE_MANANGER;\n }\n return _runtime.Environment.prototype.attributeFor.call(this, element, attribute, isTrusting);\n };\n }\n});","enifed('ember-glimmer/helper', ['exports', 'ember-babel', '@glimmer/reference', 'ember-runtime', 'ember-utils'], function (exports, _emberBabel, _reference, _emberRuntime, _emberUtils) {\n 'use strict';\n\n exports.SimpleHelper = exports.RECOMPUTE_TAG = undefined;\n exports.helper = helper;\n var RECOMPUTE_TAG = exports.RECOMPUTE_TAG = (0, _emberUtils.symbol)('RECOMPUTE_TAG');\n /**\n Ember Helpers are functions that can compute values, and are used in templates.\n For example, this code calls a helper named `format-currency`:\n \n ```handlebars\n <div>{{format-currency cents currency=\"$\"}}</div>\n ```\n \n Additionally a helper can be called as a nested helper (sometimes called a\n subexpression). In this example, the computed value of a helper is passed\n to a component named `show-money`:\n \n ```handlebars\n {{show-money amount=(format-currency cents currency=\"$\")}}\n ```\n \n Helpers defined using a class must provide a `compute` function. For example:\n \n ```app/helpers/format-currency.js\n import Helper from '@ember/component/helper';\n \n export default Helper.extend({\n compute(params, hash) {\n let cents = params[0];\n let currency = hash.currency;\n return `${currency}${cents * 0.01}`;\n }\n });\n ```\n \n Each time the input to a helper changes, the `compute` function will be\n called again.\n \n As instances, these helpers also have access to the container an will accept\n injected dependencies.\n \n Additionally, class helpers can call `recompute` to force a new computation.\n \n @class Helper\n @public\n @since 1.13.0\n */\n /**\n @module @ember/component\n */\n var Helper = _emberRuntime.FrameworkObject.extend({\n isHelperInstance: true,\n init: function () {\n this._super.apply(this, arguments);\n this[RECOMPUTE_TAG] = new _reference.DirtyableTag();\n },\n recompute: function () {\n this[RECOMPUTE_TAG].dirty();\n }\n });\n Helper.reopenClass({\n isHelperFactory: true\n });\n\n var SimpleHelper = exports.SimpleHelper = function () {\n function SimpleHelper(compute) {\n (0, _emberBabel.classCallCheck)(this, SimpleHelper);\n\n this.compute = compute;\n this.isHelperFactory = true;\n this.isHelperInstance = true;\n this.isSimpleHelperFactory = true;\n }\n\n SimpleHelper.prototype.create = function create() {\n return this;\n };\n\n return SimpleHelper;\n }();\n\n /**\n In many cases, the ceremony of a full `Helper` class is not required.\n The `helper` method create pure-function helpers without instances. For\n example:\n \n ```app/helpers/format-currency.js\n import { helper } from '@ember/component/helper';\n \n export default helper(function(params, hash) {\n let cents = params[0];\n let currency = hash.currency;\n return `${currency}${cents * 0.01}`;\n });\n ```\n \n @static\n @param {Function} helper The helper function\n @method helper\n @for @ember/component/helper\n @public\n @since 1.13.0\n */\n function helper(helperFn) {\n return new SimpleHelper(helperFn);\n }\n exports.default = Helper;\n});","enifed('ember-glimmer/helpers/-class', ['exports', 'ember-runtime', 'ember-glimmer/utils/references'], function (exports, _emberRuntime, _references) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return new _references.InternalHelperReference(classHelper, args.capture());\n };\n\n function classHelper(_ref) {\n var positional = _ref.positional;\n\n var path = positional.at(0);\n var args = positional.length;\n var value = path.value();\n if (value === true) {\n if (args > 1) {\n return _emberRuntime.String.dasherize(positional.at(1).value());\n }\n return null;\n }\n if (value === false) {\n if (args > 2) {\n return _emberRuntime.String.dasherize(positional.at(2).value());\n }\n return null;\n }\n return value;\n }\n});","enifed('ember-glimmer/helpers/-html-safe', ['exports', 'ember-glimmer/utils/references', 'ember-glimmer/utils/string'], function (exports, _references, _string) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return new _references.InternalHelperReference(htmlSafe, args.capture());\n };\n\n function htmlSafe(_ref) {\n var positional = _ref.positional;\n\n var path = positional.at(0);\n return new _string.SafeString(path.value());\n }\n});","enifed('ember-glimmer/helpers/-input-type', ['exports', 'ember-glimmer/utils/references'], function (exports, _references) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return new _references.InternalHelperReference(inputTypeHelper, args.capture());\n };\n\n function inputTypeHelper(_ref) {\n var positional = _ref.positional;\n\n var type = positional.at(0).value();\n if (type === 'checkbox') {\n return '-checkbox';\n }\n return '-text-field';\n }\n});","enifed('ember-glimmer/helpers/-normalize-class', ['exports', 'ember-runtime', 'ember-glimmer/utils/references'], function (exports, _emberRuntime, _references) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return new _references.InternalHelperReference(normalizeClass, args.capture());\n };\n\n function normalizeClass(_ref) {\n var positional = _ref.positional;\n\n var classNameParts = positional.at(0).value().split('.');\n var className = classNameParts[classNameParts.length - 1];\n var value = positional.at(1).value();\n if (value === true) {\n return _emberRuntime.String.dasherize(className);\n } else if (!value && value !== 0) {\n return '';\n } else {\n return String(value);\n }\n }\n});","enifed('ember-glimmer/helpers/action', ['exports', '@glimmer/reference', 'ember-debug', 'ember-metal', 'ember-utils', 'ember-glimmer/utils/references'], function (exports, _reference, _emberDebug, _emberMetal, _emberUtils, _references) {\n 'use strict';\n\n exports.ACTION = exports.INVOKE = undefined;\n\n exports.default = function (_vm, args) {\n var named = args.named,\n positional = args.positional;\n\n var capturedArgs = positional.capture();\n // The first two argument slots are reserved.\n // pos[0] is the context (or `this`)\n // pos[1] is the action name or function\n // Anything else is an action argument.\n\n var _capturedArgs$referen = capturedArgs.references,\n context = _capturedArgs$referen[0],\n action = _capturedArgs$referen[1],\n restArgs = _capturedArgs$referen.slice(2);\n // TODO: Is there a better way of doing this?\n\n\n var debugKey = action._propertyKey;\n var target = named.has('target') ? named.get('target') : context;\n var processArgs = makeArgsProcessor(named.has('value') && named.get('value'), restArgs);\n var fn = void 0;\n if (typeof action[INVOKE] === 'function') {\n fn = makeClosureAction(action, action, action[INVOKE], processArgs, debugKey);\n } else if ((0, _reference.isConst)(target) && (0, _reference.isConst)(action)) {\n fn = makeClosureAction(context.value(), target.value(), action.value(), processArgs, debugKey);\n } else {\n fn = makeDynamicClosureAction(context.value(), target, action, processArgs, debugKey);\n }\n fn[ACTION] = true;\n return new _references.UnboundReference(fn);\n };\n\n var INVOKE = exports.INVOKE = (0, _emberUtils.symbol)('INVOKE'); /**\n @module ember\n */\n var ACTION = exports.ACTION = (0, _emberUtils.symbol)('ACTION');\n /**\n The `{{action}}` helper provides a way to pass triggers for behavior (usually\n just a function) between components, and into components from controllers.\n \n ### Passing functions with the action helper\n \n There are three contexts an action helper can be used in. The first two\n contexts to discuss are attribute context, and Handlebars value context.\n \n ```handlebars\n {{! An example of attribute context }}\n <div onclick={{action \"save\"}}></div>\n {{! Examples of Handlebars value context }}\n {{input on-input=(action \"save\")}}\n {{yield (action \"refreshData\") andAnotherParam}}\n ```\n \n In these contexts,\n the helper is called a \"closure action\" helper. Its behavior is simple:\n If passed a function name, read that function off the `actions` property\n of the current context. Once that function is read (or if a function was\n passed), create a closure over that function and any arguments.\n The resulting value of an action helper used this way is simply a function.\n \n For example, in the attribute context:\n \n ```handlebars\n {{! An example of attribute context }}\n <div onclick={{action \"save\"}}></div>\n ```\n \n The resulting template render logic would be:\n \n ```js\n var div = document.createElement('div');\n var actionFunction = (function(context){\n return function() {\n return context.actions.save.apply(context, arguments);\n };\n })(context);\n div.onclick = actionFunction;\n ```\n \n Thus when the div is clicked, the action on that context is called.\n Because the `actionFunction` is just a function, closure actions can be\n passed between components and still execute in the correct context.\n \n Here is an example action handler on a component:\n \n ```app/components/my-component.js\n import Component from '@ember/component';\n \n export default Component.extend({\n actions: {\n save() {\n this.get('model').save();\n }\n }\n });\n ```\n \n Actions are always looked up on the `actions` property of the current context.\n This avoids collisions in the naming of common actions, such as `destroy`.\n Two options can be passed to the `action` helper when it is used in this way.\n \n * `target=someProperty` will look to `someProperty` instead of the current\n context for the `actions` hash. This can be useful when targeting a\n service for actions.\n * `value=\"target.value\"` will read the path `target.value` off the first\n argument to the action when it is called and rewrite the first argument\n to be that value. This is useful when attaching actions to event listeners.\n \n ### Invoking an action\n \n Closure actions curry both their scope and any arguments. When invoked, any\n additional arguments are added to the already curried list.\n Actions should be invoked using the [sendAction](/api/classes/Ember.Component.html#method_sendAction)\n method. The first argument to `sendAction` is the action to be called, and\n additional arguments are passed to the action function. This has interesting\n properties combined with currying of arguments. For example:\n \n ```app/components/my-component.js\n import Component from '@ember/component';\n \n export default Component.extend({\n actions: {\n // Usage {{input on-input=(action (action 'setName' model) value=\"target.value\")}}\n setName(model, name) {\n model.set('name', name);\n }\n }\n });\n ```\n \n The first argument (`model`) was curried over, and the run-time argument (`event`)\n becomes a second argument. Action calls can be nested this way because each simply\n returns a function. Any function can be passed to the `{{action}}` helper, including\n other actions.\n \n Actions invoked with `sendAction` have the same currying behavior as demonstrated\n with `on-input` above. For example:\n \n ```app/components/my-input.js\n import Component from '@ember/component';\n \n export default Component.extend({\n actions: {\n setName(model, name) {\n model.set('name', name);\n }\n }\n });\n ```\n \n ```handlebars\n {{my-input submit=(action 'setName' model)}}\n ```\n \n ```app/components/my-component.js\n import Component from '@ember/component';\n \n export default Component.extend({\n click() {\n // Note that model is not passed, it was curried in the template\n this.sendAction('submit', 'bob');\n }\n });\n ```\n \n ### Attaching actions to DOM elements\n \n The third context of the `{{action}}` helper can be called \"element space\".\n For example:\n \n ```handlebars\n {{! An example of element space }}\n <div {{action \"save\"}}></div>\n ```\n \n Used this way, the `{{action}}` helper provides a useful shortcut for\n registering an HTML element in a template for a single DOM event and\n forwarding that interaction to the template's context (controller or component).\n If the context of a template is a controller, actions used this way will\n bubble to routes when the controller does not implement the specified action.\n Once an action hits a route, it will bubble through the route hierarchy.\n \n ### Event Propagation\n \n `{{action}}` helpers called in element space can control event bubbling. Note\n that the closure style actions cannot.\n \n Events triggered through the action helper will automatically have\n `.preventDefault()` called on them. You do not need to do so in your event\n handlers. If you need to allow event propagation (to handle file inputs for\n example) you can supply the `preventDefault=false` option to the `{{action}}` helper:\n \n ```handlebars\n <div {{action \"sayHello\" preventDefault=false}}>\n <input type=\"file\" />\n <input type=\"checkbox\" />\n </div>\n ```\n \n To disable bubbling, pass `bubbles=false` to the helper:\n \n ```handlebars\n <button {{action 'edit' post bubbles=false}}>Edit</button>\n ```\n \n To disable bubbling with closure style actions you must create your own\n wrapper helper that makes use of `event.stopPropagation()`:\n \n ```handlebars\n <div onclick={{disable-bubbling (action \"sayHello\")}}>Hello</div>\n ```\n \n ```app/helpers/disable-bubbling.js\n import { helper } from '@ember/component/helper';\n \n export function disableBubbling([action]) {\n return function(event) {\n event.stopPropagation();\n return action(event);\n };\n }\n export default helper(disableBubbling);\n ```\n \n If you need the default handler to trigger you should either register your\n own event handler, or use event methods on your view class. See\n [\"Responding to Browser Events\"](/api/classes/Ember.Component#responding-to-browser-events)\n in the documentation for `Component` for more information.\n \n ### Specifying DOM event type\n \n `{{action}}` helpers called in element space can specify an event type.\n By default the `{{action}}` helper registers for DOM `click` events. You can\n supply an `on` option to the helper to specify a different DOM event name:\n \n ```handlebars\n <div {{action \"anActionName\" on=\"doubleClick\"}}>\n click me\n </div>\n ```\n \n See [\"Event Names\"](/api/classes/Ember.Component#event-names) for a list of\n acceptable DOM event names.\n \n ### Specifying whitelisted modifier keys\n \n `{{action}}` helpers called in element space can specify modifier keys.\n By default the `{{action}}` helper will ignore click events with pressed modifier\n keys. You can supply an `allowedKeys` option to specify which keys should not be ignored.\n \n ```handlebars\n <div {{action \"anActionName\" allowedKeys=\"alt\"}}>\n click me\n </div>\n ```\n \n This way the action will fire when clicking with the alt key pressed down.\n Alternatively, supply \"any\" to the `allowedKeys` option to accept any combination of modifier keys.\n \n ```handlebars\n <div {{action \"anActionName\" allowedKeys=\"any\"}}>\n click me with any key pressed\n </div>\n ```\n \n ### Specifying a Target\n \n A `target` option can be provided to the helper to change\n which object will receive the method call. This option must be a path\n to an object, accessible in the current context:\n \n ```app/templates/application.hbs\n <div {{action \"anActionName\" target=someService}}>\n click me\n </div>\n ```\n \n ```app/controllers/application.js\n import Controller from '@ember/controller';\n import { inject as service } from '@ember/service';\n \n export default Controller.extend({\n someService: service()\n });\n ```\n \n @method action\n @for Ember.Templates.helpers\n @public\n */\n\n function NOOP(args) {\n return args;\n }\n function makeArgsProcessor(valuePathRef, actionArgsRef) {\n var mergeArgs = void 0;\n if (actionArgsRef.length > 0) {\n mergeArgs = function (args) {\n return actionArgsRef.map(function (ref) {\n return ref.value();\n }).concat(args);\n };\n }\n var readValue = void 0;\n if (valuePathRef) {\n readValue = function (args) {\n var valuePath = valuePathRef.value();\n if (valuePath && args.length > 0) {\n args[0] = (0, _emberMetal.get)(args[0], valuePath);\n }\n return args;\n };\n }\n if (mergeArgs && readValue) {\n return function (args) {\n return readValue(mergeArgs(args));\n };\n } else {\n return mergeArgs || readValue || NOOP;\n }\n }\n function makeDynamicClosureAction(context, targetRef, actionRef, processArgs, debugKey) {\n // We don't allow undefined/null values, so this creates a throw-away action to trigger the assertions\n if (true) {\n makeClosureAction(context, targetRef.value(), actionRef.value(), processArgs, debugKey);\n }\n return function () {\n return makeClosureAction(context, targetRef.value(), actionRef.value(), processArgs, debugKey).apply(undefined, arguments);\n };\n }\n function makeClosureAction(context, target, action, processArgs, debugKey) {\n var self = void 0;\n var fn = void 0;\n (true && !(!(0, _emberMetal.isNone)(action)) && (0, _emberDebug.assert)('Action passed is null or undefined in (action) from ' + target + '.', !(0, _emberMetal.isNone)(action)));\n\n if (typeof action[INVOKE] === 'function') {\n self = action;\n fn = action[INVOKE];\n } else {\n var typeofAction = typeof action;\n if (typeofAction === 'string') {\n self = target;\n fn = target.actions && target.actions[action];\n (true && !(fn) && (0, _emberDebug.assert)('An action named \\'' + action + '\\' was not found in ' + target, fn));\n } else if (typeofAction === 'function') {\n self = context;\n fn = action;\n } else {\n (true && !(false) && (0, _emberDebug.assert)('An action could not be made for `' + (debugKey || action) + '` in ' + target + '. Please confirm that you are using either a quoted action name (i.e. `(action \\'' + (debugKey || 'myAction') + '\\')`) or a function available in ' + target + '.', false));\n }\n }\n return function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var payload = { target: self, args: args, label: '@glimmer/closure-action' };\n return (0, _emberMetal.flaggedInstrument)('interaction.ember-action', payload, function () {\n return _emberMetal.run.join.apply(_emberMetal.run, [self, fn].concat(processArgs(args)));\n });\n };\n }\n});","enifed('ember-glimmer/helpers/component', ['exports', 'ember-babel', '@glimmer/runtime', 'ember-debug', 'ember-utils', 'ember-glimmer/component-managers/curly', 'ember-glimmer/utils/references'], function (exports, _emberBabel, _runtime, _emberDebug, _emberUtils, _curly, _references) {\n 'use strict';\n\n exports.ClosureComponentReference = undefined;\n\n exports.default = function (vm, args, meta) {\n return ClosureComponentReference.create(args.capture(), meta, vm.env);\n };\n\n var ClosureComponentReference = exports.ClosureComponentReference = function (_CachedReference) {\n (0, _emberBabel.inherits)(ClosureComponentReference, _CachedReference);\n\n ClosureComponentReference.create = function create(args, meta, env) {\n return new ClosureComponentReference(args, meta, env);\n };\n\n function ClosureComponentReference(args, meta, env) {\n (0, _emberBabel.classCallCheck)(this, ClosureComponentReference);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _CachedReference.call(this));\n\n var firstArg = args.positional.at(0);\n _this.defRef = firstArg;\n _this.tag = firstArg.tag;\n _this.args = args;\n _this.meta = meta;\n _this.env = env;\n _this.lastDefinition = undefined;\n _this.lastName = undefined;\n return _this;\n }\n\n ClosureComponentReference.prototype.compute = function compute() {\n // TODO: Figure out how to extract this because it's nearly identical to\n // DynamicComponentReference::compute(). The only differences besides\n // currying are in the assertion messages.\n var args = this.args,\n defRef = this.defRef,\n env = this.env,\n meta = this.meta,\n lastDefinition = this.lastDefinition,\n lastName = this.lastName;\n\n var nameOrDef = defRef.value();\n var definition = void 0;\n if (nameOrDef && nameOrDef === lastName) {\n return lastDefinition;\n }\n this.lastName = nameOrDef;\n if (typeof nameOrDef === 'string') {\n // tslint:disable-next-line:max-line-length\n (true && !(nameOrDef !== 'input') && (0, _emberDebug.assert)('You cannot use the input helper as a contextual helper. Please extend TextField or Checkbox to use it as a contextual component.', nameOrDef !== 'input'));\n // tslint:disable-next-line:max-line-length\n\n (true && !(nameOrDef !== 'textarea') && (0, _emberDebug.assert)('You cannot use the textarea helper as a contextual helper. Please extend TextArea to use it as a contextual component.', nameOrDef !== 'textarea'));\n\n definition = env.getComponentDefinition(nameOrDef, meta);\n // tslint:disable-next-line:max-line-length\n (true && !(!!definition) && (0, _emberDebug.assert)('The component helper cannot be used without a valid component name. You used \"' + nameOrDef + '\" via (component \"' + nameOrDef + '\")', !!definition));\n } else if ((0, _runtime.isComponentDefinition)(nameOrDef)) {\n definition = nameOrDef;\n } else {\n (true && !(nameOrDef) && (0, _emberDebug.assert)('You cannot create a component from ' + nameOrDef + ' using the {{component}} helper', nameOrDef));\n\n return null;\n }\n var newDef = createCurriedDefinition(definition, args);\n this.lastDefinition = newDef;\n return newDef;\n };\n\n return ClosureComponentReference;\n }(_references.CachedReference);\n\n function createCurriedDefinition(definition, args) {\n var curriedArgs = curryArgs(definition, args);\n return new _curly.CurlyComponentDefinition(definition.name, definition.ComponentClass, definition.template, curriedArgs);\n }\n function curryArgs(definition, newArgs) {\n var args = definition.args,\n ComponentClass = definition.ComponentClass;\n\n var positionalParams = ComponentClass.class.positionalParams;\n // The args being passed in are from the (component ...) invocation,\n // so the first positional argument is actually the name or component\n // definition. It needs to be dropped in order for any actual positional\n // args to coincide with the ComponentClass's positionParams.\n // For \"normal\" curly components this slicing is done at the syntax layer,\n // but we don't have that luxury here.\n\n var _newArgs$positional$r = newArgs.positional.references,\n slicedPositionalArgs = _newArgs$positional$r.slice(1);\n\n if (positionalParams && slicedPositionalArgs.length) {\n (0, _curly.validatePositionalParameters)(newArgs.named, slicedPositionalArgs, positionalParams);\n }\n var isRest = typeof positionalParams === 'string';\n // For non-rest position params, we need to perform the position -> name mapping\n // at each layer to avoid a collision later when the args are used to construct\n // the component instance (inside of processArgs(), inside of create()).\n var positionalToNamedParams = {};\n if (!isRest && positionalParams.length > 0) {\n var limit = Math.min(positionalParams.length, slicedPositionalArgs.length);\n for (var i = 0; i < limit; i++) {\n var name = positionalParams[i];\n positionalToNamedParams[name] = slicedPositionalArgs[i];\n }\n slicedPositionalArgs.length = 0; // Throw them away since you're merged in.\n }\n // args (aka 'oldArgs') may be undefined or simply be empty args, so\n // we need to fall back to an empty array or object.\n var oldNamed = args && args.named || {};\n var oldPositional = args && args.positional || [];\n // Merge positional arrays\n var positional = new Array(Math.max(oldPositional.length, slicedPositionalArgs.length));\n positional.splice.apply(positional, [0, oldPositional.length].concat(oldPositional));\n positional.splice.apply(positional, [0, slicedPositionalArgs.length].concat(slicedPositionalArgs));\n // Merge named maps\n var named = (0, _emberUtils.assign)({}, oldNamed, positionalToNamedParams, newArgs.named.map);\n return { positional: positional, named: named };\n }\n});","enifed('ember-glimmer/helpers/concat', ['exports', '@glimmer/runtime', 'ember-glimmer/utils/references'], function (exports, _runtime, _references) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return new _references.InternalHelperReference(concat, args.capture());\n };\n\n /**\n @module ember\n */\n /**\n Concatenates the given arguments into a string.\n \n Example:\n \n ```handlebars\n {{some-component name=(concat firstName \" \" lastName)}}\n \n {{! would pass name=\"<first name value> <last name value>\" to the component}}\n ```\n \n @public\n @method concat\n @for Ember.Templates.helpers\n @since 1.13.0\n */\n function concat(_ref) {\n var positional = _ref.positional;\n\n return positional.value().map(_runtime.normalizeTextValue).join('');\n }\n});","enifed('ember-glimmer/helpers/each-in', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n 'use strict';\n\n exports.isEachIn = isEachIn;\n\n exports.default = function (_vm, args) {\n var ref = Object.create(args.positional.at(0));\n ref[EACH_IN_REFERENCE] = true;\n return ref;\n };\n\n /**\n The `{{#each}}` helper loops over elements in a collection. It is an extension\n of the base Handlebars `{{#each}}` helper.\n The default behavior of `{{#each}}` is to yield its inner block once for every\n item in an array passing the item as the first block parameter.\n \n ```javascript\n var developers = [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }];\n ```\n \n ```handlebars\n {{#each developers key=\"name\" as |person|}}\n {{person.name}}\n {{! `this` is whatever it was outside the #each }}\n {{/each}}\n ```\n \n The same rules apply to arrays of primitives.\n \n ```javascript\n var developerNames = ['Yehuda', 'Tom', 'Paul']\n ```\n \n ```handlebars\n {{#each developerNames key=\"@index\" as |name|}}\n {{name}}\n {{/each}}\n ```\n \n During iteration, the index of each item in the array is provided as a second block parameter.\n \n ```handlebars\n <ul>\n {{#each people as |person index|}}\n <li>Hello, {{person.name}}! You're number {{index}} in line</li>\n {{/each}}\n </ul>\n ```\n \n ### Specifying Keys\n \n The `key` option is used to tell Ember how to determine if the array being\n iterated over with `{{#each}}` has changed between renders. By helping Ember\n detect that some elements in the array are the same, DOM elements can be\n re-used, significantly improving rendering speed.\n \n For example, here's the `{{#each}}` helper with its `key` set to `id`:\n \n ```handlebars\n {{#each model key=\"id\" as |item|}}\n {{/each}}\n ```\n \n When this `{{#each}}` re-renders, Ember will match up the previously rendered\n items (and reorder the generated DOM elements) based on each item's `id`\n property.\n By default the item's own reference is used.\n \n ### {{else}} condition\n \n `{{#each}}` can have a matching `{{else}}`. The contents of this block will render\n if the collection is empty.\n \n ```handlebars\n {{#each developers as |person|}}\n {{person.name}}\n {{else}}\n <p>Sorry, nobody is available for this task.</p>\n {{/each}}\n ```\n \n @method each\n @for Ember.Templates.helpers\n @public\n */\n /**\n The `{{each-in}}` helper loops over properties on an object.\n \n For example, given a `user` object that looks like:\n \n ```javascript\n {\n \"name\": \"Shelly Sails\",\n \"age\": 42\n }\n ```\n \n This template would display all properties on the `user`\n object in a list:\n \n ```handlebars\n <ul>\n {{#each-in user as |key value|}}\n <li>{{key}}: {{value}}</li>\n {{/each-in}}\n </ul>\n ```\n \n Outputting their name and age.\n \n @method each-in\n @for Ember.Templates.helpers\n @public\n @since 2.1.0\n */\n var EACH_IN_REFERENCE = (0, _emberUtils.symbol)('EACH_IN');\n function isEachIn(ref) {\n return ref && ref[EACH_IN_REFERENCE];\n }\n});","enifed('ember-glimmer/helpers/get', ['exports', 'ember-babel', '@glimmer/reference', '@glimmer/runtime', 'ember-metal', 'ember-glimmer/utils/references'], function (exports, _emberBabel, _reference, _runtime, _emberMetal, _references) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return GetHelperReference.create(args.positional.at(0), args.positional.at(1));\n };\n\n var GetHelperReference = function (_CachedReference) {\n (0, _emberBabel.inherits)(GetHelperReference, _CachedReference);\n\n GetHelperReference.create = function create(sourceReference, pathReference) {\n if ((0, _reference.isConst)(pathReference)) {\n var parts = pathReference.value().split('.');\n return (0, _reference.referenceFromParts)(sourceReference, parts);\n } else {\n return new GetHelperReference(sourceReference, pathReference);\n }\n };\n\n function GetHelperReference(sourceReference, pathReference) {\n (0, _emberBabel.classCallCheck)(this, GetHelperReference);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _CachedReference.call(this));\n\n _this.sourceReference = sourceReference;\n _this.pathReference = pathReference;\n _this.lastPath = null;\n _this.innerReference = _runtime.NULL_REFERENCE;\n var innerTag = _this.innerTag = _reference.UpdatableTag.create(_reference.CONSTANT_TAG);\n _this.tag = (0, _reference.combine)([sourceReference.tag, pathReference.tag, innerTag]);\n return _this;\n }\n\n GetHelperReference.prototype.compute = function compute() {\n var lastPath = this.lastPath,\n innerReference = this.innerReference,\n innerTag = this.innerTag;\n\n var path = this.lastPath = this.pathReference.value();\n if (path !== lastPath) {\n if (path !== undefined && path !== null && path !== '') {\n var pathType = typeof path;\n if (pathType === 'string') {\n innerReference = (0, _reference.referenceFromParts)(this.sourceReference, path.split('.'));\n } else if (pathType === 'number') {\n innerReference = this.sourceReference.get('' + path);\n }\n innerTag.inner.update(innerReference.tag);\n } else {\n innerReference = _runtime.NULL_REFERENCE;\n innerTag.inner.update(_reference.CONSTANT_TAG);\n }\n this.innerReference = innerReference;\n }\n return innerReference.value();\n };\n\n GetHelperReference.prototype[_references.UPDATE] = function (value) {\n (0, _emberMetal.set)(this.sourceReference.value(), this.pathReference.value(), value);\n };\n\n return GetHelperReference;\n }(_references.CachedReference);\n});","enifed(\"ember-glimmer/helpers/hash\", [\"exports\"], function (exports) {\n \"use strict\";\n\n exports.default = function (_vm, args) {\n return args.named.capture();\n };\n});","enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-babel', '@glimmer/reference', 'ember-debug', 'ember-glimmer/utils/references'], function (exports, _emberBabel, _reference, _emberDebug, _references) {\n 'use strict';\n\n exports.inlineIf = inlineIf;\n exports.inlineUnless = inlineUnless;\n\n var ConditionalHelperReference = function (_CachedReference) {\n (0, _emberBabel.inherits)(ConditionalHelperReference, _CachedReference);\n\n ConditionalHelperReference.create = function create(_condRef, truthyRef, falsyRef) {\n var condRef = _references.ConditionalReference.create(_condRef);\n if ((0, _reference.isConst)(condRef)) {\n return condRef.value() ? truthyRef : falsyRef;\n } else {\n return new ConditionalHelperReference(condRef, truthyRef, falsyRef);\n }\n };\n\n function ConditionalHelperReference(cond, truthy, falsy) {\n (0, _emberBabel.classCallCheck)(this, ConditionalHelperReference);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _CachedReference.call(this));\n\n _this.branchTag = _reference.UpdatableTag.create(_reference.CONSTANT_TAG);\n _this.tag = (0, _reference.combine)([cond.tag, _this.branchTag]);\n _this.cond = cond;\n _this.truthy = truthy;\n _this.falsy = falsy;\n return _this;\n }\n\n ConditionalHelperReference.prototype.compute = function compute() {\n var branch = this.cond.value() ? this.truthy : this.falsy;\n this.branchTag.inner.update(branch.tag);\n return branch.value();\n };\n\n return ConditionalHelperReference;\n }(_references.CachedReference);\n\n /**\n The `if` helper allows you to conditionally render one of two branches,\n depending on the \"truthiness\" of a property.\n For example the following values are all falsey: `false`, `undefined`, `null`, `\"\"`, `0`, `NaN` or an empty array.\n \n This helper has two forms, block and inline.\n \n ## Block form\n \n You can use the block form of `if` to conditionally render a section of the template.\n \n To use it, pass the conditional value to the `if` helper,\n using the block form to wrap the section of template you want to conditionally render.\n Like so:\n \n ```handlebars\n {{! will not render if foo is falsey}}\n {{#if foo}}\n Welcome to the {{foo.bar}}\n {{/if}}\n ```\n \n You can also specify a template to show if the property is falsey by using\n the `else` helper.\n \n ```handlebars\n {{! is it raining outside?}}\n {{#if isRaining}}\n Yes, grab an umbrella!\n {{else}}\n No, it's lovely outside!\n {{/if}}\n ```\n \n You are also able to combine `else` and `if` helpers to create more complex\n conditional logic.\n \n ```handlebars\n {{#if isMorning}}\n Good morning\n {{else if isAfternoon}}\n Good afternoon\n {{else}}\n Good night\n {{/if}}\n ```\n \n ## Inline form\n \n The inline `if` helper conditionally renders a single property or string.\n \n In this form, the `if` helper receives three arguments, the conditional value,\n the value to render when truthy, and the value to render when falsey.\n \n For example, if `useLongGreeting` is truthy, the following:\n \n ```handlebars\n {{if useLongGreeting \"Hello\" \"Hi\"}} Alex\n ```\n \n Will render:\n \n ```html\n Hello Alex\n ```\n \n ### Nested `if`\n \n You can use the `if` helper inside another helper as a nested helper:\n \n ```handlebars\n {{some-component height=(if isBig \"100\" \"10\")}}\n ```\n \n One detail to keep in mind is that both branches of the `if` helper will be evaluated,\n so if you have `{{if condition \"foo\" (expensive-operation \"bar\")`,\n `expensive-operation` will always calculate.\n \n @method if\n @for Ember.Templates.helpers\n @public\n */\n function inlineIf(_vm, _ref) {\n var positional = _ref.positional;\n (true && !(positional.length === 3 || positional.length === 2) && (0, _emberDebug.assert)('The inline form of the `if` helper expects two or three arguments, e.g. ' + '`{{if trialExpired \"Expired\" expiryDate}}`.', positional.length === 3 || positional.length === 2));\n\n return ConditionalHelperReference.create(positional.at(0), positional.at(1), positional.at(2));\n }\n /**\n The inline `unless` helper conditionally renders a single property or string.\n This helper acts like a ternary operator. If the first property is falsy,\n the second argument will be displayed, otherwise, the third argument will be\n displayed\n \n ```handlebars\n {{unless useLongGreeting \"Hi\" \"Hello\"}} Ben\n ```\n \n You can use the `unless` helper inside another helper as a subexpression.\n \n ```handlebars\n {{some-component height=(unless isBig \"10\" \"100\")}}\n ```\n \n @method unless\n @for Ember.Templates.helpers\n @public\n */\n function inlineUnless(_vm, _ref2) {\n var positional = _ref2.positional;\n (true && !(positional.length === 3 || positional.length === 2) && (0, _emberDebug.assert)('The inline form of the `unless` helper expects two or three arguments, e.g. ' + '`{{unless isFirstLogin \"Welcome back!\"}}`.', positional.length === 3 || positional.length === 2));\n\n return ConditionalHelperReference.create(positional.at(0), positional.at(2), positional.at(1));\n }\n});","enifed('ember-glimmer/helpers/loc', ['exports', 'ember-glimmer/helper', 'ember-runtime'], function (exports, _helper, _emberRuntime) {\n 'use strict';\n\n exports.default = (0, _helper.helper)(function (params) {\n return _emberRuntime.String.loc.apply(null, params);\n });\n});","enifed('ember-glimmer/helpers/log', ['exports', 'ember-glimmer/utils/references', 'ember-console'], function (exports, _references, _emberConsole) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return new _references.InternalHelperReference(log, args.capture());\n };\n\n /**\n `log` allows you to output the value of variables in the current rendering\n context. `log` also accepts primitive types such as strings or numbers.\n \n ```handlebars\n {{log \"myVariable:\" myVariable }}\n ```\n \n @method log\n @for Ember.Templates.helpers\n @param {Array} params\n @public\n */\n function log(_ref) {\n var positional = _ref.positional;\n\n _emberConsole.default.log.apply(null, positional.value());\n }\n /**\n @module ember\n */\n});","enifed('ember-glimmer/helpers/mut', ['exports', 'ember-debug', 'ember-utils', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/action'], function (exports, _emberDebug, _emberUtils, _references, _action) {\n 'use strict';\n\n exports.isMut = isMut;\n exports.unMut = unMut;\n\n exports.default = function (_vm, args) {\n var rawRef = args.positional.at(0);\n if (isMut(rawRef)) {\n return rawRef;\n }\n // TODO: Improve this error message. This covers at least two distinct\n // cases:\n //\n // 1. (mut \"not a path\") – passing a literal, result from a helper\n // invocation, etc\n //\n // 2. (mut receivedValue) – passing a value received from the caller\n // that was originally derived from a literal, result from a helper\n // invocation, etc\n //\n // This message is alright for the first case, but could be quite\n // confusing for the second case.\n (true && !(rawRef[_references.UPDATE]) && (0, _emberDebug.assert)('You can only pass a path to mut', rawRef[_references.UPDATE]));\n\n var wrappedRef = Object.create(rawRef);\n wrappedRef[SOURCE] = rawRef;\n wrappedRef[_action.INVOKE] = rawRef[_references.UPDATE];\n wrappedRef[MUT_REFERENCE] = true;\n return wrappedRef;\n };\n\n /**\n The `mut` helper lets you __clearly specify__ that a child `Component` can update the\n (mutable) value passed to it, which will __change the value of the parent component__.\n \n To specify that a parameter is mutable, when invoking the child `Component`:\n \n ```handlebars\n {{my-child childClickCount=(mut totalClicks)}}\n ```\n \n The child `Component` can then modify the parent's value just by modifying its own\n property:\n \n ```javascript\n // my-child.js\n export default Component.extend({\n click() {\n this.incrementProperty('childClickCount');\n }\n });\n ```\n \n Note that for curly components (`{{my-component}}`) the bindings are already mutable,\n making the `mut` unnecessary.\n \n Additionally, the `mut` helper can be combined with the `action` helper to\n mutate a value. For example:\n \n ```handlebars\n {{my-child childClickCount=totalClicks click-count-change=(action (mut totalClicks))}}\n ```\n \n The child `Component` would invoke the action with the new click value:\n \n ```javascript\n // my-child.js\n export default Component.extend({\n click() {\n this.get('click-count-change')(this.get('childClickCount') + 1);\n }\n });\n ```\n \n The `mut` helper changes the `totalClicks` value to what was provided as the action argument.\n \n The `mut` helper, when used with `action`, will return a function that\n sets the value passed to `mut` to its first argument. This works like any other\n closure action and interacts with the other features `action` provides.\n As an example, we can create a button that increments a value passing the value\n directly to the `action`:\n \n ```handlebars\n {{! inc helper is not provided by Ember }}\n <button onclick={{action (mut count) (inc count)}}>\n Increment count\n </button>\n ```\n \n You can also use the `value` option:\n \n ```handlebars\n <input value={{name}} oninput={{action (mut name) value=\"target.value\"}}>\n ```\n \n @method mut\n @param {Object} [attr] the \"two-way\" attribute that can be modified.\n @for Ember.Templates.helpers\n @public\n */\n var MUT_REFERENCE = (0, _emberUtils.symbol)('MUT');\n var SOURCE = (0, _emberUtils.symbol)('SOURCE');\n function isMut(ref) {\n return ref && ref[MUT_REFERENCE];\n }\n function unMut(ref) {\n return ref[SOURCE] || ref;\n }\n});","enifed('ember-glimmer/helpers/query-param', ['exports', 'ember-debug', 'ember-routing', 'ember-utils', 'ember-glimmer/utils/references'], function (exports, _emberDebug, _emberRouting, _emberUtils, _references) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n return new _references.InternalHelperReference(queryParams, args.capture());\n };\n\n /**\n This is a helper to be used in conjunction with the link-to helper.\n It will supply url query parameters to the target route.\n \n Example\n \n ```handlebars\n {{#link-to 'posts' (query-params direction=\"asc\")}}Sort{{/link-to}}\n ```\n \n @method query-params\n @for Ember.Templates.helpers\n @param {Object} hash takes a hash of query parameters\n @return {Object} A `QueryParams` object for `{{link-to}}`\n @public\n */\n function queryParams(_ref) {\n var positional = _ref.positional,\n named = _ref.named;\n (true && !(positional.value().length === 0) && (0, _emberDebug.assert)('The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName=\\'foo\\') as opposed to just (query-params \\'foo\\')', positional.value().length === 0));\n\n return _emberRouting.QueryParams.create({\n values: (0, _emberUtils.assign)({}, named.value())\n });\n }\n});","enifed('ember-glimmer/helpers/readonly', ['exports', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/mut'], function (exports, _references, _mut) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n var ref = (0, _mut.unMut)(args.positional.at(0));\n var wrapped = Object.create(ref);\n wrapped[_references.UPDATE] = undefined;\n return wrapped;\n };\n});","enifed('ember-glimmer/helpers/unbound', ['exports', 'ember-debug', 'ember-glimmer/utils/references'], function (exports, _emberDebug, _references) {\n 'use strict';\n\n exports.default = function (_vm, args) {\n (true && !(args.positional.length === 1 && args.named.length === 0) && (0, _emberDebug.assert)('unbound helper cannot be called with multiple params or hash params', args.positional.length === 1 && args.named.length === 0));\n\n return _references.UnboundReference.create(args.positional.at(0).value());\n };\n});","enifed('ember-glimmer/index', ['exports', 'ember-glimmer/helpers/action', 'ember-glimmer/templates/root', 'ember-glimmer/template', 'ember-glimmer/components/checkbox', 'ember-glimmer/components/text_field', 'ember-glimmer/components/text_area', 'ember-glimmer/components/link-to', 'ember-glimmer/component', 'ember-glimmer/helper', 'ember-glimmer/environment', 'ember-glimmer/utils/string', 'ember-glimmer/renderer', 'ember-glimmer/template_registry', 'ember-glimmer/setup-registry', 'ember-glimmer/dom', 'ember-glimmer/syntax', 'ember-glimmer/component-managers/abstract'], function (exports, _action, _root, _template, _checkbox, _text_field, _text_area, _linkTo, _component, _helper, _environment, _string, _renderer, _template_registry, _setupRegistry, _dom, _syntax, _abstract) {\n 'use strict';\n\n Object.defineProperty(exports, 'INVOKE', {\n enumerable: true,\n get: function () {\n return _action.INVOKE;\n }\n });\n Object.defineProperty(exports, 'RootTemplate', {\n enumerable: true,\n get: function () {\n return _root.default;\n }\n });\n Object.defineProperty(exports, 'template', {\n enumerable: true,\n get: function () {\n return _template.default;\n }\n });\n Object.defineProperty(exports, 'Checkbox', {\n enumerable: true,\n get: function () {\n return _checkbox.default;\n }\n });\n Object.defineProperty(exports, 'TextField', {\n enumerable: true,\n get: function () {\n return _text_field.default;\n }\n });\n Object.defineProperty(exports, 'TextArea', {\n enumerable: true,\n get: function () {\n return _text_area.default;\n }\n });\n Object.defineProperty(exports, 'LinkComponent', {\n enumerable: true,\n get: function () {\n return _linkTo.default;\n }\n });\n Object.defineProperty(exports, 'Component', {\n enumerable: true,\n get: function () {\n return _component.default;\n }\n });\n Object.defineProperty(exports, 'Helper', {\n enumerable: true,\n get: function () {\n return _helper.default;\n }\n });\n Object.defineProperty(exports, 'helper', {\n enumerable: true,\n get: function () {\n return _helper.helper;\n }\n });\n Object.defineProperty(exports, 'Environment', {\n enumerable: true,\n get: function () {\n return _environment.default;\n }\n });\n Object.defineProperty(exports, 'SafeString', {\n enumerable: true,\n get: function () {\n return _string.SafeString;\n }\n });\n Object.defineProperty(exports, 'escapeExpression', {\n enumerable: true,\n get: function () {\n return _string.escapeExpression;\n }\n });\n Object.defineProperty(exports, 'htmlSafe', {\n enumerable: true,\n get: function () {\n return _string.htmlSafe;\n }\n });\n Object.defineProperty(exports, 'isHTMLSafe', {\n enumerable: true,\n get: function () {\n return _string.isHTMLSafe;\n }\n });\n Object.defineProperty(exports, '_getSafeString', {\n enumerable: true,\n get: function () {\n return _string.getSafeString;\n }\n });\n Object.defineProperty(exports, 'Renderer', {\n enumerable: true,\n get: function () {\n return _renderer.Renderer;\n }\n });\n Object.defineProperty(exports, 'InertRenderer', {\n enumerable: true,\n get: function () {\n return _renderer.InertRenderer;\n }\n });\n Object.defineProperty(exports, 'InteractiveRenderer', {\n enumerable: true,\n get: function () {\n return _renderer.InteractiveRenderer;\n }\n });\n Object.defineProperty(exports, '_resetRenderers', {\n enumerable: true,\n get: function () {\n return _renderer._resetRenderers;\n }\n });\n Object.defineProperty(exports, 'getTemplate', {\n enumerable: true,\n get: function () {\n return _template_registry.getTemplate;\n }\n });\n Object.defineProperty(exports, 'setTemplate', {\n enumerable: true,\n get: function () {\n return _template_registry.setTemplate;\n }\n });\n Object.defineProperty(exports, 'hasTemplate', {\n enumerable: true,\n get: function () {\n return _template_registry.hasTemplate;\n }\n });\n Object.defineProperty(exports, 'getTemplates', {\n enumerable: true,\n get: function () {\n return _template_registry.getTemplates;\n }\n });\n Object.defineProperty(exports, 'setTemplates', {\n enumerable: true,\n get: function () {\n return _template_registry.setTemplates;\n }\n });\n Object.defineProperty(exports, 'setupEngineRegistry', {\n enumerable: true,\n get: function () {\n return _setupRegistry.setupEngineRegistry;\n }\n });\n Object.defineProperty(exports, 'setupApplicationRegistry', {\n enumerable: true,\n get: function () {\n return _setupRegistry.setupApplicationRegistry;\n }\n });\n Object.defineProperty(exports, 'DOMChanges', {\n enumerable: true,\n get: function () {\n return _dom.DOMChanges;\n }\n });\n Object.defineProperty(exports, 'NodeDOMTreeConstruction', {\n enumerable: true,\n get: function () {\n return _dom.NodeDOMTreeConstruction;\n }\n });\n Object.defineProperty(exports, 'DOMTreeConstruction', {\n enumerable: true,\n get: function () {\n return _dom.DOMTreeConstruction;\n }\n });\n Object.defineProperty(exports, '_registerMacros', {\n enumerable: true,\n get: function () {\n return _syntax.registerMacros;\n }\n });\n Object.defineProperty(exports, '_experimentalMacros', {\n enumerable: true,\n get: function () {\n return _syntax.experimentalMacros;\n }\n });\n Object.defineProperty(exports, 'AbstractComponentManager', {\n enumerable: true,\n get: function () {\n return _abstract.default;\n }\n });\n});","enifed('ember-glimmer/modifiers/action', ['exports', 'ember-babel', 'ember-debug', 'ember-metal', 'ember-utils', 'ember-views', 'ember-glimmer/helpers/action'], function (exports, _emberBabel, _emberDebug, _emberMetal, _emberUtils, _emberViews, _action) {\n 'use strict';\n\n exports.ActionState = exports.ActionHelper = undefined;\n\n var MODIFIERS = ['alt', 'shift', 'meta', 'ctrl'];\n var POINTER_EVENT_TYPE_REGEX = /^click|mouse|touch/;\n function isAllowedEvent(event, allowedKeys) {\n if (allowedKeys === null || allowedKeys === undefined) {\n if (POINTER_EVENT_TYPE_REGEX.test(event.type)) {\n return (0, _emberViews.isSimpleClick)(event);\n } else {\n allowedKeys = '';\n }\n }\n if (allowedKeys.indexOf('any') >= 0) {\n return true;\n }\n for (var i = 0; i < MODIFIERS.length; i++) {\n if (event[MODIFIERS[i] + 'Key'] && allowedKeys.indexOf(MODIFIERS[i]) === -1) {\n return false;\n }\n }\n return true;\n }\n var ActionHelper = exports.ActionHelper = {\n // registeredActions is re-exported for compatibility with older plugins\n // that were using this undocumented API.\n registeredActions: _emberViews.ActionManager.registeredActions,\n registerAction: function (actionState) {\n var actionId = actionState.actionId;\n\n _emberViews.ActionManager.registeredActions[actionId] = actionState;\n return actionId;\n },\n unregisterAction: function (actionState) {\n var actionId = actionState.actionId;\n\n delete _emberViews.ActionManager.registeredActions[actionId];\n }\n };\n\n var ActionState = exports.ActionState = function () {\n function ActionState(element, actionId, actionName, actionArgs, namedArgs, positionalArgs, implicitTarget, dom) {\n (0, _emberBabel.classCallCheck)(this, ActionState);\n\n this.element = element;\n this.actionId = actionId;\n this.actionName = actionName;\n this.actionArgs = actionArgs;\n this.namedArgs = namedArgs;\n this.positional = positionalArgs;\n this.implicitTarget = implicitTarget;\n this.dom = dom;\n this.eventName = this.getEventName();\n }\n\n ActionState.prototype.getEventName = function getEventName() {\n return this.namedArgs.get('on').value() || 'click';\n };\n\n ActionState.prototype.getActionArgs = function getActionArgs() {\n var result = new Array(this.actionArgs.length);\n for (var i = 0; i < this.actionArgs.length; i++) {\n result[i] = this.actionArgs[i].value();\n }\n return result;\n };\n\n ActionState.prototype.getTarget = function getTarget() {\n var implicitTarget = this.implicitTarget,\n namedArgs = this.namedArgs;\n\n var target = void 0;\n if (namedArgs.has('target')) {\n target = namedArgs.get('target').value();\n } else {\n target = implicitTarget.value();\n }\n return target;\n };\n\n ActionState.prototype.handler = function handler(event) {\n var _this = this;\n\n var actionName = this.actionName,\n namedArgs = this.namedArgs;\n\n var bubbles = namedArgs.get('bubbles');\n var preventDefault = namedArgs.get('preventDefault');\n var allowedKeys = namedArgs.get('allowedKeys');\n var target = this.getTarget();\n if (!isAllowedEvent(event, allowedKeys.value())) {\n return true;\n }\n if (preventDefault.value() !== false) {\n event.preventDefault();\n }\n if (bubbles.value() === false) {\n event.stopPropagation();\n }\n (0, _emberMetal.run)(function () {\n var args = _this.getActionArgs();\n var payload = {\n args: args,\n target: target,\n name: null\n };\n if (typeof actionName[_action.INVOKE] === 'function') {\n (0, _emberMetal.flaggedInstrument)('interaction.ember-action', payload, function () {\n actionName[_action.INVOKE].apply(actionName, args);\n });\n return;\n }\n if (typeof actionName === 'function') {\n (0, _emberMetal.flaggedInstrument)('interaction.ember-action', payload, function () {\n actionName.apply(target, args);\n });\n return;\n }\n payload.name = actionName;\n if (target.send) {\n (0, _emberMetal.flaggedInstrument)('interaction.ember-action', payload, function () {\n target.send.apply(target, [actionName].concat(args));\n });\n } else {\n (true && !(typeof target[actionName] === 'function') && (0, _emberDebug.assert)('The action \\'' + actionName + '\\' did not exist on ' + target, typeof target[actionName] === 'function'));\n\n (0, _emberMetal.flaggedInstrument)('interaction.ember-action', payload, function () {\n target[actionName].apply(target, args);\n });\n }\n });\n return false;\n };\n\n ActionState.prototype.destroy = function destroy() {\n ActionHelper.unregisterAction(this);\n };\n\n return ActionState;\n }();\n\n var ActionModifierManager = function () {\n function ActionModifierManager() {\n (0, _emberBabel.classCallCheck)(this, ActionModifierManager);\n }\n\n ActionModifierManager.prototype.create = function create(element, args, _dynamicScope, dom) {\n var _args$capture = args.capture(),\n named = _args$capture.named,\n positional = _args$capture.positional;\n\n var implicitTarget = void 0;\n var actionName = void 0;\n var actionNameRef = void 0;\n if (positional.length > 1) {\n implicitTarget = positional.at(0);\n actionNameRef = positional.at(1);\n if (actionNameRef[_action.INVOKE]) {\n actionName = actionNameRef;\n } else {\n var actionLabel = actionNameRef._propertyKey;\n actionName = actionNameRef.value();\n (true && !(typeof actionName === 'string' || typeof actionName === 'function') && (0, _emberDebug.assert)('You specified a quoteless path, `' + actionLabel + '`, to the ' + '{{action}} helper which did not resolve to an action name (a ' + 'string). Perhaps you meant to use a quoted actionName? (e.g. ' + '{{action \"' + actionLabel + '\"}}).', typeof actionName === 'string' || typeof actionName === 'function'));\n }\n }\n var actionArgs = [];\n // The first two arguments are (1) `this` and (2) the action name.\n // Everything else is a param.\n for (var i = 2; i < positional.length; i++) {\n actionArgs.push(positional.at(i));\n }\n var actionId = (0, _emberUtils.uuid)();\n return new ActionState(element, actionId, actionName, actionArgs, na